Repository navigation
fix(verification): validate coverage manifest references - #702
Conversation
Problem: coverage manifests still carried command/path claims that were not checked against the realized tree. The new lifecycle contract from #701 made gaps structured, but stale manifest references could still survive as passive claims. What changed: verify-manifests now validates locally checkable coverage manifest references. Generated/verified/verification command fields must resolve to known devtools commands or accepted command families, and declared path fields/lists must point at existing repo paths. The new gate caught stale campaign and test-quality paths, which now point to the current test and benchmark files. Verification: devtools verify-manifests; ruff check devtools/verify_manifests.py tests/unit/devtools/test_verify_manifests.py; pytest tests/unit/devtools/test_verify_manifests.py -q; devtools affected-obligations --path devtools/verify_manifests.py --path docs/plans/campaign-coverage.yaml --path docs/plans/test-quality-coverage.yaml; devtools proof-pack --path devtools/verify_manifests.py --path docs/plans/campaign-coverage.yaml --path docs/plans/test-quality-coverage.yaml --check; devtools render-quality-reference --check; devtools render-verification-catalog --check; devtools proof-pack --path docs/plans/campaign-coverage.yaml --path docs/plans/test-quality-coverage.yaml --markdown; pytest tests/unit/devtools/test_verify_manifests.py tests/unit/proof/test_catalog.py -q; devtools verify --quick. 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 47 minutes and 23 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: 731a33d330
ℹ️ 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
Adds an additional verification gate to devtools verify-manifests to ensure coverage manifests don’t reference stale devtools commands or nonexistent filesystem paths, and updates a couple of coverage manifests to satisfy the new checks.
Changes:
- Add
check_coverage_references()to validate command fields (generated_by,verified_by,verification_command) and common path fields/lists in*coverage*.yamlmanifests. - Extend unit tests to cover accepted vs rejected command/path references.
- Refresh stale test/benchmark file references in campaign + test-quality coverage manifests.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
devtools/verify_manifests.py |
Adds a new “realized references” pass for coverage manifests and wires it into the verifier pipeline. |
tests/unit/devtools/test_verify_manifests.py |
Adds tests for the new coverage reference validation behavior (success + failure cases). |
docs/plans/campaign-coverage.yaml |
Updates mutation/benchmark campaign test paths to current filenames. |
docs/plans/test-quality-coverage.yaml |
Updates fuzz/test-quality file references to current unit test filenames. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| _EVIDENCE_COMMANDS = {"pytest", "ruff", "mypy", "nix", "polylogue", "polylogued", "polylogue-mcp"} | ||
| _COVERAGE_COMMAND_FIELDS = {"generated_by", "verified_by", "verification_command"} | ||
| _COVERAGE_PATH_FIELDS = {"config_location", "location", "path", "strategies_location"} | ||
| _COVERAGE_PATH_LIST_FIELDS = {"locations", "tests"} |
|
Pre-merge automated review/check triage:
Additional local merge gate:
|
## Summary Adds realized-reference validation to coverage manifests so command and path claims must point at current repo objects. ## Problem After coverage gaps became structured lifecycle records, coverage manifests could still carry stale generated/verified command claims or source/test/config paths. That left a passive-manifest failure mode where a row had valid shape but referenced a non-existent evidence target. ## Solution `verify-manifests` now recursively validates locally checkable coverage manifest references: generated/verified/verification commands must resolve to known devtools commands or supported command families, and declared path/list fields must exist. The new gate caught stale campaign and test-quality paths, which now point to current test and benchmark files. ## Verification - `devtools verify-manifests` - `pytest tests/unit/devtools/test_verify_manifests.py -q` - `pytest tests/unit/devtools/test_verify_manifests.py tests/unit/proof/test_catalog.py -q` - `devtools affected-obligations --path devtools/verify_manifests.py --path docs/plans/campaign-coverage.yaml --path docs/plans/test-quality-coverage.yaml` - `devtools proof-pack --path devtools/verify_manifests.py --path docs/plans/campaign-coverage.yaml --path docs/plans/test-quality-coverage.yaml --check` - `devtools proof-pack --path docs/plans/campaign-coverage.yaml --path docs/plans/test-quality-coverage.yaml --markdown` - `devtools render-quality-reference --check` - `devtools render-verification-catalog --check` - `devtools verify --quick` - `devtools verify` - pre-push `devtools verify --quick` GitHub proof-pack, lint, typecheck, nix-build, nix-check, analysis, showcase, metadata, CodeQL, and GitGuardian checks passed. GitHub pytest jobs were pending under the known CI-capacity issue; local full `devtools verify` passed. Ref #590
|
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
Adds a realized-reference pass to
verify-manifestsfor coverage manifests and fixes stale campaign/test-quality manifest paths that the new gate catches.Problem
#701 made coverage gaps structured lifecycle records, but coverage manifests could still claim generated/verified commands or source/test/config paths that do not exist. That kept a passive-manifest failure mode alive under #590: the row shape was valid, but the referenced consumer or evidence target could be stale.
Solution
devtools/verify_manifests.pynow recursively scansdocs/plans/*coverage*.yamlfor locally checkable reference fields:generated_by,verified_by, andverification_commandmust resolve to known devtools commands or accepted command families.path,location,config_location, andstrategies_locationmust point at existing files/directories.locationsandtestslists must point at existing files/directories.The new gate caught stale references in
campaign-coverage.yamlandtest-quality-coverage.yaml; those now point at current test/benchmark files.Verification
devtools verify-manifestsruff check devtools/verify_manifests.py tests/unit/devtools/test_verify_manifests.pypytest tests/unit/devtools/test_verify_manifests.py -qdevtools affected-obligations --path devtools/verify_manifests.py --path docs/plans/campaign-coverage.yaml --path docs/plans/test-quality-coverage.yamldevtools proof-pack --path devtools/verify_manifests.py --path docs/plans/campaign-coverage.yaml --path docs/plans/test-quality-coverage.yaml --checkdevtools render-quality-reference --checkdevtools render-verification-catalog --checkdevtools proof-pack --path docs/plans/campaign-coverage.yaml --path docs/plans/test-quality-coverage.yaml --markdownpytest tests/unit/devtools/test_verify_manifests.py tests/unit/proof/test_catalog.py -qdevtools verify --quickdevtools verify --quickRef #590