fix(scripts): re-pin the silent-revert clean row to the true closest sub-threshold miss - #2905
Conversation
…sub-threshold miss The clean row in scripts/silent-revert-incidents.txt existed to hold the canary honest at the bottom edge: it is supposed to be the closest a non-incident got to the 200-line threshold without crossing it. The pinned commit was not that. Measured over the file's own 500-commit corpus at the pinned git invocations, c8470ef scores 136 blamed lines -- sixth-closest of the eight commits in the 100-199 band -- while 9a2307c (#2189) scores 195, five lines under the threshold. This change pins 9a2307c as the lead clean row so a future threshold change that starts taxing ordinary development is caught by the row that actually breaks first. The old row stays as a second guard, with its note corrected: it credited the deleted content to #2679, which is a closed issue in this repository and not a pull request at all. The blamed lines trace to merge commit 6370a44, which is #2715, and the commit's own body agrees. Both counts are written as floors ("no fewer than") because attribute_file drops git blame's stderr (#2880), so any line blame fails on is silently not counted. Neither figure is asserted by the replay -- clean rows carry no bracketed attribution field (#2879) -- and the section now says so, since the old row's recorded 129 drifting to a measured 136 without anything going red is exactly that gap. Closes #2865 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwdkpWf6bptu3AqTMoeg2H
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
…sh-context verification The fresh-context verifier confirmed every figure but flagged two characterizations in the new second clean row's comment. "One step further from the edge" was wrong -- four other corpus commits (188, 182, 164, 148) score between 136 and the pinned 195. And 6370a44 has a single parent, so it is #2715's squash commit, not a merge commit. Both corrected; no row or figure changes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwdkpWf6bptu3AqTMoeg2H
|
Claude finished @kyle-sexton's task in 4m 58s —— View job Code review —
|
|
Claude finished @kyle-sexton's task in 1m 38s —— View job Security review (
|
|
Last security-reviewed head: |
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
Closes #2865.
What this fixes
scripts/silent-revert-incidents.txtpins acleanrow that is supposed to be the closest a non-incident got to the 200-line threshold without crossing it — the row that breaks first if a threshold change starts taxing ordinary development. The pinned commit was not that, and its note named a number that is not a pull request.Defect 1 (the re-pin). Measured over the file's own 500-commit corpus (
7b47d2253~500..7b47d2253) at the pinned invocations (#2843,GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_NOSYSTEM=1), the pinnedc8470efd0scores 136 blamed lines — sixth-closest of the eight commits in the 100–199 band. The true closest miss is9a2307c43(#2189) at 195 lines from3584ae1fa(#2183) — a margin of 5 lines, not the ~71 the old row implied.9a2307c43is now the leadcleanrow.Defect 2 (the wrong PR number). The old note credited the deleted content to #2679, which is a closed issue in this repository, not a pull request (
gh pr view 2679cannot resolve it). The blamed lines trace to6370a44e7, the squash commit that landed #2715 —gh api .../commits/6370a44e7/pullsreturns only #2715, and the commit's own body saysBuilds on merged #2715 → #2692 → #2690. The row is kept as a second guard with its note corrected, rather than dropped: it is still a verified-legitimate quiet commit, and keeping it costs a few lines of prose.Defect 3 (the "once a month" rate) was already fixed by #2847, which removed the rate claim from
scripts/check-silent-revert.shentirely. Nothing in this PR touches it.What this does NOT do
Neither clean-row figure is CI-asserted, before or after this change.
cleanrows carry no bracketed attribution field (#2879) — their assertion is the absence of findings, which has no per-culprit count to pin — so the 195 and 136 are hand-measured prose, not watched numbers. The old row's recorded 129 drifting to a measured 136 under the pinned invocations without anything going red is exactly that gap, and the section comment now states it so a reader does not mistake the re-pin for an assertion. Both counts are written as floors ("no fewer than") becauseattribute_filedropsgit blame's stderr (#2880), so any line blame fails on is silently not counted.Verification
9a2307c43reproduces 195 (75 linessong-forms-examples.md, 67box-model.md, culprit3584ae1fa),c8470efd0reproduces 136 (109 linespersist-findings.md, culprit6370a44e7).bash scripts/check-silent-revert.test.sh: 101 passed, 0 failed on this branch.scripts/check-silent-revert.sh --verify-known-incidents: exit 0 — all threefiresrows reproduce their attributions exactly, and bothcleanrows stay quiet.scripts/check-silent-revert.sh --verify-restoration: exit 0 — all 5 markers present.ok+ 2acknowledged+ 11 finding commits = 500) and reproduced every figure in the file. Its verdict: 195 at9a2307c43is the highest sub-threshold score — the next highest is 188 (3d69448cb) — so the leadcleanrow pins the true closest miss. The two acknowledged commits were re-run with the ack file disabled and score 447 and 323, both above the threshold, so neither could displace it.Related
cleanrows carry no bracketed attribution field, which is why neither figure in this PR is CI-asserted.attribute_filedropsgit blame's stderr, which is why both counts are written as floors.firesrows.🤖 Generated with Claude Code
https://claude.ai/code/session_01LwdkpWf6bptu3AqTMoeg2H