Repository navigation
fix(check): bind the drill-in --root to the resolved repository (#3948) - #6759
Conversation
The check drill-in (explain, context, list, agent stub) repeated a typed relative --root, so pasting it from another directory analyzed another repository. It now prints the root bound through bound_root. The golden harness projects the renderer cwd to <cwd>/ so checked-in fixtures carry no host path; 327 fixtures re-blessed under RIPR-SPEC-0116. The three relative-root:check gaps in the paste lane are removed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WjGXVbKLB8gcwRvXFgbEqG
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Important Review skippedToo many files! This PR contains 820 files, which is 520 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch. Usage-priced reviews support at most 300 files. ⚙️ Run configuration
📒 Files selected for processing (820)
You can disable this status message by setting the
Comment |
|
Review of record, head Angles (separate reviewer, two passes): correctness and edge cases; tests, goldens and contract.
Non-blocking, left as is:
Follow-up for the first two goes to the existing hardening issue. Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- xtask/src/reports/fixtures.rs:1029 — project_renderer_cwd swaps the cwd prefix for
<cwd>/but never strips the quotes that shell_arg adds when the host path contains whitespace. Re-bless on a spaced checkout, or strip matching surrounding single-quote pairs around the projected occurrence. Pending evidence, not blocking but breaks any reviewer running goldens from a path like/Users/me code/repo.
Verification questions
- Confirm xtask project_renderer_cwd is the only place cwd host paths are scrubbed from goldens, and it does not unquote spaces — so a check run from a checkout whose path contains spaces leaves shell_arg's added quotes around the projected value, breaking the golden.
- Confirm --diff/--from/--at positional args in the pasted drill-in are still typed as written; pasted from another directory they reopen the Devin BUG_0001 wrong-target failure this PR only partially closes.
Refuted
- navigation.rs drill-in code is fully sync; no JS/async/memory transfer boundary introduced or closed by #3948.
- The change leaks a host absolute path into a fixture, and worker-handoff/transfer semantics are needed to reason about the leak.; refuted because: No transfer, no JS realm, no worker boundary is touched. The path leak is a golden-hygiene gap (Devin's spaced-cwd observation) handled by xtask's projection, not a memory-lifetime concern. The lane-specific lens is the wrong frame for the actual diff.
- Devin review #1 (
navigation_argsstill leaks typed root via --diff/--from file arguments).; refuted because: --diff/--from are file paths, not repository roots.load_diff_with_effective_base_coreresolves --diff relative to the process cwd independent of --root, but the trust failure (#3948) is about the repository root, not ancillary file arguments. The PR explicitly scopes the fix to --root binding per spec RIPR-SPEC-0116; --diff/--from re-binding is a separate, broader change that the author has not included.
Parked follow-ups
- xtask
project_renderer_cwdis the only renderer-cwd projection for fixture goldens;project_cwd_textin crates/ripr/src/testing/cwd_placeholder.rs handles the inverse for human-readable text, but it is not a sibling rendering path that could leak a host root into a checked-in golden.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
…aced checkout in the golden projection (#3948) Devin on #6759: --diff and --from resolve against the process directory, so the drill-in names them absolute (stdin sentinel stays). The fixture cwd projection now drops the quotes shell_arg adds for a spaced checkout path. Re-bless the 327 fixtures; fix five human.rs worktree tests that still expected the typed relative root. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WjGXVbKLB8gcwRvXFgbEqG
Keep both pending changelog entries for rust_pyo3_cross_language_limit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WjGXVbKLB8gcwRvXFgbEqG
|
Status note, head
Generated by Claude Code |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm sibling-paths scan could not verify the patched
--perl-factstest-isolation flag is bound at the producing boundary; PR scope and PR body explicitly leave it as a managed producer path, not a user-typed relative.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Status update, head Generated by Claude Code |
Conflicts in fixture expected files resolved to main's side; the drill-in --root goldens are re-blessed in the next commit. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XFhjvUrvNZmeqaxCah9aXF
) Restores the RIPR-SPEC-0116 pending entry in each fixture CHANGELOG the merge resolved to main's side, renumbered after main's entries, and re-blesses the fixtures whose human output main changed or added. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XFhjvUrvNZmeqaxCah9aXF
#3948) - navigation: a relative --perl-facts binds to the producing directory, like --diff and --from; the unit test covers it. - cli_smoke discarded_matches (from main, #5925): project the bound workspace prefix out of human drill-ins before comparing against the canonical reports; JSON stays byte-exact. - lsp backend and app::context tests build the expected root through bound_root, so Windows (where /workspace is not absolute) agrees. - RIPR-SPEC-0116: the rule applies in every mode, names the context witness, and maps both navigation tests; traceability adds the second. - changelog fragment names the explain/context Next lines and the context --json witness.explain_command field. - fixture CHANGELOGs: renumber three duplicate pending headings. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XFhjvUrvNZmeqaxCah9aXF
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
A host path anywhere else in the human report still fails the canonical comparison. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XFhjvUrvNZmeqaxCah9aXF
Keep main's pending entries in the python_adversarial_error_path_untaken_branch CHANGELOG and append the RIPR-SPEC-0116 entry after them. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XFhjvUrvNZmeqaxCah9aXF
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XFhjvUrvNZmeqaxCah9aXF
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Worktree CLI surface ('--worktree') still uses bound_root for --root and goes through finding_navigation_with_worktree; already covered by the patched call sites and the new unit test finding_navigation_binds_a_relative_root_for_every_drill_in. No sibling scan gap, but human.rs worktree tests introduced to satisfy the red feature lane and could regress if a future branch bypasses navigation_args.
- --perl-facts is left as a managed producer path; the PR documents that decision and the PR body records it. No contract change here, but a future producer that emits a typed --perl-facts to the user will need the same bound_input_file treatment; tracked in the PR body, not enforceable from a drift unit.
- xtask/src/reports/fixtures.rs:1023 — project_renderer_cwd duplicates the cwd-projection logic that already lives in crates/ripr/src/testing/cwd_placeholder.rs::project_cwd_text. Move the host-aware shell-quote-aware projection into the library crate so harness and library agree on the placeholder form, especially the spaced-checkout case that already needed a bespoke patch in the same head.
Verification questions
- Confirm siblings for the drill-in binding (human.rs Next: line, LSP witness.explain_command, check --json listing, ripr agent stub, agent card, repair surfaces) all reach navigation_args so the single call-site fix covers them; spec RIPR-SPEC-0116 pins the contract.
- Confirm project_renderer_cwd lives in xtask::reports::fixtures rather than next to project_cwd_text in crates/ripr/src/testing/cwd_placeholder.rs.
- Confirm no independent review of the 5204a1e..e49a05c delta is recorded; per author status note next step is one delta review. Not blocker — goldens + unit tests pin the contracts — but human verification recommended before arming auto-merge on a rebase.
Refuted
- binding should move into shell_arg so callers cannot forget it; refuted because: shell_arg is reused by the agent card and repair surfaces with verbatim text; promoting binding into shell_arg would silently rewrite card and repair commands. Composition at the call site keeps the contract local to the drill-in boundary.
Box::from(slice)allocation failure does not returnNone; recoverable fallback claims are dropped.
Parked follow-ups
- Paste lane KNOWN_GAPS table emptied to &[] and three relative-root:check gaps removed; no behavioral test confirms gaps vanish on revert, but the table is itself the contract and other test surfaces already prove drill-in binding.
- bound_root/bound_root_path/root_path_display is a three-name surface for one concept; consider collapsing to one helper to keep callers from picking the wrong one.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Review of record, head Revived from Merge resolution. 330 fixture expected files conflicted. Each was resolved to main's side. Every fixture
Angles (independent reviewer agents, exact head):
Findings fixed on this head:
Not fixed here (filed on #6762):
ub-review bot notes:
Proof:
Disposition: REVIEW_READY, nothing blocking. This is partial acceptance of #3948; it does not close #3948. Generated by Claude Code |
Before:
ripr check --root repoprintedripr explain --root repo ...,ripr context --root repo ..., theripr check --jsonlisting andripr agent stub --root repo ...with the root as typed. Pasted from another directory, each one analyzed whatever sat atrepothere. The paste lane (#5296) carried this as threerelative-root:checkknown gaps.After: the same lines print the resolved repository, for example
ripr explain --root /work/repo ..., so they analyze the repositorycheckran on from any directory. The three known gaps are removed.What it does:
app/navigation.rsrenders--rootthroughbound_root, the same rule the agent card and repair surfaces use.How: because the human
checkoutput now carries the renderer's working directory, the xtask golden harness projects it to the existing<cwd>/placeholder, so no host path reaches a checked-in fixture. 327 fixtures were re-blessed under RIPR-SPEC-0116 (only the drill-in line changes; the diff is mechanical). New unit testfinding_navigation_binds_a_relative_root_for_every_drill_in; the cli_smoke replay test now asserts the printed root is absolute.cargo xtask precommitexit 0; goldens and fixtures checks pass; paste lane passes with the gap rows deleted.Partial acceptance of #3948 (an inventory gap found by the paste lane). It does not close #3948.
Decision recorded: absolute root over a hybrid or keeping the relative spelling, because wrong-target commands are the trust failure #3948 names. The card is on the thread.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WjGXVbKLB8gcwRvXFgbEqG
Generated by Claude Code