Skip to content

refactor(verification): rename proof-pack and retire obligation surfaces (#1065 #594) - #1083

Merged
Sinity merged 1 commit into
masterfrom
feature/refactor/retire-proof-surfaces
May 16, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/refactor/retire-proof-surfaces

Conversation

@Sinity

@Sinity Sinity commented May 16, 2026

Copy link
Copy Markdown
Owner

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 fix(verification): narrow proof routing false positives and activate evidence report blocking #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

…rfaces

Rename the proof-era operator entry points and library symbols to standard
verification-impact terminology. Pack A and Pack B of #1065 renamed report
headings and added artifact-source grouping; this is Pack C — entry-point
migration.

- devtools/proof_pack.py -> devtools/verification_impact.py
- devtools/affected_obligations.py -> devtools/verification_impact_cli.py
- CommandSpec name "affected-obligations" -> "verification-impact"
- verify baseline gate "affected-obligations check" ->
  "verification-impact check"
- build_proof_pack -> build_verification_impact_report
- changed-path routing recommendations now suggest verification-impact
- catalog claim text and CLAUDE.md / CONTRIBUTING.md wording updated

Tests renamed and asserts updated. Inherited proof_catalog routing test
failures from #1079 fixed in the same slice.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@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 44 minutes and 29 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: 7413c9f2-94bf-4ad1-8d4f-6bb4c5a61958

📥 Commits

Reviewing files that changed from the base of the PR and between fc3c43f and 693f2af.

📒 Files selected for processing (23)
  • CLAUDE.md
  • CONTRIBUTING.md
  • README.md
  • devtools/command_catalog.py
  • devtools/render_verification_catalog.py
  • devtools/verification_impact.py
  • devtools/verification_impact_cli.py
  • devtools/verify.py
  • docs/devtools.md
  • docs/plans/test-coverage-domains.yaml
  • docs/verification-catalog.md
  • docs/verification-lab.md
  • polylogue/proof/catalog.py
  • polylogue/proof/diffing.py
  • polylogue/proof/models.py
  • tests/unit/devtools/test_devtools_main.py
  • tests/unit/devtools/test_render_devtools_reference.py
  • tests/unit/devtools/test_verification_impact.py
  • tests/unit/devtools/test_verification_impact_cli.py
  • tests/unit/devtools/test_verify.py
  • tests/unit/proof/test_diffing.py
  • tests/unit/proof/test_diffing_runtime.py
  • tests/unit/verification/test_breakers.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/retire-proof-surfaces

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.

@Sinity
Sinity merged commit 9d5e0e1 into master May 16, 2026
4 checks passed
@Sinity
Sinity deleted the feature/refactor/retire-proof-surfaces branch May 16, 2026 11:27
Sinity added a commit that referenced this pull request May 16, 2026
… (#1091)

## Summary

Adds `devtools evidence-dashboard` and `devtools evidence-dashboard
trace` as the V7/V8 surface for #998 — a pytest-first evidence dashboard
built over the real artifacts produced by PRs #1083/#1086/#1087/#1088,
plus a changed-path traceability view that links each change to its
committed contract evidence and required gates.

## Problem

The pytest-first evidence model is now real:
`.cache/verify/last-pytest.json` (#1087),
`.cache/verification/evidence/*.json` (100+ artifacts),
`.cache/last-verify-result.json`, the SLO catalog with tier/freshness
(#1086), and parsed CI workflow facts (#1088) all exist. What was
missing was the single surface that reads those artifacts and presents
the V7 dashboard / V8 traceability view from #998, without rebuilding a
proof-row aggregator.

`devtools evidence-report` overlaps in shape but is anchored to
verify-history + suppressions + witnesses. It is intentionally left in
place; the new dashboard is a sibling so existing consumers and tests
are not disturbed.

## Solution

New module `devtools/evidence_dashboard.py` with sections, each backed
by a real artifact (or reported as `available: false` with the reason —
no aspirational rows):

- pytest health from `.cache/verify/last-pytest.json` (status, counts,
duration, last-run, staleness)
- contract evidence inventory from
`.cache/verification/evidence/*.json`, grouped by surface, with
stale-artifact and dirty-tree detection
- coverage from `coverage.xml` (line %) or `.coverage` (presence only)
when present
- benchmark campaign freshness from `.local/benchmark-campaigns/`
- SLO catalog rows (required vs informational) parsed via the existing
`devtools.verify_slos._parse_slo_catalog`
- static gate status from `.cache/last-verify-result.json` (preferred)
falling back to `.cache/verify-history.jsonl`
- witness counts (`tests/witnesses/` + `.local/witnesses/`)
- mutation campaign freshness from `.local/mutation-campaigns/`

`evidence-dashboard trace --base <ref> --head <ref>` reuses
`build_verification_impact_report` and joins each change subject (by
`test_nodeid` → test source path) to the contract-evidence artifacts
emitted by that test, plus required PR gates and deployment gates.
Output is JSON by default and Markdown when `--markdown` is set; both
formats are combinable.

Registered in `devtools/command_catalog.py`, `docs/devtools.md`
regenerated.

## Verification

Local commands run:

- `nix develop -c pytest tests/unit/devtools/test_evidence_dashboard.py
-v` — 15 passed
- `nix develop -c pytest tests/unit/devtools/test_evidence_dashboard.py
tests/unit/devtools/test_evidence_report.py
tests/unit/devtools/test_command_catalog.py
tests/unit/devtools/test_render_devtools_reference.py -q` — 35 passed
- `nix develop -c mypy devtools/evidence_dashboard.py
tests/unit/devtools/test_evidence_dashboard.py` — Success: no issues
- `nix develop -c ruff check devtools/evidence_dashboard.py
tests/unit/devtools/test_evidence_dashboard.py` — clean
- `nix develop -c devtools render-all --check` — sync OK
- `nix develop -c devtools verify --quick` — exit_code 0
- `nix develop -c devtools evidence-dashboard --json` — emits dashboard
against this worktree, correctly reports missing
pytest/coverage/campaign artifacts on the clean fixture worktree,
surfaces real SLO catalog rows (3 required, 3 informational) and witness
counts
- `nix develop -c devtools evidence-dashboard trace --base origin/master
--head HEAD --json` — emits trace; 0 changes on the post-commit working
tree, required_gates and deployment_gates populated from the
verification-impact pipeline

## Artifact gaps observed

The dashboard reports these as `available: false` because the underlying
artifacts don't exist in this worktree:

- `.cache/verify/last-pytest.json` — only produced by `devtools verify`
runs that include the pytest step; a fresh worktree without a verify run
reports unavailable
- `coverage.xml` / `.coverage` — none committed; `devtools
coverage-gate` produces them
- `.local/benchmark-campaigns/` — populated only by `devtools
benchmark-campaign run <name>`
- `.local/mutation-campaigns/` — populated only by `devtools
mutmut-campaign run <name>`

These gaps are honest: the dashboard does not fabricate values, and each
section names the command needed to populate it. The main checkout at
`/realm/project/polylogue` is the same shape — the SLO catalog,
witnesses, and static-gate cache are present; coverage and pytest-report
artifacts depend on operator runs.

Ref #998
Ref #1058

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Added `evidence-dashboard` developer command with a dashboard mode to
visualize verification artifacts, test health, coverage status, and
benchmark freshness.
* Includes a trace subcommand to map changed paths to verification
impacts and related evidence.
* Both modes support JSON and Markdown output formats with configurable
thresholds.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Sinity/polylogue/pull/1091?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Claude Sonnet 4.7 <[email protected]>
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.

refactor(devtools): rename proof reports around standard test evidence

1 participant