125. A number in the prose is a claim, and nothing re-derives it
Built (2026-08-16). Minted 2026-08-14 by calef, after asking whether the tree needed a milestone to audit its documentation for outdated content. It does not, quite: the audit is the wrong shape for the class of staleness that actually recurs, and this is the right one.
What landed. The <!--count:NAME--> marker, the registry in script/lint's ==> counted claims
block with three entries (kani-harnesses, harness-crates, sh-scripts), and
notes/counted-claims.md. Ten markers across five files; the check
costs about 80 ms. Every count in the table below had drifted again in the two days between the
minting and the build: 119 harnesses across 21 crates, and 40 shell scripts. AGENTS.md's figure is
still unmarked, because a lane may not edit that file.
And the gate found something on its first run. harness-crates is derived from the tree while
script/verify proves a hand-kept list, and they disagreed by one. mdns_proto landed with
milestone 55 carrying three harnesses and was never added to that list, so nothing proved them and
the suite went green faster for it. That is precisely the invisible failure
notes/verification.md warns about under sharding, arriving through the
crate list instead. Row added, cost measured at 21 s.
The evidence, because the answer turned on it
Three claimed counts were tested against the tree on 2026-08-14. All three were wrong.
| claim | where it lives | the tree |
|---|---|---|
"the 23 #!/bin/sh scripts" |
script/lint, .github/workflows/ci.yml |
36 |
| "107 harnesses across 19 crates" | notes/verification.md |
110 across 19 |
| "112 Kani proof harnesses" | CLAUDE.md |
110 |
The last two disagree with each other as well as with the tree, which is the finding rather than a
detail: each number is a snapshot of whenever somebody last counted, and nobody re-derives one.
The 23 had drifted by thirteen and sat in two files.
DECISIONS §39 says a name is a claim. So is a number, and it is the kind of claim a machine can check, which is what separates this milestone from an audit.
Two other classes, measured and deliberately excluded
TODOs that name a milestone. Mechanically checkable (a TODO citing a BUILT milestone is provably
stale) and not worth a mechanism: the whole tree has two, and one of them is a retrospective in
notes/teardown.md about a TODO that was already removed. A gate with one live subject is a gate
nobody remembers exists.
Prose that asserts the system lacks something it now has. notes/stack.md carried "We don't
have that" about guard pages, with a TODO for milestone 4, from milestone 1 until 2026-08-14.
Milestone 4 built them for the boot stack and milestone 90 finished the job. This class is real and
not checkable: it needs a reader who knows the system. Milestone 117, the stranger test, is the
milestone for it, because a stranger working through the tree is exactly who trips over a claim that
stopped being true. This milestone should not duplicate it.
What to build
A count that can check itself, and the marker is what makes it checkable:
**110 harnesses** <!--count:kani-harnesses--> across 19 crates
script/lint finds every marker, re-derives that number from the tree, and fails on a mismatch with
both values and the file. The registry of derivations lives in the gate, one entry per name, each a
command or a short expression over the tree.
Start with the counts that already exist and are already wrong: kani-harnesses,
harness-crates, sh-scripts. CLAUDE.md's block of figures (crates, user programs, lines of Rust,
commits) is the obvious next tranche and is deliberately not first, because that paragraph is prose
about a method rather than a reference table. Marking it up needs a judgment about how much
machinery a piece of rhetoric should carry.
It is a ratchet, not a sweep. An unmarked number stays unchecked, so the population grows as people touch numbers rather than in one pass. A marked number can never drift again. The one-time correction falls out as a side effect: you cannot land the gate without fixing what it finds.
The adjacent finding, which is the same shape one level out
While notes/stack.md was being edited on 2026-08-14 it turned out to contain, from milestone 3:
into_iter()on a large array is a real kernel footgun. Useiter()and borrow.
That note is about allocator_never_hands_out_the_kernel in kernel/src/memory.rs, whose
[None; 1024] had overflowed the stack, corrupted .text and hung the kernel. The array was shrunk
to 64 and the into_iter() was left in place. At 64 elements it still built a 4224-byte
temporary, over the 4096-byte guard page, and script/stack-frame-check caught it eleven months later.
So the doc was right, stayed right, and the code drifted back under its own advice while nothing looked. A written rule with no mechanism decays, and it decays the same way whether the rot is in the prose or in the code the prose describes. That is the argument for this milestone's shape: converting claims into checks, rather than reading claims and correcting them.
What "done" means
Every count named in the registry marked at its sites and passing. The three wrong numbers above
corrected. notes/ documenting the marker convention so the next person adds one without asking.
A recorded note that the gate covers marked counts only, which is the honest boundary of what it
buys.
Prior art
Code to use: none needed. This is a grep, a small registry and a comparison, in the same shape as
script/lint's existing script-docs and naming-provenance checks.
A design to copy: script/names --check's posture, which is the closest relative in the tree. It
insists a name carry a provenance state and never that the state be ratified, because a gate that
demanded ratification would block every unrelated merge behind a review queue. The same restraint
applies here: insist a marked number be right, never that every number be marked.
A mistake to avoid: a gate that re-derives a count by a method subtly different from the one a
human would use, so it fails on a correct document. The #!/bin/sh count is the warning: ls script/
gives 32, the shellcheck gate covers script/* helpers/*.sh which is 37 files, and "how many #!/bin/sh
scripts" has at least three defensible answers. The registry entry must say which question it
answers, in the same words the prose uses.
BUGS
- Only marked counts are checked, so an unmarked wrong number is invisible and the gate reports nothing about it. That is the ratchet working as designed, and it means "the gate passes" never means "every number in the tree is right".
- A marker can lie about what it counts. Nothing checks that
<!--count:kani-harnesses-->sits beside a sentence about harnesses rather than about crates. notes/counted-claims.md states the limit this shares withscript/names --check. - Some counts are expensive to derive. Anything needing a build (the frame counts from
script/stack-frame-check, for instance) does not belong inscript/lint, which runs constantly. The registry should refuse an entry it cannot compute cheaply rather than quietly slow the gate. - Counts that span the tree are the integrator's at merge (CLAUDE.md), and a gate does not change that: two lanes can each mark a number correctly for their own branch and disagree after the merge. The gate turns that from a silent wrong number into a failing check, which is the improvement, not a cure.
Follow-on
- Milestone 117. Prose that asserts the system lacks something it now has, the class this
milestone measured and deliberately excluded because no machine can check it.
notes/stack.mdcarried "We don't have that" about guard pages for months after milestone 4 built them, and it takes a reader who knows the system to notice. The stranger test is exactly that reader. - Recorded.
design/roadmap/0125-a-number-in-the-prose-is-a-claim.md: only marked counts are checked, so an unmarked wrong number is invisible and the gate reports nothing about it. That is the ratchet working as designed, and a green gate never means every number in the tree is right. - Recorded.
design/roadmap/0125-a-number-in-the-prose-is-a-claim.md: a marker can lie about what it counts, since nothing checks that it sits beside a sentence about the thing it derives. Presence is checkable, meaning is prose. - Recorded.
design/roadmap/0125-a-number-in-the-prose-is-a-claim.md: counts that need a build are too expensive forscript/lint, which runs constantly, so the registry refuses an entry it cannot compute cheaply and those numbers stay unchecked. - Recorded.
design/roadmap/0125-a-number-in-the-prose-is-a-claim.md: two lanes can each mark a number correctly for their own branch and disagree after the merge. The gate turns that from a silent wrong number into a failing check, which is the improvement rather than a cure. - Recorded.
notes/counted-claims.md:AGENTS.md's block of method figures is still unmarked, including a Kani harness count that was wrong the day it was written, because a developer lane may not edit that file. The workaround and the next tranche are both in that note.
Index row
Three claimed counts tested against the tree on 2026-08-14 and all three wrong: 23 shell scripts
against 36, 107 harnesses against 110, and CLAUDE.md's 112 disagreeing with both. §39 says a name
is a claim; so is a number, and unlike a name a machine can check it. Built as a <!--count:NAME--> marker, a registry of derivations in script/lint (kani-harnesses, harness-crates, sh-scripts), and a ratchet rather than a sweep; notes/counted-claims.md. Every
claimed count in the tree was wrong again two days later (119 across 21, and 40 scripts), and the
gate's own first run found mdns_proto's three harnesses in no shard of script/verify.
Deliberately NOT the prose-claims class (notes/stack.md said guard pages did not exist for
months), which needs a reader and is milestone 117's