Skip to content

fix(verification): narrow proof routing false positives and activate evidence report blocking - #1079

Merged
Sinity merged 3 commits into
masterfrom
worktree-agent-aa361c91
May 16, 2026
Merged

Sinity merged 3 commits into
masterfrom
worktree-agent-aa361c91

Conversation

@Sinity

@Sinity Sinity commented May 16, 2026

Copy link
Copy Markdown
Owner

Summary

Two targeted fixes removing ceremonial behavior from the verification system.

Problem A — Proof routing false positives

Any polylogue/proof/ file change (including models.py, diffing.py) routed to all 445 obligations, defeating testmon for verification system iterations.

Problem B — Evidence report always non-blocking

devtools/evidence_report.py hardcoded "blocking": False regardless of verify history it had already computed.

Solution A

_PROOF_CATALOG_CLAIM_FILES frozenset in diffing.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 blocking from verify history: True when last 2+ consecutive runs failed, or stale evidence + recent failure. Added 6 targeted tests.

Verification

pytest tests/unit/proof/test_diffing.py tests/unit/devtools/test_evidence_report.py -v  # 18 passed
devtools verify --quick  # exit 0

Ref #1058, #998

@coderabbitai

coderabbitai Bot commented May 16, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 54 minutes and 43 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 32303641-4136-4fff-ad40-7e77a7a1e846

📥 Commits

Reviewing files that changed from the base of the PR and between 00c057f and 65da3bf.

📒 Files selected for processing (4)
  • devtools/evidence_report.py
  • polylogue/proof/diffing.py
  • tests/unit/devtools/test_evidence_report.py
  • tests/unit/proof/test_diffing.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch worktree-agent-aa361c91

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread polylogue/proof/diffing.py Resolved
Sinity and others added 3 commits May 16, 2026 11:37
…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]>
@Sinity
Sinity force-pushed the worktree-agent-aa361c91 branch from 5a99329 to 65da3bf Compare May 16, 2026 09:38
@Sinity
Sinity merged commit fc3c43f into master May 16, 2026
1 check passed
@Sinity
Sinity deleted the worktree-agent-aa361c91 branch May 16, 2026 09:38
Sinity added a commit that referenced this pull request May 16, 2026
…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]>
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

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.

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