Skip to content

fix(review): verifier reports mitigations instead of dropping them; personas drop house rules - #525

Merged
dan-petty merged 1 commit into
release/v0.2.23from
fix/515-prompts-and-mitigation
Sep 24, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.23from
fix/515-prompts-and-mitigation

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Part 2 of #515 (refs, doesn't close it). Part of the #509 audit.

Verifier: refuted vs mitigated. The verifier confirmed defects and then dismissed them on a mitigation it asserted, recording that reasoning as refutation. The finding was then dropped.

  • Refuted now means the shown code contradicts the claim, with the line cited.
  • Mitigated means the defect is present and something limits it. The mechanism must be named. The finding stays in the report with the mitigation shown (console and review.md), but doesn't drive the recommendation. A "mitigated" verdict with no reason leaves the finding unverified.

Personas and shared prompts hold general rules only.

  • Moved to .devops/review.md: this repo's house rules (symlink-skipping walks, split HTTP timeouts, quota and RLock rules, sandbox defaults, tool-wrapper masking, RFC 1918 in docs, pre-1.0 legacy hygiene), the "When the target is this repository" section, and the connector and console-output exemptions.
  • Removed:
    • "drop findings matching the hallucinations catalog", a catalog the model never sees;
    • "drop the already-mitigated";
    • the roadmap mandates in five prompts; suggestions go in summary, not findings.
  • Changed:
    • "Omit a missing-check finding unless linked context confirms it" applied to context personas never receive. It now reads: report it, state the assumption, lower the confidence.
    • QA only flags missing tests when reviewing a change.

Live check (#415 corpus, against part 1's run)

Part 1 Part 2
Injections still reported 6 of 10 6 of 10
Verifier invalidations 39 16
Reported as mitigated, reason shown 0 16

Some stated mitigations are wrong, and now visibly so. For example, load_policy "includes a depth check using the _depth parameter" is the very check the corpus removed. Before, that finding was silently invalidated.

Test plan

  • tests/test_review_project_conventions.py:
    • no shared review or persona prompt carries a project rule;
    • this repo's conventions hold them;
    • a mitigated finding is reported with its mitigation.
  • tests/test_personas.py and tests/test_review_verification.py: rule coverage is split between the shared prompt, .devops/review.md, and rules removed on purpose.
  • uv run devops ci --force: all gates pass.

…ersonas drop house rules

The verifier confirmed defects and then dismissed them on a mitigation it
asserted, recording the reasoning as refutation, and a mitigated finding was
dropped from the report. Refutation now means the shown code contradicts the
claim; a mitigation must name its mechanism and stays in the report with its
reason, without driving the recommendation.

The persona and shared review prompts carried this repository's house rules,
told personas to drop findings matching a catalog they never see, to drop the
already-mitigated, to omit missing-check findings unless linked context they
are never given confirmed them, and to file roadmap ideas as findings. Those
rules move to this repository's .devops/review.md or go, absence claims are
reported with their assumption stated, and suggestions belong in the summary.

Refs #515
@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/p1-high Priority P1: high-impact work for the next planned milestone labels Sep 24, 2026
@dan-petty
dan-petty merged commit 9fc954b into release/v0.2.23 Sep 24, 2026
7 checks passed
@dan-petty
dan-petty deleted the fix/515-prompts-and-mitigation branch September 24, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority/p1-high Priority P1: high-impact work for the next planned milestone 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