P2: later
An appendix to the milestone.
P2: later
-
The template's
register_names.pymisreads harness names. Finding: it refuses five verification functions whose names contain the wordaddress(every_virtual_address_below_the_ceiling_lies_in_exactly_one_bandand four..._refuses_every_virtual_address_its_doc_forbids) as addresses that must be virtual or physical. A function is not a location in memory. This is the template's bug, and with the names as they are the crate'scheck / standalonejob is red on the first run. Evidence: theregister_names.pyrun above;helpers/register_names.pylines 18 to 24 in the template. Change: in the template, skip the address rule forfndefinitions, or readaddressonly as the last component before a qualifier. Until it lands, the harnesses could saypagein place ofaddress, but renaming correct names to satisfy a wrong check is not recommended. Door: two-way. Effort: S (template). -
BANDSfixes the band count in its type. Finding:pub const BANDS: [(&str, Band); 8]. Adding or splitting a band changes the type of a public item, so any caller holding it by type breaks even if it only iterates. Nothing in nife readsBANDStoday, so the cost is zero now and grows after the first tag. Evidence:src/lib.rsline 132. Change:pub const BANDS: &[(&str, Band)]. Theconsttiling assertion and the Kani helpers index and iterate it unchanged. Before the first tag this is a free change; after it, a minor bump. Door: two-way now, one-way after the first tag. Effort: S. -
A caller can build
Bandinverted, andbytesthen underflows. Finding: the fields are public so callers can build one in aconst(process_builderdoes).Band { start: 5, end: 1 }.bytes()panics in a debug build and wraps in release;containsandholdsreturnfalse, which is harmless. No caller builds an inverted band today. Evidence:src/lib.rslines 43 to 54;crates/process_builder/src/lib.rslines 51 to 54. Change: apub const fn new(start, end) -> Bandthat assertsstart < endand page alignment at both ends, so aconstbuilt through it fails the build the waypair_pagedoes. The fields stay public for destructuring, and the doc saysnewis the way to build one. Two-way because adding a constructor removes nothing. Door: two-way. Effort: S. -
#![forbid(unsafe_code)]is absent. Finding: the crate has nounsafe, and the template's scan passes it. The attribute makes the claim a compiler error rather than a scan result, which is what a stranger checks first. Evidence:src/lib.rsline 20. Change: add the attribute under theno_stdline. Door: two-way. Effort: S. -
nife's checks that walk
crates/lose this crate. Finding:helpers/interface_declarations_check.pyfindspub const INTERFACE_IDby readingcrates/*/src/lib.rsagainst the table in the block of milestone 956 (the linked interfaces carry checkable versions). After the move the crate'slib.rsis not in the tree and the row for id 2 has no source to check.LOW_HALF_SPLIT_SHIFTSrestatescrates/page_tables'sSPLIT_SHIFTwith no test tying the two. After the move the restatement lives in another repository. Milestone 1017 (the contract crates leave in this order) names the class ("nife's tools that walkcrates/also lose each crate"). Evidence:helpers/interface_declarations_check.pylines 58 and 74;src/lib.rslines 289 to 292. Change: in nife, the declarations check reads the pinned checkout throughcargo metadata, andcrates/page_tablesgains one test asserting its threeSPLIT_SHIFTs against the crate's constants (which meansLOW_HALF_SPLIT_SHIFTSbecomespub, a small addition). Door: two-way. Effort: S. -
Milestone 1017's blocker table has a stale row. Finding: the table says
counter_frequency_contracthas a dev-dependency onaddress_space_layoutand must leave after it. No manifest or source incrates/counter_frequency_contract/names the crate now; the relation it guarded (the timebase page lies above the ceiling) holds as an assertion inkernel/src/user/loader.rsline 14 instead. Evidence:design/roadmap/1017-the-contract-crates-leave-in-this-order.md; a grep ofcrates/counter_frequency_contract/. Change: drop the row when 1017 is next edited. Door: two-way. Effort: S.