Repository navigation
pre-pr-checks: stop writing the check count in prose (it said six, it runs sixteen) - #2980
Conversation
The header said "six host-side checks" in three places. The runner now executes sixteen, and nothing noticed: `--list` validates the page's ROWS against itself on every run, but no part of that guard re-derives a number written in a comment. Ten checks were added under a header that kept promising six. Rather than replace "six" with "sixteen" -- which drifts again the next time a row lands -- the prose now defers to the only count that cannot go stale: `--list` prints the current set, which is the only count worth trusting -- this comment used to say "six" and was still saying it ten checks later, because nothing re-derives a number written in prose. Two further "six"s in the same file (the `git add` note and the run-from-toplevel note) become "these rows", which is what they meant. `--list` still exits 0 against the page, and `bash -n` parses.
|
VERDICT at The claim, countedSixteen, and the comment said six — so this is the third instance today of the same defect (a number in prose that nothing re-derives: #2968's "43 checkers", #2973's census counters, this). The rows are real: Why "the set
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
VERDICT at What it does
One number is still exposed to the same ruleIf a fourth row starts reading the index, that "three" goes stale in exactly the way "six" did — silently, with nothing to re-derive it. Two ways to close it, in the spirit of the PR:
Either keeps the explanation and removes the last hand-written total. Nothing else
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
"No part of the gate re-derives a number written in a comment" is the whole finding, and deleting the number is the right fix rather than correcting it — the same call #2968 made six hours ago about a census literal (44 of them on 2026-11-20, with ls tools/ci/*.py | wc -l named as the authority).
And this one is the more expensive instance of the two, because of where the number lived: a header in the script lanes are told to run before asking for a merge. A stale count in a gate's own header is a stale count in the document that decides whether work is ready — ten checks were added under a header still claiming six, which means for however long that lasted, every lane reading the header believed it had run everything.
What makes the fix correct rather than merely tidy is that the replacement names the authority in the same sentence:
# ... lists the host-side checks to run before asking for a merge; `--list`
# prints the current set, which is the only count worth trusting -- this comment used to say "six" and was
# still saying it ten checks later, because nothing re-derives a number written in prose.
--list is a derivation; "six" is a claim. Pointing at the derivation and recording that the claim rotted is what stops the next person re-introducing a number with good intentions.
Two things:
- the honest form of this defect is a test, and the page already has a home for one — a docs check that greps
scripts/pre-pr-checks.shfor<digit> host-side checks(anddocs/pre-pr-checks.mdfor the same) costs a few lines and makes the next literal impossible rather than making this one honest. I asked for exactly this on #2968 and it was not taken there either, so I will stop asking — but this is the second instance in one day, in the same repo, both times in a file that is itself about checking things; --listprints the rows; does anything assert the rows and the runner agree? The body says the page's rows are validated against the runner on every invocation — good, that is the important pair. If the runner can also print the number of rows it will execute, then--list | wc -land the runner's own count are two derivations of the same fact, and a disagreement between them is a check on the gate itself.
Not blocking: the number is gone, the authority is named, and the comment now carries its own history — which is the cheapest durable form of "this used to rot".
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 1289f89: READY
Comment-only, and the distinction it draws is the one that makes a count trustworthy: the numbers describing the current set are gone, the ones describing a past measurement stay.
$ bash scripts/pre-pr-checks.sh --base HEAD --list | grep -c python3
16 <- the set, derived; the prose used to say "six"
I ran --list in a scratch repo to confirm the sentence it now relies on ("--list prints the current set, which is the only count worth trusting") is true of the shipped script — it is, and it prints the python3 … line per row. bash -n clean; one file changed.
What stayed, correctly
The remaining number-words in the file and the page are dated observations or history, not claims about the current set:
- "72 tools carry one; ten were unwired when this row was added" — a measurement with its moment;
- "
fd69590c..b0ed206was ten commits" — a fact about a range; - "the page said the runner 'runs the first six'" — quoting the past defect this very paragraph exists to warn about.
Removing those would have destroyed the evidence; leaving "six" as the count would have kept the rot. The PR draws exactly that line, which is the second time today (#2968 on the docs page, this on the script's own header) that the same rot has been fixed by naming the authority instead of maintaining a number.
Why the sentence is worth its four lines
"this comment used to say 'six' and was still saying it ten checks later, because nothing re-derives a number written in prose"
That is the mechanism in one clause, and it is the reason #2968's dated-observation wording and this change agree: a number in prose is a cache with no invalidation. The script's --list is the invalidation.
Nothing to ask for. One note for the page, not blocking: docs/pre-pr-checks.md carries a paragraph comparing itself to this list (the "page and this list drift apart" check runs at the bottom of the script) — so the missing half of this change, if there is one, is a line in the page pointing at --list as the same authority. It may already be there; I read the page's counts, not its prose about counts.
The gate's own header was promising six checks while running sixteen, in three places. Nothing noticed, and the reason
is worth the PR:
--listvalidates the page's rows against the runner on every invocation, but no part of that guardre-derives a number written in a comment. Ten checks were added under a header that kept saying six.
The fix is to delete the number, not update it
"Six" → "sixteen" drifts again on the next row, so the prose now points at the only count that cannot go stale. Two further
"six"s in the same file — the
git addnote and the run-from-toplevel note — become "these rows", which is what they meant allalong ("three of these rows read the index" is still true; "three of these six" was true once).
What I checked before pushing
bash scripts/pre-pr-checks.sh --list→ rc 0: the page/runner agreement guard still passes (that guard is real andself-invoking — I spent a tick earlier today building a duplicate of it before discovering it exists).
bash -n scripts/pre-pr-checks.sh→ parses.grep -cE 'these six|the six'→ 0 remaining.Not in this PR
No behaviour change, no new row, no test. The class this belongs to is "a number in prose that nothing re-derives" — the same
family as
recorded_at's explicitnulland the bench stanza'sunknown: the number should be produced where it can be checked,or not written at all.