roadmap PARTIAL

1094. grant_plan: what an outside maintainer would fix before it leaves

Raised by a read-only review of crates/grant_plan as a stranger to this tree would meet it: the crate an outside maintainer finds when partsfoundry/grant_plan appears, with no nife checkout beside it. The review changes nothing; it lists what the move lane and the lanes after it change.

There is no review package for this crate in notes/crate-reviews/, so there is no settled baseline of ratified names and open questions to start from. This block starts from the code, from design/naming.md, from the externalization list (crates/externalization-list.txt, where the crate is listed) and from milestone 1017 (the contract crates leave in this order). Its measurements already name grant_plan as the largest coordination cost of the 22 crates (151 commits in 30 days, 120 of them crossing, 227 breaking API items in four weeks). Its order places the crate in step 6. Where a name below is already ratified, this block does not reopen it unless a later rule (units spelled out, standard-library spellings) contradicts it, and says so where it does.

Reuse: the template partsfoundry/crate-workflows and its scaffold and helpers (standalone.py, spelled_out.py, register_names.py, british_spelling.py), cargo-mutants, Kani, and the crate's own test_support::plan_line. No new tool.

Finding status

Every item not Done blocks the first crates.io publish, under the publishing hold.

Open decisions

None. The review packages carry the ratification of the provisional names and the clearance.

Goal

A stranger who finds grant_plan on its own can tell in one screen what it is. It is a no_std, allocation-free parser and planner that turns one line of bytes into a typed grant or a typed refusal, against a manifest the caller supplies. The same stranger can build it, run its tests and read its public names without a glossary. Nothing in the crate names a program, a package, a path or a person from the tree it came from. The repository's gates are green for the crate's own reasons.

What was checked, and how

The tools run, the sources read and what was not run are in the appendix.

Prior art

The comparison with nearby work is in the appendix.

The items

Effort: XS is under an hour for a lane, S is half a day, M is a day or two, L is a week or a lane of its own. A door is one-way when somebody outside the repository acts on it after the release (a public name, a published behavior, a layout, a wire value, a dependency); everything else is two-way and the maintainer decides it.

P0: blocks the move

  1. The crate is not separable from nife's program catalog as it stands. Finding: Program (src/program/catalog.rs lines 157 to 437) is an enum of 28 nife programs with wire ids, archive names and, in src/program/manifests.rs, each one's manifest and verbs. Endowment::program (src/command.rs line 175) ties the planner's one output type to that catalog; NO_NOTE_MANIFEST is Program::Uptime.manifest() (src/image.rs line 24) and IMAGE_ROW is Program::Uptime (line 37); spawn_protocol::held_shares takes a Program (src/spawn_protocol.rs line 925); ISOLATION_WORD is the shell's own name (src/planning.rs line 56) and MOUNTED_TREE_NAME a mount point of one machine's boot shell (src/spawn_protocol.rs line 236). The region budgets (JOB_REGION_PAGES, DIRECTORY_JOB_REGION_PAGES, STD_REGION_PAGES, JOB_POOL_PAGES, SHELL_BUDGET_PAGES, IMAGE_MAXIMUM_PAGES) are one progenitor's numbers. The externalization lint waives 103 consumer-name hits for this crate; standalone.py counts 96 lines naming a path into this tree and refuses the crate. The lint's rule is that a crate on the list "may not mention nife, a nife program or a nife package". This crate is a table of them. Milestone 1017 already records the half of this that programs feel: the slot constants and Manifest live here, so process-tools and core-tools carry the whole planner to read a slot number. Evidence: the files and lines above; helpers/lint_externalized_crates.py lines 32 to 50; design/roadmap/1017-the-contract-crates-leave-in-this-order.md lines 116 to 121. Change: split before the move, as the ruled boundary decision lays out. What leaves as grant_plan: word, lexing, parsing, line, expand, navigation, planning, refusal, command and escalation. They plan against a Manifest the caller passes. Endowment carries the Manifest its plan used instead of a Program, which also closes the IMAGE_ROW foot gun its own doc describes. What becomes a leaf crate: the Manifest types, the slot constants and verbs, with VERSION and INTERFACE_ID 17 beside them, since that is the interface programs declare. What stays in nife: the programs! table and its manifests, spawn_protocol, job_windows, job_channel_page, image and the region budgets, which are the shell's and the progenitor's agreement with each other. Door: one-way (crate boundaries and the public API of a released crate). Effort: L.

  2. The documentation does not build with warnings denied. Finding: ASK_NETWORK's doc comment links [pack_name], a private function. cargo doc --no-deps with -D warnings stops there. The template's standalone job denies only rustdoc::broken_intra_doc_links and rustdoc::invalid_html_tags, so under the template this is a warning in the log, not a red job; whether nife's own lint denies it was not checked. Evidence: src/spawn_protocol.rs line 650; .github/workflows/check.yml of the template, line 233. Change: link pack_name as plain code, or make the packing a public function with its own doc, which the four ASK_* constants and refused_ask_words already describe. Then add -D rustdoc::private_intra_doc_links to the repository's documentation gate so the gate catches the next one. Door: two-way. Effort: XS.

  3. The manifest and the repository root are the workspace's, not a crate's. Finding: standalone.py lists no README, no LICENSE-MIT, no LICENSE-APACHE, license.workspace = true, lints.workspace = true, no rust-version, publish = false, and no description, repository, keywords or categories. The crate's one dev-dependency on primitive_benchmark_contract (for map_el0_declares_the_budget_the_bench_contract_measured) points at a crate that stays in nife. Milestone 1017's table already names it as the move's blocker for this crate. It goes with the catalog (item 1), so the planner that leaves needs no such test. Evidence: Cargo.toml lines 1 to 32; the standalone.py output above; src/program/tests.rs. Change: add the scaffold's files. Write out license = "MIT OR Apache-2.0" and the lints. Set rust-version at the template's floor. Add a description that says "a no_std parser and planner that turns one command line into a typed grant or a typed refusal, against a manifest the caller supplies". Keep publish = false only until the hold on publishing lifts, with a comment a stranger can act on. Door: two-way, except the license, which the architect ruled for every crate of the organization. Effort: S.

P2: later

The P2 items are in the appendix.

P1: before the tag

The P1 items are in the appendix.

Decisions for the architect

The rules in force, with their background and prior art, are in the appendix:

Done when

The checks are in the appendix.

BUGS

Follow-on

Index row

An outside review of grant_plan before it leaves. Three items block the move: the crate is a table of nife's programs and cannot stand alone, the documentation does not build with warnings denied, and the manifest is the workspace's. Eleven items land before the first release, and five are for later. The eleven cover these. A tokenizer that drops a seventeenth token. The absence of any proof. Eight limits without units and eight public names that need a decoder. Five British spellings. Documentation written for a reader inside this tree. Refusal sentences that spell constants by hand. Two-kilobyte values passed by value. Three unasserted narrow casts. A silently narrowed manifest. A mutation run the release gate will ask for. The split along the ruled boundary has landed; the units, the names of the split crates and review clearance are ruled, and a rename lane and the review packages carry them out.