Skip to content

fix(review): audit every mechanism that discards or invents findings, with a regression harness #509

Closed

Description

@dan-petty

Problem

A review's output passes through many mechanisms that can change a finding's fate:

  • deterministic pre-verification checks;
  • the common hallucinations catalog and its learning loop;
  • LLM verification and debate;
  • deduplication and merging, reranking, suppression policies and redaction;
  • the report's filters;
  • persona prompts that tell the model what not to report.

Each can discard a real defect (a false negative), or keep or invent a false one (a false positive). One has already been shown to do both harm and damage. The missing-symbol check invalidated real "missing check" findings and taught them to the catalog (#500). On a synthetic corpus with 10 known defects, the personas found 7 and 1 survived verification (#415).

Scope

Every mechanism between the model's reply and the report, plus the generation-time instructions and page building that decide what the model sees. For each:

  • its trigger;
  • a realistic example of a real defect it would discard, or a false one it would keep;
  • whether it learns and persists that decision.

Acceptance criteria

  • An audit of every mechanism, with each misfire confirmed by a reproducing test or by replaying recorded review sessions (candidates.json), and fixed or filed.
  • A regression harness in CI. It runs the deterministic layers (pre-verification checks, catalog matching, merging, report filters) over a golden set of real-defect findings, which must survive, and a set of known hallucinations, which must still be caught. A change that makes the pipeline discard a real finding then fails the build.
  • Auto-learned catalog entries can be listed, and removed when wrong. An entry learned from a deterministic invalidation is never applied without that check's ground truth.

Activity

  1. added this to the v0.2.23 milestone on Sep 24, 2026
  2. added
    type/bug
    scope/review
    priority/p0-critical
    status/in-progress
    on Sep 24, 2026
  3. dan-petty commented on Sep 24, 2026

    @dan-petty
    OwnerAuthor

    Closed by #527, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

  4. removed
    status/in-progress
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p0-criticalscope/reviewtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions