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) - #1529

Merged
dan-petty merged 1 commit into
release/v0.2.33from
refactor/1150-delete-review-verifier-and-catalog
Oct 9, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.33from
refactor/1150-delete-review-verifier-and-catalog

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Closes #1150

Summary

ADR 0005 says tools originate findings, and only tools and people change a finding's state. The #1137 loop measured the model verifier and its guards:

  • 0 of 94 VERIFIED rows were strictly valid.
  • Its confidence did not separate valid findings from false ones (0.950 against 0.958).
  • It dropped 47 of 125 valid tool candidate-runs.
  • Its guards kept false rows more often than valid ones (153 of 200 against 49 of 90).

This PR deletes the verifier, the hallucination catalog, the deterministic model-claim guards, the criteria runner, the calibration caps, location anchoring and the mitigations ledger. There is no flag and no re-export. No verdict path to a model remains. A person's verdict labels its own session, and a known false positive is a reviewed .devops/review.toml suppression.

This PR also delivers #1301. [severity_caps] now applies at admission, for the reviewed head and the base revision alike. A secret scanner's finding is exempt: any Gitleaks rule, or Trivy's SECRET results. Every other scanner's finding is capped, including Bandit's B105 and Semgrep's credential-disclosure rule, whose words make their category secret_exposure.

What changed

  • Deleted: verification.py, common_hallucinations.py and .json, construct_validator.py, criteria_evidence.py, calibration.py, judged_claims.py, mitigations.py and mitigated_findings.json, and stages/adversarial_debate.py. Also deleted: the verifier prompts and the negative exemplars, devops review hallucinations, --no-verification and --verification-only, the --adjudicator, --perimeter and --regression-test options of review verify, the MCP verify_finding tool, and ai.tasks.verification with its four DEVOPS_CLI_AI_TASK_VERIFICATION_* variables.
  • Verdicts: devops review verify writes the session's findings.json and candidates.json only, with verified_by="human". It writes no suppression. A new false positive is one hand-written [[suppressions]] entry with a reason and an expiry. The verdicts people had recorded in the learned catalog for six Semgrep claims are now such entries, each covering its rule on its whole file until 2027-04-09. The 25 persona claims had no rule id, so none could become a suppression. VerifiedBy lists only the labels still written.
  • Suppressions:
    • Branch and PR reviews and devops pr check-readiness list the unexpired suppressions whose path a change touches, in place of the mitigations ledger's perimeter warning.
    • A ** glob now covers nested files (PurePosixPath.full_match).
    • The warning prints review.toml text as written, with no Rich markup interpreted.
  • Cited code (ai/review/cited_code.py): moved out of the deleted modules. New sessions still record the code each finding cites, for devops review score and devops review export-feedback. The excerpt is at most 40 lines, with secrets masked, and no excerpt is recorded for a secret_exposure finding.
  • Legacy engine: a model's reply cannot set a finding's status. A recompose that lists no finding keeps the segments' findings. refactor(review): delete the legacy segment engine so the orchestrator is the only review engine #995 deletes the rest of this engine.
  • Other callers: ai/prompt_eval.py replays nothing and counts the verdicts recorded per labeller. Classification shows the personas no exemplars, and the spend and run stores name no verification stage.
  • Docs: AGENTS.md, README.md, docs/SELF_IMPROVEMENT.md (the 2026-10-01 calibration record is marked as describing code this PR deletes), KNOWN_ISSUES, VISION item 16, SDLC, ROUTINE_TASKS, ARCHITECTURE, CONTEXT, the knowledge base, the cheatsheet, the generated references, and the open task files of feat(cli): generator-side rule pruning measured against verifier overlap #414, feat(ai): ai review honours an inline intent marker with a quoted reason #602, feat(review): order-independent review finding consolidation with a permutation test #608 and feat(github): defect prs carry their hardening readiness blocker and post-merge audit #697. The changelog entry is changelog.d/1150.md; CHANGELOG.md and docs/ROADMAP.md are not edited.

Tests

  • Tests that imported the deleted modules are deleted or rewritten: 10 test files deleted, 43 rewritten or trimmed, and 6 new modules (tests/ai/review/test_pipeline.py, test_runner.py, test_cited_code.py, tests/commands/test_pr.py, test_review.py and tests/review/test_suppression.py).
  • All run offline with doubles at the model and file edges only. Each test call takes under a second.
  • ruff check, ruff format --check and mypy pass on the changed files.

Overlap with the open #873, #1347 and #419 branches

Pending a person

@dan-petty
dan-petty force-pushed the refactor/1150-delete-review-verifier-and-catalog branch from 70f4c26 to 437126e Compare October 9, 2026 22:05
…he model-claim guards are deleted, and person-recorded verdicts become suppressions (#1150)
@dan-petty
dan-petty force-pushed the refactor/1150-delete-review-verifier-and-catalog branch from 437126e to f46772b Compare October 9, 2026 22:13
@dan-petty
dan-petty merged commit 1d1ccc5 into release/v0.2.33 Oct 9, 2026
11 checks passed
@dan-petty
dan-petty deleted the refactor/1150-delete-review-verifier-and-catalog branch October 9, 2026 22:19
dan-petty added a commit that referenced this pull request Oct 10, 2026
* docs(agents): feasibility check, stop signals, and devops roadmap return (#1348) (#1518)

* chore(roadmap): release_cap 16 until the Service runs #1514's 4 release slots (#1520)

The running Service trims a starting release, and descopes a started one,
above release_cap (12). v0.2.34 holds 16 items. Setting release_cap to 16
keeps them in place until the Service runs #1514 (fill to 12, 4 slots to 16);
the line is removed then.

* test(cli): swallowed failures may not grow (#1347) (#1521)

* feat(review): publish scanner findings to code scanning (#419) (#1524)

* fix(roadmap): refine writes its section's end marker, so a re-refined item keeps one design section instead of two (#1470) (#1525)

* feat(roadmap): a release keeps 4 slots above its cap of 12, so a start still fills to 12 and nothing is trimmed or descoped until it holds more than 16 (#1514) (#1528)

* fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target (#1130) (#1527)

The Prometheus server keeps two scrape jobs: its self-scrape and
kubernetes-pods, which now keeps only namespace otel, so the collector's
export failures stay visible when Alloy is what fails. Both take the
cluster relabel from one YAML anchor, so the self-scrape carries
cluster. The six other chart-default jobs are off, among them the
API-server scrape that held about 60% of head series and nothing read.

k8s-monitoring takes over every other target with chart features:
annotation autodiscovery (prometheus.io/* keys, otel excluded, no
Service discovery, no ServiceAccount token), clusterMetrics.kubeDNS,
and the Loki and dcgm-exporter integrations. Autodiscovery, kube-dns
and DCGM copy the pod's node to node. Loki loses its scrape
annotations, the DCGM chart's ServiceMonitor is off, and Alertmanager
names its container so the config-reloader sidecar's target does not
scrape it twice. The monitoring perimeter already has exactly one egress
rule per scrape port.

k8s/README.md gains a Scrape Ownership table of the monitoring
components that run outside k8s-monitoring, and why.

* feat(review): ruff and mypy review evidence with project settings (#873) (#1523)

* fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section (#1450) (#1522)

* feat(cli): reachable --dry-run previews for delegated commands (#412) (#1530)

* feat(roadmap): refine runs every hour and readies the new items of every planned release, nearest first, before that release starts (#1515) (#1531)

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

* fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release (#1532) (#1536)

* feat(release): v0.2.33

* fix(security): bandit covers src and tests at medium severity through one config the gate and the code-scanning upload share, and the test findings are fixed (#1542) (#1546)

* fix(server): devops serve --service leaves the process's logging alone until uvicorn applies its json config, so in-process tests keep their captured logs (#1543) (#1545)

* chore(release): collect the v0.2.33 changelog and fix the service-mode test the last two merges broke (#1547)

* fix(server): the service-mode test expects the ::1 host it passes, so it no longer asserts 0.0.0.0

#1546 moved the test to --host ::1 to clear Bandit B104; #1545, written
before it, set the expected host back to 0.0.0.0. The merge kept both, so
the test failed and its 0.0.0.0 literal was Bandit's one medium finding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VyrhySxPaWHd2jsLCrfeXm

* chore(release): collect the v0.2.33 changelog fragments into CHANGELOG.md

The Service's cut of v0.2.33 (5c5df79) bumped the version without
collecting changelog.d/, so release/v0.2.33 merging into main would fail
`devops release check` in Release Orchestration, as v0.2.30 did (#1474).
`devops release changelog --update -v 0.2.33` moves the 14 fragments into
the [0.2.33] section and deletes them.

873.md had no category heading, which the collector refuses, and 412.md,
1347.md and 1348.md were not in house style; each is rewritten from its
delivering commit before collection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VyrhySxPaWHd2jsLCrfeXm

---------

Co-authored-by: Claude <noreply@anthropic.com>

* chore(security): ignore CVE-2026-78669 in gh v2.102.0 until 2026-10-23, beside its Go 1.27.1 entries under #1492 (#1548)

Trivy now fails the Service image on CVE-2026-78669, an HTTP/2
denial of service in net/http and golang.org/x/net, in the gh v2.102.0
binary (Go 1.27.1, x/net v0.58.0). No gh release carries the fix yet;
cli/cli's trunk builds with Go 1.27.2 and x/net v0.60.0. gh is a client,
and #1492's gh bump drops all three entries.


Claude-Session: https://claude.ai/code/session_01VyrhySxPaWHd2jsLCrfeXm

Co-authored-by: Claude <noreply@anthropic.com>

---------

Co-authored-by: Daniel Petty <contact@danielpetty.com>
Co-authored-by: dan-petty-bot <dan-petty-bot@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant