Repository navigation
v1.2.0 — sweep the blast radius of an added guard
Three gaps found by a real miss, not by rereading the skill.
A spec set passed review clean, went through verify, shipped — and the post-implementation review found a defect the sweep had no question for. All three patches come from that one miss.
What changed
A gap-sweep kind for adding a check — #1
gap-sweep.md had a kind for deleting or relaxing a check and none for adding one. They fail differently.
An early return partitions its function. Everything above it keeps running on the very input the guard just declared untrustworthy. The diff looks like one line; the blast radius is every statement that precedes it.
In the real case the guard landed below a sibling write of the same stale sample. One consumer got fixed, its neighbour did not — and the two then contradicted each other on screen, where they had previously been consistently wrong. A partial fix that reads worse than the bug.
The new kind asks five things: what runs above the return, which of those write state, who reads those writes, what else the guard skips, and whether its condition can get stuck. The third one is what catches this class.
verify now routes back through review — #2
verify ended at "Then sync". But a refuted hypothesis does not only correct the registry — it can move the fix. When the plan changes shape, the thing about to reach implementation is not the thing review swept.
review already said "run it again whenever changes[] grows" — in review's own section, where nobody rereads it while working in verify. The edge is now written where it fires.
A cross-cutting sweep: every consumer of the corrupted datum — #3
A defect corrupts a value, not a file. changes[] is organised by file, so it never asks who else reads that value.
This generalises implementable.md's "wire every constant end to end" — which already knew the "N sites, you touched 1" failure but only encoded it for new constants — to the data an existing defect flows through.
A clean sweep now declares its scope
The file already demanded this humility for a missing stack layer. It now demands it one level down: a clean sweep is clean for the kinds that exist, and says so. Reporting a bare "clean" over a change no kind covers is exactly how the gap above stayed invisible.
Upgrading
Nothing to migrate. Existing spec sets, _facts.yml files and _profile.yml files are unchanged — this release only adds questions the sweep asks and one edge in the flow.
Worth re-running review on any in-flight set whose plan changed after a verify.
Known limitation
Every rule here is prose. None of them is checkable by audit, which is the mode that runs mechanically. The original miss happened because a rule that already existed was written where nobody rereads it, so "we wrote it down" is not by itself sufficient.
Tracked in #4, which proposes making the verify → review edge an audit check.
Each section above links the issue with the full incident write-up: the real case, what the sweep was asked and why it answered clean. Milestone: v1.2.0.