P1: before the first release
An appendix to the milestone.
-
landinganswersEINVALwhere the contract saysEISDIR, and leaves the arm to the caller. DONE (a_file_verb_on_a_directory_is_is_a_directory;Refusal::IsADirectoryis provisional; the server's special case is gone). Finding:landing(Kind::Directory, false)returnsRefusal::Malformed(errno 22), with a comment that the server maps this one arm itself. The one caller does:open_file_pathtestskind == Kind::Directoryand answersEISDIRbefore it callslanding, so the arm is dead in this tree and a wrong answer for any other caller. A refusal enum with a hole in it is a trap a stranger falls into on the first file server that is not this one. Evidence:crates/subtree_scope/src/lib.rslines 145 to 147;redoxfs_server/src/server.rslines 102 to 106;file_system_contract/src/dir.rsline 88 (EISDIRis 21). Change: addRefusal::IsADirectorywith errno 21, return it from that arm, delete the comment and the server's special case (the server's own copy of the rule goes, the behavior stays). Adding a variant to a public enum is one-way after the first release, so it lands before the tag. Door: two-way now, one-way after the tag. Effort: XS. -
unbinduses handle 0 to mean "nothing to close". DONE (unbinding_a_badge_bound_to_handle_zero_is_not_unbinding_a_sync_only_one;unbindreturnsOption). Finding: for a sync-only badge,unbindreturnsOk(ROOT)as "no directory to hand back".ROOTis 0, and 0 is also a handle a binder may bind a badge to:bind(caller, badge, 0)succeeds, and in the server that is the image root with every right. The server tells the two apart withroot != ROOT, which happens to be right for both (handle 0 is never closed), but the API says one value for two facts. The same function computesSelf::index(badge)twice under two names (f, theni), and the equivalent-mutant survivor of the census is thei != 0guard this shape needs. Evidence:crates/subtree_scope/src/lib.rslines 283 to 302;redoxfs_server/src/server.rslines 760 to 774;notes/project-metrics/mutation-triage.csvrow 305. Change:unbindreturnsResult<Option<u64>, Refusal>:Some(root)for a bound badge,Nonefor a sync-only one. Oneindexcall, onematchover the slot. The server closes onSome. The census then has no survivor to explain. Door: two-way (one-way after the tag, as a public signature). Effort: XS. -
The badge-to-slot cast truncates on a 32-bit target. DONE (
a_badge_past_a_machine_word_binds_nothing_and_is_revoked;indexreturnsOption). Finding:indexcompares(badge as usize) < B. On a target whoseusizeis 32 bits, badge 2^32 + 2 casts to 2 and folds onto slot 2, sobind(caller, 2^32 + 2, root)binds badge 2 whileof(2^32 + 2)answersRevoked. Theu64compare on line 236 guardsof;bind,bind_sync_onlyandunbindhave no such guard. Only an open caller can bind, and the three bare-metal targets the move stages are 64-bit, so this is a hole in the claim, not a defect a current user can reach. The harnessa_badge_with_no_window_is_never_openruns on a 64-bit host and cannot see it. Evidence:crates/subtree_scope/src/lib.rslines 225 to 231 (index), 254, 272, 289, 294. Change: makeindexreturnOption<usize>throughusize::try_from(badge).ok().filter(|&i| i < B), haveofuse it, and have the three mutators refuseNoneas they refuse slot 0. One sentence inBindings' doc. No behavior changes on any 64-bit target. Door: two-way. Effort: XS. -
Names the naming rules refuse, or that read wrong to a stranger. DONE (the spellings below and
walk'srequested_rights, ratified, in the tree and inredoxfs_server;is_name's parameter iscomponent). Finding, each with the rule:PROOF_PATHis a length in bytes and carries no unit (design/naming.md, Units: a length carries its unit;PROOF_BADGESandPROOF_OPERATIONSare counts of things and stand). The bindingdirs(line 115) and the parameterwant_dir(line 139) abbreviatedirectory, which the template'sspelled_out.pyrefuses at a ceiling of 0.is_name(c: &[u8])has a one-letter parameter (the rules apply to parameters).Kindis a generic word the rules name as a failure mode.Binding::Opencollides with the file verb in a filesystem crate.landingis a noun on a function that judges, besidecheck_path.Bindings::ofhas no standard-library precedent (getwould promise anOption). Evidence:crates/subtree_scope/src/lib.rslines 83, 115, 139, 70, 156, 139, 235, 306. Change, recommended spellings:PROOF_PATH_BYTES;directories;want_directory;component;NodeKind;Binding::Unbound;check_landing;Bindings::binding.walk's parameter isrequested_rights, au64of rights bits added toDESCENDat every step. One pull request, after the maintainer rules the two-way names provisional. Door: two-way before the tag; every public one is one-way after it. Effort: S. -
There is no example anywhere. DONE (doctests on
walkandBindings; the README example is move work). Finding: 0 doctests, noexamples/, no README. A stranger has the test module'streefunction as the only picture of how to writelookup. Evidence:cargo testoutput ("Doc-tests subtree_scope: running 0 tests");crates/subtree_scope/src/lib.rslines 463 to 472. Change: a doctest onwalkover a four-node toy tree (the test'stree, lifted into the doc). It shows a success, aSymlinkrefusal and aNarrowedrefusal. A second doctest onBindingsshows bind, admit throughROOT, unbind, and theNotYoursafter. The README's## EXAMPLEScarries the first. Door: two-way. Effort: S. -
What the walk proofs leave out, and what they cost. DONE (
a_walk_asks_for_every_component_in_order, one running offset; the README line onNotFoundandNarrowedis move work). Finding: the two walk harnesses state that every step is a name and that a successful walk went through directories only and never widened. Neither states thatwalkaskslookupfor every component but the last, in order; awalkthat skipped a component, or stopped early and returned the start, passes both (the unit tests catch it, the proofs do not). Neither says whenwalkanswersNotFoundandNarrowed. The reach record agrees: the walk harness killed 3 of the 19 mutants in its direct reach and the one-name harness 2 of 8 (the record predatesSyncOnly; the proportions are what is on file). The two harnesses also cost the most: falsification replays of 242 s and 104 s, and the crate's 5.9 GiB peak, for a 5-byte path at unwind 7. The template'sproofsjob runs under a 20-minute default budget andfalsifyunder 30. Nobody has verified whether a hosted runner holds the peak. Evidence:crates/subtree_scope/src/lib.rslines 329 to 379;notes/kani-reach-2026-10-04.csvrows 179 to 180;notes/project-metrics/falsification-times.tsvrows 342 to 343;helpers/kani-peaks.tsv. Change: one harness,a_walk_asks_for_every_component_in_order, whoselookuprecords the steps it saw and asserts afterwards that they equal the components before the last/, in order. Its falsification patch makeswalkskip the first component. Extenda_walk_never_widens_follows_or_crosseswith the two refusal conditions, or state in the README that tests cover them and proofs do not. Measure the peak after; if it stays near 6 GiB, state the figure in the README beside the install line. Door: two-way. Effort: S. -
Passive voice over the template's ceiling. LEFT: move work. Finding:
passive_voice.pyat the template's head counts 20 passive constructions in 3,366 words against a ceiling of 6. The pinned release (v7) does not run it; the first pin bump past v7 will makecheckred for this reason alone. Evidence:passive_voice.pyover the stagedsrc/lib.rs, five of the lines: 257, 321, 339, 427, 587 (staged numbering). Change: put 14 sentences into the active voice while item 2 rewrites the doc; one pass. Door: two-way. Effort: S.