P1: before the tag
An appendix to the milestone.
P1: before the first tag
-
The shipped text names a person, quotes rulings, and cites numbers that mean nothing outside this tree. Finding: after the move deletes the
Name:blocks, the stagedsrc/lib.rsandsrc/tests.rsstill carry 12 lines that name the architect (one quoting a ruling word for word). They also carry 29 milestone citations, 3 section (ยง) citations and 9 paths into nife (notes/capability-manifest-note.md,AGENTS.md rule 7,crates/elf,script/lint). The module documentation's first sentence ends in one. The move runbook's rule is that the crate never mentions nife, and the project's rule for records is that a document states the rule and not who decided it or when. Evidence: dry runcitations(four lines) andstandalone(lines 6 to 9); stagedsrc/lib.rslines 3, 19, 54, 105, 126, 271, 961, 969, 1084, 1093, 1305 andsrc/tests.rsline 331. Change: rewrite each passage to state the fact (the layout, the limit, the refusal) with no citation, name, date or quotation. The reasons that matter to a stranger (why the layout has no byte forreboot, why version 3 exists beside version 2, why 256 verbs) move into the README or adocs/page in the new repository. They appear in the crate's own words. The history stays in nife's notes and git. The lint ceiling of 37 for this crate then drops to the literals of item 10. Door: two-way. Effort: M. -
Stale documentation a stranger would act on. Finding:
VERSION's comment says it is "the only one it reads" whiledecodereads versions 1, 2 and 3 (line 114). The docs describeError::WrongLengthfor version 1 only (line 185), and the decoder returns it for every version.decode's comment describes version 1 and version 2 and not version 3 (lines 389 to 411). The module's BUGS entry says nothing writes a note object for a foreign build (line 12), whilextask/src/foreign_note.rsdoes exactly that fromNote::of.verification.rssays theINTERFACESharnesses stay inlib.rs(line 4); that note type moved tointerfaces_noteandlib.rshas no harness.check_zonesandcheck_servicedpromise "the first byte at fault" (lines 673, 701) and report the zone's length byte for a bad letter inside the zone;decodereportsFLAG_LETTERSfor a bad letter anywhere in the list (line 436). A version 3 descriptor cut before its service byte isBadField(at)where every other short descriptor isWrongLength(line 724, and the test attests.rsline 498 pins it). Change: correct each sentence; either make the offsets exact or say "the field at fault"; and either returnWrongLengthfor the cut version 3 descriptor or document the exception atError::BadField. Door: two-way (the error variant change is observable but nothing outside the tree matches on it yet). Effort: S. -
Private names break the spelled-out rule and the option vocabulary. Finding:
ARG,MEM_MINIMUM,MEM_MAXIMUM,DIR,CONFIG,decode_arg,decode_mem,decode_dirand the bindingsarg,mem,dir,argsare 15 hits in the template'sspelled_out.pyat a ceiling of 0.FLAG_COUNTandFLAG_LETTERShold option letters, and the vocabulary rule says an option is never a flag.RUNTIMEanddecode_runtimeread the field namedstartup. Template v7, the newest release, does not run these checks yet; the next release does, and the crate meets them then unless this lands first. Evidence:src/lib.rslines 194 to 213, 428 to 429, 442, 477, 489, 517;src/tests.rslines 189, 196, 211. Change:PROGRAM_ARGUMENT,MEMORY_MINIMUM_PAGES,MEMORY_MAXIMUM_PAGES(the unit, since they are page counts),DIRECTORY,CONFIGURATION,STARTUP,OPTION_COUNT,OPTION_LETTERS, and the functions and bindings to match. Private, so no user sees it. Door: two-way. Effort: S. -
The tests and the public examples depend on nife's program catalog. Finding:
grant_plan::Program::Uptime,Rm,JigandRebootappear 17 times acrosssrc/tests.rs, thedecodeandencode_verbsdoctests andtests/fuzz_seed.rs. The catalog names nife programs, which the externalization lint counts, and a stranger readingdecode's example learns nothing about building aManifestof their own. The testevery_compiled_in_manifest_round_tripsis a test of nife's catalog against this layout and belongs where the catalog lives. Evidence:src/lib.rslines 395, 1165;src/tests.rslines 39, 65, 85, 103, 130, 150, 173, 248, 256;tests/fuzz_seed.rsline 63. Change: the examples and tests build manifests fromNO_NOTE_MANIFESTand struct update syntax, withShortOptions::try_new(b"rfv")where a test needs letters. The catalog round trip moves togrant_plan(orsystem_tests) in nife, which keeps the guard that a new program with an unspellable manifest fails before a build carries it. WhetherProgramleaves withgrant_planis milestone 1017 (the contract crates leave in this order)'s question, not this crate's; after this item the crate no longer cares. Door: two-way. Effort: S. -
The fuzz target and its seeds stay behind, and the seed test breaks in the new repository. Finding:
tests/fuzz_seed.rsreads../../fuzz/seeds/capability_manifest_note_decode/(line 118) and fails when the directory is absent; the staged repository has nofuzz/. The dry run leavesfuzz/fuzz_targets/capability_manifest_note_decode.rsin nife because it linksgrant_plananddomain_name_resolution_contractdirectly; both are the crate's own dependencies, so nothing stops the target from moving. Milestone 1017's table says the seeds and target leave with the crate. The target's structure-aware mutator is the only thing that reaches the version 2 and 3 zone walk beyond Kani's 57-byte bound, so leaving it behind leaves the walk covered by hand-written tests alone. Evidence:tests/fuzz_seed.rslines 115 to 119; dry runfuzznotes;fuzz/Cargo.tomllines 73, 170 to 171. Change: afuzz/workspace in the crate with the target, itsCargo.tomland the 14 seed files; the seed test's path becomesfuzz/seeds/...fromCARGO_MANIFEST_DIR; nife's fuzz workspace drops the target in the move pull request. The template'sfuzz.ymlruns it only if item 9 allows the opt-in. Door: two-way. Effort: S. -
The template refuses the weekly fuzz opt-in because
carry!spellsunsafe. Finding:unsafe_scan.pycounts the five#[unsafe(link_section = ...)]attributes inside thecarry!andcarry_subtree_grants!macro bodies asunsafein shipped source (lines 994, 999, 1005, 1011, 1120). The crate has nounsafeblock, function or impl; the attribute is unsafe for the program that expands the macro, and that program is the one placing bytes in its own section. With the scan as it is,public-crash-inputs: trueturns the fuzz job red, so the crate's fuzzing would run only on nife's private fuzz host. Evidence: the scan's output; the template readme, "Why only safe-Rust crates opt in". Change: two options. Keep the opt-in off and fuzz privately (the restrictive choice, and no change anywhere), or ask the template, through its own queue, to treat#[unsafe(...)]attribute syntax insidemacro_rules!as the caller'sunsafeand not the crate's. Recommend the first until the crate has a second reason to want public crash inputs; the finding is a panic in safe code either way. Door: two-way. Effort: XS here, S in the template.