What was checked, and how
An appendix to the milestone.
Verified firsthand, on a fresh shallow clone of nifeos/nife at the head of main, on the pinned
nightly toolchain:
cargo test -p environment_contract: 9 unit tests and 2 documentation tests pass.cargo clippy --all-targets -D warningsandcargo docwith warnings denied are clean. The crate builds foraarch64-unknown-none-softfloat,riscv64imac-unknown-none-elfandx86_64-unknown-none.cargo package --list: the package would shipCargo.toml,Cargo.lockandsrc/lib.rsonly, with Cargo's warning that the manifest has no description, documentation, homepage or repository.script/crate-standalone environment_contract: 11 failures (names, three manifest rows, three files, three citation classes, proofs); the build row passes.- The template's naming helpers over
src/lib.rs:spelled_outrefuses 3 (cap,ConfigPage,va),register_namesrefuses 3 (OFF_TZ_LEN,OFF_LANG_LEN,OFF_TERM_LEN),abbreviationsreports 19 components that are not words,unit_symbols,british_spellingandquestion_shaperefuse none of 86. - A throwaway integration test, written in the review clone and deleted afterwards, that hands
ConfigPagea built page with one length byte changed:TERMlength 255 panics atsrc/lib.rsline 309 ("range end index 330 out of range for slice of length 99").TZlength 41 returnsSome("UTC")followed by 38 NUL bytes.TZlength 90 returns a 90-byte string that contains theLANGandTERMfields. Item 1 and item 2 follow from this. - Every member of
KNOWN_TIME_ZONESexists in this host's/usr/share/zoneinfo; every member ofKNOWN_TERMINAL_TYPEShas a terminfo entry here. The longest canonical zone names in this host's tzdata are 30 bytes, and the longest backward link (America/Argentina/ComodRivadavia) is 32. - The callers:
kernel/src/user/device_starters.rsandsystem_tests/src/user/std_service.rsassemble a page;components/src/printenv.rs,crates/swish/src/endowment.rsand the standard library overlay'ssys/env/nife.rsread one.cargo xtask std-srccopiessrc/lib.rsverbatim into the overlay asenvproto.rs(xtask/src/farm/copied.rs). The overlay'sseed()callstz(),lang()andterm()beforemainruns in everystdprogram that holds the page. - Recorded, not rerun:
.cargo/mutants-baseline.txthas the crate at 46 caught, 0 missed, 0 timed out, 7 unviable. The census window had closed at review time.
Tried and not completed: a Kani 0.68.0 totality harness over a symbolic 99-byte page through
ConfigPage::new (item 5). With an unwind bound of 2 the run ends in 5 seconds at the unwinding
assertion for the eight-byte magic compare, with 198 checks undetermined. With a bound of 120,
enough for the UTF-8 validation loop over the longest field, the run was still solving when a
seven-minute cap stopped it, at 30 MB of memory. So the review has no verdict from Kani on item 1.
The integration test above is the evidence, and item 5 says how to keep the harness small.
Not run: the stranger test, cargo semver-checks (no release to compare against), the template's
workflows (they run in the repository), script/crate-move --dry-run.