Skip to content

ux(human): print drill-in identifiers in human-full and explain the --worktree Next-block omission (#4321) - #4924

Merged
EffortlessSteven merged 3 commits into
mainfrom
ux/4321-drill-in-identifiers
Sep 30, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
ux/4321-drill-in-identifiers

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Swarm / Source Boundary

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

Source-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 --worktree digest states its drill-in route instead of vanishing.

Candidate Relationships

Candidate branch: ux/4321-drill-in-identifiers, head 4be453108 (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

  • One production behavior

Production delta: render_finding_with_config prints the finding id; the navigation parameter becomes FindingDrillIn (Commands / WorktreeReplayNeedsArtifact) so the CLI can state why sibling commands are absent; render_finding_with_config output 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 id for the same finding, and a --worktree digest names its drill-in route.

Non-goals: no JSON/SARIF changes; no bounded-digest layout change; no new commands; check.json goldens untouched.

Support-tier Impact

  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Human CLI output text changes: the human-full id: line (also carried by ripr explain blocks, which share render_finding_with_config), the --worktree digest note, and the full-form worktree replay note. JSON schema unchanged.

Policy Impact

  • generated artifact

71 fixture goldens re-blessed with RIPR-SPEC-0122 reason; every drift classified formatting_only, purely additive lines. No policy exceptions added.

Proof

cargo test -p ripr --lib human::            # 97 passed
cargo test -p ripr                          # 7131 passed; 32 failed — all pre-existing host-environment
                                            # failures (git_invocation_timeout under 10s deadline; #4735
                                            # missing-binary premise), spot-checked as failing on the exact
                                            # base commit 6dad93813 with the changes stashed
cargo fmt --check                           # clean
cargo clippy -p ripr --all-targets -- -D warnings   # clean
cargo xtask goldens check                   # exit 0 after bless
cargo xtask dogfood                         # exit 0, status: pass

Fixture cross-check (acceptance): distinct id: lines in expected/human-full.txt equal the JSON findings[].id set 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; --worktree runs 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

  • Spec: RIPR-SPEC-0122
  • Tests: 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)
  • Code: output/human/sections.rs (id line), app/navigation.rs (FindingDrillIn), output/human/triage.rs, output/human.rs, cli/commands/check.rs
  • Golden outputs: 71 fixtures, expected/human-full.txt + bless CHANGELOG each

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable. (no stop-reason text changed)

CI Economics

n/a

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. (none)

Gates

  • cargo fmt --check
  • cargo clippy -p ripr --all-targets -- -D warnings (hosted CI owns the full workspace matrix)

Devin Review

Merge-cycle additions (post-review)

…-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.
@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!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too 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.

Check out review usage here.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 5b0832f5-9e34-408e-9146-6bf410155b68

📥 Commits

Reviewing files that changed from the base of the PR and between ec4eee3 and 92de5f4.

📒 Files selected for processing (149)
  • crates/ripr/src/app.rs
  • crates/ripr/src/app/navigation.rs
  • crates/ripr/src/cli/commands/check.rs
  • crates/ripr/src/output/human.rs
  • crates/ripr/src/output/human/sections.rs
  • crates/ripr/src/output/human/triage.rs
  • crates/ripr/src/output/render.rs
  • fixtures/boundary_gap/expected/CHANGELOG.md
  • fixtures/boundary_gap/expected/human-full.txt
  • fixtures/constant_declaration_probe_reconciliation/expected/CHANGELOG.md
  • fixtures/constant_declaration_probe_reconciliation/expected/human-full.txt
  • fixtures/error_path_sibling_oracle_fake_clean/expected/CHANGELOG.md
  • fixtures/error_path_sibling_oracle_fake_clean/expected/human-full.txt
  • fixtures/error_variant_boxed_wrapper_downcast_witness/expected/CHANGELOG.md
  • fixtures/error_variant_boxed_wrapper_downcast_witness/expected/human-full.txt
  • fixtures/error_variant_boxed_wrapper_fail_closed/expected/CHANGELOG.md
  • fixtures/error_variant_boxed_wrapper_fail_closed/expected/human-full.txt
  • fixtures/guarded_result_match_conditional_failure/expected/CHANGELOG.md
  • fixtures/guarded_result_match_conditional_failure/expected/human-full.txt
  • fixtures/guarded_result_match_fail_closed/expected/CHANGELOG.md
  • fixtures/guarded_result_match_fail_closed/expected/human-full.txt
  • fixtures/guarded_result_match_sibling_variant/expected/CHANGELOG.md
  • fixtures/guarded_result_match_sibling_variant/expected/human-full.txt
  • fixtures/guarded_result_match_swallowed/expected/CHANGELOG.md
  • fixtures/guarded_result_match_swallowed/expected/human-full.txt
  • fixtures/harness_dead_construction_no_exposed_credit/expected/CHANGELOG.md
  • fixtures/harness_dead_construction_no_exposed_credit/expected/human-full.txt
  • fixtures/match_arm_comment_literal_no_promotion/expected/CHANGELOG.md
  • fixtures/match_arm_comment_literal_no_promotion/expected/human-full.txt
  • fixtures/match_arm_diagnostic_literal_no_promotion/expected/CHANGELOG.md
  • fixtures/match_arm_diagnostic_literal_no_promotion/expected/human-full.txt
  • fixtures/match_arm_shared_result_no_promotion/expected/CHANGELOG.md
  • fixtures/match_arm_shared_result_no_promotion/expected/human-full.txt
  • fixtures/match_arm_tuple_derived_return_before_assertion/expected/CHANGELOG.md
  • fixtures/match_arm_tuple_derived_return_before_assertion/expected/human-full.txt
  • fixtures/oracle_confirmation_mixed/expected/CHANGELOG.md
  • fixtures/oracle_confirmation_mixed/expected/human-full.txt
  • fixtures/python_adversarial_attribute_sink_other_receiver/expected/CHANGELOG.md
  • fixtures/python_adversarial_attribute_sink_other_receiver/expected/human-full.txt
  • fixtures/python_adversarial_buffer_token/expected/CHANGELOG.md
  • fixtures/python_adversarial_buffer_token/expected/human-full.txt
  • fixtures/python_adversarial_changed_sink_non_delta_operand/expected/CHANGELOG.md
  • fixtures/python_adversarial_changed_sink_non_delta_operand/expected/human-full.txt
  • fixtures/python_adversarial_default_value_overridden/expected/CHANGELOG.md
  • fixtures/python_adversarial_default_value_overridden/expected/human-full.txt
  • fixtures/python_adversarial_dict_field_sibling_key/expected/CHANGELOG.md
  • fixtures/python_adversarial_dict_field_sibling_key/expected/human-full.txt
  • fixtures/python_adversarial_error_path_untaken_branch/expected/CHANGELOG.md
  • fixtures/python_adversarial_error_path_untaken_branch/expected/human-full.txt
  • fixtures/python_adversarial_free_function_module_collision/expected/CHANGELOG.md
  • fixtures/python_adversarial_free_function_module_collision/expected/human-full.txt
  • fixtures/python_adversarial_fstring_length_invariant_aggregate/expected/CHANGELOG.md
  • fixtures/python_adversarial_fstring_length_invariant_aggregate/expected/human-full.txt
  • fixtures/python_adversarial_list_element_sibling_index/expected/CHANGELOG.md
  • fixtures/python_adversarial_list_element_sibling_index/expected/human-full.txt
  • fixtures/python_adversarial_local_assignment_operator_input/expected/CHANGELOG.md
  • fixtures/python_adversarial_local_assignment_operator_input/expected/human-full.txt
  • fixtures/python_adversarial_method_owner_imported_unbound_receiver/expected/CHANGELOG.md
  • fixtures/python_adversarial_method_owner_imported_unbound_receiver/expected/human-full.txt
  • fixtures/python_adversarial_mock_call_not_value/expected/CHANGELOG.md
  • fixtures/python_adversarial_mock_call_not_value/expected/human-full.txt
  • fixtures/python_adversarial_operator_delta_input_operand/expected/CHANGELOG.md
  • fixtures/python_adversarial_operator_delta_input_operand/expected/human-full.txt
  • fixtures/python_adversarial_same_method_other_class/expected/CHANGELOG.md
  • fixtures/python_adversarial_same_method_other_class/expected/human-full.txt
  • fixtures/python_return_comparison_boundary/expected/CHANGELOG.md
  • fixtures/python_return_comparison_boundary/expected/human-full.txt
  • fixtures/rust_async_fn_owner/expected/CHANGELOG.md
  • fixtures/rust_async_fn_owner/expected/human-full.txt
  • fixtures/rust_constructor_field_observation/expected/CHANGELOG.md
  • fixtures/rust_constructor_field_observation/expected/human-full.txt
  • fixtures/rust_constructor_field_wrong_field_observer/expected/CHANGELOG.md
  • fixtures/rust_constructor_field_wrong_field_observer/expected/human-full.txt
  • fixtures/rust_dep_edge_cross_crate_ambiguity/expected/CHANGELOG.md
  • fixtures/rust_dep_edge_cross_crate_ambiguity/expected/human-full.txt
  • fixtures/rust_dep_edge_cross_crate_positive/expected/CHANGELOG.md
  • fixtures/rust_dep_edge_cross_crate_positive/expected/human-full.txt
  • fixtures/rust_long_expression_display_bound/expected/CHANGELOG.md
  • fixtures/rust_long_expression_display_bound/expected/human-full.txt
  • fixtures/rust_macro_reach_limitation/expected/CHANGELOG.md
  • fixtures/rust_macro_reach_limitation/expected/human-full.txt
  • fixtures/rust_macro_wrapped_assertion_limitation/expected/CHANGELOG.md
  • fixtures/rust_macro_wrapped_assertion_limitation/expected/human-full.txt
  • fixtures/rust_macro_wrapped_test_call_limitation/expected/CHANGELOG.md
  • fixtures/rust_macro_wrapped_test_call_limitation/expected/human-full.txt
  • fixtures/rust_transitive_reach_positive/expected/CHANGELOG.md
  • fixtures/rust_transitive_reach_positive/expected/human-full.txt
  • fixtures/rust_transitive_reach_test_helper_chain/expected/CHANGELOG.md
  • fixtures/rust_transitive_reach_test_helper_chain/expected/human-full.txt
  • fixtures/strong_error_oracle/expected/CHANGELOG.md
  • fixtures/strong_error_oracle/expected/human-full.txt
  • fixtures/ts_boundary_named_constant_test/expected/CHANGELOG.md
  • fixtures/ts_boundary_named_constant_test/expected/human-full.txt
  • fixtures/ts_predicate_boundary_const_result_local/expected/CHANGELOG.md
  • fixtures/ts_predicate_boundary_const_result_local/expected/human-full.txt
  • fixtures/ts_predicate_boundary_optional_chaining/expected/CHANGELOG.md
  • fixtures/ts_predicate_boundary_optional_chaining/expected/human-full.txt
  • fixtures/ts_predicate_boundary_overcredit/expected/CHANGELOG.md
  • fixtures/ts_predicate_boundary_overcredit/expected/human-full.txt
  • fixtures/ts_repair_packet_boundary_constant_first/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_boundary_constant_first/expected/human-full.txt
  • fixtures/ts_repair_packet_boundary_constant_unresolved/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_boundary_constant_unresolved/expected/human-full.txt
  • fixtures/ts_repair_packet_boundary_unreachable/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_boundary_unreachable/expected/human-full.txt
  • fixtures/ts_repair_packet_complete/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_complete/expected/human-full.txt
  • fixtures/ts_return_comparison_boundary/expected/CHANGELOG.md
  • fixtures/ts_return_comparison_boundary/expected/human-full.txt
  • fixtures/ts_return_ternary_boundary/expected/CHANGELOG.md
  • fixtures/ts_return_ternary_boundary/expected/human-full.txt
  • fixtures/ts_runner_detect_ava_devdep/expected/CHANGELOG.md
  • fixtures/ts_runner_detect_ava_devdep/expected/human-full.txt
  • fixtures/typescript_adversarial_hoc_wrapped_owner/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_hoc_wrapped_owner/expected/human-full.txt
  • fixtures/typescript_adversarial_owner_identity_after_insertion/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_owner_identity_after_insertion/expected/human-full.txt
  • fixtures/typescript_adversarial_owner_module_mock/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_owner_module_mock/expected/human-full.txt
  • fixtures/typescript_adversarial_render_unobserved_sink/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_render_unobserved_sink/expected/human-full.txt
  • fixtures/typescript_adversarial_same_method_other_class/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_same_method_other_class/expected/human-full.txt
  • fixtures/typescript_adversarial_token_substring/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_token_substring/expected/human-full.txt
  • fixtures/typescript_broad_tothrow/expected/CHANGELOG.md
  • fixtures/typescript_broad_tothrow/expected/human-full.txt
  • fixtures/typescript_dynamic_assertion_unresolved/expected/CHANGELOG.md
  • fixtures/typescript_dynamic_assertion_unresolved/expected/human-full.txt
  • fixtures/typescript_negated_t_oracle/expected/CHANGELOG.md
  • fixtures/typescript_negated_t_oracle/expected/human-full.txt
  • fixtures/typescript_same_method_owner_identity_positive/expected/CHANGELOG.md
  • fixtures/typescript_same_method_owner_identity_positive/expected/human-full.txt
  • fixtures/typescript_strong_oracle/expected/CHANGELOG.md
  • fixtures/typescript_strong_oracle/expected/human-full.txt
  • fixtures/typescript_t_truthy_oracle/expected/CHANGELOG.md
  • fixtures/typescript_t_truthy_oracle/expected/human-full.txt
  • fixtures/typescript_t_unknown_method_no_oracle/expected/CHANGELOG.md
  • fixtures/typescript_t_unknown_method_no_oracle/expected/human-full.txt
  • fixtures/typescript_t_wrong_receiver_no_oracle/expected/CHANGELOG.md
  • fixtures/typescript_t_wrong_receiver_no_oracle/expected/human-full.txt
  • fixtures/typescript_tape_equal_oracle/expected/CHANGELOG.md
  • fixtures/typescript_tape_equal_oracle/expected/human-full.txt
  • fixtures/unwrap_err_variant_positive/expected/CHANGELOG.md
  • fixtures/unwrap_err_variant_positive/expected/human-full.txt
  • fixtures/weak_error_oracle/expected/CHANGELOG.md
  • fixtures/weak_error_oracle/expected/human-full.txt
  • fixtures/wrapper_seam_callee_call_attribution/expected/CHANGELOG.md
  • fixtures/wrapper_seam_callee_call_attribution/expected/human-full.txt

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

❤️ Share

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

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

Comment thread crates/ripr/src/app/navigation.rs Resolved
Comment thread crates/ripr/src/output/human.rs Resolved
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.
@EffortlessSteven
EffortlessSteven merged commit a2c403d into main Sep 30, 2026
37 checks passed
@EffortlessSteven
EffortlessSteven deleted the ux/4321-drill-in-identifiers branch September 30, 2026 18:52
EffortlessSteven pushed a commit that referenced this pull request Oct 3, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ux(human): print drill-in identifiers in human-full and explain the --worktree Next-block omission

1 participant