Skip to content

feat(xtask): capability-docs and ripr capabilities --markdown (#5531) - #10014

Merged
EffortlessSteven merged 3 commits into
mainfrom
claude/capability-docs-xtask
Oct 24, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
claude/capability-docs-xtask

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

  • Adds ripr capabilities --markdown (whole-table; refuses --json/--language) printing the generated SUPPORT_TIERS.md registry block.
  • Adds cargo xtask capability-docs [--check|--write] [--markdown-file <path>]: builds ripr, runs --markdown, compares/splices the exact text. --check is the default; --write rewrites only the marker block.
  • Single renderer: render_registry_block moved from the test-only drift module into domain::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

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-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

  • ripr lib: renderer relocation, --markdown flag, help; xtask command, catalog, dispatch; docs/CI.md; changelog fragment.

Scope Classification

  • One public contract

Production delta:

  • ripr capabilities --markdown flag; renderer moved to domain (no behavior change to the block text).

Evidence/support delta:

  • New xtask unit tests (positive, stale, missing/duplicate/reversed markers, write round-trip, bad renderings, args, negative experiment on the real doc) and a CLI integration test.

Single acceptance criterion:

  • cargo xtask capability-docs --check fails on a hand-edited block and --write repairs it.

Non-goals:

  • Wiring into precommit/docs-gate/hosted lanes; changing any support state or tier.

Support-tier Impact

  • none

Policy Impact

  • CI lane (docs only; no workflow change)

Ledger or exception notes:

  • Command catalog entry ci_enforced=false.

Proof

cargo fmt --check
cargo clippy -p xtask -p ripr --all-targets -- -D warnings
cargo test -p xtask capability_docs            # 7 passed
cargo test -p ripr --lib language_capability   # incl. drift tests
cargo test -p ripr --lib cli::                 # 1018 passed
cargo test -p ripr --test capabilities_command # 6 passed
cargo xtask capability-docs --check            # pass
cargo xtask check-command-catalog check-agent-skills check-doc-artifacts check-doc-index check-support-tiers check-generated-clean check-output-contracts check-public-api
cargo xtask precommit                          # pass

Real-tree negative experiment: flipped one tier in the doc block, --check failed, --write restored byte-identical; a broken end marker made --write refuse and leave the file unchanged.

Result, failures, or skipped proof:

  • One earlier 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_only route 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

  • Tests: xtask/src/policy/capability_docs/tests.rs, crates/ripr/tests/capabilities_command.rs, domain::language_capability_drift tests
  • Code: xtask/src/policy/capability_docs.rs, crates/ripr/src/domain/language_capability.rs

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

n/a (no workflow change; new command is not CI-enforced).

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented (new CLI flag in help; no JSON change).

Generated by Claude Code

)

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
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 140 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: e0ee85c5-9dd0-4963-97c9-49b31c8e929e
📥 Commits

Reviewing files that changed from the base of the PR and between 6e162bd and 4441059.

📒 Files selected for processing: 15
  • changelog.d/capability-docs-xtask.md
  • crates/ripr/src/cli/commands/capabilities.rs
  • crates/ripr/src/cli/help.rs
  • crates/ripr/src/cli/help/core.rs
  • crates/ripr/src/cli/help/overview.rs
  • crates/ripr/src/domain/language_capability.rs
  • crates/ripr/src/domain/language_capability_drift.rs
  • crates/ripr/src/output/language_capabilities.rs
  • crates/ripr/tests/capabilities_command.rs
  • docs/CI.md
  • xtask/src/command.rs
  • xtask/src/dispatch.rs
  • xtask/src/policy/capability_docs.rs
  • xtask/src/policy/capability_docs/tests.rs
  • xtask/src/policy/mod.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 23, 2026 21:24
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

Ripr Rust Small failed at cargo xtask goldens check on a single fixture, python_protocol_entry_bracketed_rebind_no_exposed_credit (human.txt). That golden is missing the bounded "Summary terms" legend that #10004 added. This PR does not touch it, and the same drift reproduces on a clean main. Everything before that step passed (fmt, precommit, clippy, tests).

The fix is already open as #10019 ("restore omitted main golden and gate metadata"). Once it merges I will merge main into this branch and re-run CI. No change is needed in this PR.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Head e1ccbf7 fails Rust-only feature lane and Ripr Rust Small because of three mcp::repair::freshness_tests::root_tests::durable_selected_* lib tests, which come from #10011. They fail the same way on current main (37dc4ae), with no involvement from this PR's changes. The fix is open as #10027 (test-only). After it merges I will merge main into this branch and re-run qualification.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants