Skip to content

refactor(review): the model verifier, the hallucination catalog and the model-claim guards are deleted, and person-recorded verdicts become suppressions #1150

Closed

Description

@dan-petty

Problem

  • VERIFIED rows were 0/94 strictly valid.
  • Verifier confidence does not separate valid from false: mean 0.958 on false findings against 0.950 on valid ones.
  • The verifier drops and moves real findings: it dropped 47/125 valid tool candidate-runs, plus D2 and D18.
  • The guards favour false rows: they kept false dangling-service rows 153/200 against valid read-only-root-fs 49/90 (p = 0.0003) [measured: loop].
  • Churn since 2026-09-01: verification.py 20 commits, the verifier prompt 14 [measured: u-pipeline].

Acceptance criteria

Key questions

Strategic alignment

Update 2026-10-08: refinement

#871 landed. #1059 was delivered; remove it from Supersedes. Lines: ai/review/pipeline.py:356-381, commands/pr.py:1415-1429. The calibration caps are today the only cap on scanner findings in tests and docs, since [severity_caps] never reaches admit(); #1301 lands first, or this item passes the table with its secret-scanner exemption.

Activity

  1. added
    type/refactor
    on Oct 3, 2026
  2. added
    scope/review
    priority/p1-high
    on Oct 3, 2026
  3. added this to the v0.2.33 milestone on Oct 9, 2026
  4. dan-petty-bot commented on Oct 9, 2026

    @dan-petty-bot
    Collaborator

    Admitted to v0.2.33: after v0.2.33 started, only a critical fix can join it. A person can place it in a planned release, and that placement stands. (devops roadmap reprioritize)

  5. dan-petty-bot commented on Oct 10, 2026

    @dan-petty-bot
    Collaborator

    What changed

    #1529, merged into release/v0.2.33 as 1d1ccc5.

    Closes #1150

    150 file(s) changed.

    How it was verified

    Check runs at f46772b:

    • Prune PR DevContainer Images: pass
    • bandit: pass
    • devops-cli: pass
    • CodeQL: pass
    • Static Analysis: pass
    • Analyze (actions): pass
    • Analyze (python): pass
    • Tests & Coverage: pass
    • Changed-Test Independence: pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-1150-delete-review-verifier-catalog-and-guards.md:

    • The verifier's model path and guards, its prompts, the catalog and review hallucinations, the construct validator and the criteria executor, the calibration caps and anchoring are deleted with no flag and no re-export (test_the_model_verifier_its_catalog_and_its_guards_are_gone in tests/test_codebase_hygiene_and_shims.py).
    • judged_claims.py and mitigations.py are deleted after their person-judged Semgrep entries became .devops/review.toml suppressions.
    • ai/prompt_eval.py replays nothing (tests/test_ai_prompt_eval.py), and the perimeter warning of devops pr check-readiness and of branch and PR reviews reads suppressions (tests/commands/test_pr.py, tests/ai/review/test_runner.py, tests/review/test_suppression.py).
    • docs/KNOWN_ISSUES.md no longer names _check_syntax_error_hallucination, docs/VISION.md item 16 no longer names structural tuple assertion consolidation, and docs/SELF_IMPROVEMENT.md describes no verifier.
    • Tests that imported deleted modules are deleted or rewritten: 37 test files imported them at b5ea6ff; 10 test files are deleted, 43 are rewritten or trimmed, and 6 test modules are new.
    • A person's verdict is a session label with verified_by="human", and no verdict path to a model remains (tests/commands/test_review.py). How "person-recorded verdicts become suppressions" is read: the verdicts people had recorded in the learned catalog became .devops/review.toml suppressions (the six Semgrep ones; the 25 persona claims could not, having no rule id). devops review verify writes no suppression: a verdict labels its session only, and a new false positive becomes a suppression a person adds by hand, with a reason and an expiry.
    • A model's reply sets no status in the legacy engine either, and a recompose that lists no finding keeps the segment findings (test_a_legacy_review_saves_no_status_a_model_wrote_and_keeps_the_segments_findings in tests/ai/review/test_runner.py).
    • New sessions still record the code each finding cites, for review score and the feedback export (tests/ai/review/test_cited_code.py).
    • A new known false positive is one edit: a [[suppressions]] entry in .devops/review.toml.
    • [severity_caps] applies at admission and spares secret-scanner findings (fix(review): review.toml severity caps apply at admission without capping secret-scanner findings #1301): a Bandit HIGH under tests/ is admitted LOW, and so are Bandit's B105 and Semgrep's python-logger-credential-disclosure, both secret_exposure by their words; a Semgrep finding under docs/ is admitted INFO, and Gitleaks and Trivy secrets under docs/ keep their severity (tests/ai/review/test_pipeline.py).
    • The tests run offline with fakes, under a second each.
    • changelog.d/1150.md records the change; CHANGELOG.md and docs/ROADMAP.md are not edited.
    • Gate time before: the cached uv run devops ci run at b5ea6ff, the base before this branch was rebased onto release/v0.2.33, passed with test its longest check at 273.8 s; the checks run concurrently.
    • Pending a person: time uv run devops ci on this branch records the gate time after, beside the 273.8 s above; it must pass.
    • Pending a person: read the six refactor(review): the model verifier, the hallucination catalog and the model-claim guards are deleted, and person-recorded verdicts become suppressions #1150 suppressions with git diff origin/release/v0.2.33 -- .devops/review.toml and confirm each reason is the resolution a person recorded in the learned catalog, and that the scope may stay file-wide: each suppresses its rule on the whole file until 2027-04-09, four of them Semgrep's credential-disclosure rule on the secret-handling modules security/secrets.py, github/secrets.py, config/settings.py and server/service.py, where a new credential-logging call would be suppressed too. The catalog matched only the judged line while its code read the same; a change to those files lists the suppression in branch and PR reviews and in devops pr check-readiness. Narrow one to a fingerprint suppression if the file-wide scope is too wide.
    • Pending a person: the PR body closes only refactor(review): the model verifier, the hallucination catalog and the model-claim guards are deleted, and person-recorded verdicts become suppressions #1150. Once it merges, close fix(review): review.toml severity caps apply at admission without capping secret-scanner findings #1301 as delivered by it with gh api -X PATCH repos/dan-petty/devops-cli/issues/1301 -f state=closed -f state_reason=completed, and the issues refactor(review): the model verifier, the hallucination catalog and the model-claim guards are deleted, and person-recorded verdicts become suppressions #1150 supersedes as not planned with for n in 790 1017 1018 1021 1053 996 870 770 779 414; do gh api -X PATCH repos/dan-petty/devops-cli/issues/$n -f state=closed -f state_reason=not_planned; done.
  6. added a commit that references this issue on Oct 10, 2026
  7. added 3 commits that reference this issue on Oct 21, 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/p1-highscope/reviewtype/refactor

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions