Skip to content

fix(verification): bind campaign coverage to authored catalog - #706

Merged
Sinity merged 1 commit into
masterfrom
feature/fix/coverage-ci-oracle-claims
May 2, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/fix/coverage-ci-oracle-claims

Conversation

@Sinity

@Sinity Sinity commented May 2, 2026

Copy link
Copy Markdown
Owner

Summary

Make docs/plans/campaign-coverage.yaml executable against the authored mutation and benchmark campaign catalog.

Problem

The campaign coverage manifest was still partly passive: it listed a small hand-maintained subset of mutation and benchmark campaigns, so the manifest could drift away from the authored scenario catalog while still passing generic YAML/reference checks.

Solution

devtools verify-manifests now compares the campaign coverage manifest against devtools.authored_scenario_catalog for campaign names, active status, mutation paths, and test lists. The committed campaign coverage manifest was refreshed from the authored catalog, and unit tests cover both matching and stale manifests.

Verification

  • devtools verify-manifests → passed
  • pytest -q tests/unit/devtools/test_verify_manifests.py → 12 passed
  • devtools render-all --check → passed
  • devtools proof-pack --path devtools/verify_manifests.py --path tests/unit/devtools/test_verify_manifests.py --path docs/plans/campaign-coverage.yaml --path docs/verification-catalog.md --markdown --check → passed
  • devtools verify --quick → all checks passed

Ref #594

Problem: campaign-coverage.yaml was a passive duplicate of the authored
mutation and benchmark campaign registry. It had already drifted: missing many
active campaigns, carrying old names, and preserving stale path/test claims.

Solution: make verify-manifests compare campaign coverage rows against the
authored scenario catalog for campaign identity, active status, paths to mutate,
and test targets. Refresh campaign-coverage.yaml from the current catalog and
regenerate the verification catalog so the new campaign coverage subjects are
visible to proof routing.

Verification:
- ruff format devtools/verify_manifests.py tests/unit/devtools/test_verify_manifests.py
- ruff check devtools/verify_manifests.py tests/unit/devtools/test_verify_manifests.py
- devtools verify-manifests
- pytest tests/unit/devtools/test_verify_manifests.py -q
- devtools affected-obligations --path devtools/verify_manifests.py --path docs/plans/campaign-coverage.yaml --path tests/unit/devtools/test_verify_manifests.py
- devtools proof-pack --path devtools/verify_manifests.py --path docs/plans/campaign-coverage.yaml --path tests/unit/devtools/test_verify_manifests.py --check
- devtools render-verification-catalog --check
- devtools verify --quick
- pytest tests/unit/ui/test_tui.py::test_search_empty_db -q

Full devtools verify reached pytest but hit an unrelated intermittent TUI
empty-search assertion; the exact failing TUI test passed on rerun.

Ref #590
Copilot AI review requested due to automatic review settings May 2, 2026 15:07
@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 49 minutes and 4 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: de0d86bb-0220-478f-83a4-5e9ebeff233e

📥 Commits

Reviewing files that changed from the base of the PR and between 224b3c4 and 1bf2981.

📒 Files selected for processing (4)
  • devtools/verify_manifests.py
  • docs/plans/campaign-coverage.yaml
  • docs/verification-catalog.md
  • tests/unit/devtools/test_verify_manifests.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/coverage-ci-oracle-claims

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 49 minutes and 4 seconds.

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

@Sinity
Sinity merged commit 48476cd into master May 2, 2026
15 checks passed
@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

Polylogue Proof Pack

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

Affected Domains

  • architecture_discipline — 1 claim(s), maturity growing
  • spec_completeness — 2 claim(s), maturity seed
Additional routed domains with zero affected claims
  • docs_media — maturity seed
  • mutation_coverage — maturity growing

Focused Gates

  • devtools verify-manifests — structural manifest changed
  • devtools affected-obligations --path devtools/verify_manifests.py — refresh structural obligation routing
  • devtools render-verification-catalog --check — coverage manifests feed proof subjects
  • devtools proof-pack --path docs/plans/campaign-coverage.yaml --markdown — coverage changes feed proof-pack gaps
  • devtools render-all --check — generated surface or renderer changed

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

  • none for domains with affected claims
Additional gaps in zero-claim routed domains
  • docs_media: docs_media: No scenario for documentation freshness verification [owner: scenario-coverage; next: devtools scenario-projections], docs_media: README examples and media are not yet generated from executable scenario projections. [owner: docs-media; next: devtools render-docs-surface --check], docs_media: Screenshots and VHS media have no committed nonblank/readability verification. [owner: docs-media; next: devtools render-docs-surface --check]

Oracle / Cost

  • oracle mix: {"construction_sanity": 2, "drift_check": 1}
  • cost tier: {"static": 3}
  • stable affected obligations: 3
  • agent judgment cells: 0

@Sinity
Sinity deleted the feature/fix/coverage-ci-oracle-claims branch May 2, 2026 15:08

@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: 1bf2981d22

ℹ️ 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 devtools/verify_manifests.py Resolved

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

This PR makes docs/plans/campaign-coverage.yaml an enforced, executable manifest by validating it against the authored campaign catalog during devtools verify-manifests, preventing drift between the docs manifest and the source-of-truth campaign definitions.

Changes:

  • Added check_campaign_coverage_catalog() to devtools verify-manifests to compare campaign names and key fields against the authored scenario catalog.
  • Refreshed docs/plans/campaign-coverage.yaml from the authored campaign catalog.
  • Added unit tests covering both matching and stale campaign-coverage manifests.

Reviewed changes

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

File Description
devtools/verify_manifests.py Adds a new manifest check that compares campaign-coverage.yaml to the authored campaign catalog and wires it into the verify-manifests run.
tests/unit/devtools/test_verify_manifests.py Adds unit tests for the new campaign coverage catalog validation.
docs/plans/campaign-coverage.yaml Updates the campaign coverage manifest to reflect the current authored mutation/benchmark campaign catalog.
docs/verification-catalog.md Updates generated verification catalog counts to reflect the refreshed coverage registry state.

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

except ValueError as exc:
return [str(exc)]

catalog = get_authored_scenario_catalog()
Comment on lines +363 to +366
def _string_tuple(value: object) -> tuple[str, ...]:
if not isinstance(value, list):
return ()
return tuple(item for item in value if isinstance(item, str))
Sinity added a commit that referenced this pull request May 7, 2026
Make docs/plans/campaign-coverage.yaml executable against the authored mutation and benchmark campaign catalog.

Problem: the campaign coverage manifest was still partly passive. It listed a small hand-maintained subset of mutation and benchmark campaigns, so the manifest could drift away from the authored scenario catalog while still passing generic YAML/reference checks.

Solution: devtools verify-manifests now compares the campaign coverage manifest against devtools.authored_scenario_catalog for campaign names, active status, mutation paths, and test lists. The committed campaign coverage manifest was refreshed from the authored catalog, and unit tests cover both matching and stale manifests.

Verification:
- devtools verify-manifests → passed
- pytest -q tests/unit/devtools/test_verify_manifests.py → 12 passed
- devtools render-all --check → passed
- devtools proof-pack --path devtools/verify_manifests.py --path tests/unit/devtools/test_verify_manifests.py --path docs/plans/campaign-coverage.yaml --path docs/verification-catalog.md --markdown --check → passed
- devtools verify --quick → all checks passed

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

2 participants