P2: later
An appendix to the milestone.
P2: after the first tag
-
src/wire.rscarries the spawner's half into the standard library. Finding: the module gets copied whole into the std platform layer, and the std client uses its client half only (request, the two client operations, the offsets, the two limits,Outcome,status,network_step).control_word,control_fields,OPERATION_GRANT,OPERATION_FORGET,GRANTS_MAXIMUMandis_canonical_zoneride along unused. Change: split the file into the client's page and words (the copy) and the spawner's control words. Or leave it and say in the module's head which half the copy is for. Door: two-way (the module paths are re-exported at the root). Effort: S. -
The root zone has three spellings, and two tiers of zone spelling have no map between them. Finding: on the wire the root is the empty text (
src/messages.rsline 9).installed_programsspells it"."(crates/installed_programs/src/grants.rsline 110) and converts.is_canonical_zonerefuses"."and accepts""(src/wire.rslines 40 to 64).Name::from_dottedaccepts both. Separately, a canonical zone is lowercase, without_and without a trailing dot, while the grant table accepts uppercase,_and a trailing dot, so a zone the table grants may be one the manifest refuses. Both facts are by design, and two different crates state them. Change: the contract ownsROOT_ZONE: &str = "", and the README states the two tiers in one paragraph: what a configuration may write, and what the wire accepts. Door: two-way (additive). Effort: S. -
Small shapes. Finding:
GrantsandEntryderive noDebug, so a test failure prints nothing of the table.Control::Granted(usize)andForgotten(usize)carry a bare window index.grant_messages'szone.get(start..).unwrap_or(&[])(src/messages.rsline 20) cannot miss, sincestartis always below the length.port_and_transportaccepts anytransportvalue, and the resolver reads anything that is notTRANSPORT_TCPas UDP (components/src/domain_name_resolver.rsline 133). The size ofGrantsis about 4,160 bytes by hand (eight entries of a 256-byteName, a 254-byte text buffer and the small fields), computed, not measured. Change: deriveDebug(printing the dotted zone, asNamedoes). AWindownewtype or a doc sentence that the index is the window. Drop the dead branch. The resolver refuses a third transport at start (decision 4). A size test that states the figure. Door: two-way. Effort: S.