Repository navigation
feat(xtask): capability-docs and ripr capabilities --markdown (#5531) - #10014
Conversation
) One renderer (render_registry_block, now in domain::language_capability) feeds the drift test, `ripr capabilities --markdown` and the new `cargo xtask capability-docs [--check|--write]`, so the SUPPORT_TIERS.md registry block is checked and regenerated without a manual paste. Fails closed on missing/duplicate/reversed markers and empty renderings. Not wired into precommit or any required lane (needs a ripr build). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EsjwSbvSPQdZfNsK689oNn
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
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 14 minutes. View limit details
Comment |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
The fix is already open as #10019 ("restore omitted main golden and gate metadata"). Once it merges I will merge Generated by Claude Code |
|
Head e1ccbf7 fails Generated by Claude Code |
Summary
ripr capabilities --markdown(whole-table; refuses--json/--language) printing the generated SUPPORT_TIERS.md registry block.cargo xtask capability-docs [--check|--write] [--markdown-file <path>]: builds ripr, runs--markdown, compares/splices the exact text.--checkis the default;--writerewrites only the marker block.render_registry_blockmoved from the test-only drift module intodomain::language_capability; the drift test, the CLI and xtask all use it. Rationale: xtask does not duplicate the renderer, so the doc, the test and the command cannot disagree.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal:
Spec:
ADR:
Plan item:
Governing issue or accepted claim: #5531 (follow-up to #9999 and #9946)
Acceptance delta (one sentence): The generated capability-registry block in SUPPORT_TIERS.md can be checked and regenerated from the registry's single renderer by one xtask command instead of a manual paste, failing closed on missing markers or an empty registry.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/capability-docs-xtask
Stack parent or prerequisite PR (if any): none (builds on merged #9999, #9946)
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a
Scope
--markdownflag, help; xtask command, catalog, dispatch; docs/CI.md; changelog fragment.Scope Classification
Production delta:
ripr capabilities --markdownflag; renderer moved to domain (no behavior change to the block text).Evidence/support delta:
Single acceptance criterion:
cargo xtask capability-docs --checkfails on a hand-edited block and--writerepairs it.Non-goals:
Support-tier Impact
Policy Impact
Ledger or exception notes:
ci_enforced=false.Proof
Real-tree negative experiment: flipped one tier in the doc block,
--checkfailed,--writerestored byte-identical; a broken end marker made--writerefuse and leave the file unchanged.Result, failures, or skipped proof:
cargo test --lib cli::run returned rc=101 while the disk was full (linker failure); the rerun passed (1018). Hosted CI not yet run.Claim Boundary
May claim: a single command checks/regenerates the block from the one renderer. Must not claim: enforcement. It is not in precommit or any required lane, and a docs-only PR still does not run it.
Remaining wiring gap: precommit must not force a ripr build and routed-rust.yml's
docs_onlyroute builds no Rust, so the command is standalone until a hosted docs-gate step (or a cheap prebuilt-binary path) runs it; follow-up on #5531.Rollback
Revert the commit; the renderer move is behavior-neutral and nothing else depends on the new flag.
Spec-Test-Code Traceability
xtask/src/policy/capability_docs/tests.rs,crates/ripr/tests/capabilities_command.rs,domain::language_capability_drifttestsxtask/src/policy/capability_docs.rs,crates/ripr/src/domain/language_capability.rsStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
n/a (no workflow change; new command is not CI-enforced).
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Generated by Claude Code