Files
AiSOC/scripts/tests
Beenu Arora 5dd6124cfa chore(audit): recompute the claim-matrix tally after concurrent merges (#1649)
* chore(audit): recompute the claim-matrix tally after concurrent merges

`main` was failing `Claim-to-gate matrix (ratchet)` and taking five open
pull requests down with it. The summary block said Total 356 / GATED 351
while the table parses 358 / 353.

Nothing is wrong with the rows. Two PRs each added one and merged within
minutes of each other, and the hand-written summary is a separate
declaration of a number the table already holds, so a resolution that keeps
both rows still leaves the stanza describing the tree as it was before
either landed. The gate is doing exactly what it exists to do: it reads the
block back and refuses a figure that disagrees with the rows.

Recomputed with `scripts/check_claim_gate_matrix.py` rather than edited by
hand, and moved in all three places that publish it, since each is checked
against the matrix by `tests/test_readme_figures_gate.py` and a partial fix
would red the same build for the opposite reason.

* chore(audit): recompute the claim-matrix tally after concurrent merges

`main` was failing `Claim-to-gate matrix (ratchet)` and taking five open
pull requests down with it. The summary block said Total 356 / GATED 351
while the table parses 358 / 353.

Nothing is wrong with the rows. Two PRs each added one and merged within
minutes of each other, and the hand-written summary is a separate
declaration of a number the table already holds, so a resolution that keeps
both rows still leaves the stanza describing the tree as it was before
either landed. The gate is doing exactly what it exists to do: it reads the
block back and refuses a figure that disagrees with the rows.

Recomputed with `scripts/check_claim_gate_matrix.py` rather than edited by
hand, and moved in all three places that publish it, since each is checked
against the matrix by `tests/test_readme_figures_gate.py` and a partial fix
would red the same build for the opposite reason.

* chore(audit): recompute the claim-matrix tally after concurrent merges

`main` was failing `Claim-to-gate matrix (ratchet)` and taking five open
pull requests down with it. The summary block said Total 356 / GATED 351
while the table parses 358 / 353.

Nothing is wrong with the rows. Two PRs each added one and merged within
minutes of each other, and the hand-written summary is a separate
declaration of a number the table already holds, so a resolution that keeps
both rows still leaves the stanza describing the tree as it was before
either landed. The gate is doing exactly what it exists to do: it reads the
block back and refuses a figure that disagrees with the rows.

Recomputed with `scripts/check_claim_gate_matrix.py` rather than edited by
hand, and moved in all three places that publish it, since each is checked
against the matrix by `tests/test_readme_figures_gate.py` and a partial fix
would red the same build for the opposite reason.

* chore(audit): let the gate restate the tally instead of a human editing it

The stanza is the only place in the matrix that repeats a number the table
already holds, so it is the only thing that drifts. Two pull requests each add
a row, merge without conflicting, and the stanza is then stale by two while
describing a tree neither of them produced. The file's own prose has always
asked the reader to "recompute rather than editing a number here" and named no
command that would, so every fix was three files edited by hand.

--write restates the four figures from the parsed rows and prints what the two
prose sites must carry. It refuses rather than guesses: a duplicated stanza is
left alone because a writer cannot know which copy was meant, and a missing
figure is not inserted because where it belongs is a judgement about the
document. The prose sites are reported rather than rewritten -- a regex
confident enough to edit a sentence is confident enough to mangle one.

Proven against the defect rather than a fixture: with the stanza restored to
356/351 the plain run fails, --write repairs it, the plain run then passes, and
a second --write is a no-op. Six cases added, including both refusals.

* chore(audit): let the gate restate the tally instead of a human editing it

The stanza is the only place in the matrix that repeats a number the table
already holds, so it is the only thing that drifts. Two pull requests each add
a row, merge without conflicting, and the stanza is then stale by two while
describing a tree neither of them produced. The file's own prose has always
asked the reader to "recompute rather than editing a number here" and named no
command that would, so every fix was three files edited by hand.

--write restates the four figures from the parsed rows and prints what the two
prose sites must carry. It refuses rather than guesses: a duplicated stanza is
left alone because a writer cannot know which copy was meant, and a missing
figure is not inserted because where it belongs is a judgement about the
document. The prose sites are reported rather than rewritten -- a regex
confident enough to edit a sentence is confident enough to mangle one.

Proven against the defect rather than a fixture: with the stanza restored to
356/351 the plain run fails, --write repairs it, the plain run then passes, and
a second --write is a no-op. Six cases added, including both refusals.
2026-11-02 12:52:10 -08:00
..