What was checked, and how
An appendix to the milestone.
Verified firsthand, in a fresh shallow clone of nifeos/nife at the merge of pull request 3467
and a clone of partsfoundry/crate-workflows at its head. The crate stood as a copy in a scratch
workspace with its two path dependencies beside it and the workspace's license and lints inlined. The checks:
cargo test: six unit tests and one documentation test pass on the current stable and on 1.88.cargo clippy --all-targets -- -D warningsis green on stable for this crate. On 1.88 the same command is red, but inaddress_space_layout(a dead constant,LOW_HALF_SPLIT_SHIFTS), not in this crate (BUGS).cargo docwith warnings denied is clean.- The crate builds and passes clippy with warnings denied for
x86_64-unknown-none,aarch64-unknown-none-softfloatandriscv64imac-unknown-none-elfon the nightly this tree pins. - Miri on the pinned nightly: all seven tests pass. A scratch test the review added, reading a
host-aligned frame through
Snapshot::read, also passes under Miri, with an integer-to-pointer provenance warning at the cast incounter(item 6). - cargo-llvm-cov: 92% of lines. The uncovered lines are exactly the two
unsafefunctions,counter(lines 142 to 145) andSnapshot::read(lines 249 to 256). No host test reaches either (item 8). cargo kanion the copy: "No proof harnesses were found to verify", exit 0. The template'sproofs / kanijob therefore passes vacuously on a crate with no harness; the sibling reviews left this unverified, and it is now verified (item 7).- A scratch test over a page that carries the magic and the version with every counter at
u64::MAX:busy_ticks()panics with "attempt to add with overflow" in a debug build (item 5). - The template's helpers over the copy:
unit_symbols,register_names,british_spelling,question_shape,service_model,prose_figures,history_phrases,function_length,file_lengthandcomment_blocksreport nothing.spelled_outrefuses three names (PAGE_VA, and the parameterspage_vaandva).prose_acronymsrefusesPRat line 34.passive_voicecounts six passives in 2,153 words, over the template head's allowance of four.unsafe_scanrefuses a fuzz opt-in, correctly, for the threeunsafesites.abbreviations(report only) does not knowrunnableandoffline, both real words. script/crate-standalone --no-kani: 14 failures, listed under items 1 to 3.script/crate-move --dry-runinto an empty directory, template atv7: eight findings for the move lane. The build step fails atcargo generate-lockfileon the inheritedlicensebefore it can reach the two path dependencies, so the dry run never reports those (BUGS). The staged source keeps the citations of items 3 and 4 because the rewrite strips onlyName:blocks. The mutation baseline row it carries reads 33 mutants, none missed, five unviable.helpers/lint_externalized_crates.py --count: one hit for this crate, at its ceiling of one (the sentence "nife does not page out",src/lib.rsline 16).- Every caller:
kernel/src/machine_statistics.rs(the writer).kernel/src/sched/preemption.rs,kernel/src/sched/interrupt_route.rs,kernel/src/sched/placement.rsandkernel/src/memory.rs(the call sites).crates/free,crates/vmstatandcrates/top(the reader libraries and their host tests).components/src/free.rs,components/src/vmstat.rsandcomponents/src/top.rs(theINTERFACESdeclarations and theSnapshot::readcalls).crates/system_initializer/src/spawn_loop.rs(the mapping at the fixed address).crates/grant_contract/src/manifest.rs(the slot). Last,system_tests/src/user/machine_statistics_tests.rs. Neitherxtask/norpatches/copies this crate's source into thestdplatform layer, so the path-copy hazard the sibling reviews found does not apply here. - The interface id table in milestone 956 (the linked interfaces carry checkable versions)'s block assigns 4 to this crate, and
notes/interfaces-note.mdrepeats it. - Download figures for the prior-art crates, from the crates.io API.
Inferred from reading, not run: the behavior of counter on a target whose pointer is narrower
than 64 bits (item 6), and whether #![no_std] can be unconditional (item 14).
Not run: a mutation census (outside its window; the carried row says none missed). Also not run: a fuzz campaign (the crate has unsafe in shipped source and cannot opt in to the public one). Also not run: cargo semver-checks (no release to compare against), the template's full workflow set against a real repository, and nife's QEMU system tests.