roadmap BUILT

211. A harness that states its property through the function under test cannot see that function break

Swept 2026-09-01: 146 harnesses read, 11 measured blind, all 11 rewritten, and each carries a machine-replayable record of the defect its old phrasing could not see. The result and its method are in notes/falsification.md, under "The sweep for self-referential harnesses".

It has no gate and cannot have one: no check distinguishes "asserts through the function under test" from "legitimately asserts agreement", so the sweep's output is eleven falsification patches rather than a lint. After it, script/falsifications reads 35 of 145 replayable, over the wider walk of milestone 212 (script/falsifications walks crates/ only, so the ratio it prints is not the tree's).

What the sweep found

The number, for design/fatal-risks/README.md risk 2: 11 of 146. Not "11 harnesses that look suspicious": for each of the eleven there is a patch in the tree, and the pre-211 phrasing was run against that patch and observed to stay green while the rewritten harness goes red. Both directions, every time, because a claim about a proof is not evidence about a proof.

The eleven span seven crates and are listed with their defects in notes/falsification.md. Three kinds, and the third is the one nothing predicted:

Three more harnesses were rewritten and recorded as not findings, which is the discipline the whole exercise turns on. filesystem_proto's two attenuation proofs and capability_table::a_deleted_capability_stays_deleted have the shape and are not blind: the sweep tried to exhibit a defect their original phrasing misses and could not. They were made more direct anyway, and their comments say so. Writing "fixed a blind spot" over a hole nobody found is the same one-step-from-evidence failure §134 exists to end.

The mechanical narrowing was weaker than its hit rate. 23 candidates out of 146 and all eleven findings among them. Three of those eleven were flagged by a bug in the extractor rather than by a real call-graph edge, and a correct implementation of the test would have missed the whole encoder/decoder family. Every harness was read.

In brief. Milestone 194 (the falsification record, its lint, and the sweep that replays it)'s lane found it in capability, and notes/falsification/six-real-records.md states the generalization rather than the instance:

derive_never_widens_rights states its property through the predicate it is testing. It asserts derived.rights.is_subset_of(src_rights) while derive guards on rights.is_subset_of(src.rights), so a consistently wrong is_subset_of satisfies both sides and the harness cannot see the break.

-- notes/falsification/six-real-records.md

Milestone 202's lane then found the same shape in component_plan's proof, independently.

Two instances is a class. This milestone is the sweep that asks how many more there are.

Why it is worth a sweep rather than two fixes

The defect is invisible to everything this project has. The harness passes. kani::cover! passes, because the input set is not empty. Mutation testing does not reach cfg(kani) code at all. And until DECISIONS §134 (a harness carries a machine-replayable falsification record) landed, nothing even asked the question: it was found only because somebody broke the code and watched what stayed green.

It is also the most dangerous shape a proof can have, because it is load-bearing in one direction. derive_never_widens_rights genuinely catches the guard being dropped, which is what its recorded falsification does. It is blind only to the comparison the guard calls. So it is neither a good harness nor a useless one, and a reader seeing it green learns something true and something false at once.

The sweep

For every harness, ask: does the assertion reach the same function the code under test uses to decide? Where it does, the harness proves the two agree, not that either is right.

Mechanical narrowing is possible and should be tried before reading 145 harnesses by hand: a harness whose assertion calls a function that also appears in the guarded path is the candidate set, and it is smaller than the whole. The judgment is not mechanical, though: agreeing with itself is sometimes the property you want, and a sweep that flags every such harness as defective would be wrong.

Each finding is either a rewritten harness or a recorded reason it is fine. A rewritten one states the property independently, in terms the implementation does not get to choose, the way milestone 193's kernel harnesses state run arithmetic in u128 so the harness cannot repeat the implementation back at itself.

BUGS

Follow-on

Index row

Scopes design/fatal-risks/README.md risk 2, are the proofs load-bearing. 146 harnesses read, 11 measured blind, and measured is the word: for each one the pre-211 phrasing was run against a defect in the function it stated its property through and observed to stay green, while the rewrite goes red. All 11 rewritten, each carrying that patch as its §134 record; script/falsifications went 25 of 141 replayable to 33. Three kinds: the guard's own predicate, the value's own producer, and an encoder round-tripped through its own decoder, which no call-graph test can find. Three further harnesses were rewritten and recorded as not findings, because no defect their old phrasing misses could be exhibited. Method and the per-harness table in notes/falsification.md.