Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/reviewMulti-persona code review engine, verification, and findingstype/refactorType refactor: a new structure, same behavior
Milestone
Description
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
- Deleted, with no flags and no re-exports:
- verification.py's model path and guards (the mypy recipe moved in feat(review): ruff and mypy run as review evidence with the project's settings, advisory rules report only on changed lines, and changed functions show complexity before and after #873);
- the verifier prompts;
- common_hallucinations.py/.json and
review hallucinations; - construct_validator.py and criteria_evidence.py;
- the calibration caps;
- anchoring [code: pipeline.py:359-381].
- judged_claims.py and mitigations.py are deleted after their entries become
.devops/review.tomlsuppressions. - Outside callers change in the same PR:
ai/prompt_eval.py's replay of_deterministic_pre_verificationis deleted [code: ai/prompt_eval.py:3];commands/pr.py's perimeter warning reads suppressions [code: commands/pr.py:1482-1490].
- Docs: KNOWN_ISSUES.md:37-39 (
_check_syntax_error_hallucination); VISION item 16; SELF_IMPROVEMENT.md's verifier sections. - Tests that import deleted modules are deleted or rewritten. The count is recorded; c-feasibility counts 55 test files across this item and refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151.
- Gate time is recorded before and after.
- Person-recorded verdicts (refactor(review): one finding verifier owns the verdict and its side effects #996's adjudication path,
adjudication.py) become.devops/review.tomlsuppressions with a reason and an expiry; no verdict path to a model remains. - Recording a new known false positive stays one edit (refactor(review): one rulebook for known false positives #770's constraint, met by feat(review): every reported finding is admitted with its producer's anchor and a location that exists in the reviewed commit, the review writes findings.sarif, and review.md shows findings and suppressions #871's suppressions), or one rule-pack rule (feat(review): devops-cli's rule pack turns the recall set's network-exposure entries into tested Semgrep rules, and CI runs the pack's tests when a rule changes #1145).
- Tests run offline with fakes and recorded tool output: no network, no real scanner, no model; each test under 1 s.
-
changelog.d/<n>.mdrecords the change;CHANGELOG.mdanddocs/ROADMAP.mdare not edited. -
uv run devops cipasses.
Key questions
- Why separate from refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151? (proposed) About 6,400 lines go across the two, plus the pipeline.py and runner.py cuts. Two PRs keep each reviewable.
Strategic alignment
- Milestone: none; the roadmap tooling places it. Depends on: feat(review): every reported finding is admitted with its producer's anchor and a location that exists in the reviewed commit, the review writes findings.sarif, and review.md shows findings and suppressions #871. Supersedes (each frozen now, closed as not planned when this item lands): fix(review): verdicts bind across conflicting titles and absence wording shields nonexistent constructs #790, fix(review): the verifier sees masked windows around the cited lines, not the whole file and the linked-file skeletons #1017 (its masking moves to feat(review): each finding group gets a model-written explanation and plan grounded in the rule's documentation at the installed tool version, kept apart from findings, with every quote, citation, version and code block checked #1147), fix(review): a finding that cites a removed symbol keeps its mark, the verifier sees the removed lines, and a refutation of it stands #1018, fix(review): a correct refutation stands when the guard's evidence is a path token, a citation inside the finding's own lines, or generic scanner wording #1021, fix(review): a model verdict that rests on a criterion with no command is not a confirmation #1053, fix(review): a verdict that both confirms and refutes its finding stays unverified with a contradiction note, even when its reason repeats the title #1059, refactor(review): one finding verifier owns the verdict and its side effects #996, feat(review): order-swap probe for verification verdicts #870, refactor(review): one rulebook for known false positives #770 (its challenger-persona question is decided in refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151), fix(review): the tenacity and async-pool known false positives never fire #779, feat(cli): generator-side rule pruning measured against verifier overlap #414.
- Related: feat(ci): hand-rolled URL and address parsing fails
devops ci, AGENTS.md makes the library the rule, and reviews stop discarding the findings #1107 (linked only: its review sub-scope deletes two substring checks and the LOCALHOST branch and does not grow into catalog work), refactor(review): the review's single-owner tables move out of config/ into ai/review/ and review/ #1025 (moves only the names that survive this item and refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151). - Parent: feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137 (phase P1b).
- Evidence tags ([measured: …], [code: path:line], [sourced: …], [estimate], [inference]; "S11" is the single review run of 2026-10-03 and "the loop" the ten runs S12–S21; c-feasibility and c-fidelity are the two design critiques) are explained in feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137.
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.
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/reviewMulti-persona code review engine, verification, and findingstype/refactorType refactor: a new structure, same behavior
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 9, 2026
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)
refactor(review): the model verifier, the hallucination catalog and t…
refactor(review): the model verifier, the hallucination catalog and t…
refactor(review): the model verifier, the hallucination catalog and t…
dan-petty-bot commentedon Oct 10, 2026
What changed
#1529, merged into
release/v0.2.33as 1d1ccc5.150 file(s) changed.
How it was verified
Check runs at f46772b:
Acceptance Criteria of
docs/agent/tasks/task-1150-delete-review-verifier-catalog-and-guards.md: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_goneintests/test_codebase_hygiene_and_shims.py).judged_claims.pyandmitigations.pyare deleted after their person-judged Semgrep entries became.devops/review.tomlsuppressions.ai/prompt_eval.pyreplays nothing (tests/test_ai_prompt_eval.py), and the perimeter warning ofdevops pr check-readinessand 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.mdno longer names_check_syntax_error_hallucination,docs/VISION.mditem 16 no longer names structural tuple assertion consolidation, anddocs/SELF_IMPROVEMENT.mddescribes no verifier.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.tomlsuppressions (the six Semgrep ones; the 25 persona claims could not, having no rule id).devops review verifywrites 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.test_a_legacy_review_saves_no_status_a_model_wrote_and_keeps_the_segments_findingsintests/ai/review/test_runner.py).review scoreand the feedback export (tests/ai/review/test_cited_code.py).[[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 undertests/is admitted LOW, and so are Bandit's B105 and Semgrep'spython-logger-credential-disclosure, bothsecret_exposureby their words; a Semgrep finding underdocs/is admitted INFO, and Gitleaks and Trivy secrets underdocs/keep their severity (tests/ai/review/test_pipeline.py).changelog.d/1150.mdrecords the change;CHANGELOG.mdanddocs/ROADMAP.mdare not edited.uv run devops cirun at b5ea6ff, the base before this branch was rebased onto release/v0.2.33, passed withtestits longest check at 273.8 s; the checks run concurrently.time uv run devops cion this branch records the gate time after, beside the 273.8 s above; it must pass.git diff origin/release/v0.2.33 -- .devops/review.tomland 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 modulessecurity/secrets.py,github/secrets.py,config/settings.pyandserver/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 indevops pr check-readiness. Narrow one to afingerprintsuppression if the file-wide scope is too wide.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 withfor 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.feat(release): v0.2.33 (#1537)
refactor(review): remove #1150 leftovers from hardening surface, find…
feat(release): v0.2.38 (#1799)
feat(release): v0.2.38 (#1798)