Rendered from docs/obligations/0230-comments-in-the-command-surface-crates-and-their-subsystem-spec-state-eight-stale-facts.md in the Headwater
corpus. Every document on this half of the site is typed by the taxonomy
the descriptor names: corpus.json.
Comments in the command-surface crates and their subsystem spec state eight stale facts
Context
The builds and verifies of #1288 slices (d) and (e) in run 20261001-1107 found eight comments that state facts the code no longer holds. Each was checked on d309e914. None has a reader outside this repository, because each is a comment that a contributor reads, and #1563 already carries six other stale crate comments at its clause cap. This is the third spec 13 record of the run, so it lists the rest together, as hw-run-policy asks.
Obligation
- The module doc of
engine/crates/generate/src/verb_index.rssays thatheadwater_verbs::VERBSis the dispatch table of the binary. The doc heading ofdispatchinengine/crates/cli/src/main.rssays the same, and the body under it says that theclaptree now decides.docs/subsystems/command-surface.mdstates that the array does not decide which verb runs. - The module doc of
engine/crates/cli/src/lib.rssays "Color is declared off. Nothing here emits an escape sequence".command_innow setspaint::color_choice(mode)andpaint::help_styles(mode). bannerinengine/crates/cli/src/paint.rswrites the tagline as a literal and does not readheadwater_verbs::TAGLINE. The two strings match today, and nothing holds them together.- The
Verb::Othercomment inengine/crates/cli/src/lib.rsand the doc ofdispatchinmain.rssay thatclapnames at most one near miss for an unknown subcommand. clap 4.6.6 with thesuggestionsfeature lists every candidate above a Jaro score of 0.7. - The module doc of
engine/crates/paint/src/lib.rsand the module doc ofengine/crates/check/src/paint.rssay thatheadwater-checkdepends onheadwater-lock.engine/crates/check/Cargo.tomlnamesheadwater-lockonly under[dev-dependencies], so the cycle argument holds for census and resolve and not for lock. - The comments in
engine/crates/probe/Cargo.tomlandengine/crates/sweep/Cargo.tomlgive the reasons each crate namesheadwater-check. They omitheadwater_check::paintin both, and reciprocity andShape::descends_fromin sweep. docs/subsystems/command-surface.md, section The parse, and the words a caller reads, says that the comments on the derive types are//comments. TheShellenum inengine/crates/cli/src/lib.rscarries///comments, whichclapignores on a value enum.docs/subsystems/command-surface.mdcallsVERBSan array. It is a slice.
Discharge
Each item discharges alone, when the comment or the sentence states what the code does, or when the code changes to match it. For the tagline, a test or a shared constant holds the two together. The record discharges when every item has.