roadmap PARTIAL

1154. boot_ladder: the release review's findings

(The number and the slug are provisional.)

The release review of partsfoundry/boot_ladder at commit 019d76c8, version 0.1.0 (unpublished), under milestone 1129 (the combine review), whose block sets its form. The baseline is milestone 1078 (what an outside maintainer would fix before it leaves), its block and the cleared package notes/crate-reviews/boot-ladder.md. 1078's rulings stand: the nine printed shapes, the fifteen printed check names and the eleven public names ratified on 2026-11-19. No naming rule added since touches them. 1078 left the names in verdict and the head types to the release name review, which is this one (P0-6).

Reuse: the crate's own tests, and a scratch crate that probes the interface and times the matcher.

Finding status

Open decisions

The one-way doors D1 to D9 below.

Goal

A stranger who writes a kernel's boot self-test, or the program that reads its serial log, takes this crate and holds the same bytes on both sides. The types refuse a check off the list, and the reader refuses a verdict the writer could not have printed.

What the review read and ran

The appendix holds the crate's files, the commands, the probe, the benchmark method and each comparator file read. The guidelines table marks the 54 items, and the comparison sets the crate beside its neighbors axis by axis.

Prior art

Measured from the crates.io API on 2026-11-26 at 22:27 (UTC). The crate's problem is that the program that boots and the program that reads its console must agree on the boot's lines. No Rust crate solves it: seventeen searches found none, so every row is a neighbor. The bar is outside Rust: the Linux kernel's KTAP format and the parser that reads it off a console.

crate or system role version read total 90 days reverse dependencies updated
sd-notify neighbor: a readiness line, writer only 0.5.0 18,719,977 4,783,089 71 2026-03-09
expectrl neighbor: a reader matching a needle in console bytes 0.9.0 1,143,950 446,088 72 2026-05-11
rexpect neighbor: the same reader job 0.7.2 2,307,147 429,949 77 2026-11-26
embedded-test neighbor: on-target results sent to a host runner 0.7.3 617,409 136,911 9 2026-10-30
testanything neighbor: a TAP writer 0.4.3 25,370 1,578 2 2026-04-26
tap_parser neighbor: a TAP reader 0.1.1 3,881 87 1 2023-04-08
libtest-mimic measured, not read: a host test harness 0.8.2 36,772,461 7,059,104 353 2026-03-16
Linux KTAP, Documentation/dev-tools/ktap.rst outside Rust: the format v6.12
Linux tools/testing/kunit/kunit_parser.py outside Rust: its console reader v6.12

What boot_ladder does better

The grammar is code that the writer and every reader link, with no std and no allocation, and Kani proves its reader free of overflow and panics. No neighbor has all three. The comparison takes each neighbor in turn.

The items

Effort is S (half a day), M (a day or two) or L (longer). A door is one-way when code outside the repository depends on the answer after 0.1.0, which is why a P0 cannot wait for a later release.

P0: the 0.1.0 interface

P0-1. A check is a bare usize

Verified in source (src/verdict.rs) and by running the probe. verdict::check(name) returns a usize, and Tally::record and Tally::is_recorded take one. record(20, Outcome::Passed) on a full tally prints example self-test: 16 of 15 passed. record(64, Outcome::Failed) panics in a debug build and in a release build wraps and fails check 0. record documents no panic. CheckLine::name and SubjectLine::check are &str, so a line can name a check the list does not hold. Change: a Check type (name provisional) with a private index, which check(name) returns in a const and an iterator over the list yields. record, is_recorded, CheckLine and SubjectLine take it. Door: one-way (D1). Effort: S.

P0-2. The reader accepts verdicts the writer cannot print

Verified by running the probe against ParsedVerdict::parse. parse returns a verdict for 99 of 3 passed, for 1 of 2 passed, 5 FAILED: a (a count of five over one name) and for 1 of 2 passed, 1 FAILED: a b (a count of one, two names). Verdict prints none of these, and a serial link that drops bytes produces such lines. kunit_parser.py and tap_parser both check the plan against the results. Change: parse refuses a tail in which a count differs from the number of names after it, names are separated by anything but one space, or passed, absent and failed together exceed the total. Door: one-way (D2). Effort: S.

P0-3. A damaged verdict and no verdict are the same None

Verified in source. ParsedVerdict::in_line returns None when the line holds no verdict head and also when the head is there and the tail is not the grammar. A reader walking a transcript skips both, so a corrupted verdict line reads as a boot that printed none. For Head::find_in and strip_prefix_of absence has one cause and Option is right. kunit_parser.py has FAILURE_TO_PARSE_TESTS apart from NO_TESTS, and tap_parser returns an Error naming the cause. Change: in_line keeps None for a line with no head and returns a refusal, in the shape the errors decision of milestone 1129 picks, for a head whose tail does not parse. parse returns the same refusal. Door: one-way (D3). Effort: S.

P0-4. Outcome, CheckLine and SubjectLine are exhaustive

Verified in source. Outcome has three variants and no #[non_exhaustive], so a fourth outcome, such as a check that ran out of time, breaks a caller's match. CheckLine and SubjectLine have three public fields each, and a caller builds them by struct literal, so a new field breaks every printer. Change: #[non_exhaustive] on Outcome; a constructor and private fields on CheckLine and SubjectLine. Door: one-way (D4). Effort: S.

P0-5. ParsedVerdict mixes public fields with getters

Verified in source. passed and total are public fields; the absent and failed counts are the methods absent_count and failed_count. Change: private fields, with passed_count and total as methods (names provisional). Door: one-way (D5). Effort: S.

P0-6. The provisional names in verdict and the head types

Verified in source and in the cleared package's name table, which lists them: the head types and their methods, the module verdict, and its types, constants, functions and sixteen methods. Read against design/naming.md and the comparators, three stand out:

Every other name passes the rules in force. Change: the architect ratifies the list, with or without the three renames. Door: one-way (D6). Effort: S.

P0-7. Heads::new takes a name no reader can key on

Verified by running the probe. Heads::new("") builds heads that are the bare shapes, and its banner, on, is found in ordinary prose. A name holding a space, a control character or a line break builds a head that a reader of one line cannot find. Change: Heads::new stays const and panics on an empty name and on one holding white space or a control character, as check does for an unlisted name, with a # Panics section. Door: one-way (D7), since refusing these names later would break a caller that passed one. Effort: S.

P1: before the first release

P1-1. No function says whether a total is a known one

Verified in source. The README tells a reader to fail a verdict whose total is neither the list's length nor one of EARLIER_SELF_TEST_CHECK_COUNTS. No function does it, and a reader that forgets takes 0 of 0 passed as green. Change: a method on ParsedVerdict that answers it (name provisional), used in the README's example. Door: two-way. Effort: S.

P1-2. The crate page has no example, and no item has one

Verified in source and by cargo doc. src/lib.rs includes the README only under cfg(doctest), so its two examples render nowhere. No public item carries an example, and the printing side (Tally, CheckLine, SubjectLine) appears in none, the README's included. The README's examples use unwrap. Change: an example on the crate page that records a tally, prints the verdict and reads it back, and one each on Heads, Head::find_in, Tally and ParsedVerdict. Door: two-way. Effort: S.

P1-3. Three printing types have no Debug, and no type has Hash

Verified in source (C-DEBUG, C-COMMON-TRAITS). Verdict, CheckLine and SubjectLine derive nothing. Heads, Head, Outcome, Tally and ParsedVerdict derive no Hash, so none keys a map. Change: Debug, Clone and Copy on the three, and Hash on the five. Door: two-way. Effort: S.

P1-4. The package ships the repository's machinery

Verified by building: cargo package --list --allow-dirty lists 41 files, 18 of them under .github/, with the commit hook, CODEOWNERS, deny.toml and the stranger-test record. The manifest has no include. Change: an include naming src/, the README, the changelog, both licenses and, if the proofs are to replay from the package, falsifications/. Door: two-way. Effort: S.

P1-5. The matchers read &str only

Verified in source. The matching rule exists because a serial link corrupts bytes, and corrupted bytes are often not UTF-8. A reader with an allocator converts lossily first; a no_std reader with none, which the crate serves, cannot. expectrl's Needle::check takes &[u8]. Change: byte-slice forms of the matchers beside the &str ones (names provisional). Door: two-way. Effort: S.

P2: may follow

P2-1. No item lists the rungs in order

Verified in source. The crate's name is a ladder, and only prose states the order of its rungs, across five doc comments. Change: a method that yields the rungs in order, without the two heads that are not rungs. Its name is the architect's. Door: two-way. Effort: S.

P2-2. The check line has a printer and no reader

Verified in source. CheckLine prints a line nothing reads back, and its words ok, FAILED and absent are literals inside fmt. Change: a reader for the check line, and the three words as items. Door: two-way. Effort: S.

P2-3. find_in over a whole transcript

Verified by measurement. find_in tries every character boundary. The interface does not force that. Change: the faster search, or a sentence saying the matcher is for one line. Door: two-way. Effort: S.

P2-4. A parsed verdict does not convert to a Tally

Verified in source. A reader comparing a read verdict with an expected tally maps each name through check, which panics on a name it does not know. Change: a fallible conversion for a verdict whose total is the current list's. Door: two-way. Effort: S.

P2-5. The manifest, #[must_use] and a getter for the name

Verified in source. Cargo.toml has no documentation key, and its categories omit no-std::no-alloc. No function carries #[must_use]. Heads gives no way to read its name. Change: each. Door: two-way. Effort: S.

Measured performance

On one 86-byte line Head::find_in takes 16.8 ns, against 74.0 ns for str::find on the joined head and 26.7 ns for expectrl 0.9.0. Over a 65,687-byte transcript it takes 254 µs against 14.1 µs and 121 µs (P2-3). The host, the inputs and the full table are in the appendix.

One-way doors

Evidence for the shared decisions

Follow-on

Done when

script/review-status shows this block BUILT, with each P0 and P1 line at Done or at Will not fix beside its ruling, and D1 to D9 each carry the architect's ruling.

BUGS

Index row

The release review of boot_ladder against Linux's KTAP and its console parser, with sd-notify, expectrl, embedded-test and two TAP crates as neighbors, since no Rust crate does the same job. Seven one-way changes come before 0.1.0: a type for a check, a strict reader, a refusal apart from an absent verdict, non-exhaustive types, private fields, the provisional names and a refusal of unusable system names. Five fixes land before the release, five may follow, and nine doors are for the architect, among them whose check list the crate carries.