P1: before the tag
An appendix to the milestone.
P1: before the first tag
-
reply_errnois not total, and the error range is unstated. Finding:reply_errno(src/lib.rsline 62) computes(-r0) as i32. Atr0 == i64::MINthe negation overflows: a panic in a debug build, a wrap in release, by the language's rule (not executed). For any negative word below-2^31the cast truncates to an unrelated errno. The contract says "a reply's first word is ani64: a non-negative result, or the negated errno" and bounds the errno nowhere;reply_err(src/lib.rsline 46) accepts anyi32, 0 and negatives included, andreply_err(0)is 0, a success. Callers: the std client'serrors.rs, both caretakers. Why it matters: a decoder on a wire is the one function that must be total. Linux bounds its convention (MAX_ERRNO4095) for this reason. Change: Decision C states the range. Thenreply_errasserts1..=MAXIMUM_ERRNOasblk::reqasserts its count.reply_errnoreads-MAXIMUM_ERRNO..=-1as that errno and any other negative word as the protocol-violation errno the decision picks. The test pinsi64::MIN,-(MAXIMUM_ERRNO + 1)and-1. Door: the range is a contract statement, Decision C; the code is two-way. Effort: XS. -
The packers mask where the contract names truncation as the worst failure. Finding:
fs::request(src/fs.rsline 351) maskshandleto 16 bits andlento 40.fs::rename_destination(:368) does the same.grant::spec(src/grant.rsline 116) maskslento 8 bits, sospec(256, rights)carries length 0, which isWHOLE_NAMESPACE(:143).xattr::spec(src/xattr.rsline 82) masksvalue_lento 32 bits. Theconstblock atsrc/fs.rsline 318 says a truncated length "would arrive at the server as a smaller successful read rather than as an error", andblk::req(src/blk.rsline 73) is the model: it asserts its count. The callers ofgrant::specpassname.len()after their own checks (components/src/swish/running.rsline 871 and others; whether every caller checks first is unverified). Change:assert!in eachconst fnon the field's range, asblk::reqdoes, with a#[should_panic]test each; or returnOptionwhere a caller can act on it. Door: two-way. Effort: S. -
The proofs cover one
&, and nothing else. Finding: three harnesses insrc/dir.rsline 221, all overRights; the grandchild patch's own header says it adds no falsification the first does not catch. Nothing proves seven properties. First,fs::requestandrename_destinationround-trip for every in-range opcode, handle and length, and no field bleeds. Second,xattr::replyis non-negative for every kind and length and round-trips withreply_kindandreply_value_len. Third,blk::req/request_block_countround-trip in1..=16. Fourth,grant::pack_name/unpack_nameround-trip at every length to 16. Fifth, the four walkers (dirent::iter,nameset::iter,xattr::list::iter,xattr::store::iter) consume their input and terminate on every buffer up to a page. The recorded mutation runs show this is the live failure class (ten timeouts, all iterator cursors). Sixth,verb::ofnever indexes out of bounds. Seventh,parent.attenuate(parent.resolve(x))never widens, which is the server's actual path. Each is a bounded bit-vector or small-buffer harness Kani finishes in seconds. Change: one harness per property with a falsification patch each, insrc/<module>/verification.rsor beside the code asdirdoes; the README's "What is proven" grows a line per property. Door: two-way. Effort: M. -
The equivalent mutants need a home, or the full run is red. Finding: the last recorded census for this crate is 548 caught of 588 viable (93.3 percent). It has 38 to 41 survivors classified as equivalent in four groups (
|over bit-disjoint fields, unions of distinct single bits,1 << 0under>>, theconst _loop bound). The classification sits innotes/mutation-testing/regressions-...-filesystem-contract.mdandcensus-...-triage-part-2.md. The template's.github/mutants-exemptsstarts empty and the release gate reads the full run's verdict. Theconst _loop gap is since closed:in_opcode_orderis a function with a test that feeds it a bad table (src/verb/tests.rsline 17). Change: carry the classification into.github/mutants-exemptswith one reason per group, or kill the killable ones; dispatchmutation.ymlonce onmainbefore the tag. The crate's tests already carry "pinned after a mutation run" sections in every module. Door: two-way. Effort: S. -
The README is short of the scaffold, and three prose gates refuse it. Finding: no badge row under the title (
readme_badges.pyfails on its absence). There is norustup target addbefore the bare-metal build (README.mdline 76). The README gives no Kani run time and memory (6.6 seconds, 383 MB measured here), no single-harness command, and no word on what a passing run prints. The falsification command is wrong after the move (item 3). The minimum-Rust-version section gives no check command.passive_voice: 5 passives in 754 words (README.mdline 3,:10,:20,:36,:92) against a cap of 1.prose_caps: a sentence of 82 words and 5.5 bold spans per 1,000 words. The README's section order passesreadme_sections.py. Change: use the scaffold'sREADME-crate.mdshape. Put four sentences into the active voice. Split the 82-word sentence (the verb list in "The contract"). Drop bold from two spans. Door: two-way. Effort: S. -
Twelve acronyms are bare at first use. Finding:
prose_acronyms(ceiling 0) flags POSIX, ONE and FS (src/lib.rsline 43,:44). It flags SMB (:123), DMA (src/blk.rsline 59) and EL0 (:85). It flags EOF (src/fs.rsline 34), NUL (src/xattr.rsline 51), FUSE (:73) and BFS (src/xattr/tests.rsline 44). It also flags READDIR and STATFS used as words in prose (src/dirent.rsline 28,src/statfs.rsline 25). ONE is emphasis in capitals, not an acronym. Change: expand each at first use or add the universally known ones (POSIX, EOF, NUL) to the repository'sprose_acronyms.toml; write the verb names in code spans; lower-case ONE. Door: two-way. Effort: XS. -
rmis not filesystem protocol. Finding:src/rm.rsdefines the exit status and the report framing of one program, over a different contract (byte_sink_contract), and names both. Its only in-crate reader is thedir::explaincross-reference. Likewisefs::CLIENT_WINDOWS(src/fs.rsline 302) is a server capacity ("eight is provisional, a capacity decision not yet made") whose doc leans on a kernel badge mechanism; a stranger cannot tell whether a badge of 8 is a wire refusal or a deployment choice. Change: movermto thermprogram or tobyte_sink_contractbefore the move (its two callers follow); stateCLIENT_WINDOWSas a contract fact ("a server serves at least this many channels and refuses a badge at or above it") or move it to the server. Door: two-way before release. Effort: S. -
Dates and British spellings in the shipped text. Finding:
src/verb.rsline 369 and:417andsrc/verb/tests.rsline 245 narrate a change by date ("until", "since").src/verb.rsline 119 andsrc/verb/tests.rsline 218 write the British form of "behavior" (british_spellingjudges names only, so it passed; the rule covers words).src/fs.rsline 224 carries a decision date outside aName:block. Change: state the present rule (EBADFis about the handle,ENOTDIRabout the request) and drop the dates; American spelling. Door: two-way. Effort: XS.