Repository navigation
Description
Symptom
Twelve bare group-command spellings are catalogued as ordinary public commands whose shipped example is the bare spelling (ripr cache, ripr baseline, ripr policy, ...), but typing that example exits 2 with "requires subcommand". Four sibling groups behave differently — the bare spelling prints the group help and exits 0 — so the same user action has two different outcomes across the CLI, and most of the documented examples fail.
Evidence
Bare spellings that exit 2 (prebuilt 0.11.0 binary, scratch cwd, source at 243a854):
$ ripr cache exit=2 ripr: cache requires subcommand `status` or `clear`
$ ripr baseline exit=2 ripr: baseline requires subcommand `create`, `diff`, or `update`
$ ripr policy exit=2 ripr: policy requires subcommand `readiness`, ...
$ ripr reports exit=2 ripr: reports requires subcommand `index`, ...
$ ripr calibrate exit=2 ripr: calibrate requires subcommand `cargo-mutants`
$ ripr zero exit=2 ripr: zero status requires --delta <path>
$ ripr assistant-loop exit=2 ripr: assistant-loop requires subcommand `proof` or `health`
$ ripr config exit=2 ripr: config requires subcommand `validate`
$ ripr pr-ledger exit=2 (bare alias of `record`, which itself requires an artifact input)
$ ripr pr-review exit=2 (bare alias of `front-panel`, requires an artifact input)
$ ripr coverage-grip exit=2 (bare alias of `frontier`, requires an artifact input)
$ ripr gate exit=2 (bare alias of `evaluate`, requires an input)
Bare spellings that print the group help and exit 0: ripr agent, ripr feedback, ripr receipt, ripr swarm (and ripr pr-comments, which runs plan with defaults and writes a file).
The C2 metadata examples project these bare spellings into help --json (e.g. example: "ripr cache" at crates/ripr/src/cli/command_metadata.rs:2184, "ripr policy" at :717, "ripr baseline" at :582, "ripr zero" at :670) and help --all prints the same bare forms; every one of the twelve fails when used as documented. The catalog classifies all of them ordinary_public (crates/ripr/src/cli/command_catalog.rs). Enforcement lives at e.g. crates/ripr/src/cli/commands/cache.rs:595, crates/ripr/src/cli/commands/baseline.rs:26, crates/ripr/src/cli/commands.rs:269.
Why it frustrates
ripr help cache prints exactly the text a user wants from the bare command, but ripr cache — the catalogued example — errors. The reader must discover that four other groups (agent, feedback, receipt, swarm) do print that help on the bare spelling, making the CLI feel inconsistent and the examples untrustworthy. For help --json consumers, eight documented examples are guaranteed exit-2 invocations.
Suggested direction
Pick one camp and apply it uniformly. The smaller change: make every bare group spelling print its group help and exit 0 (matching agent/feedback/receipt/swarm, and matching what ripr help <group> already shows), keeping the "requires subcommand" wording only when arguments are present but malformed. Alternatively, keep the exit-2 behavior and change every C2 example and help --all line to name a real subcommand. Either way the catalog, the examples, and the runtime should tell one story.
Classification
verified_current. Confidence: high on the observed behavior (binary reproduction plus source at 243a854); medium on which of the two contract directions the project prefers.
Activity
EffortlessSteven commentedon Oct 15, 2026
Owned candidate: Draft PR #8023, head
a7432659ff356fec9140428a2a7e32e3abd30a67, tree5d65bb3e1a7d04b2a4ce11e8295be7120cada06c, basis322088b1760388fb7625d48897abe8e611cb9715. Twelve bare groups now print exact group help and exit 0; explicit leaf/unknown arguments and the flag-first gate alias retain their parsers. Docs, SPEC-0184 traceability and changelog are included. No suppression/projected-equality, Corsair, release, deployment or settings work.Established proof: test-only RED commit compiles and meaningfully fails on all twelve real CLI bare invocations; alternate/error control passes. The same test blob
e8d9d1392ea191a34a60a740faab4ce6c827bb57on final candidate passes the full CLI help suite (20/20); ten affected units pass (10836 unrelated filtered). Independent exact-head review has no source/oracle finding and independently verifies 43 unchanged explicit-error cases. Check-fast passes 14 gates with eleven independently verified paths; separate process-policy and aggregate precommit pass. Exact-head precommit receipt digest:sha256:4e7ca7548cd625ddc585abcb7a220c3d99fe26d2e3f51f22c5bcdbc77a229065. One original policy attempt timed out (exit 124), retained separately; its unchanged-head cached retry passed. Automated verification question is dispositioned.Hosted blocker: Rust-only CI job 116193567880 fails the full-format sibling of existing #7942:
fixture setup: could not align different files' old stat tuples, before CLI execution. The cache test blob is byte-identical on basis and candidate (bca0de4002aeb46e2e6f706bc32742c8e13e9a1b). This is observed hosted setup failure plus unchanged source; exact-base execution has not been claimed. No fixture skip/oracle weakening/rival harness repair is included.Ready was requested after local proof, then withdrawn when the completed Rust-only failure was discovered. The PR is Draft. Routed qualification run 38666554168 had started; cancellation attempt
gh run cancel 38666554168 --repo EffortlessMetrics/ripr-swarmfailed readinghttps://api.github.com/repos/EffortlessMetrics/ripr-swarm/actions/runs/38666554168?exclude_pull_requests=true: Forbidden. Cancellation is unconfirmed; no credential/access/security change or repeat toggle was attempted.The PR body carries the current continuation record. Next owner is coordinating root/cache-currentness owner: deliver #7942's deterministic fixture repair, verify it is in this PR's actual GitHub merge subject, then resume normal qualification/review and merge. Reviewed merge subject so far:
0a2a07c55b5c80daad3b49392135a792f45f2aa9, parents main0788e671b67ff797c40742f0876abfa771aa2dff+ candidate, tree44e7c66301693aa92dbe1d5c32c6b26e83f3410f; CLI/test/public-doc bytes match the reviewed head. No merge/issue-completion or hosted-required-pass claim.Selected saved environment is healthy. Worktree
/workspace/cli-7747, isolated target/workspace/cli-7747-target(2.4 GiB), pinned 1.95.0 tooling/workspace/cli-7747-tooling(1.2 GiB) and proof/workspace/cli-7747-proof(227 MiB, original RED/GREEN binaries/logs/identities/review script/hosted failure excerpt) are retained for root verification and repair. No active local build/writer remains. Last free-space observation: 27 GiB, within the original one-Cargo-job/15-GiB additional storage budget. Shared Git store and other workers' state are preserved.fix(cli): use plain string discovery in bare group test and register …
fix(cli): show help for bare command groups (#7747) (#8023)