Repository navigation
ci: register test-suite coverage contract (#6186) - #6360
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 19 minutes. View limit details
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a1b70f398e
ℹ️ 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.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
5 open issues
The phrase “exactly one registry entry names the suite’s files” reads like a non-overlap constraint… · New Thecontractfield looks like it’s intended to be a link target, but.github/ci-policy.md#...… · New Thesescope.boundaries[*].pathvalues are presented as machine-readable patterns, but this entry… · New This boundary’spathvalue is descriptive prose rather than a path/glob like the other entries,… · Newuncovered_countis derived data that can drift as soon as suites are edited. To keep the registry… · New
What changed in this PR
Adds Phase 1 documentation + a machine-readable registry to define and audit the “test-suite coverage contract” across the repo.
Changes:
- Added
.github/test-suite-registry.jsoninventory (schema v1) enumerating suites, venues, and coverage status. - Documented the five-rule coverage contract and Phase scope in
.github/ci-policy.md.
| File | Description |
|---|---|
| .github/test-suite-registry.json | Introduces the Phase 1 registry (suite definitions, venue state snapshot, and coverage status). |
| .github/ci-policy.md | Defines the five-rule coverage contract and points readers to the JSON registry. |
Review effort: Lite
| 1. **Registered:** exactly one registry entry names the suite's files, | ||
| venue, and invocation; adding a suite without an entry is incomplete. |
There was a problem hiding this comment.
Disposition (task 13288, lane code-v): noted and accepted as Phase 1 wording. The contract sentence in .github/ci-policy.md ("exactly one registry entry names the suite's files") is a one-entry-per-suite rule, not a path non-overlap rule — the registry intentionally allows overlapping paths for specialized suites under broader globs, and suite identity is the entry id. The wording will be tightened when the Phase 2 validator (#6185 family) formalizes overlap resolution; it does not block this registry landing.
| }, | ||
| "note": "Enablement is point-in-time state, not evidence that a suite ran. Workflow states below share this audit timestamp." | ||
| }, | ||
| "contract": ".github/ci-policy.md#test-suite-coverage-contract-6185-phase-1-6186", |
There was a problem hiding this comment.
Disposition (task 13288, lane code-v): noted. The contract field is a repo-rooted path+anchor (.github/ci-policy.md#test-suite-coverage-contract-6185-phase-1-6186), unambiguous for consumers resolving from the repo root, which is how the registry is consumed in this repo. A relative ./ci-policy.md form would break repo-root consumers outside .github/. Keeping the repo-rooted form for Phase 1; the schema note can be added with the Phase 2 validator.
| "path": "fixtures, golden data, and test helper/generator files", | ||
| "decision": "not_a_suite", | ||
| "reason": "Data and helpers are inputs to suites, not independently invoked test suites." |
There was a problem hiding this comment.
Fixed in commit c1ad745 on this branch: this boundary is categorical rather than a filesystem pattern, so its prose moved from path to an explicit category field (same decision not_a_suite and reason). Every remaining path value in scope.boundaries is now a single glob. — repo-worker-code lane code-y (issue #6630)
| "uncovered_count": 43, | ||
| "uncovered_count_definition": "Number of suite rows whose status is uncovered or uncovered-in-fact; mapped rows do not assert the five-rule contract is fully proven.", |
There was a problem hiding this comment.
Disposition (task 13288, lane code-v): addressed in the registry itself: uncovered_count is paired with uncovered_count_definition ("Number of suite rows whose status is uncovered or uncovered-in-fact"), i.e. it is defined as a pure derivation from the rows in the same file, so any drift is mechanically checkable against the rows. Removing it would lose the Phase 1 baseline count the coverage ratchet compares against. Keeping with the definition; a validator assertion belongs to the Phase 2 work.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4fa27791b8
ℹ️ 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".
| "path": "pkgs/id/**", | ||
| "decision": "in_scope", | ||
| "rule": "Per-crate suite grouping, with separately named hosted-worker, Roc, NixOS, ARM snapshot, and native-shell exceptions." |
There was a problem hiding this comment.
Register the just-recipes drift-guard regression suite
The inventory omits pkgs/id/scripts/just-recipes-check-test.sh, which already exists at the declared audit commit 8295e70cbd24. This is an independently executed regression suite, not a helper: it asserts failures for changed parameter flags, dependency arguments, alias targets, and malformed JSON. In the reviewed tree, pkgs/id/flake.nix:396 explicitly invokes it through just-recipes-drift, which is listed in .github/scripts/id-pr-checks.txt. None of the registry paths matches this script, so the Phase 1 baseline leaves this suite outside subsequent coverage accounting. Add an entry naming its invocation and existing venue.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in f1a762d: registered pkgs/id/scripts/just-recipes-check-test.sh as id.just-recipes.drift-guard in .github/test-suite-registry.json — invocation just-recipes-drift flake check (pkgs/id/flake.nix, via .github/scripts/id-pr-checks.txt), venue .github/workflows/id-check.yml check_each / just-recipes-drift, status mapped. Registry now 72 suites; uncovered_count unchanged at 46 (validated: JSON parses, no duplicate ids). — queue worker lane code-j, task 13288
|
agent-note:v1
|

Summary
Adds the Phase 1 registry and summarizes the five-rule contract. The manifest records 67 suites at current main 8295e70; 43 are uncovered or uncovered-in-fact (27 with no usable venue, 16 without proven coverage). It includes the per-crate pkgs/id and pkgs/mcpx inventory, suite exceptions, venue state, explicit boundaries, and issue links.
No Phase 2 wiring, Phase 3 venue disposition, Phase 4 ratchet, or workflow-trigger change is included.
Evidence
Merge Danger
Door: Two-way — documentation and registry data only; no runtime behavior changes.
Blast Radius: Low.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.