roadmap

What the review read and ran

An appendix to the milestone.

The crate

partsfoundry/boot_ladder at 019d76c8e5b64d44c7eb863008c4fa16b89602d8, version 0.1.0, publish = false. Read in full: Cargo.toml, README.md, CHANGELOG.md, docs/stranger-test.md, the ci, proofs and ruled workflow callers under .github/workflows/, and all four files under src/ (lib.rs, heads.rs, rungs.rs, verdict.rs), tests and the two Kani harnesses included. The baseline read: the block of milestone 1078 (what an outside maintainer would fix before it leaves), its prior-art appendix and the cleared package.

The commands

Run on a Linux x86_64 host with rustc 1.100.0, with the build directory outside the clone.

The probe

A scratch binary that depends on the crate by path, run in a debug and a release build. What it printed:

call result
parse("99 of 3 passed") passed 99, total 3, not red
parse("1 of 2 passed, 5 FAILED: a") failed count 5, one name
parse("1 of 2 passed, 1 FAILED: a b") failed count 1, names a and b
parse("0 of 0 passed") passed 0, total 0, not red
parse("2 of 3 passed, 1 FAILED: not_a_check") accepted, since names are not checked against the list
parse("3 of 3 passed, 0 FAILED: "), parse("1 of 2 passed, 1 FAILED: a, 1 absent: b"), parse("3 of 3 passed and more"), a count of 2 to the 64th None each
parse("3 of 3 passed\r\n") accepted; trailing white space is trimmed
record(20, Passed) on a full tally prints 16 of 15 passed; from_words(to_words()) differs from the tally
record(64, Failed) debug: panics, attempt to shift left with overflow; release: words [0, 1, 0], check 0 failed
is_recorded(64) debug: the same panic; release: false
Heads::new("").banner().find_in("the cat sat on the mat") Some(11..15)
subject_thread on a 20-digit thread number None

The index in record is the caller's own constant, and every text the reader takes ends in None or a value, so the probe found nothing a hostile transcript can turn into a panic.

The benchmark

A scratch crate that depends on boot_ladder by path and on expectrl at =0.9.0, built with cargo run --release on a Linux x86_64 host (an Intel Xeon Platinum 8160 at 2.10 GHz). Each measurement starts at 64 repeats and doubles until a pass lasts 50 ms, then runs seven passes and reports the lowest time divided by the count. Inputs and results pass through std::hint::black_box. The three texts:

The Head::find_in column times the call alone. The str::find column searches for the head joined into a String before the timed loop. The expectrl column calls Needle::check on the joined str with the text as bytes, and includes the Vec of matches it returns. The harness asserts that find_in and str::find agree on each text before it times them. The results are in the comparison.

The comparators read

The six neighbor crates of boot_ladder, each downloaded as a .crate file at the version the prior-art table gives and read in a directory of its own.

Seventeen crates.io queries found no peer. Among them were ktap, boot log, boot stage, bootstage, self-test, serial console expect, console harness, log matcher, tap parser, tap producer and test output parser. The names ktest 0.1.6 (50 downloads in 90 days) and kunit 0.1.1 (6) are test runners for Rust kernels, too small to rank.

The systems outside Rust

Both files are GPL-2.0; the review read them for their interface shape only.

What was not run