roadmap BUILT

1087. domain_name_system: what an outside maintainer would fix before it leaves

Raised by a read-only outside review of crates/domain_name_system, read the way a maintainer meeting it on crates.io would read it. The review changed nothing; this block lists what the next lanes change, in the order the move needs them.

The accepted baseline is the review package, domain-name-system.md in notes/crate-reviews/. Four things are settled. The crate name is ratified, with dns and name_resolver refused. Pull request #2797 ratified five constants (MAXIMUM_UDP_MESSAGE_BYTES, MAXIMUM_NAME_BYTES, MAXIMUM_LABEL_LEN, MAXIMUM_CHAIN, MAXIMUM_ADDRESSES). Section 248 (the resolver is its own confined program) and ยง252 (one zone per client badge) shape the callers and not this crate. Milestone 1017 (the contract crates leave in this order) places this crate in step 5 with the process-tools leaves. This block reopens none of those except where a later rule contradicts a ratified name, and says so where it does (items 6 and 7).

Reuse: the template partsfoundry/crate-workflows and its scaffold, script/crate-standalone, script/crate-review-packet, helpers/name_release.py, Kani, cargo-mutants, cargo-fuzz. No new tool.

Finding status

Items 1 to 4 are under P0, 5 to 9 in the before-the-tag appendix, and 10 to 16 in the later items. The crate lives in partsfoundry/domain_name_system, tagged v0.1.0-pre.1.

Open decisions

None.

Goal

A stranger who finds domain_name_system on its own can tell in one screen that it is the DNS wire format a stub resolver needs, as pure computation. It covers a query for one name's IPv4 addresses, the checks a reply must pass, and TCP framing. The same stranger can build, test, prove and fuzz it from the README alone, meets no name that needs this tree to decode, and finds the repository's gates green for the crate's own reasons. Nothing in the crate's shipped text points back into nife.

What was checked, and how

The tools run, the sources read and what was not run are in the appendix.

Prior art

The comparison with nearby work is in the appendix.

The items

Effort: XS is under an hour for a lane, S is half a day, M is a day or two. A door is one-way when somebody outside the repository acts on it after the release (a public name, a published behavior, a wire layout, a dependency). Everything else is two-way and the maintainer decides it. Line numbers are crates/domain_name_system/src/lib.rs unless a path says otherwise.

P0: blocks the move

  1. DONE. Every public name carries a Name: block, and all are ratified as they stand (2026-11-16 UTC): helpers/name_release.py --draft domain_name_system lists none as provisional or without a block, and script/crate-standalone domain_name_system passes its names step. The ratification pull request's body is that table, which is the one record of these names, since the move commit strips the blocks. Door: each name is one-way once published; the block itself is two-way.

  2. DONE. The manifest does not stand alone. Finding: the manifest inherits license and lints from the nife workspace, there is no rust-version, no description, repository, readme, keywords or categories, and the publish = false line's comment names crates/publish-allowlist.txt, a file the new repository will not have. The header comment cites milestone 384 (nothing here resolves a hostname, and in a capability system the resolver is a grant) and notes/name-resolution.md. Evidence: crates/domain_name_system/Cargo.toml lines 4 to 17; crate-standalone findings inherits license, inherits lints, no rust-version, 2 milestone citation line(s). Change: inline license = "MIT OR Apache-2.0". Inline the [lints] table the template's standalone.py requires (unsafe_op_in_unsafe_fn, missing_docs, unexpected_cfgs with cfg(kani) in its check-cfg list, and the clippy rows the workspace carries). rust-version = "1.88" (the floor as_chunks_mut sets; confirm with cargo +1.88 test before the tag). A one-sentence description. repository, readme, categories = ["no-std", "no-std::no-alloc", "network-programming", "parser-implementations"], keywords = ["dns", "stub-resolver", "no-std", "rfc1035", "rfc7766"]. Replace the publish comment with one a stranger can act on, and the header comment with the crate's one-line purpose. Door: two-way (publishing itself has a ruling elsewhere, not reopened here). Effort: XS.

  3. The files a stranger needs are absent: README, LICENSE-MIT, LICENSE-APACHE, and the scaffold's CHANGELOG.md, _typos.toml, deny.toml, rustfmt.toml, docs/stranger-test.md and caller workflows. Finding: the crate directory holds Cargo.toml, src/, tests/ and falsifications/ only. The template's check / standalone refuses a crate with no README, and its helpers/readme_sections.py wants ## EXAMPLES and ## BUGS, which the crate's root doc comment already has in substance (lines 1 to 24 and the four doctests). Evidence: crate-standalone findings no README, no LICENSE-MIT, no LICENSE-APACHE; cargo package --list ships ten files and no license text. Change: copy scaffold/ at the move as its README says. Write the README from scaffold/README-crate.md. It carries the badge row, the Query::accept doctest as the example, the three harnesses by name and the Kani install line on one line. It also gives the measured proof cost (about 65 seconds for the three harnesses here, memory not measured). It adds one falsification run with its printed VERIFICATION:- FAILED, the BUGS list from the root doc, the minimum Rust version and the type sizes measured above. Record the first stranger run in docs/stranger-test.md. Door: two-way. Effort: S. DONE: the README and both license files, the scaffold's other files and caller workflows from the move, and the stranger run in docs/stranger-test.md.

  4. Shipped text points into nife. DONE. Finding: line 4 sends the reader to notes/name-resolution.md. Line 7 names fuzz/fuzz_targets/domain_name_system_reply.rs, a path in nife (item 5 moves the target). Lines 262 to 263 cite milestone 384 and say nothing applies is_within, which crates/domain_name_resolution_contract/src/grants.rs line 180 does. Lines 369 to 371 cite crates/multicast_dns_protocol, a commit hash and milestone 298 (retire the multicast DNS responder and its two crates, which advertised a goal that is gone), which a stranger cannot open. The move strips the crate-name block at lines 21 to 24, so it needs no edit for it. Evidence: crate-standalone findings 5 path into the nife tree line(s), 1 provenance block line(s); the lines above. Change: line 4 becomes "which program sends these bytes, and which names a client may ask about, are the caller's policy". Line 7 names the crate's own fuzz/ directory. Lines 262 to 263 say what is_within is for (a resolver grant scoped to a zone) without the milestone. Lines 369 to 371 keep the one useful fact, that the engine is separate so Kani can prove the loop at a small output size, and drop the lineage. script/crate-standalone must report zero citations. Door: two-way. Effort: XS.

P2: later

The P2 items are in the appendix.

P1: before the tag

The P1 items are in the appendix.

Decisions for the architect

Each is a rule in force. The ratification of every public name as built, 2026-11-16 (UTC), covers the first three. Decision 4 dates from 2026-11-19 (UTC).

Decision 1. MAXIMUM_LABEL_BYTES and HEADER_BYTES

A DNS label is at most 63 bytes and a message header 12. A length or a limit carries its unit, as MAXIMUM_NAME_BYTES and MAXIMUM_UDP_MESSAGE_BYTES already did, so the names are MAXIMUM_LABEL_BYTES and HEADER_BYTES, with no alias of the old spellings. A caller writes [0u8; MAXIMUM_LABEL_BYTES] and knows the unit from the name. Prior art: hickory-proto names its limit MAX_LABEL_LENGTH (unverified); nife's rule is stricter.

Decision 2. The specification's abbreviations in public names

A term a reader searches for keeps its spelling, with the expansion in its doc and a #[doc(alias)]; any other term expands. People say "question count", not "qdcount", and they do say "TTL" and "class IN". The names in force:

Prior art: hickory-proto spells the counts out and keeps ttl (unverified); the domain crate keeps qdcount() (unverified). Example: the resolver's check reads header.question_count != 1, and a reader who has never opened RFC 1035 knows what refused the reply.

Decision 3. MAXIMUM_IPV4_ADDRESSES, Answer::ipv4_addresses and Reject::NoIpv4Address

The crate returns IPv4 addresses only, and the template's register_names gate reads a bare address as a memory address. So the names say which kind: MAXIMUM_IPV4_ADDRESSES, Answer::ipv4_addresses() and its field, Reject::NoIpv4Address, and the test names to match, with no template exemption. domain_name_resolution_contract asserts the same limit, and reject_code keeps code 9. Prior art: std::net::Ipv4Addr and smoltcp's IpAddress name the kind where a reader looks first. Example: answer.ipv4_addresses() says what &[[u8; 4]] holds, and an ipv6_addresses() later needs no rename.

Decision 4. Write the package now and clear the move from it

The move follows notes/crate-move.md: a review package, the architect's review clearance, then the repository. Milestone 1017 (the contract crates leave in this order) places this crate in step 5, before domain_name_resolution_contract, which pins it as a git dependency. A lane writes the package now, from the crate as it stands, and the architect clears the move from it. The move does not wait for the resolver contract, whose names have settled. Creating a public repository is an outward step, so the clearance itself stays the architect's. Prior art: file_allocation_table and e1000e each cleared from a written package before their repository existed. Example: the architect clears the package, and script/crate-move domain_name_system creates partsfoundry/domain_name_system with the three mutant exemptions and the fuzz target staged.

Done when

The checks are in the appendix.

Follow-on

BUGS

Index row

An outside review of domain_name_system before it leaves. Four items block the move (48 unratified names, a manifest and files that do not stand alone, text pointing into nife). Five land before the first tag (the fuzz target moving with the crate, two length names under the units rule, the specification's abbreviations and the address gate, a TTL the RFC says to zero, the three equivalent mutants). Seven more are for later. The architect has ratified the three name decisions and cleared the move.