Skip to content

test(review): regression harness keeps real defects reported and false alarms caught - #527

Merged
dan-petty merged 1 commit into
release/v0.2.23from
fix/509-review-regression-harness
Sep 24, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.23from
fix/509-review-regression-harness

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

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:

    • a persona reply carrying a malformed field;
    • reset of persona-written state;
    • consolidation;
    • deterministic pre-verification against files on disk, the catalog included;
    • the report's filter.

    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:

Reintroduced defect Failures
Missing-symbol trigger on "missing" (#500) 12
Persona setting its own status (#512) 1
Filler words merging defects (#512) 1

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_PASSWORD into the one about AWS_KEY by title. Line-less findings that name different code symbols now stay apart (_name_different_symbols in review_schema.py).

Live corpus (10 injected defects, all personas)

Found Still reported Reported in total
Before (#415) 7 1 1
#500, #512, #513 9 6 34
#515 part 2 8 6 41

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 passed
  • uv run devops ci --force: all 13 gates pass

…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
@dan-petty dan-petty added this to the v0.2.23 milestone Sep 24, 2026
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/review Multi-persona code review engine, verification, and findings priority/p0-critical Priority P0: a release blocker or a critical defect labels Sep 24, 2026
@dan-petty
dan-petty merged commit 3f1bf0e into release/v0.2.23 Sep 24, 2026
7 checks passed
@dan-petty
dan-petty deleted the fix/509-review-regression-harness branch September 24, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority/p0-critical Priority P0: a release blocker or a critical defect scope/review Multi-persona code review engine, verification, and findings type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant