Repository navigation
feat(xtask): add check-capability-producers producer inventory (#5531) - #9946
Conversation
Compare the language capability registry (`ripr capabilities --json`) with repository inventory the in-crate tests cannot enumerate: LanguageId variants declared in source, cells per language, lang-* features vs required_feature vs adapter directories, and proof_refs resolving to spec files. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EsjwSbvSPQdZfNsK689oNn
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 31 minutes. View limit details
Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces the cargo xtask check-capability-producers command, which validates the binary-resident language capability registry against the repository's producer inventory (including LanguageId variants, Cargo features, adapter directories, and spec references). The changes include documentation, command registration, and the implementation of the policy check along with comprehensive unit tests. No review comments were provided, so there is no additional feedback to address.
…5531) Require proof_refs to be a non-empty array of strings, flag duplicate language entries, reword why_it_matters so it does not claim enforcement the unwired gate lacks, and add parse_args, rendered-registry and enum parser negatives. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EsjwSbvSPQdZfNsK689oNn
Governing issue or accepted claim: #5531 (capability registry / admission gates); refs, does not close it.
Acceptance delta (one sentence): Adds
cargo xtask check-capability-producers, an out-of-crate inventory that fails when aLanguageIdvariant,lang-*feature, or adapter directory lacks a registry disposition, closing theLanguageId::ALLhole.Claim
The xtask-level producer inventory / admission gate left open on #5531: a new language, adapter or
lang-*feature cannot land without a registry disposition.Design and rationale
cargo xtask check-capabilitiesalready exists (validatesmetrics/capabilities.tomlvsdocs/CAPABILITY_MATRIX.md, never reads the registry), so this is a separatecheck-capability-producers; noriprbuild is forced into precommit.ripr capabilities --json(or--registry-json <path>for a saved registry; the report says it can be stale).LanguageIdvariants indomain/language.rsvs registry languages; duplicate languages rejected; every language has a cell and every cell names a registered language;lang-*Cargo features vs registryrequired_featurevsanalysis/language/directories;proof_refsmust be a non-empty string array resolving todocs/specs/RIPR-SPEC-NNNN-*.md; kind/schema_version/digest present; fail closed on empty inventory or unparseable enum.check-support-tiers), framework-level producers.docs/CI.md, changelog fragment. Standalone,ci_enforced=false, not in any required lane; it reports failures only when run. Hosted wiring is a follow-up.Proof (local, head 45a9db5, review repairs on b4f99d3)
cargo xtask check-capability-producerspasses on the real tree.analysis/language/godir added.parse_args, rendered-registry vs real inventory, enum-parser negatives.cargo xtask precommitrc 0; fmt andclippy -p xtask --all-targets -D warningsclean.check-pr, a source-levelLanguageId::ALLremoval rebuild.Gaps
Not wired into any required lane. Non-default feature builds are not inventoried. Framework-level producers, finer capability families, docs derived from the table, and the registry/
metrics/capabilities.tomlrelation remain open on #5531.🤖 Generated with Claude Code
https://claude.ai/code/session_01EsjwSbvSPQdZfNsK689oNn