P1: before the tag
An appendix to the milestone.
P1: before the first tag
-
DONE (
#![forbid(unsafe_code)], and the crate's ownfuzz/since the move). The fuzz target lives in nife'sfuzz/workspace, not in the crate, and the crate's doc leans on it. Finding:fuzz/fuzz_targets/domain_name_system_reply.rsasserts the three properties the root doc relies on ("Query::acceptis total, and that is fuzzed", line 651), seeded bytests/fixtures. The template'sfuzz.ymlfuzzes only a repository with its ownfuzz/Cargo.toml, and publishes crash inputs only when the caller setspublic-crash-inputs: true, which the ruling allows for a crate with nounsafe. This crate has none (grep unsafefinds nothing), but it does not say so. Evidence:fuzz/Cargo.tomllines 68 and 159 to 160;notes/fuzzing/targets.mdsectiondomain_name_system_reply; the template README's fuzz section. Change: move the target intocrates/domain_name_system/fuzz/with its own manifest and lockfile in the shape of the template'sfixtures/fuzz-clean/fuzz/, seeding from../tests/fixtures. Add#![forbid(unsafe_code)]tosrc/lib.rsso the template's unsafe scan passes by declaration and a futureunsafeis a deliberate edit. Setpublic-crash-inputs: truein the caller. Leave a stub in nife'sfuzz/Cargo.tomlonly ifscript/fuzzstill lists the target, else remove the row. Door: two-way. Effort: S. -
Two length names break the units rule, one of them ratified before the rule. DONE (
MAXIMUM_LABEL_BYTES,HEADER_BYTES, ratified). Finding:design/naming.mdsays a length or a limit carries its unit and givesMAXIMUM_NAME_LENas the form never to write.MAXIMUM_LABEL_LEN(line 47) is that form, ratified in #2797 before the rule, and the crate-reviews index says a release review reopens a name ratified before a later rule.HEADER_LEN(line 50) has the same shape and no ratification. The template'sregister_nameshelper did not flag either here, so a gap in the helper stays unconfirmed. The written rule is clear without it. Evidence: lines 47 and 50;design/naming.md, "Units". Change:MAXIMUM_LABEL_BYTESandHEADER_BYTES, with the four nife callers that name them updated in the same pull request. Decision 1 settles this. Door: two-way before the first tag. Effort: XS. -
Public names a stranger cannot read without the specification, and names the template's gate refuses. DONE, part b in the crate's own repository after the move. Finding, part a:
Header::{qdcount, ancount, nscount, arcount}andHeader::rcode(lines 136 to 143, 179),Question::{qtype, qclass}(lines 428 to 430),Record::{rtype, rdata, rdata_off, ttl}(lines 441 to 449),FLAG_QR,FLAG_TC,FLAG_RD,RCODE_MASK,RCODE_NAME_ERROR,CLASS_IN(lines 53 to 76) andcname_target(line 518) are the specification's abbreviations. The naming page keeps a term a reader searches for, with its expansion and a#[doc(alias)], and expands every other term.rdata_offholdsoff, an abbreviation no rule keeps. None of these carries an alias or opens with its expansion today. Finding, part b:MAXIMUM_ADDRESSES(line 88, ratified in #2797),Answer::addresses(line 579), the fieldaddresses(line 571),Reject::NoAddress(line 565), a binding at line 771 and seven test names fail the template'sregister_namesgate at a ceiling of zero. The gate reads anaddressas_VIRTUAL_ADDRESSor_PHYSICAL_ADDRESSunless a qualifier from its list (ip,ipv4,ipv6,macand others) stands before it. The crate would arrive red atcheck / standalone. The crate is IPv4-only (its BUGS say so) andaddresses()returns[[u8; 4]], so the qualifier is also the honest name once AAAA arrives. Finding, part c:spelled_outflags the bindingpos(line 374) and the testaddresses_past_the_cap_are_dropped_and_the_rest_kept(tests/replies.rsline 319,cap). Finding, part d:register_namesflags the fieldName::len(line 197) as a length without a unit. It is private, mirrors the standard library'slen, and the fix is the doc opening the helper asks for, orlen_bytes. Evidence: the helper outputs quoted under "What was checked" and the lines above.crates/domain_name_resolution_contract/src/lib.rsline 50 assertsMAXIMUM_ADDRESSESequal to its own, andsrc/messages.rslines 46 to 58 number everyRejectvariant. Change: parts a and b are Decisions 2 and 3. Parts c and d are the maintainer's:position,..._past_the_limit_..., and a doc opening orlen_bytes. Whatever the rulings, every kept specification term gets#[doc(alias)]and an opening expansion, and the crate's.github/accepted-wordsliststcpandudpwith reasons if the abbreviations report names them. Decisions 2 and 3 settle parts a and b. Door: two-way before the first tag. Effort: S for the rename pull request across the four nife callers. -
The crate believes a TTL with its high bit set as written. DONE (
a_time_to_live_with_the_high_bit_set_is_zero). Finding: RFC 2181 section 8 says a receiver treats a TTL with the most significant bit set as zero.accepttakesrecord.ttlintominat lines 750 and 770 unchanged, so a reply carrying0xffff_ffffyieldsAnswer::ttl()of 4,294,967,295 (probed), andcomponents/src/domain_name_resolver.rsline 283 hands that to its clients as how long to believe the answer. Nothing caches today, so no current user is wrong; the claim "how long the whole answer may be believed" (line 583) is. Evidence: lines 750, 770, 583; the probe above. Change: one helper,fn believable_ttl(ttl: u32) -> u32 { if ttl & 0x8000_0000 != 0 { 0 } else { ttl } }, applied at both sites; one test with such a record; one sentence onAnswer::ttlciting the RFC section. The alternative, refusing the reply, loses an answer that is otherwise good for the sake of a field the RFC itself says to zero. Door: two-way (a behavior fixed before any release). Effort: XS. -
DONE (six exemptions, and a green full run on
main). The three equivalent mutants need a home in the new repository. Finding: the census records three survivors (Name::is_within<to<=, two|to^on disjoint bit ranges), each triaged as equivalent with a reason. The template'smutationworkflow goes red on a survivor absent from.github/mutants-exempts, and the release gate reads that verdict. Whether the four timeouts count against the gate stays unverified. Evidence:notes/project-metrics/mutation-triage.csvlines 736, 739, 743; the scaffold'smutants-exemptsheader. Change: carry the three lines and their reasons into.github/mutants-exemptsat the move, and dispatchmutation.ymlonce onmainbefore the tag so the gate has a green full run. Door: two-way. Effort: XS.