Repository navigation
ux(human): print drill-in identifiers in human-full and explain the --worktree Next-block omission (#4321) - #4924
Conversation
…-worktree Next-block omission (#4321) - render_finding_with_config prints ' id: <finding.id>' once per full-form finding block, so the digest's --format human-full route ends at a nameable finding (same token as JSON id / ripr explain / ripr context). - check --worktree without --write-artifact now prints a one-line replay route (FindingDrillIn::WorktreeReplayNeedsArtifact) instead of silently dropping the drill-in block: no artifact exists for a --from replay, and a committed-history replay would analyze a different diff. - 71 human-full goldens re-blessed (RIPR-SPEC-0122, additive id: lines); check.json untouched; JSON/SARIF unchanged.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important Review skippedToo many files! This PR contains 149 files, which is 49 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. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (149)
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 |
Sync for #4924: origin/main moved to ec4eee3 (human-output disclosure family #4936/#4942/#4953/#4955 and render progress plumbing #4945). Conflicts: app.rs/check.rs/render.rs semantically unioned (FindingDrillIn param + progress sink); 71 fixture bless CHANGELOGs unioned (both sides' Pending sections kept, numbering deduplicated); human-full goldens and human.rs/sections.rs/triage.rs/navigation.rs auto-merged.
Review fix on #4924 (devin thread on human.rs): when a --worktree run without --write-artifact has every finding suppressed by policy, the full form printed no id lines but the replay note still claimed "Finding ids print above." The note now takes an ids_printed_above fact from the renderer; a fully suppressed run gets the route without the stale pointer. Discriminating test: worktree_full_omits_the_id_pointer_when_every_finding_is_suppressed.
Merges current main (FindingDrillIn from #4924, progress sink from #4945). `check --worktree` now builds FindingDrillIn::Commands from finding_navigation_with_worktree, so the drill-in block is executable without an artifact. WorktreeReplayNeedsArtifact had no producer left and is removed with its note and tests. The human-full `id:` lines and the never-vanish rule stay. Review fixes: - A selector miss names `ripr check <same root/base/--worktree/mode> --json`. FindingNavigation::list_command builds it from the same arg owner as the drill-in commands. - A missing selector under --worktree names the same scoped listing for both explain and context. - A --worktree explain/context without --root resolves the implicit project root the way check does. An explicit --root is unchanged. - The smoke test now runs the printed explain/context commands verbatim from a decoy directory. It asserts the selected finding id and keeps negative controls (printed command minus --worktree; corrupted selector). It also runs the recovery listing and covers nested-directory drill-in. - SPEC-0116 code owners gain navigation/explain/context and the context and check CLI adapters. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RVg614YgfYUbHkMYUX7Bnk
Summary
--format human-fullprints each finding's id once (id: probe:...) as the first line of its finding block, so the digest's "rerun with --format human-full" route ends at a nameable finding. The token is the same string JSONid,ripr explain, andripr contextcarry.check --worktreewithout--write-artifactno longer silently drops the drill-in block. It prints one line explaining that replay needs an artifact and naming--write-artifact(ripr explain --from <artifact> <id>), because a committed-history replay would analyze a different diff.Swarm / Source Boundary
ripr-swarmSource-of-Truth Links
Spec: RIPR-SPEC-0122 (bounded human check output), RIPR-SPEC-0116 (
--worktree).Governing issue or accepted claim: #4321 (parent epic #4316).
Acceptance delta (one sentence): every human-full finding block is nameable by its id, and a
--worktreedigest states its drill-in route instead of vanishing.Candidate Relationships
Candidate branch:
ux/4321-drill-in-identifiers, head4be453108(GitHub PR head authoritative after publication).Stack parent: none (branch off
origin/main@6dad93813).The per-finding
Drill in:pair in human-full already landed via #4379; this PR adds the identifiers and the worktree disclosure, the two acceptance boxes that remained open.Scope
Production delta:
render_finding_with_configprints the finding id; the navigation parameter becomesFindingDrillIn(Commands/WorktreeReplayNeedsArtifact) so the CLI can state why sibling commands are absent;render_finding_with_configoutput grows one line per finding.Evidence/support delta: three unit tests (id printed exactly once; worktree digest names the artifact route and prints no replay-unfaithful commands; worktree human-full carries the route once); 71 human-full goldens re-blessed (additive
id:lines, reason RIPR-SPEC-0122).Single acceptance criterion: ids in full form match JSON
idfor the same finding, and a--worktreedigest names its drill-in route.Non-goals: no JSON/SARIF changes; no bounded-digest layout change; no new commands;
check.jsongoldens untouched.Support-tier Impact
Human CLI output text changes: the human-full
id:line (also carried byripr explainblocks, which sharerender_finding_with_config), the--worktreedigest note, and the full-form worktree replay note. JSON schema unchanged.Policy Impact
71 fixture goldens re-blessed with RIPR-SPEC-0122 reason; every drift classified
formatting_only, purely additive lines. No policy exceptions added.Proof
Fixture cross-check (acceptance): distinct
id:lines inexpected/human-full.txtequal the JSONfindings[].idset on boundary_gap, error_variant_boxed_wrapper_fail_closed, unwrap_err_variant_positive, typescript_strong_oracle, weak_error_oracle (script run, all MATCH).Claim Boundary
May claim: human-full findings are nameable by id;
--worktreeruns disclose their drill-in route. Must not claim: any analyzer/classification change (none), or that the worktree note makes worktree runs replayable without an artifact — it names the route, it does not add one.Rollback
Revert the commit; goldens revert with it (the bless changelogs record the reason).
Spec-Test-Code Traceability
human_full_prints_each_finding_id_exactly_once,worktree_digest_names_the_artifact_replay_route,worktree_human_full_names_the_artifact_replay_route_once(crates/ripr/src/output/human.rs)output/human/sections.rs(id line),app/navigation.rs(FindingDrillIn),output/human/triage.rs,output/human.rs,cli/commands/check.rsexpected/human-full.txt+ bless CHANGELOG eachStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
n/a
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo fmt --checkcargo clippy -p ripr --all-targets -- -D warnings(hosted CI owns the full workspace matrix)Merge-cycle additions (post-review)
origin/main(ec4eee3f9) via merge2602f8f20: semantic union inapp.rs/check.rs/render.rs(FindingDrillIn + ux(output): repo-scoped formats are fully silent and disclose no invocation-time cost — docs-recommended summary-json costs as much as the full artifact #4945 progress sink), 71 fixture bless CHANGELOGs unioned (both Pending sections kept, numbering deduplicated).92de5f462: the full-form worktree replay note only claims "Finding ids print above." when finding blocks actually printed (fully-suppressed run no longer points at absent ids); discriminating test added.