roadmap

Leaving the central program table: the migration, one pull request per step

The proposal holds the end state and the decisions. This appendix orders the work. Each step is one pull request, leaves main shippable, and says what it proves, what tests it adds and what waits on a ruling.

The steps

  1. Every row's program carries a note copied from its row, and a test pins every shipped id. Each tool and fixture the note can spell gains capability_manifest_note::carry!(grant_plan::Program::X.manifest()), as least_authority_demo already does. A system test beside measured_boot_tests.rs checks each archived note equals its row, skipping reboot, jig, graphical_terminal and mdr for now. the_wire_ids_already_shipped_never_move grows from 13 ids to 28. The progenitor then endows a tool run by path from its true note, so it refuses ./date, whose second stream the frames path cannot carry. No ruling.
  2. The endowment carries its manifest. Endowment gains its Manifest, and spawnproto::held_shares, hold_pages, the preview and the timetable read it instead of e.program.manifest(). No wire change, no ruling.
  3. The frames path carries a second stream and redirection. run_image delegates the diagnostics, sink and source endpoints as spawn does, and image_can_carry admits BytesAndDiagnostics. A script/swish-check line runs an installed copy of date. No ruling.
  4. The note spells the owner-granted fields (ruled, decision 1). A note type of its own, OWNER_GRANTS = 5, carries a flag byte for reboot, sync, installer, catalog, activation_directory, console_input and display, and a rights byte for indexes. Manifest gains display, and the shell and the progenitor merge the note into it. image_can_carry still refuses every one of these fields, so nothing a person sees changes. Host tests round-trip each field and check that bytes with no such note ask for none.
  5. The grant lines and the vouch. installed_programs::Granted gains the kinds in the end state; Vouch::Vouched carries OwnerGrants; image_manifest refuses a declared field without its line (NotGranted, naming it) and drops the blanket refusals in image_can_carry and encode. program_asks and jig's say_asks learn the new asks with the confirmation of the security appendix. In the same pull request, the progenitor serves an installed installer holder only the delegated badge, refuses answered console from it, and refuses a delegated install that asks for an exclusive or console-class grant. Console input gains its req.badge == 0 check. The approval file's grammar (approval_file::File) and its compiled records gain the same kinds, the delegated installer within <approval> and indexes r or rw included. The base file also gains domain, entropy, machine and share. Today it knows only network, zones, service, a boolean installer and dirs. The ruling on the classes is in (decision 2).
  6. The display session keys on its field. The shell sets Wiring::graphics from Manifest::display, not from Program::GraphicalTerminal, and the progenitor gates Request::graphical on the vouched manifest and a live-session flag. No ruling beyond 1.
  7. The installed path reads the VERBS note. endowed_image stops refusing it; the shell's hold_pages, the preview and the progenitor's resolve narrow by the note's table. A replacement package manager then holds per verb what jig holds. No ruling.
  8. reboot, jig and graphical_terminal carry their own notes, copied from their rows, and the step 1 check covers them. Their rows still decide. No ruling.
  9. The progenitor publishes the base list, and the shell plans from it. The ruling is in (decision 3).
  10. Archive programs spawn by name. cargo xtask base-image writes a grant line in generation 1 for each owner-granted kind the base approval file allows a carried program, and the progenitor reads base grants as it reads an owner's. This needs generation 1 to fit what the progenitor reads (milestone 990 (the base image's first installed-programs table) measured 5,691 bytes against a 4,096-byte page). The ยง229 (a bare name reaches an installed program) refusals switch from Program::from_name to "the measured archive carries this name" (decision 7, ruled). The progenitor reads its own measurement table; the shell reads the base list of step 9. A build check that no archive program takes a builtin's name replaces every_listed_builtin_is_a_builtin_and_no_program.
  11. The rows leave, one package per pull request: fixtures, process-tools, core-tools, demos, mdr, then init (reboot), display (graphical_terminal) and jig. The last one deletes Program, programs!, Program::verbs, Program::resolver_zone and the progenitor's [Option<Elf>; PROGRAM_COUNT], which becomes a lookup by name. Every removed id stays a hole.
  12. The leaf crate, if ruled, anywhere after step 2.

A transport track for programs installed on a disk follows step 3: images as pipeline stages, the declared directory operand on the frames path, and interruptible and held images built from the shell's budget. Base programs need none of it once step 10 lands.

What changed from the eight-step plan

The tests that must exist

Each lands with the step that makes it true.

test proves step
an OWNER_GRANTS note round-trips each owner-granted field, decode refuses any byte encode would not write, and bytes with no such note ask for none the wire format, and absence as none 4
installed bytes declaring reboot with no grant line answer SPAWN_REFUSED_BY_MANIFEST, and the refusal names reboot a declaration alone earns nothing 5
the same bytes with grant <digest> reboot hold the reboot object at slot 13 and restart the machine after their sync, in script/swish-check on all three architectures the owner's grant endows 5
a grant for one digest gives nothing to a second version of the same package until the owner answers again grants bind to bytes 5
jig remove of the replacement, and jig rollback past its install, leave its digest with no grant, and the image's reboot still restarts the machine the way back 5
two installed programs and the image's reboot all hold the reboot object in one boot several holders 5
an installed installer holder sending answered console, Approve, Revoke or Vouch is refused, and a delegated install asking for display is refused the console class stays bounded 5
a line whose two stages both hold console input, or both the display, is refused at plan time naming the first holder; a second display session while one runs answers SPAWN_NO_DISPLAY, and a second stdin reader gets BAD_REQUEST exclusive grants stay exclusive 6
an installed manager's jig list holds no installer, and its jig install does, by its own VERBS note verb narrowing on the installed path 7
each moved program's script/swish-check transcript, unchanged line for line from step 9 to step 11 the rows left cleanly 9 to 11
with acme-reboot installed and granted, reboot still runs the image's program and acme-reboot runs the replacement holding the reboot object a grant does not move a word 5

Every test above that refuses something gets a falsification patch under system_tests/falsifications/, as milestone 892 (a std program at the prompt holds the network and a resolver) did for its grants.

Wire ids

What moves the contract-crate order

Only step 12 moves a package earlier, because only the leaf crate removes the tools' link to grant_plan. Steps 1 to 11 cut the churn instead. Measured on the base of the first version of this proposal over 30 days (git log --no-merges --since=2026-10-03): 148 commits touched crates/grant_plan, 36 of them program.rs or program/, and about a third of those 36 added or changed a program. spawnproto stays the larger source of commits.

The first steps that need no ruling

Steps 1, 2 and 3, as before, and steps 7 and 8 once step 2 lands. None of them writes a wire format or names anything new. Steps 4, 5, 6 and 9 write wire formats or change policy, and their rulings are in. mdr still waits: it links neither capability_manifest_note nor grant_plan, so its note comes with the leaf crate or with a recorded new edge.