Repository navigation
refactor(proof): make Proof Pack evidence taxonomy actionable (#855) - #877
Conversation
Classify every affected obligation by evidence taxonomy (executable_behavior, observability, architectural_static, metadata_spec, manual_review, advisory) so agents can distinguish what to run now from what is static metadata or advisory noise. - Add EvidenceTaxonomy typed variant to proof models - Derive taxonomy from existing oracle + independence + evidence_class - Group affected obligations by taxonomy in proof-pack JSON and markdown - Restructure rendered output: Required Gates first, taxonomy breakdown, Known Gaps labeled as tracking-only - Add clean_tree flag to distinguish baseline catalog from diff - Add focused tests for taxonomy grouping and clean-tree behavior Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Warning Rate limit exceeded
To continue reviewing without waiting, purchase usage credits 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.
Pull request overview
This PR makes devtools proof-pack outputs more actionable for agents by classifying affected proof obligations into an evidence taxonomy and restructuring the human/markdown reports to clearly separate “run now” gates from static/advisory metadata.
Changes:
- Added
EvidenceTaxonomyto the proof model layer and export surface. - Implemented taxonomy classification + grouping in
devtools proof-pack, including aclean_treeindicator and contextual report message. - Updated unit tests and regenerated the verification catalog snapshot.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
devtools/proof_pack.py |
Adds taxonomy derivation/grouping, clean_tree context, and restructures markdown/human output sections. |
polylogue/proof/models.py |
Introduces EvidenceTaxonomy literal type and exports it. |
tests/unit/devtools/test_proof_pack.py |
Updates assertions for new report fields/sections and adds coverage for clean-tree + taxonomy structure. |
docs/verification-catalog.md |
Regenerated catalog snapshot reflecting updated subject/obligation counts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| def _taxonomy_for_obligation( | ||
| obligation_id: str, | ||
| catalog: VerificationCatalog, | ||
| *, | ||
| cache: dict[str, EvidenceTaxonomy] | None = None, | ||
| ) -> EvidenceTaxonomy: | ||
| """Look up an obligation by ID and return its evidence taxonomy.""" | ||
| if cache is not None and obligation_id in cache: | ||
| return cache[obligation_id] | ||
| for obligation in catalog.obligations: | ||
| if obligation.id == obligation_id: | ||
| taxonomy = _classify_obligation_taxonomy( | ||
| claim_oracle=obligation.claim.oracle, |
| lines.append( | ||
| f"- `{cell['claim_id']}` -- result `{cell['result']}`; " | ||
| f"artifact `{cell['artifact'] or 'missing'}`; " | ||
| f"reviewer `{cell['reviewer'] or 'missing'}`" |
Closes #855. `devtools proof-pack` produced an undifferentiated report where 533 stable obligations and 32 required gates looked indistinguishable from change-specific evidence; a clean tree still produced catalog-quality checks without making the `affected=0` case visible. Agents could not tell what to run now vs. what was static metadata. - `EvidenceTaxonomy` (six-way classification) is derived from the existing `oracle`, `independence_level`, and `evidence_class` fields without new catalog metadata: `executable_behavior`, `observability`, `architectural_static`, `metadata_spec`, `manual_review`, `advisory`. - Markdown report restructured: Required Gates first (focused + always-on, deduplicated), Always-On PR Gates, Confidence Gates (optional), Affected Evidence by Taxonomy (with actionable / does-not-block labels), Agent Judgment Cells (with severity guidance), and Known Gaps explicitly labeled non-blocking. - Adds `clean_tree` flag and `_context` so an unchanged tree reports "No changed paths — zero obligations". Closes #855
Closes #855. `devtools proof-pack` produced an undifferentiated report where 533 stable obligations and 32 required gates looked indistinguishable from change-specific evidence; a clean tree still produced catalog-quality checks without making the `affected=0` case visible. Agents could not tell what to run now vs. what was static metadata. - `EvidenceTaxonomy` (six-way classification) is derived from the existing `oracle`, `independence_level`, and `evidence_class` fields without new catalog metadata: `executable_behavior`, `observability`, `architectural_static`, `metadata_spec`, `manual_review`, `advisory`. - Markdown report restructured: Required Gates first (focused + always-on, deduplicated), Always-On PR Gates, Confidence Gates (optional), Affected Evidence by Taxonomy (with actionable / does-not-block labels), Agent Judgment Cells (with severity guidance), and Known Gaps explicitly labeled non-blocking. - Adds `clean_tree` flag and `_context` so an unchanged tree reports "No changed paths — zero obligations". Closes #855
Summary
Classify every affected proof obligation by evidence taxonomy so agents can distinguish executable checks from static declarations, metadata completeness assertions, and advisory noise.
Problem
devtools proof-packproduced an undifferentiated report where 533 stable obligations and 32 required gates looked like change-specific evidence. A clean tree still reported catalog-quality checks without making theaffected=0case visible. Agents couldn't tell what to run now vs. what was static metadata.Solution
Evidence Taxonomy
Introduced
EvidenceTaxonomy— a six-way classification derived from existing oracle, independence_level, and evidence_class fields (no new catalog metadata required):executable_behaviorobservabilityarchitectural_staticmetadata_specmanual_reviewadvisoryReport Restructuring
The markdown output now shows:
Clean-Tree Distinction
Added
clean_treeflag and_contextfield. When no paths changed, the report states: "No changed paths -- zero obligations are change-specific. Catalog stats reflect the baseline, not a diff."Files Changed
polylogue/proof/models.py— addEvidenceTaxonomyLiteral typedevtools/proof_pack.py— taxonomy classification, grouping, restructured render_markdown and _print_human_reporttests/unit/devtools/test_proof_pack.py— tests for taxonomy grouping and clean-tree behaviordocs/verification-catalog.md— regenerated (EvidenceTaxonomy added to model exports)Verification
Closes #855.