Repository navigation
test(review): regression harness keeps real defects reported and false alarms caught - #527
Merged
Merged
Conversation
…e alarms caught Closes the #509 audit. About 60 mechanisms that change a finding's fate were audited layer by layer; the consequential ones are fixed in #500, #512, #513, #514 and #515, and the rest are tracked in #498, #499, #516 and #519. The harness drives 23 golden real defects, taken from the synthetic corpus's injected defects and the audit's reproductions, through every layer that runs without a model: - a persona reply carrying a malformed field; - reset of persona-written state; - consolidation; - deterministic pre-verification against files on disk; - the report's filter. Each must be reported. Two groups of distinct defects must stay distinct, and nine known false alarms must still be invalidated. Reintroducing the missing-symbol trigger, a persona setting its own status, or filler words merging defects fails it. It found one interaction: when verification drops a line past the end of the file, consolidation merged line-less findings about different secrets by title. Line-less findings that name different code symbols now stay apart. Closes #509
This was referenced Sep 24, 2026
fix(review): audit every mechanism that discards or invents findings, with a regression harness
#509
Closed
Merged
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.
Closes #509.
Summary
The #509 audit is complete. About 60 mechanisms that change a finding's fate were audited layer by layer:
This PR adds the CI regression harness the audit promised, plus the one defect the harness found.
Harness (
tests/test_review_regression_harness.py,tests/golden/review_findings.json)23 real defects, taken from the synthetic corpus's injected defects and the audit's reproductions (never from the verifier under test), are driven through every layer that runs without a model:
Each must come out reported.
2 groups of distinct defects must stay distinct: filler-word titles, and the same title far apart.
9 known false alarms must still be invalidated: PEP 758 syntax, a defined symbol, masked-marker syntax, a placeholder CVE, a claim below the runtime floor, monologue, compliment, a fixture token, non-strict
resolve().Mutation check. Each of these audited defects, reintroduced, fails the harness:
Defect found by the harness
Verification drops a line past the end of the file (#513). Consolidation then merged the line-less "Hardcoded secret" about
DB_PASSWORDinto the one aboutAWS_KEYby title. Line-less findings that name different code symbols now stay apart (_name_different_symbolsinreview_schema.py).Live corpus (10 injected defects, all personas)
The remaining loss is the verifier model's reasoning quality, which #475 measures per backend.
Test plan
uv run pytest tests/test_review_regression_harness.py: 34 passeduv run devops ci --force: all 13 gates pass