Skip to content

fix(review): verification discards real findings on substring triggers and malformed verdicts #513

Closed

Description

@dan-petty

Part of #509.

Problem

Verification discards real findings without evidence:

  • Substring triggers:
    • _check_operational_protocol_hallucination matches "sse" inside "processed";
    • _check_none_dereference_hallucination fires on "if none of the roles" when mypy passes;
    • the syntax check fires on the bare word "syntax";
    • the monologue check fires on "not properly implemented" and "API need to";
    • the pathlib check fires on "filenotfounderror" plus "resolve";
    • the masked-placeholder check invalidates real secrets without reading the file;
    • the test-fixture credential check exempts real secrets in tests/;
    • the runtime-floor check reads devops-cli's own pyproject;
    • the auth-header check accepts a header set anywhere in the file;
    • the line-boundary check reads the local checkout during PR reviews.
  • Verdicts:
    • invalidated_criteria_matched overrides verified: true;
    • the string "none" is iterated per character;
    • "mitigated": "false" is truthy;
    • verified: false with no criteria (uncertainty) hides the finding.
  • Binding: verdicts bind by location before title, so two findings at one line can swap verdicts, and a verdict without a title binds to the first unclaimed finding.

Acceptance criteria

  • Each trigger matches the claim it is for, with a test of a real finding it must leave alone.
  • Uncertain or malformed verdicts leave the finding UNVERIFIED and reported.
  • Verdicts bind by title and location together.

The verifier prompt's project-specific assumptions (mypy --strict, "defined anywhere in the workspace", CWE-200 in terminal output, the "What this tool is" section) move to #515. That issue carries the target's conventions into both the persona and verifier prompts.

Activity

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

    @dan-petty
    OwnerAuthor

    Closed by #518, 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.

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