roadmap BUILT

1078. boot_ladder: what an outside maintainer would fix before it leaves

(The number is the recording lane's. The title and slug are provisional.)

Raised by a read-only outside review of boot_ladder as a stranger to this tree would meet it. It changes nothing; it lists what the next lanes change before the crate moves to its own repository and before any tag.

The crate has no review package in notes/crate-reviews/, so this review has no settled baseline to inherit. The one ruling it does inherit is the crate name, boot_ladder, ratified in the crate's own Name: block with four refusals, and it does not reopen it. Every other public name in the crate is unratified (script/names boot_ladder and helpers/name_release.py --draft list eight items with no Name: block and two marked provisional).

Reuse: the crate template partsfoundry/crate-workflows and its scaffold, script/crate-standalone, script/crate-review-packet, cargo kani. No new tool.

Goal

A stranger who finds boot_ladder in its own repository can tell in one screen what it holds. It holds the fixed heads of the lines a nife kernel and shell print while booting, and the list of self-test check names. A program reading a serial log, a CI transcript or a photograph of a screen then keys on the same bytes the kernel wrote. The same stranger can build and test it from the README alone, and 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.

The crate in one paragraph

src/heads.rs holds Heads, built from a system's name, whose seven accessors (banner, machine, self_test, self_test_subject, core_runs, shell_banner, screen_held) each give a Head that prints through Display and matches a line in place. src/rungs.rs holds the verdict's two inner heads (SELF_TEST_FAILED, SELF_TEST_ABSENT), the fifteen check names (SELF_TEST_CHECKS) and the two older list lengths (EARLIER_SELF_TEST_CHECK_COUNTS). src/verdict.rs holds the verdict's grammar: Verdict prints it and ParsedVerdict reads it. The pages and slots the kernel, the progenitor and the self-test program agree on are not in this crate; they are nife's self_test_contract, which depends on it. The crate is no_std, with no dependencies and no unsafe. The kernel prints its heads, the self-test program prints the verdict, the shell prints its banner, and serial_console and xtask read them through the same code. Soundness has nothing to review. Correctness lives in the agreement between the printer and the readers, and that is where the items below sit.

The items

Effort: S is half a day for a lane, M a day or two, L more. A door is one-way when somebody outside the repository acts on it after a release (a public name, a printed wording that logs and profiles already hold, a layout, a license). Everything else is two-way, and the maintainer decides it.

P0: blocks the move

The P0 items are in the appendix.

P2: later

The P2 items are in the appendix.

P1: before the tag

The P1 items are in the appendix.

Decisions for the architect

Each states the background first, then the recommendation, prior art and a concrete example. The architect ruled the heads, the printed check names, the public names and the review clearance, below.

The heads are fixed shapes after the caller's system name

Ruled 2026-11-14 (UTC), option A. The crate names no system. It fixes the shape of each head and takes the system's name from its caller. Heads::new(name) yields the seven heads that begin with the name (banner, machine, self_test, self_test_subject, tour, prompt, screen_held). Each is a Head that prints through Display and matches a line in place, so neither side allocates and the kernel can use it. nife passes nife, so every byte printed and matched is the one stored logs, board profiles and gates already hold, and a test in serial_console pins the nife heads to those bytes.

The ruling ratifies the nine shapes as printed. They are <system> on , <system> machine: , <system> self-test: , <system> self-test subject: thread , <system>: the capability core runs on , <system> capability shell, <system> screen: held for the host; , and inside the verdict FAILED: and absent: . The shell banner keeps its text and takes no period. The names of the accessors and constants are ratified in the last ruling below.

Prior art (recalled, not read in this review, unless stated): seL4's sel4test ends a green run with one fixed sentence that its CI harness matches. Zephyr's twister console harness matches PROJECT EXECUTION SUCCESSFUL or FAILED. Linux's KTAP (Documentation/dev-tools/ktap.rst) freezes KTAP version 1 as the head of every report. In each, the first release of the reader freezes the sentence. Where nife differs: the heads live in a crate both sides link rather than in a document, and the system's name is a parameter of that crate.

Example: a transcript holding nife self-test: 12 of 15 passed, 3 absent: block_device clock true_random_number_generator is green under the released crate and under every later one, because the verdict's shape and the grammar behind it never change. Only the list length and the names may change, and the earlier-lengths list says which totals an older kernel printed.

The printed check names spell out their words

Ruled 2026-11-14 (UTC). Of the fifteen names the verdict prints, blockdev becomes block_device and trng becomes true_random_number_generator. The ruling ratifies the other thirteen as printed, device_interrupt included. The self-test program's slot and the kernel half's flag that name the generator follow: TRUE_RANDOM_NUMBER_GENERATOR and TRUE_RANDOM_NUMBER_GENERATOR_ANSWERED. The crate keeps no list of old spellings: a reader matches the current names only, and a stored log that prints an older one is history.

Prior art: Linux kselftest names its suites by directory and abbreviates freely (bpf, kvm, mm); nife's own naming rule refuses that. seL4test names tests by code (SCHED0001), which needs a decoder. Zephyr names them dotted (kernel.common). Where nife differs: a reader takes a check name off a photograph with no decoder at hand, so a word beats a code and a spelled word beats an abbreviation.

Example: nife self-test: 12 of 15 passed, 3 absent: block_device clock true_random_number_generator, and radon's profile forbids entropy, true_random_number_generator and clock absent.

The public names of the heads and the check lists stand as built

Ruled 2026-11-19 (UTC), option A. Every name stands as built. The accessors on Heads are banner, machine, self_test, self_test_subject, core_runs, shell_banner and screen_held. The constants are SELF_TEST_FAILED, SELF_TEST_ABSENT, SELF_TEST_CHECKS and EARLIER_SELF_TEST_CHECK_COUNTS. The printed bytes stay as ruled 2026-11-14 (UTC), so the shell banner keeps its text and takes no period. The names in verdict are outside this ruling and go to the crate's release name review; kernel_half and self_test_program are nife's, in self_test_contract.

Prior art: systemd's readiness protocol names its messages for what they say (READY=1, STATUS=), and its reader and writer share sd_notify's definition. U-Boot's bootstage names each stage for its event (BOOTSTAGE_ID_START_UBOOT_F) in one header its tools include. Both are recalled, not read in this review. Where nife differs: a name here is a Rust item a reader imports, so a misnomer is in their code too.

Example: a reader written against the released crate calls Heads::new("nife").shell_banner() and knows without the BUGS entry that it is not waiting for a $ .

The review clears, and the crate carries only the console lines

Ruled 2026-11-21 (UTC), option A. The crate moves to partsfoundry/boot_ladder with publish = false, no tag and no publication. It carries the heads, the check names and the verdict's grammar. The pages and slots the kernel, the progenitor and the self-test program agree on (kernel_half and self_test_program) stay in nife as self_test_contract, so their names are nife's to rule.

Prior art

The comparison with nearby work is in the appendix.

What needs the architect

Nothing. The architect has ruled on the heads, the check names, the public names and the review clearance. Nothing else here is one-way: the manifest, the README, the tests, the Verdict type and the nife-side gate are the maintainer's.

Done when

The checks are in the appendix.

Finding status

Read against partsfoundry/boot_ladder main at 6f2dfda and nife main.

Open decisions

None. The publishing hold stands.

Follow-on

BUGS

Index row

An outside review of boot_ladder before it leaves found three manifest and file items that block the move. It found six to land before the first tag. They are a shared Verdict type so the printer and its three readers agree by construction, const invariants on the check list, real tests, eight hand-spelled literals in xtask, ten names that are now ratified, and a false boundary claim. It found four items for later. Three rulings hold. The heads are fixed shapes after a system name the caller supplies, ratified as printed. Two check names become block_device and true_random_number_generator, and the other thirteen stand as printed. The ten public names, three of them renames, stand as built. The crate carries the shared verdict reader, tests, a proof and its README.