P2: later
An appendix to the milestone.
P2: later
-
NameSet'sDebugprints byte lists. Finding:Namedebugs as the name,NameSetas[[97, 46, ...]], becauseiteryields&[u8]. The baseline triage recorded this as a deferred finding and pinned it as is. Evidence:src/expansion.rslines 103 to 108 and 749 to 752. Change: render each name throughName's impl (orfrom_utf8with the byte fallback) and change the pinned test on purpose. Door: two-way. Effort: XS. -
job_operandandkill_operandsreturnResult<_, ()>. Finding: both carry#[allow(clippy::result_unit_err)]and answerErr(())for a tail that names no job. Every other failure in the crate is a typedRefusalornav::Refusedwith a sentence; these two leave the shell to invent one. Evidence:src/parsing.rslines 204 to 245. Change: aRefusalvariant (or a smallJobOperanderror enum with amessage), before the release while the signature is free to change. Door: two-way before the release. Effort: XS. -
Windows::set_boundandis_boundshift by an unchecked window number. Finding:1 << wwithwau64the caller supplies;newbounds the pool butset_boundandis_boundtake anyw. In a release build awof 64 or more wraps to a low bit, so a wiring mistake in the progenitor would set another window's bound bit; in a debug build it panics. Evidence:src/job_windows.rslines 101 to 112. Change:debug_assert!(w < MAXIMUM_WINDOWS as u64)or aboolreturn on an out-of-range window, and a test. The module stays in nife under item 1, so this is the shell's and the progenitor's to take. Door: two-way. Effort: XS. -
Tests pin only thirteen of twenty-eight wire ids. Finding:
the_wire_ids_already_shipped_never_movelists ids 0 to 12; ids 13 to 27 have shipped since in images and nothing but the table itself pins them. Evidence:src/program/tests.rslines 18 to 32;src/program/catalog.rslines 281 to 435. Change: extend the table to every id the image has shipped. The catalog stays in nife under item 1, so this is nife's test. Door: two-way (the ids themselves are one-way and are not touched). Effort: XS. -
The crate's one example of use is a test helper. Finding:
test_support::plan_lineis the only place that runsline::split,parse,redirect_targetandplan_stagetogether, which is how a shell uses the crate. It ispub(crate)andcfg(test). The crate root's doc comment names the three entry points and no sequence. Evidence:src/test_support.rslines 97 to 142;src/lib.rslines 1 to 15. Change: anexamples/plan_a_line.rsbuilt fromplan_line, with aManifestwritten out in full (which also shows a stranger what a manifest is), and the README's## EXAMPLESsection pointing at it. Door: two-way. Effort: S.