roadmap

P1: before the move, and one before the next bench evening

An appendix to the milestone.

  1. The crate answers half of the kernel's question, and card_check says SEALED for a card that DONE (stale_malformed_and_missing_loader_words_are_refused; card_check reads the third file). halts. Finding: since the kernel began taking two digest words from the loader (nife.progenitor, nife.base), kernel::trust::require holds the progenitor to the loader's word before the trust root. require_program_measurements holds the table to the second word. A missing or disagreeing word halts at MEASURED BOOT REFUSED like a digest mismatch. On a card the words travel as a third file, nife-initial-ramdisk.img.loader-digests, and as usr_bootargs in the boot environment script/board-image writes. inspect reads two inputs and never the words; card_check reads only nife-vf2.img and nife-initial-ramdisk.img, and its fix text says to copy "the set" of two. A card whose kernel and archive are one build and whose words are another's reads as SEALED and halts after the power cycle, which is the walk to the board the crate exists to save. The stick has cover, because uefi_loader/build.rs checks the words against the archive before embedding them, and the QEMU paths write the words beside the archive they pack. The crate's BUGS names boot scripts and extlinux.conf and not this. Evidence: kernel/src/trust.rs lines 1 to 9, 39 to 42, 83 to 87 and require_from_loader; script/board-image lines 256 and 293; crates/sealed_pair/src/lib.rs lines 8 to 13 and 276 to 310; xtask/src/card_check.rs lines 23 to 24 and 213 to 262. Change: a third question beside the two: inspect_words(words: &str, archive: &[u8]) -> WordsSeal (or an Option<&str> third argument to inspect, which the two existing callers pass as None for the stick and Some for a card). Parse the words with measured_boot::loader_digests::parse, so this crate refuses a word the kernel would refuse and gives the kernel's reason. Compare the result to the archive's progenitor and table digests. Seal gains the verdict, is_sealed includes it, explain says which word disagrees, and card_check reads the third file when it is there and says the set is three files. Add the gap to BUGS until the change lands. Door: two-way (an API addition before any release). Effort: S.

  2. A table line the parser rejects makes the tool report the whole table unreadable, and the words say DONE (a_bad_table_line_is_reported_and_does_not_condemn_the_console, a_table_that_is_not_utf8_is_still_unreadable). the progenitor will read an empty table. It will not. Finding: inspect_table returns TableSeal::Unreadable on the first bad line, and explain prints "the progenitor measures against an empty table and refuses the console". The progenitor reads the table through measured_boot::verdict, which reaches expected_in_manifest, which flattens the parse and skips a bad line; only the program that line named gets refused, and the console boots when its own line is good. TableSeal::Unreadable is accurate for bytes that are not UTF-8 (boot_steps.rs makes those the empty table) and inaccurate for a bad line. The host check is stricter than the board, which is the safe direction, and the report sends a person to fix the wrong thing. Such a table reaches a card only by hand, because kernel/build.rs panics on the same line at build time. Evidence: crates/sealed_pair/src/lib.rs lines 110 to 112, 200 to 207 and 321 to 329; crates/measured_boot/src/lib.rs lines 426 to 432; crates/system_initializer/src/boot_steps.rs lines 183 to 188 and measurement.rs line 16. Change: keep Unreadable for the UTF-8 case. Add TableDisagreement::BadLine { line: String } for each bad line. progenitor_refuses counts it (the program on that line is gone), and explain prints it with the line and the parser's reason, in the words BadLine already carries. One test with one bad line beside a good console line, asserting that the console is not named. Door: two-way. Effort: S.

  3. The crate does not stand alone, in the ten ways the template's checker lists. LEFT: move preparation waits for the move, which Decision A orders after nifefs, measured_boot and uefi_loader. Finding: standalone.py reports no README, no LICENSE-MIT, no LICENSE-APACHE, a license field inherited from the workspace, and no rust-version. It also reports publish = false with a comment that points at crates/publish-allowlist.txt, lints.workspace = true, five lines that cite a path into this tree, one provenance block and six milestone citations. The Cargo.toml has no description, repository, keywords or categories. These are the move lane's ordinary items; they size the move. Evidence: crates/sealed_pair/Cargo.toml lines 1 to 10; src/lib.rs lines 6, 13, 15 to 16, 24 to 27, 31, 238 to 239, 247 to 248, 312, 362 to 363. Change: at the move, add the scaffold's files, measure rust-version by a build, and inline the lints. Rewrite the citations as the crate's own words (the kernel's behavior stated, not a milestone named). Strip the Name: block as the move rule says. A README with ## EXAMPLES (the two doctests, which already exist) and ## BUGS (the four entries plus item 2). Door: two-way until the tag. Effort: S.

  4. BOOT_PROGRAMS restates a string measured_boot already owns. DONE (the_boot_programs_are_the_measured_boot_names). Finding: BOOT_PROGRAMS is ["progenitor"], a literal, while measured_boot::PROGENITOR is the constant the kernel (PROGENITOR_ENTRY) and the loader read. notes/sealed-pair.md argues for one list so a kernel cannot measure a name the checkers do not know; the list's one member is a second copy of that name. A rename of the entry would change the kernel and leave this crate reading a name no archive carries, and every archive would then be NoProgenitor. Evidence: crates/sealed_pair/src/lib.rs line 28 and line 278; crates/measured_boot/src/lib.rs line 381; kernel/src/user/progenitor_boot.rs line 16. Change: pub const BOOT_PROGRAMS: [&str; 1] = [measured_boot::PROGENITOR]; and inspect reads measured_boot::PROGENITOR where it means the progenitor. No behavior changes today. Door: two-way. Effort: XS.

  5. The notice constant is a sentence, and it names a board in a crate that also judges QEMU images. DONE (AUTHORITY_NOTICE, provisional; the text says "the kernel"). Finding: THE_BOARD_IS_THE_AUTHORITY is a &str holding two sentences. A constant's name says what it holds. This one is the opening of its own text. It has a leading THE_ the naming page refuses for assertion constants, and it says "board" where the crate's documentation says "kernel" (its own doc comment on the same item says the kernel is the authority). card_check prints it after every refusal. Evidence: crates/sealed_pair/src/lib.rs lines 238 to 242; xtask/src/card_check.rs line 79. Change: a name for what it is, AUTHORITY_NOTICE, with the text saying "the kernel" where it says "the board", as decision B decides, provisionally. Door: two-way until a release; a published name after. Effort: XS.

  6. EntrySeal can say "refused" with no digest, and the report then prints an empty hash. DONE (Vouch carries the digest; the impossible pair no longer compiles). Finding: digest: Option<Digest> and vouch: Vouch are independent public fields. inspect never builds vouch: Vouch::No with digest: None, but the type allows it, a test builds it, and explain prints "hashes to , which is not in the kernel image's trust root" for it. Evidence: crates/sealed_pair/src/lib.rs lines 80 to 87, 182 to 189 and 484 to 489. Change: carry the digest in the variants that have one: Vouch::Yes(Digest), Vouch::No(Digest), Vouch::Absent, and drop the digest field. The test that builds the impossible pair then fails to compile, which is the point. Door: two-way. Effort: XS.

  7. The refusal text asserts a cause. DONE (a_kernel_from_another_build_is_refused_and_the_refusal_names_the_entry reads the new text). Finding: explain says "They are from different builds" for every Vouch::No. One flipped byte on a card produces the same verdict, and the crate's own test one_stale_half_is_named_on_its_own builds that case. Milestone 563 (A seal check that reads bytes cannot see a check that was dropped) recorded the same sentence as false for a diverted build, and its BUGS entry stands. Evidence: crates/sealed_pair/src/lib.rs lines 177 to 181; design/roadmap/0563-a-seal-check-that-reads-bytes-cannot-see-a-check-that-was-dropped.md, "Why the tool then says the wrong thing". Change: say what the tool knows: "the kernel image does not carry the digest of this archive's progenitor", then the two usual causes (a kernel and an archive from different builds; a copy that changed one of them) as causes, and the halt as the consequence. Door: two-way. Effort: XS.

  8. One British spelling in a public parameter. DONE (build, provisional). Finding: the one parameter of test_support::pair, a &str, is spelled the British way. The naming page spells every name the American way and the template's british_spelling.py refuses it at a ceiling of zero, so the template's check job would be red on the first push. The parameter is public because the module is. Evidence: crates/sealed_pair/src/lib.rs lines 406 and 410. Change: build: &str, which is what the argument names (one build's pair against another's), as decision B decides, provisionally. Door: two-way until a release. Effort: XS.

  9. Unreadable is not a std::error::Error, and its Display prints a Debug form. DONE (an_unreadable_error_is_a_std_error_in_words). Finding: the crate is a std crate (String, Vec, std::fmt::Write) whose one error type implements Display and not std::error::Error, so a caller cannot put it in a Box<dyn Error> or behind ? in a main that returns one. NotAnArchive writes {e:?} because nifefs::Error has no Display, so the text reads "not a nifefs archive (Truncated)". Evidence: crates/sealed_pair/src/lib.rs lines 45 to 63. Change: impl std::error::Error for Unreadable {}; a match over nifefs::Error's six variants with one phrase each ("the image is shorter than the directory", and so on), or a Display on nifefs::Error itself, which is that crate's call. Door: two-way. Effort: XS.