What was checked, and how
An appendix to the milestone.
Verified firsthand, on a fresh shallow clone of nifeos/nife at cf1328a, on the pinned nightly
toolchain:
cargo test -p usb: 26 unit tests and 2 documentation tests pass.cargo clippy -p usb --all-targets -D warningsandcargo doc -p usb --no-depswith broken links denied are clean.- The crate builds for
aarch64-unknown-none-softfloatandriscv64imac-unknown-none-elf. - Kani 0.68.0 verifies all three harnesses, and the walk harness's single cover holds. Times:
177 s for the configuration walk at 25 bytes, 6 s for the report bound, under 1 s for the header
parsers. Each of the three falsification patches applies cleanly to the current source (
git apply --check); the patches were not replayed under Kani. - The template's naming helpers at
crate-workflowshead, run as itscheck / standalonejob runs them:spelled_out.py20 findings,register_names.py10 findings,unit_symbols.py,british_spelling.py,service_model.py,contract_names.pyandquestion_shape.py0 findings over 204 names;abbreviations.py(report only) 27 components;standalone.py10 findings. - Seven scratch tests of edge cases, which I wrote in the clone and deleted afterwards. They cover
a usage duplicated in the earlier report, the refusal path through a boot interface with no
endpoint, a header
bLengthother than 9, and a truncated interface descriptor after the keyboard. They also cover usages 0x64 to 0x8b, a report longer than eight bytes, and reserved bits inbEndpointAddress. Each item cites its result. - The only caller,
components/src/usb_keyboard_driver.rs, and how it consumes each public item. - The mutation record:
notes/mutation-testing/survivor-classification.mdrows 7 missed, 7 noise, 0 real holes forusb, all seven being|to^on disjoint bit fields inrequest.rs. - U-Boot
common/usb_kbd.c, OpenBSDsys/dev/hid/hidkbd.candsys/dev/usb/ukbd.c, and Linuxdrivers/usb/core/config.c, fetched at their default branches, for the prior-art rows that cite them. extensible_host_controller_interface::context::endpoint_indexat the pinned revision masks the endpoint number to four bits and reads the direction from bit 7, so item 12 is a hygiene item and not a defect downstream.
Inferred from reading, not run: that let chains (if cond && let Some(x) = ..., used in
boot_keyboard::changes) set the minimum Rust version at 1.88 (unverified; the template's msrv
job will say).
Not run: a mutation census (outside its window) and a replay of the falsification patches under
Kani. Also not run: cargo semver-checks (no earlier release), a fuzz campaign (the crate has no
fuzz target), and a release dry run. I did not read the HID Usage Tables PDF itself, so the usage
names in item 6 come from memory and say so.