P1: before the tag
An appendix to the milestone.
P1: before the move is declared done
-
The mutation verdict needs the ten recorded outcomes written as exemptions. Finding: the template's
mutationverdict (helpers/mutants_gate.py) fails on any survivor or timeout not listed in.github/mutants-exemptswith a reason, and the release gate reads that verdict. The baseline row for this crate records 3 survivors and 7 timeouts. The regression note for this crate undernotes/mutation-testing/(the one that triagesclock_contract,swishandfile_system_contracttogether) already gives the reasons.spin_hintreplaced by()is a hint with no host-observable effect. The claim's+under*is single-threaded blindness that the loom gate kills.decide's>under>=is equivalent at equality because both arms fall through toACCEPTED. The seven timeouts are the two retry loops' conditions turned into loops that never exit. Nobody knows the mutants' line numbers in the new repository until the first full run, so the note supplies this inference, not a measurement. Why it matters: the weekly run is red for a known reason until the lines exist, and a red verdict blocks the release gate when the release is eventually unheld. Change: the move lane dispatchesmutation.ymlonce, copies each survivor's and timeout's line frommutants.outinto.github/mutants-exemptswith the note's reason, and runs the verdict again. The loom gate that kills the claim mutant is nife'sscript/interleaving-check; the new repository has no such job, so either thetestsjob runs the loom models under--cfg loomor the exemption's reason says the models run in nife only. The first is better and costs twelve seconds. Door: two-way. Effort: S. -
The manifest's
publishcomment names a file that is not in the repository. Finding:Cargo.tomlline 11 readspublish = false # the default; the allowlist lint holds the exception (crates/publish-allowlist.txt). The file exists in nife and nowhere else. The manifest also has norepositorykey, whichcargo packagewarns about and the move adds. The same finding appears in the outside reviews of the four crates that moved before this one. Why it matters: a stranger follows the path and finds nothing; the sentence also says a lint holds thepublishline, and the new repository does not have that lint. Change: one sentence a stranger can act on ("staysfalseuntil the release milestone that publishes; nife pins the crate byrevmeanwhile"). The move addsrepository. Door: two-way. Effort: S. -
A reader of the page never waits on a writer. Done, per Decision 1: the page keeps two copies and a publish count, and
readretries only when a publish finished during it. The crate'sBUGSrecords the one hazard left: a writer stopped holding the claim blocks later writers and no reader. Door: one-way, taken before the identity froze. -
The docs call
initializea once-only step, and its only caller runs it on every start. DONE (first option: a page that carries the magic is left as it is, and a claim a stopped writer left held is given back;initializing_a_page_again_keeps_what_was_published,initializing_a_page_with_an_abandoned_claim_gives_it_back, and the loom modela_restarted_initialize_never_shows_a_reader_a_reset_page). Finding:initialize(src/lib.rsline 254) says the writer does it "once, before anyone else has a mapping, so it needs no sequence claim".components/src/clock.rsline 63 calls it unconditionally at program start. The review did not establish whether this tree ever restarts theclockprogram on the same frame (it found no supervisor entry for it). If it does, readers already hold mappings when the restart stores the sequence as zero, and a reader comparinggenerationacross the restart sees it go backward. The loom model for a racing reader covers the first initialize only. Why it matters: the contract's precondition is one the caller cannot promise in general, and a stranger writing a second clock service will copy the call. Change: makeinitializeidempotent (return without writing when the magic is already present, and say so), so a restart continues the generation count. The alternative is to state in the doc that a restart on a published frame resets the generation and readers must tolerate a smaller one. The first is one compare and keepsgeneration's meaning. Door: two-way (no reader checks for the reset today). Effort: S. -
Doc comments that assume the reader lives in nife. Finding:
propose::OPERATION_SHIFT(src/lib.rsline 352) says "the same position its sibling message contracts use".rtc::CMOS(lines 554 to 558) says the service reads the ports "through aPortRangecapability over both, which the wiring grants withWRITEbecause the I/O permission bitmap cannot permitinwithoutout".INTERFACE_ID(lines 168 to 171) names "a program'sINTERFACESnote" and "the project that links these crates".ClockPage(line 202) and thestatemodule (line 125) lean on "the capability layout" and "the no-silent-degradation rule" as if the reader knew them. None is wrong; none has a referent outside this tree. Why it matters: the crate is the one definition three programs share, and its rustdoc is where a stranger reads the contract. Change: one sentence each that stands alone ("the opcode occupies the top byte of the first word", "two fixed I/O ports the service is granted together", "a program declares the pair of this id andVERSION; the system that links the programs keeps the table of ids"), and keep the nife reasoning in nife's notes, which already hold it. Door: two-way. Effort: S. -
The crate needs 64-bit atomics and does not say so. Finding: every word of the page is an
AtomicU64. On a target withouttarget_has_atomic = "64"(riscv32imac-unknown-none-elf, the Cortex-M targets) the build fails with an error about a missing type rather than a sentence. The review inferred this from reading; the host has no such target. Why it matters: the manifest's categories (embedded,no-std) invite exactly those targets. Change:#[cfg(not(target_has_atomic = "64"))] compile_error!("clock_contract needs 64-bit atomics: the clock page is four 64-bit words")and one README sentence under "Building and testing". Door: two-way. Effort: S. -
Two Kani harnesses, each with its falsification patch. Finding: the crate has no harness;
cargo kaniandfalsify.py --checkpass by finding nothing, so the template does not block. nife'sscript/crate-standalonefails itsproofscheck, and the move runbook (notes/crate-move.md, the step that wantscrate-standaloneto exit 0 with Kani) names that check. The package's open question 1 recommends two harnesses and leaves the call to the maintainer. Why it matters:policy::decideis the one function a compromised proposer can aim at, and it is a pure function of three words, which is the cheapest kind of proof there is. The request word's round trip is the wire format the service decodes with its own copy of the constant. Change: harness one: for anycurrent_state,currentandproposed,decidereturnsACCEPTEDonly ifis_plausible(proposed), and when the state holds a known time only if the step lies inside the bound on its side. Harness two:operation(req(x)) == xfor everyxbelow 256, andwall_nanoseconds(offset_for(w, m), m) == wwheneverw >= m. Each with a patch underfalsifications/thatproofs / falsifyreplays red. Door: two-way. Effort: M.