Repository navigation
fix(proof): reduce proof-pack review noise - #689
Conversation
Problem: Polylogue PRs emit Proof Pack reports, but local agent instructions did not say how to use them, which made it too easy to ignore noisy or misleading reports instead of triaging them.\n\nWhat changed: documented Proof Pack as a verification impact report, including how to use required gates, nonzero affected domains, known gaps, and the current stale-evidence bucket during PR verification.\n\nVerification: devtools render-agents --input CLAUDE.md --output AGENTS.md.\n\nRef #594\nRef #635
Problem: Proof Pack comments were technically useful but too noisy for PR review: zero-claim domains looked as important as affected claim domains, deployment confidence checks appeared required, broad known gaps dominated unrelated PRs, and the stale-evidence label implied freshness semantics the implementation does not provide.\n\nWhat changed: grouped gates into focused, required PR, and optional confidence sections; collapsed zero-claim domains and their gaps; kept visible known gaps to domains with affected claims; renamed the diff bucket to stable affected obligations in payloads and rendered reports; and updated Polylogue agent guidance to use the refined report semantics.\n\nVerification: ruff format/check on touched Python files; mypy polylogue/; pytest -q tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py tests/unit/proof/test_diffing_runtime.py tests/unit/devtools/test_obligation_diff.py tests/unit/devtools/test_affected_obligations.py; devtools proof-pack --path polylogue/proof/catalog.py --markdown; devtools proof-pack --path docs/plans/layering.yaml --markdown; devtools render-all --check; devtools verify --quick.\n\nRef #594
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ 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 (6)
✨ 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. Review rate limit: 0/1 reviews remaining, refill in 16 minutes and 49 seconds.Comment |
Polylogue Proof PackRefs: Affected Domains
Additional routed domains with zero affected claims
Focused Gates
Required PR Gates
Optional Confidence Gates
Known Gaps
Additional gaps in zero-claim routed domains
Oracle / Cost
|
|
Automated review triage after opening:
|
There was a problem hiding this comment.
Pull request overview
Refines the Proof Pack report to be a practical PR review-routing artifact by restructuring gate output, reducing zero-claim domain noise, and renaming the “stale evidence” diff bucket to reflect its actual meaning.
Changes:
- Renamed the obligation-diff bucket/payload field from
stale_evidencetostable_affected(and surfaced it in proof-pack asstable_affected_obligations). - Split gates into explicit groups (
focused,requiredPR,optional_confidence) and updated markdown rendering to collapse zero-claim routed domains/gaps. - Updated unit tests to validate the new report schema and markdown headings.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
polylogue/proof/diffing.py |
Renames diff status/bucket and payload key to stable_affected. |
devtools/proof_pack.py |
Reworks report schema (gate grouping, known-gap visibility split) and markdown/human render output. |
tests/unit/devtools/test_proof_pack.py |
Updates/extends tests for new proof-pack JSON shape and markdown headings/collapsing behavior. |
tests/unit/proof/test_diffing.py |
Updates diffing test expectation to stable_affected. |
tests/unit/proof/test_diffing_runtime.py |
Updates runtime diffing test expectation to stable_affected. |
CLAUDE.md |
Documents intended Proof Pack workflow for agents/reviewers. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - Read the `Required Gates` before choosing verification. Run the gates that | ||
| match the touched files, or state in the PR why a suggested gate is only an | ||
| optional confidence gate for that change. | ||
| - Use nonzero affected domains and claims to decide which focused tests or | ||
| proof-law suites to run. Ignore zero-claim domain noise unless the changed | ||
| files genuinely belong to that domain. |
| (*affected.inner_loop_checks, *affected.pr_gates, *affected.deployment_gates) | ||
| ), | ||
| "gate_groups": gate_groups, | ||
| "required_gates": _checks_payload((*affected.inner_loop_checks, *affected.pr_gates)), |
## Summary Improves the Proof Pack PR report so it is usable as a review-routing artifact instead of a noisy checklist dump, and documents how Polylogue agents should consume it. ## Problem Recent Proof Pack comments were useful in principle but hard to act on in practice. They mixed focused checks, required PR gates, and optional deployment confidence checks under one heading; surfaced zero-claim domains as if they were equally affected; dumped broad known gaps into unrelated PRs; and used `stale evidence` for a bucket that actually means stable affected obligations, not freshness/SLA failure. ## Solution - Documented the intended Proof Pack workflow in `CLAUDE.md`. - Split rendered gates into focused gates, required PR gates, and optional confidence gates. - Collapsed zero-claim routed domains behind a details block. - Kept visible known gaps to domains with affected claims, with zero-claim-domain gaps collapsed separately. - Renamed the proof diff bucket and report payload from stale evidence to stable affected obligations. - Updated proof-pack and affected-obligation tests to cover the new report shape. ## Verification - `ruff format devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py tests/unit/proof/test_diffing_runtime.py` - `ruff check devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py tests/unit/proof/test_diffing_runtime.py` - `mypy polylogue/` - `pytest -q tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py tests/unit/proof/test_diffing_runtime.py tests/unit/devtools/test_obligation_diff.py tests/unit/devtools/test_affected_obligations.py` - `devtools proof-pack --path polylogue/proof/catalog.py --markdown` - `devtools proof-pack --path docs/plans/layering.yaml --markdown` - `devtools render-all --check` - `devtools verify --quick` Ref #594 Ref #635
Summary
Improves the Proof Pack PR report so it is usable as a review-routing artifact instead of a noisy checklist dump, and documents how Polylogue agents should consume it.
Problem
Recent Proof Pack comments were useful in principle but hard to act on in practice. They mixed focused checks, required PR gates, and optional deployment confidence checks under one heading; surfaced zero-claim domains as if they were equally affected; dumped broad known gaps into unrelated PRs; and used
stale evidencefor a bucket that actually means stable affected obligations, not freshness/SLA failure.Solution
CLAUDE.md.Verification
ruff format devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py tests/unit/proof/test_diffing_runtime.pyruff check devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py tests/unit/proof/test_diffing_runtime.pymypy polylogue/pytest -q tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py tests/unit/proof/test_diffing_runtime.py tests/unit/devtools/test_obligation_diff.py tests/unit/devtools/test_affected_obligations.pydevtools proof-pack --path polylogue/proof/catalog.py --markdowndevtools proof-pack --path docs/plans/layering.yaml --markdowndevtools render-all --checkdevtools verify --quickRef #594
Ref #635