P1: before the tag
An appendix to the milestone.
P1: before the first tag
-
The writer and three readers each spell out the verdict grammar, and they share no code. Finding: the kernel builds
nife self-test: X of Y passed[, N absent: a b][, M FAILED: c d]by printing pieces (kernel/src/self_test.rsline 160 to 178).serial_consoleparses it withverdict_total,verdict_absencesand afind(SELF_TEST_FAILED)(crates/serial_console/src/progress.rsline 586to 618 and 627 to 646).xtaskparses it again (xtask/src/stick.rsline 414 to 421). Each reader encodes the grammar's separators (of,,, whitespace) itself. The crate exports the heads and nothing that formats or parses. Why it matters: the crate's reason to exist is that two binaries agree by construction (its own crate doc, lines 3 to 8). The heads agree by construction; the tail's grammar agrees by inspection. A kernel change to the separator between the absent list and the failed count would pass the kernel's tests and the readers' tests separately. Change: aVerdict<'a>type in the crate withpassed,total,absent: &'a str,failed: &'a str(borrowed,no_std, no allocation), acore::fmt::Displaythe kernel prints throughprint!, and aVerdict::parse(&str) -> Option<Verdict>the readers call. The kernel'sprint_nameskeeps its no-buffer property by printing the names after theDisplayof the counts, or the type takes an iterator.serial_console's three branches andxtask's one become calls toparse. Door: two-way (additive API; the printed bytes do not change). Effort: M. -
Nothing checks the check list's invariants. Finding:
SELF_TEST_CHECKS(src/lib.rsline 84 to 100) is a plain slice. The kernel finds a check's index withposition(kernel/src/self_test.rsline 98 to 104), so a duplicated name would leave the second entry neverseenand the verdict would name it asdid not runon every boot. A name with a space or a comma would split the readers'split_whitespaceandsplit(',')(progress.rsline 630 to 633).SELF_TEST_CHECKS_EARLIER(line 115) has no check that each entry is below the current length. Why it matters: the list is the contract's only variable part, every lane that adds a check edits it, and the failure modes above are silent on the kernel side. Change: aconst _: () = assert!(...)block in the crate that walks the list: non-empty, unique, bytes in[a-z0-9_], and every entry of the earlier-lengths list below the current length and ascending. This is rung one of the mechanism ladder and costs nothing at run time. Door: two-way. Effort: S. -
The crate has no tests and no proofs, and the template passes it vacuously. Finding:
cargo testruns 0 tests. The template'scoveragejob skips a file with zero executable lines (helpers/coverage-floor.sh, header, lines 9 to 11), andproofs / falsifyprints "no#[kani::proof]harness undersrc/; nothing to falsify" (helpers/falsify.pyline 307) and passes. So a repository of this crate shows greentests,coverage,kaniandfalsifychecks that proved nothing. Why it matters: a reader takes the green as a claim. A stranger expects the checks to mean something. Change: tests that pin the contract's shape: every head except the shell banner ends in a space or punctuation (the boundary claim of the crate doc), no head is a substring of another, the invariants of item 5. When item 4 lands, a round-trip test (format then parse) and one Kani harness thatparsenever panics on any input up to a bounded length, with its falsification patch, so the proof jobs have something to run. Door: two-way. Effort: S (M with item 4). -
Eight sites in
xtaskspellPROMPT's text as a literal. Finding:"nife capability shell"appears as a literal atxtask/src/install.rsline 130 and 185,xtask/src/confirm.rsline 54,xtask/src/rollback.rsline 145,xtask/src/swish_check/launch.rsline 206,xtask/src/swish_check/transcript.rsline 131,xtask/src/swish_check/boot.rsline 480 andxtask/src/uefi_screen_modes.rsline 52. Yetxtaskalready depends on the crate and usesboot_ladder::PROMPTatxtask/src/install.rsline 82. The crate's ownBUGS(src/lib.rsline 12) says nothing gates this. Why it matters: a wording change toPROMPTpasses every unit test and fails those gates as a timeout, which milestone 972 (the boot stick's shared names are code) names as the failure that reads like a hang. Change: in nife, replace the literals with the constant (the trailing period is the shell's tail, not the head), and add ascript/lintgrep that the head strings appear outsideboot_ladderonly intests.rsfiles and fixtures. That gate is nife's and moves rung two under the crate'sBUGSentry, which then goes. Door: two-way. Effort: S. This item lands in nife, not in the crate. -
Ten public names, three of which said the wrong thing, are ratified as built. Finding:
PROMPT(src/lib.rsline 132) names the shell's banner line, and the crate'sBUGS(lines 14 to 15) admits it.SELF_TEST_CHECKS_EARLIER(line 115) holds counts, not checks.TOUR(line 123) names the linenife: the capability core runs on <arch>.by an internal word a stranger has no way to read. The other seven say what they hold. Why it matters: a published name is one-way, and a name is the claim a reader meets first. Change: as the ruling of 2026-11-19 (UTC) decided:PROMPTtoSHELL_BANNER,SELF_TEST_CHECKS_EARLIERtoEARLIER_SELF_TEST_CHECK_COUNTS,TOURtoCORE_RUNS, the other eight kept. One rename lane applies it, andserial_console'sStage::PromptandStage::Tourfollow the renamed constants. The same lane gives the provisional names of theself_test_programmodule (src/self_test_program.rs) the same pass against the naming rules and lists what it proposes; those names are not yet decided. Door: two-way before the first tag. Effort: S. -
The crate doc's boundary claim is false for one head, and the crate never states the matching rule. Finding: lines 7 to 8 say every constant carries its own trailing space or punctuation so a match is on a boundary.
PROMPTis"nife capability shell"with neither; the shell prints the period as part of its tail (components/src/swish/entry.rsline 97 to 98). Readers also disagree on how to find a head.exposure.rsline 139 usesstarts_with(BANNER).progress.rsline 485 usesfind(BANNER)so that serial noise before the head still matches. The crate says nothing about which a reader may rely on. Why it matters: a stranger writing a reader needs the matching rule, and the one sentence that states it is wrong for one of eight heads. Change: correct the sentence (the shell banner matches whole, the rest are heads), and add one paragraph stating the rule a reader may rely on. A head begins a line, possibly after bytes a serial link corrupted, so a reader finds it anywhere in a line and takes the tail from there. Moving the period intoPROMPTwould make the claim true instead, at the cost of a wire change; the decisions section lists it. Door: two-way for the text; see decision 1 for the constant. Effort: S.