Repository navigation
fix(verification): bind campaign coverage to authored catalog - #706
Conversation
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
|
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 (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. Review rate limit: 0/1 reviews remaining, refill in 49 minutes and 4 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
|
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
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()todevtools verify-manifeststo compare campaign names and key fields against the authored scenario catalog. - Refreshed
docs/plans/campaign-coverage.yamlfrom 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() |
| def _string_tuple(value: object) -> tuple[str, ...]: | ||
| if not isinstance(value, list): | ||
| return () | ||
| return tuple(item for item in value if isinstance(item, str)) |
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
|
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. |
Summary
Make
docs/plans/campaign-coverage.yamlexecutable 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-manifestsnow compares the campaign coverage manifest againstdevtools.authored_scenario_catalogfor 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→ passedpytest -q tests/unit/devtools/test_verify_manifests.py→ 12 passeddevtools render-all --check→ passeddevtools 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→ passeddevtools verify --quick→ all checks passedRef #594