P1: before the tag
An appendix to the milestone.
P1: before the first release
-
The tokenizer drops a seventeenth token on the floor. DONE (
a_seventeenth_token_is_refused_and_never_dropped,the_earliest_token_nothing_can_place_is_named_when_the_line_is_also_too_long;parse_runrecords the first token the buffer had no room for asunexpected, andtokenizekeeps its signature). Finding:tokenizewrites into a caller's array and stops when it is full ("Tokens pastout.len()are dropped"), andparse_rungives it sixteen slots. The crate's own rule, stated atRefusal::Unexpectedand again atParsedInvocation::unexpected, is that the crate refuses a token nothing can place "so authority the user thought they were granting never silently evaporates". Past the sixteenth token it does evaporate. No shipped manifest reaches it:--memis the only token that spends two slots and no shipped program declares both a memory grant and a positional. With the catalog as it is, the crate would always have refused the dropped token anyway.plan_against_withtakes any manifest, so a caller's manifest declaring both reaches it. The lineprog --mem 1repeated seven times, thena b, plansaand losesb. Evidence:src/parsing.rslines 14 to 44 and 308 to 310. Change:tokenizereports that the line had more (aResult, or a returned(filled, rest)), andparse_runrecords the first dropped token inunexpected.each_wordandargvalready walk the whole line one token at a time and stay unaffected. One test with seventeen tokens pins the refusal. Door: two-way. Effort: S. -
There is no proof, and the two falsification patches are not against proofs. Finding: the crate has no Kani harness.
falsifications/holds two patches that break two host tests injob_windows.rs, each with the header the template'sfalsifystep expects. Whether that step pairs a patch with a host test or demands a harness was not verified. The review packages of the other crates pair each harness with one patch. The logic that most wants a machine-checked claim stays bounded, allocation-free and small.word::readnever panics, and a quoted word's text is a sub-slice of the token.tokenizeyields only non-empty sub-slices of the line, and the count never exceeds the array.NameSet::insertandkeep_smallestkeep theendsmonotone, withname_bytes() <= NAME_BYTES,n <= MAXIMUM_NAMES, no name twice, and a batch that is a prefix of the byte order.Cwd::applyis all or nothing.line::splitnever indexes past the line for any input.EscalationreachesForciblewithinCOOP_GRACE_TICKS + 1ticks of the first interrupt, and never twice.Windows::takenever returns a held or a bound window, and the two patches already exist there. Evidence:falsifications/*.patch; the absence ofkanianywhere undercrates/grant_plan. Change: add one harness per claim above, each arriving with its falsification patch, in the module'sverification.rsasfile_allocation_tabledoes it. Thejob_windowspair becomes a harness over any sequence oftake,reaped,releaseandset_bound, and its two patches move to it. Door: two-way. Effort: M. -
Limits that do not carry their unit, and four
lenfields. Finding: the units rule says a length or a limit ends with its unit (MAXIMUM_NAME_BYTES, neverMAXIMUM_NAME_LEN). The release review reopens a name ratified before that rule. Seven public limits are in bytes with no unit:MAXIMUM_FILE_NAME(ratified;src/lexing.rsline 16),expansion::MAXIMUM_NAME(ratified;src/expansion.rsline 16),nav::MAXIMUM_NAME(ratified;src/nav.rsline 25) andnav::MAXIMUM_DIRECTORY_NAME(line 34). The list goes on withnav::RENDER_MAXIMUM(ratified; line 44),program_table::spawnproto::HOLDER_MAXIMUM(ratified; line 493) andgrant_contract::verbs::MAXIMUM_VERB(ratified; line 100).expansion::NAME_BYTESandMAXIMUM_WORDS_NAME_BYTES(src/lexing.rsline 25) carry their unit. The template'sregister_names.pyrefuses the four private fieldslen(src/expansion.rsline 46,grant_contract/src/manifest.rsline 123,program_table/src/spawnproto.rsline 631) andname_len(src/nav.rsline 500) at a ceiling of 0. Thestandalonejob is red on them.MAXIMUM_NAMES,MAXIMUM_DEPTH,MAXIMUM_BINDS,MAXIMUM_STAGES,MAXIMUM_POSITIONALS,MAXIMUM_WINDOWS,MAXIMUM_DUEandMAXIMUM_SHORT_OPTIONScount things and are right as they are. Evidence: the lines above;design/naming.md, "Units";register_names.pyoutput. Change: the ruled decision "Limits carry their unit" (ruled-decisions appendix). The fields takelength_bytes(lenis the standard library's spelling for a method, and these are fields of a packed value, not methods). Door: one-way at the release (public names). Effort: S once ruled. -
Public names that need a decoder. Finding:
design/naming.mdspells outprog,pos,opt,proto,dirand the rest, and names "abbreviations that need a decoder" as the first failure mode. The public offenders are these. The modulesnav(src/lib.rsline 43) andspawnproto(line 44). The modulermopt(src/command.rsline 287). The functionspawnproto::prog_id(src/spawnproto.rsline 976). The field and methodBindEntry::pos(src/nav.rslines 497 and 507). The constantCOOP_GRACE_TICKS(src/escalation.rsline 26), wheretickis also on the vocabulary page's list of words whose kernel meaning differs. The assertion constantTHE_RIGHTS_BITS_SHARE_NO_BIT(src/manifest.rsline 413), where the rule is_DO_NOT_OVERLAPwith no leadingTHE_, and.cargo/mutants.tomlnames it. The modulejob_page_frame(src/lib.rsline 40), whereframeis on the same list.Cwdandargvare terms of art a reader knows (getcwd,argv), andProgram::from_idkeepsid, which the rulings accept.same_bytes(src/program/catalog.rsline 143) is already flagged in its ownName:block. The privateis_op,is_diag_op,prog,pos,dir,arg,mem_pagesandargsbindings are the maintainer's to sweep. Evidence:spelled_out.pyoutput;design/naming.md, "Acronyms and abbreviations" and "Vocabulary". Change: the names the ruled decision on public names settles, provisionally, for the public ones. A sweep lane takes the private ones. Door: two-way before the first tag. Effort: S. -
British spellings in doc comments. Finding: the British form of "recognize" (
src/line.rsline 224), the British form of "behavior" (src/nav.rsline 139), the British form of "honors" (src/spawnproto.rsline 105), the British form of "catalog" (line 386) and the British form of "neighbor" (src/program/tests.rsline 114). The template'sbritish_spelling.pyruns in thestandalonejob. Evidence: the lines above. Change: the American forms. Door: two-way. Effort: XS. -
The documentation assumes a reader inside this tree. Finding: the doc comments cite 376 milestones and 173 decision sections by number. They point at 81
notes/and 24components/paths and name the architect on 86 lines. They quote the architect's words in several places (MountedTree,WordGrant,SYNC_SLOT,UNVOUCHED_MANIFEST,Activation::Remove,ActivationStatus::NameTaken,TwoRoots, and theName:blocks that record a ruling as a quotation). A stranger can follow none of the citations and should not meet a person's name in an API document. The tree's own rule is that a record states the decision and its date and never quotes the decider. The crate also opts out ofmissing_docswith a worklist of 22 items (src/lib.rslines 18 to 20;notes/doc-coverage.mdline 123). SoEscalation::new,NameSet::empty,len,is_empty,contains,Name::as_bytesand the public fields ofEndowment,ManifestandStreamswithout a comment ship undocumented. The 201Name:blocks go at the move under the ruling that a crate repository carries no provenance record; the move commit strips them. Evidence: the counts above, fromgrep;standalone.py: 174 section citation lines, 338 milestone citation lines, 201 provenance block lines, 86 architect's-name lines. Change: at the move, strip theName:blocks. Replace each citation with the sentence it stood for or with a link into the crate's owndocs/. Remove every quotation of a person. Close the 22-item worklist so the crate root can drop#![allow(missing_docs)]. The README states the grammar (notes/grant-expression/grant-plan-crate.mdalready has it) and one example that runsparse,line::splitandplanend to end, whichtest_support::plan_lineis. Door: two-way. Effort: M. -
Refusal sentences spell numbers that live in constants, one of them in another crate. Finding:
Refusal::messagewrites "252 bytes a file, 16 a directory, 8 deep", "at most 8, 512 bytes of name", "at most 4", "at most 8" and "4,080 bytes" by hand;nav::Refused::messageandBindRefused::messagewrite "252", "8", "16" and "4". The tests pin the sentences exactly, which catches a drift of the sentence and not a drift of the constant: raiseMAXIMUM_FILE_NAMEand every test still passes while the prompt lies.ScopeTooDeepsays "at most 3 deep" forswish::scope::MAXIMUM_DEPTH, a constant of a downstream crate this one cannot see. Evidence:src/refusal.rslines 245 to 253, 290, 324, 329 and 352;src/nav.rslines 71 to 76 and 535 to 537. Change: withoutallocthe crate cannot format the sentence at runtime, so pin it the other way: a host test that formats each constant withstdand asserts the sentence contains it. ForScopeTooDeep, either the shell supplies the number (the message becomes the fixed half, as the others are) or the depth constant moves here where the refusal is. Door: two-way. Effort: S. -
Two-kilobyte values travel by value through the planning API. Finding:
plan,plan_stage,plan_againstandplan_against_withtakeHoldings(1,008 bytes),Expansion(568) andStreams(1,216) by value and returnEndowment(2,344). The crate records two stack overflows caused by exactly this shape (src/command.rslines 389 to 392;src/expansion.rslines 539 to 541) and works around them inside (Holdings::anchorwrites through an out-parameter). The sizes are a fact of theno_std, no-allocdesign, and the crate says so atSink,SourceandDiagnostics; what it does not do is keep them off the call path or pin them. Evidence: the signatures atsrc/planning.rslines 26, 64, 94 and 106; the sizes measured above. Change: take&Holdings,&Expansionand&Streams; add asize_oftest that pinsEndowment,Holdings,NameSetandCwd, so a field added later shows its cost in a failing test rather than in a shell that overflowed. The README states the sizes. Door: two-way before the release (an API change). Effort: S. -
Narrow length fields rest on a limit nothing asserts. Finding:
Name::lenis au8andName::newwritesname.len() as u8;NameSet::endsareu16;Cwd::lensandBindEntry::name_lenareu8. Each is right becauseMAXIMUM_FILE_NAMEis 252 andNAME_BYTESis 512, and nothing says so where the cast is. A raised limit would truncate silently, which is the one thing this crate promises never to do with a name. Evidence:src/expansion.rslines 42, 68, 94 and 179;src/nav.rslines 213, 271 and 586. Change: aconstassertion beside each limit (MAXIMUM_FILE_NAME <= u8::MAX as usize,NAME_BYTES <= u16::MAX as usize,MAXIMUM_DIRECTORY_NAME <= u8::MAX as usize), oru8::try_fromwhere aconstcannot reach. Door: two-way. Effort: XS. -
A manifest can name a widening option it does not declare, and the planner narrows silently. Finding:
DirectoryGrantDeclaration::Required { subtree_option }names a letter; if that letter is not among the manifest'sshort_options,plan_directory_granttakes the narrow reading and says nothing. The comment calls it "a bug in the manifest", which is where it should fail. Evidence:src/planning.rslines 309 to 316;src/manifest.rsline 475. Change: aconst fn Manifest::is_well_formedthatprograms!asserts for every row and thatcapability_manifest_note's decoder calls, so a manifest whosesubtree_optionlacks a declaration never reaches the planner. The planner's arm then stays as the safe reading for a manifest that arrived some other way. Door: two-way. Effort: S. -
The mutation record predates the module split, and the gate wants a green full run. Finding: the last full count for this crate is the baseline (489 mutants, 93.7 percent, 76 missed, since closed); the two triages after it cover inflow only. The template's release gate refuses a release without a green
mutation.ymlrun at the tagged commit..cargo/mutants.tomlcarries five exclusions for this crate, one namingTHE_RIGHTS_BITS_SHARE_NO_BIT(item 7). Evidence: the baseline census note undernotes/mutation-testing/, this crate's row;.cargo/mutants.tomllines 303 to 311. Change: after the split (item 1), one fullcargo mutantsrun over the crate that leaves, inside the 08:00 to 13:00 UTC window, with its exclusions carried into the repository's.github/mutants-exemptsunder their new names. Door: two-way. Effort: S.