Repository navigation
fix(verification): narrow proof routing false positives and activate evidence report blocking - #1079
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c419352cd5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…se positives Infrastructure files in polylogue/proof/ (models.py, diffing.py, __init__.py, rendering.py, suppressions.py, traces.py, witnesses.py) and devtools proof tools no longer fan out to all catalog obligations. Only files that define claim/subject/ runner content (catalog.py, subjects.py, runners.py, corpus.py, coverage_manifests.py, generated_scenarios.py) trigger the full expansion. The two pre-existing test failures are fixed: one asserted a nonexistent devtools proof-pack --check command, the other expected full-obligation expansion from devtools/proof_pack.py (a surface tool, not a claim file). A new test pins the invariant that catalog.py still expands to all obligations. Co-Authored-By: Claude <[email protected]>
…ify history The blocking field was hardcoded False. It now computes from two conservative criteria: (A) last 2+ consecutive verify runs both failed, or (B) stale contract evidence artifacts exist AND there is a recent verify failure in the last 5 runs. Human-readable output reflects the computed value via blocking=True/False. Six new tests cover all four cases: no history, single failure, two consecutive failures, stale+failure, stale-without-failure, and human output format. Co-Authored-By: Claude <[email protected]>
CodeRabbit P1: changes to polylogue/proof/models.py (Claim.matches used by compile_obligations) and polylogue/proof/sources/effect_compiler.py (imported by catalog._effect_implication_claims) were not in _PROOF_CATALOG_CLAIM_FILES, so they received zero routing and could hide affected domains. Both files are now in the claim-file frozenset and trigger full 445-obligation fan-out on change. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
5a99329 to
65da3bf
Compare
…ces (#1065 #594) (#1083) ## Summary Pack C of #1065 — retire the proof-era operator entry points now that Pack A renamed report headings and Pack B added artifact-source grouping. The `devtools proof-pack` library and `devtools affected-obligations` command are replaced with `devtools verification-impact` and a `verification_impact` module that delegates the same diff-shaped report. No backwards-compat aliases. ## Problem After Pack A/B, the operator surface still said "proof-pack" / "affected-obligations" even though the report headings and grouping had been moved to standard verification terminology. The terminology kept users confused about what guarantee the report actually provides — it summarizes catalog-routed checks, not mathematical proofs. The `devtools verify` baseline also still ran an `affected-obligations check` step, exporting the old name through git hooks and PR comments. ## Solution - Rename `devtools/proof_pack.py` → `devtools/verification_impact.py`, `build_proof_pack` → `build_verification_impact_report`. - Rename `devtools/affected_obligations.py` → `devtools/verification_impact_cli.py`. - Rename CLI command `affected-obligations` → `verification-impact` in `devtools/command_catalog.py` (with help/description updated to drop "proof-pack" language). - Rename verify baseline step `affected-obligations check` → `verification-impact check` (and the `--commit` tier help text). - Update changed-path routing in `polylogue/proof/diffing.py` to recommend `devtools verification-impact` and point at the renamed test files. - Update CLAUDE.md / CONTRIBUTING.md "Proof Pack workflow" section to "Verification Impact workflow"; the markdown report heading was already "## Polylogue Verification Impact" from Pack A. - Update catalog claim wording in `polylogue/proof/catalog.py` to talk about the verification catalog and changed-path routing instead of "proof-pack routing" / "proof-pack known-gap rendering". - Fix inherited proof_catalog routing tests in `tests/unit/proof/test_diffing_runtime.py` that were left red after PR #1079 narrowed the claim-file fan-out (used `diffing.py` as a fan-out example; the test now uses `catalog.py`, which is a claim-defining file, and expects the new infrastructure reason text). No `obligation-diff` command existed in the tree — only a stale CHANGELOG reference. No CI workflow invoked `devtools proof-pack` (proof-comment.yml is currently a no-op). The library symbol `affected_obligations` (a dataclass field on `AffectedObligationReport`) is still used inside `polylogue/proof/diffing.py`. That is an internal substrate name, not the operator-facing surface; renaming it is out of scope for this PR. #594 catalog-row pruning is a deeper survey of `polylogue/proof/catalog.py` that was not done here; the catalog surface still exists and PR #1069 / #1074 already retired CLI proof runners and dead runners. ## Verification ``` nix develop -c devtools render-all --check nix develop -c devtools verify --quick # exit 0 (30s) nix develop -c pytest tests/unit/devtools/test_verification_impact.py \ tests/unit/devtools/test_verification_impact_cli.py \ tests/unit/devtools/test_verify.py \ tests/unit/devtools/test_devtools_main.py \ tests/unit/devtools/test_render_devtools_reference.py \ tests/unit/proof/ \ tests/unit/verification/test_breakers.py -q # -> 134 passed, 1 xfailed nix develop -c devtools verification-impact --json --path docs/verification-catalog.md # -> emits the same report shape under the new command name ``` The generated `docs/devtools.md` table now lists `devtools verification-impact` in both the Verification-Lab Surface block and the Verification command table. Pre-existing failing tests in `tests/unit/devtools/test_benchmark_campaign.py` and `tests/unit/devtools/test_scenario_projections.py` (benchmark scenario catalog drift) are unchanged by this PR and outside its surface area. Closes #1065 Ref #594 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 4.6 <[email protected]>
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Two targeted fixes removing ceremonial behavior from the verification system.
Problem A — Proof routing false positives
Any
polylogue/proof/file change (includingmodels.py,diffing.py) routed to all 445 obligations, defeating testmon for verification system iterations.Problem B — Evidence report always non-blocking
devtools/evidence_report.pyhardcoded"blocking": Falseregardless of verify history it had already computed.Solution A
_PROOF_CATALOG_CLAIM_FILESfrozenset indiffing.py: only the 6 claim-defining files (catalog.py,subjects.py,runners.py,corpus.py,coverage_manifests.py,generated_scenarios.py) expand to all 445 obligations. Infrastructure files get narrow routing.Solution B
Computed
blockingfrom verify history:Truewhen last 2+ consecutive runs failed, or stale evidence + recent failure. Added 6 targeted tests.Verification
Ref #1058, #998