Repository navigation
fix(app): default CheckInput base to None so consumers resolve the repo default (#3952) - #4002
Conversation
…po default (#3952) CheckInput::default() hardcoded origin/main, contradicting RIPR-SPEC-0084: explain/context/pilot/LSP/library consumers analyzed origin/main even where it does not exist. The default is now None so every consumer rides default-branch resolution; analysis loaders are unchanged. The discriminator pins resolution on a master-only fixture. must_disclose_scope now excuses base for diff-sourced reports (their scope is tool/mode/root plus the pinned diff.patch); live reports must still carry base. Unit pins for both.
…ine (#3952) RIPR-SPEC-0084: CheckInput default base is now None (was origin/main); --diff fixture envelopes honestly omit the inapplicable top-level base and record base_revision null. Only base/base_revision changed; findings, counts, and input_identity byte-identical. Verified per-pair: 235/235 drifts fully explained, 0 unexplained.
…ns (#3952) load_diff_with_effective_base rejects non-directory roots up front so a typoed root no longer resolves into a misleading could-not-resolve-base error. Invalid-root tests pin the accurate message; navigation/LSP/workspace-status tests pin the baseless default instead of the stale origin/main.
|
Important Review skippedToo many files! This PR contains 478 files, which is 378 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. Usage-priced reviews support at most 300 files. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (478)
You can disable this status message by setting the 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. Comment |
There was a problem hiding this comment.
Code Review
This pull request ensures that a missing repository root fails explicitly with a directory error rather than an unresolvable base error. Additionally, it updates the default git base revision in CheckInput to None (previously origin/main) to trigger dynamic default-branch resolution, updating numerous tests and golden fixtures accordingly. Feedback on the changes suggests using .get() instead of direct subscripting on serde_json::Value in the LSP tests to prevent potential panics.
There was a problem hiding this comment.
Confirmed findings
- crates/ripr/src/lsp/tests.rs:13136 — Direct
current_input["requested_base"]indexing remains a panic risk if upstream JSON shape drifts. Suggested fix:current_input.get("requested_base").copied().unwrap_or(serde_json::Value::Null)to match the pattern already used at the same site forsession_options_identity/resolved_base.
Verification questions
- Confirm cargo-test receipt is scheduled-late in this packet, so the new tests have not yet been witnessed by the deterministic broker in this run. Static reading shows coverage is present; the live green is awaiting the late phase.
- Confirm evidence_promotion now treats diff-sourced goldens (fixtures with a sibling diff.patch) as scope-exempt from the base field while keeping all other reports strictly required to carry base.
- Confirm only base/base_revision changed in the 235 fixture envelopes; findings, counts, input_identity stay byte-identical per the PR body. Spot-checks across boundary_gap, helper_chain_, recursive_, and adversarial fixtures confirm the JSON delta is uniform (no straggling fields).
- Confirm the discriminator test default_check_input_resolves_the_repo_default_branch uses a temp git repo with a master-only branch and asserts output.base=='master'. It exercises the default-branch resolution path end-to-end and would fail pre-fix; it does not, however, assert the converse (that an origin/main default fails) nor that an explicit base is honored — those contracts are presumably covered elsewhere but worth confirming.
- Confirm diff_sourced detection in evidence_promotion uses Path::new(fixture).join("diff.patch").exists() — fragile to fixtures whose golden was blessed via a non-default flow but still legitimately diff-sourced; would flag a missing diff.patch as live and then demand a base it can never carry.
- Confirm check.rs adds a master-only git fixture proving default-built CheckInput now resolves the repo's real default branch (master) instead of the stale origin/main.
Refuted
- Default-base None lets a caller accidentally analyze a private/wrong-default branch when no --base is given, leaking findings into the wrong reviewer.; refuted because: CheckInput.base is library-internal; callers that need a specific branch must pass --base explicitly (unchanged contract per PR body Non-goals). The new behavior merely resolves the repository's real default branch instead of a hardcoded origin/main. Explicit --base still errors with the ref named, and diff-file runs ignore base entirely. No silent cross-branch leak path is introduced.
- Direct serde_json::Value indexing (current_input["requested_base"]) in crates/ripr/src/lsp/tests.rs could panic on missing key, leaving an unsafe memory access pattern (e.g., unwrap-tainted reference) at test runtime.; refuted because: LSP test asserts against a value the code under test just produced in the same function; the field is built locally and is present by construction. The concern is a panic-on-bad-shape risk, not a lifetime/ownership risk, and gemini-code-assist already raised the .get() preference separately. Out of scope for ub-memory-lifetime.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Parked follow-ups
- evidence_promotion_case_is_diff_sourced intentionally narrows must_disclose_scope to /diff.patch presence; sibling re-blessing paths that build report scope without a fixture source (e.g. synthetic xtask runs) regress to demanding base. Park rather than broaden.
- LSP tests still index serde_json::Value directly at requested_base; gemini-code-assist already flagged this in PR thread as low-priority but it is unchanged by this diff.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head release review — REVIEW_READY
Reviewed head f94dd8c9397bb0db8590ca434fa52e0acbd52a2f against #3952 and the 0.11 selected-claim boundary.
Accepted production contract
CheckInput::default().base = Nonemakes library/LSP/app consumers use the governed default-base resolver rather than hardcodedorigin/main.- Explicit
--base, the standaloneripr diffcontract, and separate PR-evidence/first-pr defaults remain outside this claim. - Missing roots now fail as missing roots before base resolution, so the new default does not misdirect a root typo into a
--baserepair. - Diff-file inputs continue to carry no applicable base; the evidence-promotion guard exempts
baseonly when the fixture is actually backed by its governeddiff.patch.
Evidence inspected
- Real-Git master-only discriminator runs the
CheckInput::default()consumer path and recordsmaster; this would fail under the previous hardcoded default. - Current-head required Rust check is successful.
- CodeRabbit and Devin review statuses are successful.
- The sole inline finding was repaired on this exact head and its thread is resolved.
- The 235 diff-sourced golden changes are scoped to removal/nulling of the inapplicable base identity per the retained PR packet; live-run base recording remains required.
Remaining non-claims
This does not close generated-command root binding, doctor/docs first-use composition, standalone ripr diff, PR-evidence defaults, candidate qualification, or source integration. The broad fixture re-bless remains accepted only for the stated base/base_revision envelope migration.
Disposition: REVIEW_READY for protected squash merge.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Substantive exact-head review (author self-review COMMENT, not approval).
reviewed_head_sha: f94dd8c
integration_basis: main (MERGEABLE, behind-only needs no restack)
claim_boundary: #3952 -- CheckInput::default() must not hardcode origin/main (RIPR-SPEC-0084). Non-goals: ripr-diff command default, pr-evidence/first-pr own DEFAULT_BASE constants, explicit---base behavior, new envelope fields.
changed_surfaces_and_semantic_owners_inspected:
- app.rs Default base None + field docs (library contract).
- analysis/diff/load.rs: root-dir guard up front (missing root fails as missing root, not misdirected base-resolution error); spawn-wrap comment corrected.
- app/check.rs discriminator (master-only fixture, default-built input records master; fails pre-fix), passthrough comment accuracy.
- app/context.rs + explain.rs invalid-root tests pin the accurate message.
- app/navigation.rs mode test names its base explicitly.
- lsp/config + tests + workspace-status snapshot pin the baseless default (LSP refresh now resolves the workspace default instead of origin/main).
- xtask evidence_promotion.rs: must_disclose_scope excuses base for diff-sourced reports only (scope = tool/mode/root + pinned diff.patch); live reports still require base. Both enforcement points share one helper + unit pin.
- 235 --diff goldens re-blessed: each minus the inapplicable base line plus base_revision null; per-pair audit 235/235 explained, 0 unexplained; findings/counts/input_identity byte-identical.
blocking_findings: none. The single bot thread (safe Value access in my snapshot asserts) adopted and resolved; 0 unresolved.
non_blocking_suggestions: none.
refuted_or_stale_findings: none.
proof_and_ci_observed: exact-head cargo xtask check-pr exit 0 on this head (5281 lib tests, clippy -D warnings, doc, all check-* gates; zero failure markers). Hosted Rust gates SUCCESS on this head; mergeStateStatus CLEAN. goldens check, honesty (scope-guard headers kept), fixtures, dogfood, test-oracle-report green. Two infra events during qualification (300s git stall in one integration test under a 94-min loaded run; sccache 10054) both proven unrelated (isolated re-run 1s green; production identical to the prior green run; server restart) and left out of scope.
affected_currentness_dimensions: refreshed Default contract, root-error precedence, guard rule, goldens (output-shape change declared in PR body with blessing reason), head identity.
residual_assumptions_and_non_claims: --diff envelopes carry no base by construction (struct docs: when applicable); pr_summary falls back to origin/main for rendered follow-ups exactly as before.
disposition: REVIEW_READY
…heckInput default #3952/#4002 made CheckInput::default().base None, so the comment's reason (input.base holds a default verify would reject) is false on main. The explicit None stays: pilot's printed after-snapshot command passes no --base or --diff, so both snapshots carry no base under RIPR-SPEC-0084. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
…lt-base change #4002 made CheckInput::default().base None and reblessed every --diff fixture on its base. #3944 (python_src_layout_package_import) and #3985 (tail_comparison_boundary) were blessed on bases without #4002, so each merged with "base": "origin/main" and base_revision "origin/main", and `cargo xtask goldens check` on main reports both as drift. Reblessed with a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta #4002 applied to the other fixtures. goldens check: 0 drift entries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
…lt-base change #4002 made CheckInput::default().base None and reblessed every --diff fixture on its base. #3944 (python_src_layout_package_import) and #3985 (tail_comparison_boundary) were blessed on bases without #4002, so each merged with "base": "origin/main" and base_revision "origin/main", and `cargo xtask goldens check` on main reports both as drift. Reblessed with a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta #4002 applied to the other fixtures. goldens check: 0 drift entries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 7930fef)
…lt-base change #4002 made CheckInput::default().base None and reblessed every --diff fixture on its base. #3944 (python_src_layout_package_import) and #3985 (tail_comparison_boundary) were blessed on bases without #4002, so each merged with "base": "origin/main" and base_revision "origin/main", and `cargo xtask goldens check` on main reports both as drift. Reblessed with a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta #4002 applied to the other fixtures. goldens check: 0 drift entries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 7930fef)
…lt-base change #4002 made CheckInput::default().base None and reblessed every --diff fixture on its base. #3944 (python_src_layout_package_import) and #3985 (tail_comparison_boundary) were blessed on bases without #4002, so each merged with "base": "origin/main" and base_revision "origin/main", and `cargo xtask goldens check` on main reports both as drift. Reblessed with a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta #4002 applied to the other fixtures. goldens check: 0 drift entries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 7930fef)
…lt-base change fixture on its base. #3944 (python_src_layout_package_import) and #3985 (tail_comparison_boundary) were blessed on bases without #4002, so each merged with "base": "origin/main" and base_revision "origin/main", and `cargo xtask goldens check` on main reports both as drift. Reblessed with a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 7930fef)
…lt-base change #4002 made CheckInput::default().base None and reblessed every --diff fixture on its base. #3944 (python_src_layout_package_import) and #3985 (tail_comparison_boundary) were blessed on bases without #4002, so each merged with "base": "origin/main" and base_revision "origin/main", and `cargo xtask goldens check` on main reports both as drift. Reblessed with a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta #4002 applied to the other fixtures. goldens check: 0 drift entries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 7930fef)
…lt-base change RIPR-SPEC-0084: CheckInput default base is now None (#4002); these goldens were blessed on a base before that change, so --diff envelopes now omit the inapplicable top-level base and record base_revision null. Only base/base_revision changed; probes, findings, and classifications are identical.
…lt-base change (#4022) RIPR-SPEC-0084: CheckInput default base is now None (#4002); these goldens were blessed on a base before that change, so --diff envelopes now omit the inapplicable top-level base and record base_revision null. Only base/base_revision changed; probes, findings, and classifications are identical. Co-authored-by: Steven Zimmerman <szim9@users.noreply.github.com>
…or the no-default-base envelope The new fixture was blessed against this PR's base before #4002 (fd572c8) landed on main. cargo xtask goldens check on the merged tree showed exactly one drift: this fixture's check.json still carried the pre-#4002 envelope ("base": "origin/main", base_revision "origin/main"). input_identity and all findings were byte-identical. Re-blessed with the same RIPR-SPEC-0084 reason main used for the identical rebless in #4022's series. Proof on the merged tree (b2812a4 + this): - cargo xtask goldens check: exit 0, zero drift - cargo test -p ripr --lib python: 390 passed, 0 failed - cargo fmt --check: pass
Forward-only merge of main a4db66c (GREEN). Resolutions: - fixtures/python_*/expected/CHANGELOG.md (5 files): both appended Pending bless sections kept; PR RIPR-SPEC-0028 entry stays (3), main's later RIPR-SPEC-0084 entry (#4002) appended as (4), keeping headings unique per the accumulated-bless-log design (goldens check does not compare CHANGELOG.md bytes). - expected/check.json auto-merge verified: main's base/base_revision None change (#3952) combined with this PR's evidence additions; input_identity unchanged per fixture. - No product-code conflicts; main's flow.rs tail-comparison (#3985) is Rust-only and semantically consistent; main's related_tests.rs src-layout matching (#3944) only widens the strong-call set this PR's boundary rule consumes.
…it (#3980) * fix(python): relate a test to an owner only when the test references it A same-stem test file, a test name, or a fixture name no longer relates a Python test to an owner it never references. In a flat layout (`pricing.py` at the root, `tests/test_pricing.py`) the new, unreferenced `loyalty_price` read `weakly_exposed` with "2 heuristic Python test link(s)" that only call the sibling `discounted_total`; it now reads `no_static_path` with `No Python test references \`loyalty_price(\``, matching the package layout. The heuristics still rank a test that references the owner without a recognized call shape: the bare name outside comments, strings, docstrings, keyword-argument and assignment targets (unless a local shadows it); a renamed import local from the owner module; or a member through an import of the owner module (`pricing.loyalty_price`, `p.loyalty_price`). Method owners need a `.name` attribute reference, dunder methods also accept a reference to their class, and module owners need a local imported from the owner module. Arbitrary object-member uses stay unrelated for free-function owners. `python_same_stem_test`, `python_related_test_name_similarity` and `python_fixture_name_relation` now reference their owner so they keep pinning the heuristic families. The same-stem tests in `python_dynamic_route_registration_limit` and `python_adversarial_changed_sink_non_delta_operand` never reference their owners, so reach moves from weak to no and both stay `static_unknown`. The new `python_same_stem_sibling_owner_not_related` fixture pins the flat-layout case. All are re-blessed under RIPR-SPEC-0028. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018QP9k41E538Xgytw8QCSfM * fix(python): walrus, loop and as targets shadow the owner name A same-stem test that binds a local named after the owner with `:=`, `for ... in` or `as` no longer counts a bare use of that local as an owner reference. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018QP9k41E538Xgytw8QCSfM * test(fixtures): re-bless python_same_stem_sibling_owner_not_related for the no-default-base envelope The new fixture was blessed against this PR's base before #4002 (fd572c8) landed on main. cargo xtask goldens check on the merged tree showed exactly one drift: this fixture's check.json still carried the pre-#4002 envelope ("base": "origin/main", base_revision "origin/main"). input_identity and all findings were byte-identical. Re-blessed with the same RIPR-SPEC-0084 reason main used for the identical rebless in #4022's series. Proof on the merged tree (b2812a4 + this): - cargo xtask goldens check: exit 0, zero drift - cargo test -p ripr --lib python: 390 passed, 0 failed - cargo fmt --check: pass --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Steven Zimmerman, CPA <15812269+EffortlessSteven@users.noreply.github.com>
…-0084 base contract The wrong-family fixture golden was blessed before main landed #4002 (RIPR-SPEC-0084): the tool now omits the inapplicable top-level base and records base_revision null for --diff envelopes. Verified before blessing: findings, counts and input_identity byte-identical; only base/base_revision changed (formatting_only drift class). Reblessed with the same spec reason main used for the other TS fixtures.
…nvelope The fixture was blessed before RIPR-SPEC-0084 (#4002) reached main; drop the inapplicable top-level base and record base_revision null.
…an close them (#3984) * fix(classify): resolve named-constant boundaries so a boundary test can close them Rebased onto current main; conflict-free. A same-file immutable integer const/static boundary resolves to its literal value for activation, infection, and test-grip evidence; fails closed on computed initializers or imported/duplicated constants (reported infection_unknown / static_limited, never as a repair target). Cache generations bumped (1.14 / 0.20 / 0.21) so a warm cache cannot hide the change. * test(fixtures): rebless boundary_named_constant for no-default-base envelope The fixture was blessed before RIPR-SPEC-0084 (#4002) reached main; drop the inapplicable top-level base and record base_revision null. --------- Co-authored-by: Steven Zimmerman <szim9@users.noreply.github.com> Co-authored-by: Steven Zimmerman, CPA <15812269+EffortlessSteven@users.noreply.github.com>
…ot see the change (#3942) * fix(typescript): stop repair packets borrowing an assertion that cannot see the change A TypeScript error-path change (a new `throw`) whose only related test pinned a success value (`expect(parseLimit('10')).toBe(10)`) flipped to `repair_packet_ready: true`, and its repair action told the user to "add or strengthen" that existing assertion, which cannot detect the throw. - Oracle metadata evidence is only borrowed from assertions whose kind can observe the changed probe family (the RIPR-SPEC-0104 mapping the classifier already uses), so G-C fails closed for wrong-family oracles. - The projected assertion shape keeps the borrowed call but uses an `expected` placeholder instead of re-using a weaker matcher's literal under `toBe` (it rendered `toBeGreaterThan(50)` as `toBe(50)`). - The repair action leads with the missing discriminator. New negative fixture ts_repair_packet_wrong_family_oracle; goldens for ts_repair_packet_complete, typescript_broad_tothrow and typescript_tothrow_exact_oracle reblessed (wording and metadata only; class, category and readiness unchanged). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018QP9k41E538Xgytw8QCSfM * fix(goldens): rebless wrong-family fixture envelope for the RIPR-SPEC-0084 base contract The wrong-family fixture golden was blessed before main landed #4002 (RIPR-SPEC-0084): the tool now omits the inapplicable top-level base and records base_revision null for --diff envelopes. Verified before blessing: findings, counts and input_identity byte-identical; only base/base_revision changed (formatting_only drift class). Reblessed with the same spec reason main used for the other TS fixtures. * fix(goldens): rebless wrong-family fixture for merged RIPR-SPEC-0027 boundary rules Merge-interaction rebless after union with #3953: a guard without a comparison is weakly_exposed with no invented discriminator (line 3 predicate exposed -> weakly_exposed) and brace-only changed lines carry no behavior (line 5 probe removed). The fixture's error-path finding is unchanged: weakly_exposed, no wrong-family oracle borrow, repair packet stays not ready. Pinned by spec_0027_guard_without_comparison_is_not_ exposed and spec_0027_ambiguous_fallback_is_never_exposed_and_punctua tion_is_ignored on the merged tree. --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Steven Zimmerman, CPA <15812269+EffortlessSteven@users.noreply.github.com>
…d repair (#3960) * feat(output): carry the agent repair start on repair cards and gate routes Where a review card, gate repair route, or inline PR comment already names a seam that passes the repair-packet flip, lead with `ripr agent repair --root . --seam-id <id> --phase before` instead of the snapshot verify command. The command is computed once in evidence_record::canonical_repair_command_for, gated on repair_packet_eligibility(entry).eligible(), and carried (never derived) by review_comments, the gate repair route, and the inline comment publisher. Non-actionable routes and gap-record routes emit nothing and keep the existing verify guidance. Refs #3906 (outcome 3, gate and repair-card surfaces). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * test(output): rebind fixtures to the carried repair start and bind the flip The repo-exposure evidence record, the dogfood gate-adoption receipts, and the gate-decision verification fixture now carry repair_command. The first-useful-action unchanged-after-attempt snapshots are regenerated through the corpus test's own normalizer, and the verify and receipt artifacts are rebound to the new snapshot bytes; their movement is unchanged. The evidence-record test now calls the builder with an actionable state directly, so removing the eligibility check fails it. Refs #3906. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * fix(output): withhold the repair start for inline-test seams and lead CI comments with it agent repair refuses an edit target outside a test surface, so a seam whose recommended test lives in an inline #[cfg(test)] module was offered a repair start it could not use. repair_start_command_for now also requires the recommended test file to be a test surface, and canonical_repair_command_for goes through it. The generated CI's compact inline comment headline read only the Verify line, so a card carrying "Start the repair:" still led with Verify. The jq now captures the repair start and leads with it when present. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * feat(output): start first-pr and pr-summary from a carried review-card repair Generated CI builds the gap ledger from repo-exposure, whose records are all repo-scoped, so `ripr first-pr` always fell to no_action for Rust even when the review-comments file held a card that passed the repair-packet flip. The review-comments input was only checked for existence. first-pr: when the ledger yields no top gap, read the review-comments input and select the first actionable card in comments[] then summary_only[] that carries a non-empty llm_guidance.repair_command. The command is carried byte-for-byte; first-pr never builds `agent repair` from a seam, gap, or probe id. Every selected field comes from that same card (source_artifact is the review-comments path, repair.route is AgentRepairTransaction, verify and receipt are the card's), never mixed with a ledger record. The card is used only when the report is tool=ripr, status=advisory, and names this invocation's root, base, and head; otherwise it fails closed to no_action. The selection keeps state top_gap so the editor projection and pr-summary consume it unchanged. receipt_path and agent_packet_command are null for a card selection: the card is not a ledger gap and first-pr does not parse commands for paths. selected.repair_command is present only when carried, so ledger-selected packets are byte-identical to before. The repair start is not added to `commands`: the VS Code first-pr projection fails the whole packet closed (unsafeCommand) on any `commands` value outside its allowlist, and `ripr agent repair` is not on it. CLI and Markdown render a "Start repair" line before Verify. A no_action reason now says why no card supplied a start and, when the cards are missing or were rendered from the gap ledger, names the seam-level `ripr review-comments --root --base --head --out` route. pr-summary: carry start-here selected.repair_command into TopRepair (never read review comments directly, which could mis-pair a card with start-here's top gap), render a "start repair" line before verify in both Markdown surfaces, and make it the first local reproduction command when present. Docs: OUTPUT_SCHEMA start-here and pr-evidence-summary contracts, FIRST_PR_WORKFLOW, RIPR-SPEC-0075 field tables. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * test(first-pr): cover the head-mismatch refusal for review-card repair starts The fail-closed test covered base, status, root, scope and a missing report but not a report generated for another head. Removing the head check from review_comments_currentness_problem now fails it. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * fix(test): pass the changed-line flag in the gate repair-start test `cargo test -p ripr --lib` does not compile on main since 64f3b92. #3936 added `repair_route_leads_with_the_repair_start_when_carried`, which calls `push_repair_route(out, route)`. #3968, branched before #3936 landed, added a third `changed_line_anchored: bool` parameter. Each PR was green on its own base; the combined tree fails with E0061 at output/gate/presentation.rs:630 and :642. The test now passes `true`. The start-repair line it pins does not depend on the flag. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 9884f9b) * test(fixtures): regenerate the packet-index Markdown goldens for the single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 3a0d679) * test(fixtures): rebless two check goldens blessed before the no-default-base change #4002 made CheckInput::default().base None and reblessed every --diff fixture on its base. #3944 (python_src_layout_package_import) and #3985 (tail_comparison_boundary) were blessed on bases without #4002, so each merged with "base": "origin/main" and base_revision "origin/main", and `cargo xtask goldens check` on main reports both as drift. Reblessed with a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta #4002 applied to the other fixtures. goldens check: 0 drift entries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 7930fef) --------- Co-authored-by: Claude <noreply@anthropic.com>
…el and the evidence ledger (#3962) * feat(output): carry the agent repair start on repair cards and gate routes Where a review card, gate repair route, or inline PR comment already names a seam that passes the repair-packet flip, lead with `ripr agent repair --root . --seam-id <id> --phase before` instead of the snapshot verify command. The command is computed once in evidence_record::canonical_repair_command_for, gated on repair_packet_eligibility(entry).eligible(), and carried (never derived) by review_comments, the gate repair route, and the inline comment publisher. Non-actionable routes and gap-record routes emit nothing and keep the existing verify guidance. Refs #3906 (outcome 3, gate and repair-card surfaces). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * test(output): rebind fixtures to the carried repair start and bind the flip The repo-exposure evidence record, the dogfood gate-adoption receipts, and the gate-decision verification fixture now carry repair_command. The first-useful-action unchanged-after-attempt snapshots are regenerated through the corpus test's own normalizer, and the verify and receipt artifacts are rebound to the new snapshot bytes; their movement is unchanged. The evidence-record test now calls the builder with an actionable state directly, so removing the eligibility check fails it. Refs #3906. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * feat(output): lead PR-review surfaces with the carried repair start First-useful-action, the PR-review front panel, the PR evidence ledger, and RIPR Zero status now lead with `ripr agent repair --root . --seam-id <id> --phase before` exactly when an input artifact already carries it, and never synthesize a repair-loop command from a bare seam id. The fail-closed decision stays with repair_packet_eligibility(..).eligible() upstream; these surfaces carry the string and do not re-run eligibility. First-useful-action: a new route ahead of the missing-assistant-proof route. When no assistant proof exists yet and the first review card (comments, then summary_only) carries a non-empty llm_guidance.repair_command, the report is `actionable` / `write_focused_test` with `commands.repair` set to that string and every `selected`/`target` field, verify, and receipt command taken from that same card. A fresh PR no longer asks for post-repair assistant proof before any repair exists. The same card without the command keeps the missing_required_artifact route; post-proof routing is unchanged. `commands.repair` is skipped when absent, so existing goldens are stable. Markdown adds a `Start Repair` section and a one-screen `Repair start` line. Generated CI's first-action summary and at-a-glance block print `.commands.repair` (template, test, and docs/CI.md mirror). Front panel: `top_issue.repair_command` is carried from first-action `commands.repair`, a card's `llm_guidance.repair_command`, or an acknowledged gate route's `repair_route.repair_command`. `agent_command` is that command, else a carried read-only inspection command (`commands.context_packet`, `llm_guidance.command`, or the gate route's `inspection_command`), else null. The three `agent start --seam-id` syntheses are gone. Markdown shows `Repair start` in the top issue and the Repair block. The invalid-improved assertion now pins the exact carried handoff instead of `is_some()`. Evidence ledger: `top_repair_route.repair_command` is carried from the card, gate route, or RIPR Zero route; the gap and baseline arms name no repair start and drop their synthesized `agent start` (verify kept). Also fixes the card receipt command, which cards put at the root, not under llm_guidance (kept as fallback), so it was always null. RIPR Zero status (item 4 decision): the gap-record arm synthesized `agent start --seam-id <canonical_gap_id>`, a gap id rather than a seam id; it now names none. The baseline arm carries `evidence_record.canonical_item.repair_command` when present, else null. Left in place: test_oracle_assistant_proof handoff. The proof is a post-attempt artifact (it needs before/after/receipt) and its handoff records the workflow that produced its --agent-packet input. assistant_loop_health derives every repair-queue command root from that field (command_root), so nulling it would regress those roots to `.`. It needs its own root carrier first; tracked as follow-up. Goldens: new first-useful-action/repair-start and pr-review-front-panel/repair-start cases (exact-line card carrying the command), regenerated through the production renderers. Front-panel actionable/blocked now show the carried context-packet command, acknowledged/summary-only show null, and the mixed ledger shows null; the mixed ripr-zero-status input is rebound to the producer contract. No hash-bound artifact changed. Refs #3906. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * fix(output): withhold the repair start for inline-test seams and lead CI comments with it agent repair refuses an edit target outside a test surface, so a seam whose recommended test lives in an inline #[cfg(test)] module was offered a repair start it could not use. repair_start_command_for now also requires the recommended test file to be a test surface, and canonical_repair_command_for goes through it. The generated CI's compact inline comment headline read only the Verify line, so a card carrying "Start the repair:" still led with Verify. The jq now captures the repair start and leads with it when present. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * feat(output): start first-pr and pr-summary from a carried review-card repair Generated CI builds the gap ledger from repo-exposure, whose records are all repo-scoped, so `ripr first-pr` always fell to no_action for Rust even when the review-comments file held a card that passed the repair-packet flip. The review-comments input was only checked for existence. first-pr: when the ledger yields no top gap, read the review-comments input and select the first actionable card in comments[] then summary_only[] that carries a non-empty llm_guidance.repair_command. The command is carried byte-for-byte; first-pr never builds `agent repair` from a seam, gap, or probe id. Every selected field comes from that same card (source_artifact is the review-comments path, repair.route is AgentRepairTransaction, verify and receipt are the card's), never mixed with a ledger record. The card is used only when the report is tool=ripr, status=advisory, and names this invocation's root, base, and head; otherwise it fails closed to no_action. The selection keeps state top_gap so the editor projection and pr-summary consume it unchanged. receipt_path and agent_packet_command are null for a card selection: the card is not a ledger gap and first-pr does not parse commands for paths. selected.repair_command is present only when carried, so ledger-selected packets are byte-identical to before. The repair start is not added to `commands`: the VS Code first-pr projection fails the whole packet closed (unsafeCommand) on any `commands` value outside its allowlist, and `ripr agent repair` is not on it. CLI and Markdown render a "Start repair" line before Verify. A no_action reason now says why no card supplied a start and, when the cards are missing or were rendered from the gap ledger, names the seam-level `ripr review-comments --root --base --head --out` route. pr-summary: carry start-here selected.repair_command into TopRepair (never read review comments directly, which could mis-pair a card with start-here's top gap), render a "start repair" line before verify in both Markdown surfaces, and make it the first local reproduction command when present. Docs: OUTPUT_SCHEMA start-here and pr-evidence-summary contracts, FIRST_PR_WORKFLOW, RIPR-SPEC-0075 field tables. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * test(first-pr): cover the head-mismatch refusal for review-card repair starts The fail-closed test covered base, status, root, scope and a missing report but not a report generated for another head. Removing the head check from review_comments_currentness_problem now fails it. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * docs(schema): keep the front-panel vocabulary sentences in their own bullet The #3906 repair_command bullet was spliced mid-sentence into the typed one-screen vocabulary contract: the mirror/evidence-strength sentences described top_issue.current_evidence_strength and friends, not the new carried-command fields. Restore them to the vocabulary bullet so the repair_command bullet ends at the never-synthesize rule. Reviewed as part of #3962. * fix(test): pass the changed-line flag in the gate repair-start test `cargo test -p ripr --lib` does not compile on main since 64f3b92. #3936 added `repair_route_leads_with_the_repair_start_when_carried`, which calls `push_repair_route(out, route)`. #3968, branched before #3936 landed, added a third `changed_line_anchored: bool` parameter. Each PR was green on its own base; the combined tree fails with E0061 at output/gate/presentation.rs:630 and :642. The test now passes `true`. The start-repair line it pins does not depend on the flag. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 9884f9b) * test(fixtures): regenerate the packet-index Markdown goldens for the single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 3a0d679) * test(fixtures): rebless two check goldens blessed before the no-default-base change #4002 made CheckInput::default().base None and reblessed every --diff fixture on its base. #3944 (python_src_layout_package_import) and #3985 (tail_comparison_boundary) were blessed on bases without #4002, so each merged with "base": "origin/main" and base_revision "origin/main", and `cargo xtask goldens check` on main reports both as drift. Reblessed with a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta #4002 applied to the other fixtures. goldens check: 0 drift entries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 7930fef) --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Steven Zimmerman, CPA <15812269+EffortlessSteven@users.noreply.github.com>
…gap (#4019) * feat(output): carry the agent repair start on repair cards and gate routes Where a review card, gate repair route, or inline PR comment already names a seam that passes the repair-packet flip, lead with `ripr agent repair --root . --seam-id <id> --phase before` instead of the snapshot verify command. The command is computed once in evidence_record::canonical_repair_command_for, gated on repair_packet_eligibility(entry).eligible(), and carried (never derived) by review_comments, the gate repair route, and the inline comment publisher. Non-actionable routes and gap-record routes emit nothing and keep the existing verify guidance. Refs #3906 (outcome 3, gate and repair-card surfaces). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * test(output): rebind fixtures to the carried repair start and bind the flip The repo-exposure evidence record, the dogfood gate-adoption receipts, and the gate-decision verification fixture now carry repair_command. The first-useful-action unchanged-after-attempt snapshots are regenerated through the corpus test's own normalizer, and the verify and receipt artifacts are rebound to the new snapshot bytes; their movement is unchanged. The evidence-record test now calls the builder with an actionable state directly, so removing the eligibility check fails it. Refs #3906. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * fix(output): withhold the repair start for inline-test seams and lead CI comments with it agent repair refuses an edit target outside a test surface, so a seam whose recommended test lives in an inline #[cfg(test)] module was offered a repair start it could not use. repair_start_command_for now also requires the recommended test file to be a test surface, and canonical_repair_command_for goes through it. The generated CI's compact inline comment headline read only the Verify line, so a card carrying "Start the repair:" still led with Verify. The jq now captures the repair start and leads with it when present. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * feat(output): start first-pr and pr-summary from a carried review-card repair Generated CI builds the gap ledger from repo-exposure, whose records are all repo-scoped, so `ripr first-pr` always fell to no_action for Rust even when the review-comments file held a card that passed the repair-packet flip. The review-comments input was only checked for existence. first-pr: when the ledger yields no top gap, read the review-comments input and select the first actionable card in comments[] then summary_only[] that carries a non-empty llm_guidance.repair_command. The command is carried byte-for-byte; first-pr never builds `agent repair` from a seam, gap, or probe id. Every selected field comes from that same card (source_artifact is the review-comments path, repair.route is AgentRepairTransaction, verify and receipt are the card's), never mixed with a ledger record. The card is used only when the report is tool=ripr, status=advisory, and names this invocation's root, base, and head; otherwise it fails closed to no_action. The selection keeps state top_gap so the editor projection and pr-summary consume it unchanged. receipt_path and agent_packet_command are null for a card selection: the card is not a ledger gap and first-pr does not parse commands for paths. selected.repair_command is present only when carried, so ledger-selected packets are byte-identical to before. The repair start is not added to `commands`: the VS Code first-pr projection fails the whole packet closed (unsafeCommand) on any `commands` value outside its allowlist, and `ripr agent repair` is not on it. CLI and Markdown render a "Start repair" line before Verify. A no_action reason now says why no card supplied a start and, when the cards are missing or were rendered from the gap ledger, names the seam-level `ripr review-comments --root --base --head --out` route. pr-summary: carry start-here selected.repair_command into TopRepair (never read review comments directly, which could mis-pair a card with start-here's top gap), render a "start repair" line before verify in both Markdown surfaces, and make it the first local reproduction command when present. Docs: OUTPUT_SCHEMA start-here and pr-evidence-summary contracts, FIRST_PR_WORKFLOW, RIPR-SPEC-0075 field tables. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * test(first-pr): cover the head-mismatch refusal for review-card repair starts The fail-closed test covered base, status, root, scope and a missing report but not a report generated for another head. Removing the head check from review_comments_currentness_problem now fails it. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * fix(first-pr): stop on unusable review cards instead of reporting no gap Re-walk F60-10. On a fresh Rust checkout, following first-pr's own next commands (repo exposure, then gap ledger) ended in `State: no actionable gap` with no next command, while the PR had a repair-ready seam. The repo-exposure ledger holds only repo-scoped records, so first-pr's second source, the review cards, decides; with the cards missing, first-pr gave a no-action verdict on evidence it never read. Now a Rust root stops on the cards instead: - missing: `missing_artifact` for `PR repair cards`, next command the seam-level `ripr review-comments --root . --base <base> --head <head> --out target/ripr/review/comments.json`; - not a RIPR report, or no status/root/base/head: `malformed_artifact`; - status not advisory: `blocked_artifact`; - another root: `wrong_root`; another base or head: `stale_artifact`. Current cards with no repair start, and cards rendered from the gap ledger, still end in no-action with the reason naming the route. The `artifacts[]` entry for the cards on a Rust root now names the same seam-level command. It named the `--gap-ledger` form, whose cards cannot carry a repair start. Preview-language roots keep the gap-ledger form. Fresh-checkout re-walk on the pricing repo: repo exposure, gap ledger, review cards, then `top_gap` with `Start repair: ripr agent repair ... --phase before`. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * fix(test): pass the changed-line flag in the gate repair-start test `cargo test -p ripr --lib` does not compile on main since 64f3b92. #3936 added `repair_route_leads_with_the_repair_start_when_carried`, which calls `push_repair_route(out, route)`. #3968, branched before #3936 landed, added a third `changed_line_anchored: bool` parameter. Each PR was green on its own base; the combined tree fails with E0061 at output/gate/presentation.rs:630 and :642. The test now passes `true`. The start-repair line it pins does not depend on the flag. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 9884f9b) * test(fixtures): regenerate the packet-index Markdown goldens for the single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 3a0d679) * test(fixtures): rebless two check goldens blessed before the no-default-base change #4002 made CheckInput::default().base None and reblessed every --diff fixture on its base. #3944 (python_src_layout_package_import) and #3985 (tail_comparison_boundary) were blessed on bases without #4002, so each merged with "base": "origin/main" and base_revision "origin/main", and `cargo xtask goldens check` on main reports both as drift. Reblessed with a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta #4002 applied to the other fixtures. goldens check: 0 drift entries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 7930fef) * test(first-pr): cover the malformed review-card branches in the fail-closed loop Another tool's report, and reports that do not record their status, root or head, each stop first-pr as malformed_artifact with the seam-level regeneration command. Only the stale, blocked, wrong-root and missing cases were exercised before. Disabling the tool check fails the test. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK --------- Co-authored-by: Claude <noreply@anthropic.com>
Closes #3952.
Summary
CheckInput::default()hardcodedbase: Some("origin/main"), contradicting RIPR-SPEC-0084: every consumer built from the default (explain, context, pilot, LSP refresh, library embeddings, the doc one-liner) analyzedorigin/maineven where that ref does not exist. The default is nowNone, so every consumer rides default-branch resolution; analysis loaders are untouched.Production delta
crates/ripr/src/app.rs:Default for CheckInputsetsbase: Nonewith a SPEC-0084 comment; field docs stateNoneresolves the repo default.crates/ripr/src/analysis/diff/load.rs:load_diff_with_effective_baserejects non-directory roots up front. Without this, default-base resolution turns a typo'd--rootinto the misleading "could not resolve a default base" message. Invalid roots stay fail-closed with an accurate message.xtask/src/evidence_promotion.rs:must_disclose_scopeexcusesbasefor diff-sourced reports only (their scope is tool/mode/root plus the harness-pinneddiff.patch;CheckOutput.baseis documented "when applicable"). Live reports must still carrybase. Both enforcement points (typed + legacy) share one helper.Evidence delta
default_check_input_resolves_the_repo_default_branch(app/check.rs): master-only fixture (noorigin/*), default-built input analyzes and recordsmaster. Fails pre-fix (Some("origin/main")).origin/main.--difffixture goldens re-blessed (each: top-levelbaseline removed,base_revisionnull; findings, counts,input_identitybyte-identical; verified per-pair 235/235 explained, 0 unexplained).Output-shape change
--diffenvelopes no longer carry the unusedbaseline (it was never consumed for diff runs) and recordbase_revision: nullin the outcome identity. Schema already allows absent/nullablebase; live-run envelopes are unchanged (resolved base recorded).must_disclose_scopecharter fixtures keep passing under the evolved diff-sourced rule; the honesty gate is green.Blessing reason (RIPR-SPEC-0084): CheckInput default base is now None (was origin/main); --diff fixture envelopes honestly omit the inapplicable top-level base and record base_revision null. Only base/base_revision changed; findings, counts, and input_identity byte-identical.
Acceptance
cargo xtask check-prexit 0 (5281 lib tests, clippy-D warnings, doc, allcheck-*gates), zero failure markers.goldens check,check-evidence-promotion-honesty("scope-guard cases kept report scope headers"),fixtures,dogfood,test-oracle-reportgreen.Non-goals
ripr diffcommand keeps its documented used-as-givenorigin/maindefault (separate options struct, separate contract).pr-evidence/first-prkeep their ownDEFAULT_BASEcommand defaults (separate structs, out of this claim).--basebehavior unchanged (used as-is, errors name the ref).