Repository navigation
Measure recall on real regressions (15% raw, 44% within Blot's model) - #53
Merged
Merged
Conversation
bench/regressions.py collects culprit/fix pairs from each reference repo's full history (reverts, Django's "Regression in <sha>.", "introduced by", Fixes: trailers, React's "Reverts facebook/react#N"), replays each culprit at its parent with only its ancestors visible, and reports recall from hand judgements stored in bench/regressions/<repo>.json. 137 pairs, 71 real bugs, 11 warned on target. All 6 in-model misses are classification gaps; none came from tracing or the matcher. No check changed.
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First recall measurement for Blot: of the commits that later turned out to cause a bug, how many did Blot warn on at commit time? This PR only measures. No check or classifier changed, and nothing in
src/blot/was touched.Headline
Regression in <sha>., "introduced/caused by ",Fixes:, ReactReverts facebook/react#N) across the full history of the 5 reference repos. After filtering, 137 pairs remain (newest 40 per repo for Django and React). 71 are real bugs. The other 66 were reverted for reasons that aren't bugs: wrong branch, flag rollouts, design changes.Top miss reasons (52 real-bug misses)
b149be5"loosen URL handling for non-native URL schemes"641f461"Make sure proxies have their scheme attached."3afbcd0"… Closes #632"d4076cf"strip the ending slash …"44dd91e"Fixed #4015 -- Changed …" (severity 1)857b104"Fixed #34619 -- Associated …"No miss came from tracing or the matcher.
Improvement ideas from the misses (all unmeasured)
Fixed #N --at severity 1 ("Changed …", "Associated …"): 2 of the 6 gaps. Judging these by the ticket's type (Trac "Bug" vs "New feature"), the way--githubuses labels, might recover them without the noise of the dropped "fix word + PR number" rule.--githubon the culprit replays: Express3afbcd0"Closes #632" is a GitHub issue that labels could upgrade. Worth runningregressions.py runwith GitHub enrichment as a follow-up.9c19aff7): tracing stopped at the reformat on 5 lines whose real origins were fixes (#27417, #26614, #22288, #36689, #26788). Those culprits were caught through other lines, so recall wouldn't move here, but warnings would cite more precise fixes. This supports the existing "KeptLines in the refactor hop" lead.What's in the PR
bench/regressions.py:collectfinds and filters pairs (counts per filter, keeps judgements on re-run).runreplays each culprit at its parent via_ReplayStore, with co-change counted over the culprit's own ancestors. It also records, for each warning, whether the later fix touched that hunk (near_fix), and the traced origin of every removed line.reportprints the tables.bench/regressions/<repo>.json: the 137 pairs, the warnings, and abug/verdict/notejudgement per pair. A revert counts as a bug only when a message, PR, changelog or ticket says what broke.tests/test_regressions.py: reference patterns,AncestorCochangematching a real index built at that commit, an end-to-end collect → run on a scripted revert,near_fix, and the summary.bench/RESULTS.md, a section inbench/README.md, and an update toCLAUDE.mdState.Checks run
pytest: 214 passed, 1 skipped.blot bench --workdir %LOCALAPPDATA%\Temp\wl\b33: 33/33.Caveats: one judge; the newest 40 pairs only for Django and React; reverts without a stated reason count as "not a bug".
🤖 Generated with Claude Code