Skip to content

fix(proof): enforce proof-pack check policy - #690

Merged
Sinity merged 5 commits into
masterfrom
feature/fix/proof-pack-check-policy
May 2, 2026
Merged

Sinity merged 5 commits into
masterfrom
feature/fix/proof-pack-check-policy

Conversation

@Sinity

@Sinity Sinity commented May 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds a blocking proof-pack policy mode and wires it into the fast verification baseline. The report now carries catalog-quality check results, exposes agent judgment cells as structured artifact-oriented records, and routes proof-pack devtools changes through proof-catalog impact instead of treating them as unknown paths.

Ref #594
Ref #635

Problem

#594 identified that proof-pack was useful as a confidence report but still passive: existing catalog quality checks for weak evidence, stale runner trust, missing breaker metadata, and zero-subject claims were not connected to a nonzero command mode. The quick verification path also had no focused proof-check lane, so proof quality could regress unless a reviewer manually noticed report output.

The report also still described manual-review cells, even though the intended workflow is for coding agents to produce or cite judgment artifacts.

Solution

  • Add devtools proof-pack --check, including a check payload in JSON/Markdown/human output when requested.
  • Reuse existing catalog quality checks from build_verification_catalog() as blocking policy failures.
  • Block affected serious agent-judgment cells unless they carry a tracked exception.
  • Keep known gaps and suppressed routing visible as warnings until fix(verification): make coverage declarations executable contracts #590/refactor(verification): replace proof reports with standard evidence #594 make gap lifecycle and unrouted-path suppressions executable enough to fail globally.
  • Add devtools proof-pack --check to devtools verify --quick.
  • Classify devtools/proof_pack.py and devtools/obligation_diff.py as proof-catalog changes for impact routing.
  • Rename manual_review_cells to agent_judgment_cells and render artifact/reviewer/produced_at/freshness/result fields.

Verification

  • pytest -q tests/unit/devtools/test_proof_pack.py
  • pytest -q tests/unit/devtools/test_verify.py tests/unit/proof/test_diffing.py
  • pytest -q tests/unit/devtools/test_verify.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py
  • mypy tests/unit/devtools/test_proof_pack.py
  • ruff check devtools/proof_pack.py tests/unit/devtools/test_proof_pack.py devtools/command_catalog.py
  • ruff check devtools/verify.py devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_verify.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py
  • ruff format --check devtools/verify.py devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_verify.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py
  • devtools render-all --check
  • devtools proof-pack --check --json | jq '.check'
  • devtools proof-pack --path polylogue/proof/catalog.py --check --markdown | sed -n '/### Agent Judgment Cells/,$p'
  • devtools verify --quick
  • push hook: devtools verify --quick

Remaining Risk

This is not the full #594 closure. Evidence freshness still needs persisted CI/local run metadata, serious known-gap lifecycle still belongs with #590 manifest contracts, and unrouted changed paths are warnings until there is an explicit suppression model precise enough to avoid false failures on tests and non-source files.

Summary by CodeRabbit

  • New Features

    • Added a --check flag to the proof-pack command that evaluates quality checks and returns a failure status if issues are detected.
    • Verification process now includes an automatic proof-pack quality check gate as part of the pre-push/pre-PR verification steps.
  • Tests

    • Added comprehensive tests for quality check policy evaluation, agent judgment cells, and CLI flag behavior.

Sinity added 4 commits May 2, 2026 07:13
Problem: proof-pack exposed affected assurance domains and manual-review cells, but there was no command mode that made existing proof-quality failures block local or PR automation. Issue #594 calls for the report surface to reuse the catalog quality laws instead of leaving them as passive context.\n\nWhat changed: add catalog quality checks to the proof-pack payload, add a --check mode, evaluate existing catalog quality errors and affected serious manual-review cells as blocking policy failures, and keep known gaps/suppressed routing visible as warnings until their manifests become executable contracts.\n\nVerification:\n- pytest -q tests/unit/devtools/test_proof_pack.py\n- ruff check devtools/proof_pack.py tests/unit/devtools/test_proof_pack.py devtools/command_catalog.py\n- ruff format --check devtools/proof_pack.py tests/unit/devtools/test_proof_pack.py devtools/command_catalog.py\n- devtools render-all --check\n\nRef #594
Problem: #594 requires the quick verification path to run a proof-law or proof-check lane, but proof-pack policy was only available as an explicit command. Proof-pack tooling changes also routed as unknown paths, which made the new policy warn on its own implementation file.\n\nWhat changed: add devtools proof-pack --check to the non-pytest verify baseline and classify proof-pack/obligation-diff devtools as proof-catalog changes so they select proof obligations and focused proof tests.\n\nVerification:\n- pytest -q tests/unit/devtools/test_verify.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py\n- pytest -q tests/unit/devtools/test_verify.py tests/unit/proof/test_diffing.py\n- ruff check devtools/verify.py devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_verify.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py\n- ruff format --check devtools/verify.py devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_verify.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py\n- devtools proof-pack --check --json | jq '.check'\n\nRef #594
Problem: #594 refined manual-review cells into agent judgment cells because the report is used by coding agents that can produce review artifacts. Keeping the old payload name made the workflow sound human-only and hid the intended artifact shape.\n\nWhat changed: replace the proof-pack payload and rendered report wording with agent_judgment_cells, update the check policy to describe missing agent judgment artifacts, and update tests to cover the renamed contract.\n\nVerification:\n- pytest -q tests/unit/devtools/test_proof_pack.py\n- ruff check devtools/proof_pack.py tests/unit/devtools/test_proof_pack.py\n- ruff format --check devtools/proof_pack.py tests/unit/devtools/test_proof_pack.py\n- devtools proof-pack --path polylogue/proof/catalog.py --check --json | jq '{check:.check, cells:.agent_judgment_cells}'\n\nRef #594\nRef #635
Problem: #594 requires manual-review cells to become agent judgment cells with artifact-oriented fields, but the proof-pack report still only exposed a count. That left agents without a concrete object to satisfy or justify.\n\nWhat changed: include artifact, reviewer, produced_at, freshness, and result fields on agent judgment cells, render them in Markdown, and cover the section in proof-pack tests.\n\nVerification:\n- pytest -q tests/unit/devtools/test_proof_pack.py\n- ruff check devtools/proof_pack.py tests/unit/devtools/test_proof_pack.py\n- ruff format --check devtools/proof_pack.py tests/unit/devtools/test_proof_pack.py\n- devtools proof-pack --path polylogue/proof/catalog.py --check --markdown | sed -n '/### Agent Judgment Cells/,/home/sinity/.nix-profile'\n\nRef #594
Copilot AI review requested due to automatic review settings May 2, 2026 05:21
@coderabbitai

coderabbitai Bot commented May 2, 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 51 minutes and 10 seconds before requesting another review.

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 @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: 4182950f-f478-40b8-8088-50abec9aa490

📥 Commits

Reviewing files that changed from the base of the PR and between 5a48725 and 255e699.

📒 Files selected for processing (4)
  • devtools/proof_pack.py
  • polylogue/proof/diffing.py
  • tests/unit/devtools/test_proof_pack.py
  • tests/unit/proof/test_diffing.py
📝 Walkthrough

Walkthrough

The PR introduces a quality-check enforcement mechanism into the proof-pack tool. A new evaluate_check_policy() function scans proof-pack reports for catalog quality errors and untracked serious agent-judgment cells, producing pass/fail verdicts. The --check CLI flag attaches this verdict and exits non-zero on failure. The check gate is wired into the verify pipeline and diffing routes are updated to recognize proof-pack changes as proof-catalog subjects.

Changes

Proof-Pack Check Enforcement & Integration

Layer / File(s) Summary
Report Data Shape
devtools/proof_pack.py
build_proof_pack payload adds catalog_quality_checks and agent_judgment_cells; removes manual_review_cells.
Policy Evaluation Logic
devtools/proof_pack.py
evaluate_check_policy(report) produces {status, errors, warnings} by scanning quality checks and serious judgment cells, returning "error" when untracked serious cells or catalog errors exist. _agent_judgment_cells(...) replaces manual-review cells with severity/result/artifact fields.
CLI & Verify Wiring
devtools/proof_pack.py, devtools/verify.py, devtools/command_catalog.py
--check flag attaches computed verdict to report and exits non-zero on failure. build_verify_steps() adds proof-pack --check gate. Command catalog includes example invocation with --check.
Output Rendering
devtools/proof_pack.py
Markdown and human outputs render "Check Policy" section (status + errors/warnings) and "Agent Judgment Cells" section with result/artifact/reviewer/freshness details.
Routing & Classification
polylogue/proof/diffing.py
_classify_path expands proof_catalog routing to include devtools/obligation_diff.py and devtools/proof_pack.py alongside devtools/affected_obligations.py.
Tests & Validation
tests/unit/devtools/test_proof_pack.py, tests/unit/devtools/test_verify.py, tests/unit/proof/test_diffing.py
New tests validate policy evaluation (error on catalog failures, error on untracked serious cells, ok on tracked exceptions), CLI exit behavior, report field structure, and proof-catalog routing for proof-pack changes.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related issues

Possibly related PRs

Suggested labels

area:qa


🐰 A check-policy rabbit hops through the night,
Scanning for errors, keeping assertions tight,
Catalog quality guards each tracked exception,
Proof-pack now blocks with judgment and direction,
Verify gates rise—quality's in sight!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 8.70% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarizes the main change: adding enforcement of a proof-pack check policy, which is the primary objective across all modified files.
Description check ✅ Passed The description includes all required template sections: Summary, Problem, Solution, and Verification with detailed commands. A Changelog section was appropriately omitted, and Risks and Follow-ups is included.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/proof-pack-check-policy

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
Review rate limit: 0/1 reviews remaining, refill in 51 minutes and 10 seconds.

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

@github-actions

github-actions Bot commented May 2, 2026 •

Copy link
Copy Markdown
Contributor

Polylogue Proof Pack

Refs: origin/master..HEAD
Changed paths: 7

Affected Domains

  • architecture_discipline — 4 claim(s), maturity growing
  • operational_resilience — 14 claim(s), maturity seed
  • schema_correctness — 1 claim(s), maturity growing
  • spec_completeness — 3 claim(s), maturity seed
  • surface_parity — 1 claim(s), maturity nascent
  • test_quality — 1 claim(s), maturity growing
  • unclassified — 18 claim(s), maturity seed
Additional routed domains with zero affected claims
  • benchmark_coverage — maturity seed
  • cli_surface — maturity established
  • distribution — maturity seed
  • docs_media — maturity seed
  • migration_safety — maturity nascent
  • mutation_coverage — maturity growing
  • performance — maturity nascent
  • pipeline_correctness — maturity growing
  • provider_coverage — maturity growing
  • scenario_coverage — maturity nascent
  • security_privacy — maturity nascent
  • site_publication — maturity seed
  • spec_accuracy — maturity seed
  • storage_correctness — maturity established

Focused Gates

  • devtools render-all --check — generated surface or renderer changed
  • pytest tests/unit/proof — proof kernel or catalog changed
  • pytest tests/unit/devtools/test_proof_pack.py — proof-pack policy or CLI changed
  • pytest tests/unit/devtools/test_render_verification_catalog.py — catalog renderer changed
  • devtools proof-pack --check — proof-pack policy gate changed
  • devtools render-verification-catalog --check — verification catalog must stay current

Required PR Gates

  • devtools verify --quick — full PR gate remains explicit
  • devtools verify — full PR gate remains explicit

Optional Confidence Gates

  • devtools build-package — deployment readiness gate; run when packaging or release confidence matters
  • nix flake check — deployment readiness gate; run when packaging or release confidence matters

Known Gaps

  • test_quality: direct_coverage: Coverage per-module not tracked (only aggregate fail_under) [owner: test-quality; next: Add measurable quality gate for this dimension], flakiness: No systematic flakiness tracking, CI retry, or quarantine [owner: test-quality; next: Add measurable quality gate for this dimension], fuzz: Atheris fuzz targets not run in CI [owner: test-quality; next: Add measurable quality gate for this dimension], mock_depth: Mock depth not measured or enforced [owner: test-quality; next: Add measurable quality gate for this dimension]
Additional gaps in zero-claim routed domains
  • distribution: dev_install: Not verified in CI; devshell is canonical environment [owner: distribution; next: Add package/build or cross-artifact CI gate], distribution: No scenario for install/package verification [owner: scenario-coverage; next: Add scenario family or generated projection for this subject], install_parity: No cross-artifact equivalence verification (wheel vs sdist vs Nix) [owner: distribution; next: Add package/build or cross-artifact CI gate], macos: No macOS CI runner [owner: distribution; next: Add package/build or cross-artifact CI gate], sdist: Not built or tested in CI [owner: distribution; next: Add package/build or cross-artifact CI gate], wheel: Not built or tested in CI [owner: distribution; next: Add package/build or cross-artifact CI gate], windows: No Windows CI runner [owner: distribution; next: Add package/build or cross-artifact CI gate]
  • docs_media: docs_media: No scenario for documentation freshness verification [owner: scenario-coverage; next: Add scenario family or generated projection for this subject], docs_media: README examples and media are not yet generated from executable scenario projections. [owner: docs-media; next: Add executable scenario projection or media integrity gate], docs_media: Screenshots and VHS media have no committed nonblank/readability verification. [owner: docs-media; next: Add executable scenario projection or media integrity gate]
  • migration_safety: migration_safety: No scenario for migration safety verification [owner: scenario-coverage; next: Add scenario family or generated projection for this subject]
  • performance: performance: No scenario family exercising memory or throughput budgets [owner: scenario-coverage; next: Add scenario family or generated projection for this subject]
  • security_privacy: dependency_audit: No dependency vulnerability scanning in CI [owner: security-privacy; next: Add dedicated security/privacy gate for this area], file_permissions: Crawl-source file permissions not verified [owner: security-privacy; next: Add dedicated security/privacy gate for this area], secrets_detection: No automated secrets scanning in CI [owner: security-privacy; next: Add dedicated security/privacy gate for this area], security_privacy: Security verification uses unit tests, not scenario specs [owner: scenario-coverage; next: Add scenario family or generated projection for this subject], xss_prevention: No dedicated XSS test file; relies on snapshot rendering [owner: security-privacy; next: Add dedicated security/privacy gate for this area]
  • site_publication: site_publication: Static-site publication has no visual or hyperlink integrity gate. [owner: docs-media; next: Add executable scenario projection or media integrity gate]
  • storage_correctness: storage_correctness: No dedicated scenario family for storage-layer verification [owner: scenario-coverage; next: Add scenario family or generated projection for this subject]

Oracle / Cost

  • oracle mix: {"construction_sanity": 509, "drift_check": 5, "manual_review": 1, "proof": 37, "smoke": 12}
  • cost tier: {"static": 548, "unit": 16}
  • stable affected obligations: 564
  • agent judgment cells: 1

Agent Judgment Cells

  • operation.effect.privacy_safe_evidence — result tracked_exception; artifact missing; reviewer missing; produced_at missing; freshness missing

@Sinity

Sinity commented May 2, 2026

Copy link
Copy Markdown
Owner Author

Automated review / Proof Pack triage:

  • Proof Pack focused gates were read and used. It requested:
    • devtools render-all --check — already clean in the PR verification and devtools verify --quick.
    • pytest tests/unit/proof — ran after the comment; included below.
    • pytest tests/unit/devtools/test_render_verification_catalog.py — ran after the comment; included below.
    • devtools render-verification-catalog --check — ran after the comment; sync OK.
  • Known gaps are in test_quality plus zero-claim routed domains. They are pre-existing non-blocking report warnings for this slice; the PR intentionally leaves serious gap lifecycle to fix(verification): make coverage declarations executable contracts #590/refactor(verification): replace proof reports with standard evidence #594 follow-up because the manifest contract is not executable yet.
  • Agent judgment cell shown by Proof Pack is the existing tracked exception operation.effect.privacy_safe_evidence; the new check policy treats it as non-blocking because it carries a tracked exception.
  • CodeRabbit currently has only the in-progress/rate-limited boilerplate and no substantive findings to act on.

Additional focused verification after reading Proof Pack:

pytest -q tests/unit/proof tests/unit/devtools/test_render_verification_catalog.py
88 passed in 16.70s

devtools render-verification-catalog --check
render-verification-catalog: sync OK: docs/verification-catalog.md

Copilot AI 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.

Pull request overview

Adds an enforceable proof-pack policy gate and integrates it into the fast verification baseline so proof-catalog quality regressions (and serious agent-judgment gaps) can fail devtools verify --quick rather than remaining report-only.

Changes:

  • Add devtools proof-pack --check with a computed check result and non-zero exit on blocking policy failures.
  • Extend proof-pack payload/rendering: include catalog quality checks and rename/reshape manual_review_cells → agent_judgment_cells.
  • Route devtools/proof_pack.py and devtools/obligation_diff.py as proof_catalog changes; wire the new gate into devtools verify --quick and add/adjust tests.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
devtools/proof_pack.py Implements --check, blocking policy evaluation, and new agent-judgment + catalog-quality payload/rendering.
devtools/verify.py Adds proof-pack --check to the default/quick verification step list and updates docs.
polylogue/proof/diffing.py Classifies proof-pack/obligation-diff devtools changes as proof_catalog for impact routing.
devtools/command_catalog.py Updates proof-pack command examples to include --check.
tests/unit/devtools/test_proof_pack.py Adds unit coverage for new report keys, markdown rendering, and check-policy exit behavior.
tests/unit/devtools/test_verify.py Updates quick-verify expectations to include the new proof-pack check step.
tests/unit/proof/test_diffing.py Verifies devtools proof-pack changes route to proof-catalog obligations/checks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread devtools/proof_pack.py Outdated

suppressed = _suppressed_change_subjects(report)
if suppressed:
warnings.append("changed paths were suppressed from obligation routing: " + ", ".join(suppressed[:10]))
Comment thread devtools/proof_pack.py Outdated
Comment on lines +131 to +135
if isinstance(cell, dict) and cell.get("severity") == "serious" and not cell.get("tracked_exception")
]
for cell in serious_judgment_cells:
errors.append(
"affected serious claim needs agent judgment artifact: "

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@polylogue/proof/diffing.py`:
- Around line 589-594: The routing condition that returns "proof_catalog" (the
if checking path.startswith("polylogue/proof/") or the set containing
"devtools/proof_pack.py") needs to also include the proof-pack test path so
proof-pack validations run; update the condition that uses the path variable and
returns "proof_catalog" to treat "tests/unit/devtools/test_proof_pack.py" (or a
startswith "tests/unit/devtools/" check that covers that test) as a match, and
make the same change in the duplicate block around the later occurrence (the
other if that returns "proof_catalog").
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8e746da8-4ccf-4059-b31d-45dc84d22595

📥 Commits

Reviewing files that changed from the base of the PR and between 365b736 and 5a48725.

📒 Files selected for processing (7)
  • devtools/command_catalog.py
  • devtools/proof_pack.py
  • devtools/verify.py
  • polylogue/proof/diffing.py
  • tests/unit/devtools/test_proof_pack.py
  • tests/unit/devtools/test_verify.py
  • tests/unit/proof/test_diffing.py

Comment thread polylogue/proof/diffing.py Resolved
Problem: automated review found that proof-pack check warnings referred to suppressed changed paths even though the payload stores change-subject IDs, that produced judgment artifacts would still fail the gate, and that proof-pack report changes should recommend proof-pack-specific focused checks.\n\nWhat changed: make the suppressed-routing warning precise, allow serious judgment cells with accepted artifact/reviewer/produced_at/freshness metadata to satisfy the gate, route the proof-pack test file as proof-catalog impact, and add proof-pack-specific focused checks for proof-catalog changes.\n\nVerification:\n- pytest -q tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py\n- ruff check devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py\n- ruff format --check devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py\n- devtools proof-pack --check --json | jq '.check'\n\nRef #594
@Sinity

Sinity commented May 2, 2026

Copy link
Copy Markdown
Owner Author

Review follow-up after automated comments:

  • Copilot suppressed-routing wording: fixed. The warning now says change-subject IDs were suppressed from obligation routing because the payload stores IDs such as test:... / unknown:..., not raw paths.
  • Copilot judgment-artifact concern: fixed. Serious agent judgment cells now pass if they have an accepted result plus artifact, reviewer, produced_at, and freshness metadata, or a tracked exception.
  • CodeRabbit proof-pack routing concern: fixed. Proof-catalog/report changes now recommend pytest tests/unit/devtools/test_proof_pack.py and devtools proof-pack --check; tests/unit/devtools/test_proof_pack.py itself routes as proof-catalog impact. The “duplicate block” mentioned by the bot does not exist in current polylogue/proof/diffing.py.
  • CodeRabbit docstring coverage warning is repo-wide noise from its external threshold, not a changed-code failure; no action for this PR.

Additional verification for the review-fix commit:

pytest -q tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py
22 passed in 12.53s

ruff check devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py
All checks passed!

ruff format --check devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py
4 files already formatted

devtools proof-pack --check --json | jq '.check'
status ok; warnings only for still-intentional non-blocking suppressed IDs / known gaps

push hook: devtools verify --quick
verify: all checks passed

CI note: GitHub Actions Python-matrix jobs are pending because repository CI quota is exhausted. Completed checks are green, and the local quick baseline plus focused Proof Pack gates passed.

@Sinity
Sinity merged commit 64b3331 into master May 2, 2026
13 checks passed
@Sinity
Sinity deleted the feature/fix/proof-pack-check-policy branch May 2, 2026 05:31
Sinity added a commit that referenced this pull request May 7, 2026
Summary:
Adds a blocking proof-pack policy mode and wires it into the fast verification baseline. The report now carries catalog-quality check results, exposes agent judgment cells as structured artifact-oriented records, and routes proof-pack devtools changes through proof-catalog impact instead of treating them as unknown paths.

Problem:
Proof Pack was useful as a confidence report but still passive: existing catalog quality checks for weak evidence, stale runner trust, missing breaker metadata, and zero-subject claims were not connected to a nonzero command mode. The quick verification path also had no focused proof-check lane, so proof quality could regress unless a reviewer manually noticed report output.

Solution:
- Add devtools proof-pack --check with JSON/Markdown/human check payloads and nonzero exit on blocking policy failures.
- Reuse existing catalog quality checks as blocking policy inputs.
- Block affected serious agent-judgment cells unless they carry a tracked exception or an accepted artifact with reviewer, produced_at, and freshness metadata.
- Keep known gaps and suppressed routing visible as warnings until #590/#594 make gap lifecycle and unrouted-path suppressions executable enough to fail globally.
- Add devtools proof-pack --check to devtools verify --quick.
- Classify proof-pack/obligation-diff tooling and proof-pack tests as proof-catalog impact and recommend proof-pack-specific focused gates.
- Rename manual_review_cells to agent_judgment_cells and render artifact/reviewer/produced_at/freshness/result fields.

Verification:
- pytest -q tests/unit/devtools/test_proof_pack.py
- pytest -q tests/unit/devtools/test_verify.py tests/unit/proof/test_diffing.py
- pytest -q tests/unit/devtools/test_verify.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py
- pytest -q tests/unit/proof tests/unit/devtools/test_render_verification_catalog.py
- pytest -q tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py
- mypy tests/unit/devtools/test_proof_pack.py
- ruff check devtools/proof_pack.py tests/unit/devtools/test_proof_pack.py devtools/command_catalog.py
- ruff check devtools/verify.py devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_verify.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py
- ruff check devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py
- ruff format --check devtools/verify.py devtools/proof_pack.py polylogue/proof/diffing.py tests/unit/devtools/test_verify.py tests/unit/devtools/test_proof_pack.py tests/unit/proof/test_diffing.py
- devtools render-all --check
- devtools render-verification-catalog --check
- devtools proof-pack --check --json | jq '.check'
- devtools proof-pack --path polylogue/proof/catalog.py --check --markdown | sed -n '/### Agent Judgment Cells/,$p'
- devtools verify --quick
- push hook: devtools verify --quick

CI note:
GitHub Actions Python-matrix jobs were pending because repository CI quota was exhausted. Completed GitHub checks were green; local quick verification and focused Proof Pack gates passed.

Ref #594
Ref #635
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.

2 participants