Skip to content

fix(review): verdicts bind across conflicting titles and absence wording shields nonexistent constructs #790

Closed as not planned

Description

@dan-petty

Context & Rationale

Three gaps on release/v0.2.24 let a verification result attach to the wrong finding, or let a false finding through. Found while checking the #659 and #660 fixes:

  • A verdict still binds to a finding whose title conflicts. _is_oracle_verdict_match (ai/review/verification.py:1820) binds when the id and location match even if the titles conflict. In a repro, an INVALIDATED "Line too long" verdict bound to a SQL injection finding on the same line. The title-overlap count also includes stopwords such as "in" and "the". test_positional_oracle_rejects_incompatible_title passes on 1ad24ac, because its string ids parse to None.
  • The absence exemption is too broad. It matches substrings of the title and description (ai/review/construct_validator.py:463). Findings about constructs that don't exist therefore escape invalidation whenever their text says "without" or "missing". Examples: "Unsafe eval_payload call … without validation" and "Missing timeout in fetch_bounded", where neither name exists in the code.
  • A "-" mitigation slips through. "-" is in _NO_VALUES (ai/review/verification.py:1312) but not in CONST_PLACEHOLDER_VALUES (config/constants.py:961). A "-" mechanism or perimeter therefore gives MITIGATED with an empty perimeter.

Scope & Deliverables

  • Deliverable:
    • A verdict binds only when the title is compatible, and the comparison ignores stopwords.
    • An absence finding is exempt only for the construct it says is missing.
    • One placeholder set serves both checks.
    • Tests cover a real integer-id collision with conflicting titles, a nonexistent construct described with "without", and a "-" mitigation.
  • Constraint: absence findings about constructs that do exist stay exempt (fix(review): construct and location checks drop absence findings and rewrite finding paths #659).

Strategic Alignment


Generated by Claude Code

Activity

  1. added
    type/bug
    scope/review
    priority/p2-medium
    on Oct 1, 2026
  2. dan-petty commented on Oct 3, 2026

    @dan-petty
    OwnerAuthor

    Frozen by the evidence-first review redesign (#1137, owner direction of 2026-10-03): patches to the model generator and verifier stop, and tool-layer fixes continue. This item patches code that #1150 deletes (the verifier path in verification.py, the guards and verifier prompts, construct_validator.py, criteria_evidence.py, and the known-false-positive catalog).

    It stays open, labelled status/blocked, and closes as not planned with "Superseded by #1150" when that item lands. Until then, the interim is the tools-only review (--no-persona-review --no-verification). Do not start work on it.

  3. added
    status/blocked
    on Oct 3, 2026
  4. added this to the v0.2.35 milestone on Oct 11, 2026
  5. dan-petty commented on Oct 11, 2026

    @dan-petty
    OwnerAuthor

    Moved to v0.2.35: v0.2.35 started with fewer than its 16 items and was topped up to 16 from Ready items, critical fixes and P0 features first. (devops roadmap reprioritize)

  6. removed this from the v0.2.35 milestone on Oct 12, 2026
  7. dan-petty commented on Oct 17, 2026

    @dan-petty
    OwnerAuthor

    Closed as not planned in the 2026-10-17 unblocking review: Superseded by #1150. verification.py, construct_validator.py and the mitigations ledger are deleted. A person's verdict reaches a findings.json copy only by persona, location and title (ai/review/adjudication.py:214-245).

  8. removed
    status/blocked
    on Oct 17, 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/p2-mediumscope/reviewtype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions