| 1 | # Core navigation normal-library proof |
| 2 | |
| 3 | This unpublished workspace package mounts the **actual production navigation |
| 4 | root**, all navigation modules and their complete registrations. It contains no substitute |
| 5 | App, copied implementation, test-only root or host adapter. Shared metadata, |
| 6 | results/actions, facets and nested payloads are normal dependencies. |
| 7 | |
| 8 | Run sequentially from the repository root: |
| 9 | |
| 10 | ```sh |
| 11 | python3 -B scripts/test_check_command_core_navigation_proof.py |
| 12 | sh scripts/check-portable-core-navigation.sh |
| 13 | ``` |
| 14 | |
| 15 | The proof checks the declared complete source closure and real host inventory |
| 16 | relative order (without pinning unrelated core entries), an all-feature/all-target **normal** dependency graph, a no-default |
| 17 | normal-library build, and nonzero tests from the actual portable leaves. |
| 18 | Rejection controls cover omitted/reordered registrations, metadata drift, |
| 19 | selected-leaf/stub/test-only wrappers, conditional production modules and |
| 20 | unreviewed include macros, host imports (even in an omitted owned leaf), test-only |
| 21 | dependency substitution and unapproved transitive packages. |
| 22 | |
| 23 | The approved graph is deliberately explicit: command-contract/protocol data; |
| 24 | serde/JSON/indexed containers and their derive/parser support; chrono/UUID and |
| 25 | existing platform/timezone/random primitives, including their wasm/Windows |
| 26 | support. These are inherited shared data dependencies, not permission to add |
| 27 | TUI, application runtime, configuration, HTTP, terminal or credential-storage |
| 28 | services. New normal packages require source review, not automatic approval. |
| 29 | |
| 30 | Host registration, concrete filesystem/view/config effects, real-App tests and |
| 31 | voice recording/transcription remain outside the movable slice. The rest of core |
| 32 | is not claimed portable by this package: the top-level `core` frontier remains |
| 33 | pending for its other registrations. Physical movement is a later feature. |
| 34 | |
| 35 | ## Developer and CI coverage |
| 36 | |
| 37 | `sh scripts/dev-test.sh crates/tui/src/commands/groups/core/links.rs` (and the |
| 38 | other command source paths) runs the native `commands::` tests, including the |
| 39 | relocated host tests. The `portable-core-navigation` area or proof-package paths |
| 40 | select the fast portable tests; they do not replace host verification. |
| 41 | The Lint job checks the source inventory and normal graph; the |
| 42 | Portable boundaries job additionally runs the full standalone proof above. |
| 43 | Dependency additions still require explicit review: tolerating unrelated registry |
| 44 | insertions must not silently admit runtime or storage services into the closure. |
| 45 | |
| 46 | ## Capability limitations |
| 47 | |
| 48 | The capability set is a `u64`. `NAVIGATION` and `VOICE_INPUT` occupy bits 30 |
| 49 | and 31, the last two of the original `u32`; `BACKGROUND` (commands that run |
| 50 | their work off the UI loop) is bit 32, added when the set was widened for it. |
| 51 | A future capability takes the next free bit; do not renumber identities. |
| 52 | |
| 53 | The current `WORKSPACE` facet includes confined anchor read/append/replace, |
| 54 | path inspection and home-directory resolution, not just path reads. Other |
| 55 | first-party WORKSPACE consumers therefore have access to those operations even |
| 56 | though they do not call them. Exact facet selection is not per-operation least |
| 57 | authority. Splitting anchor authority is a separate contract decision; this |
| 58 | adoption preserves the agreed workspace facet and does not claim that narrowing |
| 59 | has already been implemented. |
| 60 |