1096. interfaces_note: what an outside maintainer would fix before it leaves
Raised by a read-only review of crates/interfaces_note as a stranger to this tree would meet it,
on a fresh clone at the head of main. It changes nothing; it lists what the move lane changes
before script/crate-move can finish, and what the architect ruled first.
The crate has no review package in notes/crate-reviews/. The settled baseline is therefore the
block of milestone 956 (the linked interfaces carry checkable versions),
which rules the note type INTERFACES = 4. It also rules the descriptor shape (a version word, a count, then records of a u64 id and a u32 version in strictly ascending id order). It rules the id table with 21 for this crate, the equality check at spawn and the rule that a missing note or a missing entry passes. The audit report "from the package to the grant" under design/audit-reports/ accepted
the missing-note rule. None of those is reopened here. Step 3 of
milestone 1017 (the contract crates leave in this order)
puts this crate last in its step and says it leaves like any leaf.
Reuse: script/crate-move, the template partsfoundry/crate-workflows and its scaffold, Kani,
cargo-mutants, cargo-fuzz. No new tool.
Finding status
Every finding not Done blocks the first crates.io publish, under the publishing hold.
- Item 1 (P0), the manifest does not stand alone: Done, #3835. The manifest in
partsfoundry/interfaces_notestates its license,rust-version, description, keywords, categories and lints. - Item 2 (P0), no README and no license files: Done, #3835.
- Item 3 (P0), the documentation cites this tree: Done, #3835. The module doc in
partsfoundry/interfaces_notecites no milestone or script and does not speak of the progenitor. - Item 4 (P0), the owner string
nifeis the wire format: Done, #3575 and #3835. The bytes keep their spelling behind the// wire literalmarker (decision 1), and no prose line names nife. - Item 5 (P1), passive voice over the template's ceiling: Done, #3835.
- Item 6 (P1), two acronyms unexpanded: Done, #3566.
- Item 7 (P1), a stranger cannot place the note: Done, #3566.
- Item 8 (P1), the only example does not compile: Done, #3566.
- Item 9 (P1), three lengths carry no unit: Done, #3566 for the private lengths and #3823
for the public ones:
INTERFACE_RECORD_BYTES,descriptor_bytesandnote_bytes, with no alias of the old spellings. - Item 10 (P1),
Declarednames a state: Done, #3823. The type isDeclaredInterface. - Item 11 (P2), no fuzz target: Done, partsfoundry/interfaces_note#2. A decoder target encodes each accepted list back and compares, and the weekly run is opted in (decision 6).
- Item 12 (P2), the proof runs one direction: Done, #3566.
- Item 13 (P2), a test name the abbreviation report flags: Done, #3566.
- Item 14 (P2),
iteryields by value: Done, #3566. - Item 15 (P2), the triaged timeouts travel nowhere: Done,
partsfoundry/interfaces_note#3. The three rows are
in
.github/mutants-exempts, since the template's gate fails an unexempted timeout. - Decision 1, the owner string: Done, #3575.
- Decision 2, ratifying the twenty public names: Done, #3823 for the four renames and #3835 for the ratified names, ruled 2026-11-19 (UTC).
- Decision 3, the crate name: Done, #3589, ruled 2026-11-14 (UTC) with nothing to build.
- Decision 4, review clearance and the repository: Done, #3835. The architect cleared
notes/crate-reviews/interfaces-note.md and
approved
partsfoundry/interfaces_note, withpublish = false, no tag and no publish. - Decision 6, the fuzz crate's dependency hold: Done, partsfoundry/interfaces_note#2, ruled 2026-11-22 (UTC).
Open decisions
None.
Goal
A stranger who opens partsfoundry/interfaces_note can tell in one screen what the note is, place one in
a program from the README alone, and decode one from untrusted bytes without a panic. The move's
dry run exits 0 at the newest template release, with its build step run, and every public name stands
ratified.
What was checked, and how
The tools run, the sources read and what was not run are in the appendix.
The items
Each item: what, where, why, the fix, effort (S/M/L), door.
P0: the move's own dry run fails on these
- The manifest does not stand alone.
crates/interfaces_note/Cargo.tomlline 5 inheritslicenseand:12inherits[lints]from a workspace that will not be there, and there is norust-version. The staged tree fails atcargo generate-lockfilebefore any test runs, andstandalone.pyfails three lines on it. Fix:license = "MIT OR Apache-2.0",rust-version = "1.85", the workspace'scfg(kani)check-cfg inlined under[lints.rust], plusdescription,readme,keywordsandcategories(no-std,no-std::no-alloc,encoding). S. Two-way. - No README and no license files. The dry run stages the scaffold's README shape and
standalone.pyfails onLICENSE-MITandLICENSE-APACHE. Fix: a README in the shared order (readme_sections.py: title and summary,## What it does,## EXAMPLES,## What is proven,## BUGS,## Minimum Rust version,## License) and the two license files from the template's root. M, because the README carries what items 7 and 8 ask for. Two-way. - The documentation cites this tree.
Cargo.tomlline 8 andsrc/lib.rsline 6,:73-76(the id table "Milestone 956 holds", "script/lintholds the tree to it"),:232and:498cite a milestone or a script. The module doc speaks of "the progenitor", "spawn", "a package" andcapability_manifest_note, none of which a stranger has. TheName:blocks, which also carry the lane names and the architect's name, vanish in the move and need no edit. Fix: rewrite the module doc to state the format, the reader's rule and what a loader does with it, in the words "the program" and "the system that loads it". The rule is that an unknown version, a count over 64, a length the count does not predict and ids out of order all refuse. S. Two-way. - The word the lint forbids is the wire format.
src/lib.rsline 3,:15,:32,:34,:310,:326and:492saynife. Two of them (:15,:32) are prose and reword. The other five are the owner stringb"nife", the section.note.nife.manifestand the test that asserts those bytes; they are the format itself. The move check andlint_externalized_crates.pyboth fail them, and no rewording removes them. Fix: decision 1 keeps the bytes behind a// wire literalmarker, which #3575 applied; the two prose lines reword with item 3. S. One-way, because the owner string is in every built program.
P1: before the tag
- Passive voice over the template's ceiling.
src/lib.rs: 19 passives in 2,408 words; the template'smainallows 4 and fails the rest.v7does not run the gate; the next release will, and the move pins the newest release. Fix inside item 3's rewrite. S. Two-way. - Two acronyms unexpanded.
src/lib.rsline 5 (ABI) and:28(NUL). The template'smainfails them at a ceiling of 0. Fix: "application binary interface (ABI)" and "NUL terminator" at first use. S. Two-way. - A stranger cannot place the note from the documentation. The macro writes to
.note.nife.manifest, and nothing in the crate says that a link script mustKEEPthat input section into an output section inside aPT_NOTE(and a readablePT_LOAD), ascrates/user_mode_runtime/link.ldlines 70 to 72 does. Nothing says that every word is little-endian whatever the target's byte order (put4writesto_le_bytesatsrc/lib.rsline 132, and an ELF note's header is in the file's byte order, so a big-endian ELF would carry a wrong header). Nothing says where the id registry lives once the crate has left: with the system that reads the note, the crate reserving21for itself. Nothing in the README will say thatcheck_servedpasses an absent entry (src/lib.rslines 246 to 262) unless the rewrite carries it. Fix: a## The contractsection in the README with the byte table fromnotes/interfaces-note.md, the link-script requirement, the endianness rule, the registry rule and the absent-entry rule. M. Two-way. - The only example does not compile. The macro's doctest at
src/lib.rslines 313 to 317 isignoreand namesabi::, which no reader has. A#[used]static in a named section compiles and links on a host, so the example can run with literal ids.encode_interfaces,decode_interfaces,version_ofandcheck_servedhave no doctest. Fix: four doctests, the macro one withDeclared { id: 1, version: 1 }. S. Two-way. - Three lengths carry no unit.
src/lib.rsline 37NAME_FIELD(8 bytes),:40HEADER_LEN(12 bytes;register_names.pyrefuses it) and the public:96INTERFACE_RECORD(12 bytes).interfaces_len(:112) andinterfaces_note_len(:269) return byte counts and read as counts of interfaces;interfaces_len(3)is 44. The rule is design/naming.md's "a length or a limit carries its unit". Fix: the private two now (NAME_FIELD_BYTES,HEADER_BYTES); the public three as decision 2 decides, provisionally. S. Two-way before the first tag. Declarednames a state, not a thing.src/lib.rsline 102. A stranger readsinterfaces_note::Declared { id, version }and asks "declared what?". Design/naming.md asks for a noun. Fix:DeclaredInterface, as decision 2 decides, provisionally. S. Two-way before the first tag.
P2: for later
- No fuzz target. The crate has no
unsafeand a decoder fed untrusted bytes, the shape the weekly fuzz opt-in targets, andfuzz/has no target for it. Fix: a target that decodes arbitrary bytes and, onOk, re-encodes and compares, plus the opt-in in the moved repository. S. Two-way. - The proof runs one direction.
a_decoded_interface_list_encodes_back_to_its_bytesproves decode-then-encode for a list of two; encode-then-decode is a test on fixed data. Fix: a harness over two symbolic ascending ids and two symbolic versions that encodes, decodes and compares, with a replayable falsification patch as milestone 1037 (a new Kani harness must arrive falsified) requires. S. Two-way. - A test name the abbreviation report flags.
src/lib.rsline 475an_unsorted_list_is_not_encoded:unsortedis not in the word lists. Report only. Fix:a_list_out_of_order_is_not_encoded. S. Two-way. Interfaces::iteryields by value.src/lib.rsline 178 returnsDeclared, where std'siteryields references. The iterator decodes records on the fly, so by value is the honest shape; the doc comment should say so in one clause. S. Two-way.- The three triaged timeouts travel nowhere.
notes/project-metrics/mutation-triage.csvholds three+=to*=loop-counter mutants as equivalent hangs. The dry run carries only a.cargo/mutants-baseline.txtrow, and this crate has none. If the template's verdict counts a timeout as a miss (unverified), the moved repository's first full mutation run is red for a reason already judged. Fix: carry the three rows into.github/mutants-exemptsat the move, with their reason. S. Two-way.
Decisions for the architect
The rules in force, with their background and prior art, are in the appendix:
- Decision 1, the owner string: ruled 2026-11-14 (UTC). The owner and the section name keep their
bytes, each line marked
// wire literal, and prose says "the owner string". - Decision 2, the public names: ruled 2026-11-19 (UTC). The architect ratified the twenty names with four
renames,
INTERFACE_RECORD_BYTES,descriptor_bytes,note_bytesandDeclaredInterface, and no alias; sixteen names keep their spelling. Ratification takes effect for theName:blocks when the renames land. - Decision 3, the crate name: ruled 2026-11-14 (UTC). The crate and repository take
interfaces_note. - Decision 4, review clearance: the maintainer's provisional ruling of 2026-11-19 (UTC). Decision 5 replaces it.
- Decision 5, the repository: 2026-11-20 (UTC), option A. The architect cleared the review
package and gives the go to create
partsfoundry/interfaces_note, withpublish = false, no tag and no publish. The twenty public names keep decision 2's spelling. The crate move runbook gives the steps after the move. - Decision 6, the fuzz crate's dependency hold: 2026-11-22 (UTC), option A. The labeler's hold on
the
fuzz/crate's dependencies is a false positive under the standing approvals forlibfuzzer-sysin an unpublished fuzz crate and for the organization's own crates.
Prior art
The comparison with nearby work is in the appendix.
Follow-on
- Recorded. The stranger test and the first weekly mutation run in
partsfoundry/interfaces_note, whosedocs/stranger-test.mdreadsLast run: none.
Done when
The checks are in the appendix.
BUGS
- The template's
v7scaffold itself names nife and the architect indeny.toml,rustfmt.toml,.githooks/commit-msg,docs/stranger-test.mdand.github/pull_request_template.md, which the dry run counts among its findings. The template'smainhas removed them; the move waits for the release that carries the fix or notes the five lines as the template's. - The review did not replay the two falsification patches under Kani; the dry run applied them with
patch --dry-run -F0only.script/verifyreplays them in the tree. - A whole-system refusal (a program with a wrong ABI entry sent through the image path) comes
from
image_request.rsand its tests, not from a booted system.
Index row
An outside review of interfaces_note before its move. Every finding and decision is done: the
crate stands alone in partsfoundry/interfaces_note with publish = false, no tag and no publish, a
decoder fuzz target and its triaged mutation exemptions. The stranger test and the first weekly
mutation run in the new repository remain.