Repository navigation
fix(ux): say why ripr reported nothing: explain miss causes, honest not-analyzed line, troubleshooting guide (#14077, #14152) - #14170
Conversation
A location miss in `ripr explain` and `ripr context --at` answered six different causes with one sentence. On a well-formed file:line miss in a fresh run, add one cause clause from facts the run already holds: - the file has a finding at another line: name the nearest finding lines; - no file exists at that path under the analyzed root: name the root; - the file exists and has no finding: say where findings attach and give the run's changed-file, changed-line and candidate-line counts. Finding ids, seam ids, malformed locations and paths leaving the root get no clause, and no clause says whether the named line itself changed: the run output carries counts, not the per-file changed-line set. Path matching for "same file" reuses the selector's own rule through a shared helper. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016EQRVhPEoLXwVore3Epctc
… analyzed (#14077) The existing-file clause gave the reason findings attach where they do. In an incomplete or partitioned run the file may never have been analyzed, so that reason is only printed for a complete run; otherwise the clause says the file may not have been analyzed and points at check for the same scope. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016EQRVhPEoLXwVore3Epctc
…not there (#14152) The default check screen replaces every language_adapter_unavailable limitation with one plain line that says "(see the note below)". That note is written only for a preview-language advisory. With Rust switched off in [languages] no note follows, so the default screen was the only format that hid why nothing was analyzed. The line now points at the note only when a preview-language note follows for it. Otherwise it prints the producer's own recovery on a Fix line. The Rust-excluded limitation is recognised through a helper beside its producer, so a mixed diff points only the preview language at the note. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016EQRVhPEoLXwVore3Epctc
docs/TROUBLESHOOTING.md indexes the situations where ripr reports nothing, stops, or reports something unexpected by the line the user sees. crates/ripr/tests/troubleshooting_guide.rs reproduces each of the 22 situations with the built binary. Every line quoted in a text fence must be printed in its own section's situation, every situation must be quoted, and every non-zero exit code must be stated in its section. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016EQRVhPEoLXwVore3Epctc
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 15 minutes. View limit details
Pre-merge checks:
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
…ign RIPR-SPEC-0122 (#14077, #14152) Review repairs on #14170: - A bare file name such as lib.rs resolves only through finding files, so a miss on it said no file exists although src/lib.rs does. The clause now says the text is not a file path from the analyzed root and that no finding file ends with it. - The guide said the existing-file clause means the file was read. An unchanged file is not read; the guide now says the file exists and the run reported nothing in it. - The guide and its test describe quotes as printed text that may be the stable part of a longer line, which is what the test checks. - RIPR-SPEC-0122 states when the Not analyzed line points at the preview-language note and when it carries a Fix line. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016EQRVhPEoLXwVore3Epctc
|
Reply to the four Devin threads on
Generated by Claude Code |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Source and oracle review of head 510a92e915c80808f3ca3acddd72fd0644ff55f8 by the owning session. Hosted qualification has not run yet and is not claimed here.
Subject. PR #14170, base main at abf2c72d. GitHub merge ref 7dd026a8 has parents abf2c72d and 510a92e9, a clean merge.
Inspected. The whole diff: app/explain.rs, app/selector.rs, output/human.rs, analysis/pipeline.rs, analysis/mod.rs, three new test files, docs/TROUBLESHOOTING.md, docs/specs/RIPR-SPEC-0122-bounded-human-check-output.md, three doc index edits, three changelog fragments.
Semantic owner and consumers.
- The miss clause lives in
no_finding_matched_fresh_run, the one message builderexplainandcontext --atshare, so both commands change together. "Same file" useslocator_paths_match, extracted fromselector_matches_file_linewith no change to selection. - The
Not analyzed:line stays in the human renderer. The identity of the Rust-excluded limitation is answered by a helper beside its producer inpipeline.rs, built from the same constants as the detail text, so the renderer holds no copy of that string.
Claim and evidence map.
- A miss in a file with a finding names the finding lines:
a_miss_in_a_file_with_a_finding_names_the_finding_linecovers an unchanged line, a changed comment line, a line past the end of the file and a suffix spelling, in both commands. - A path that is not a file names the root:
a_miss_on_a_path_that_is_not_a_file_names_the_analyzed_root, including a directory and a bare file name, which must not be called a missing file. - A file without a finding gives the reason and counts only for a complete run:
a_miss_in_an_existing_file_without_findings_gives_the_run_countsanda_miss_in_an_incomplete_run_does_not_claim_the_file_was_analyzed. The second was added during this review after noticing the first draft gave the complete-run reason for a file an excluded language never analyzed. - Ids, seam ids, malformed locations and paths leaving the root carry no clause:
ids_malformed_locations_and_paths_leaving_the_root_get_no_cause_clause. The on-disk probe accepts only plain relative components. - The pointer line is printed only when a note follows: three tests cover Rust switched off, a preview language, and a mixed diff where exactly one pointer remains. Each asserts that any pointer has a
Note:after it. - The guide quotes only printed lines:
troubleshooting_guidereproduces 22 situations, checks everytextfence line against its own section's output, checks every situation is quoted, and checks each non-zero exit code is stated.
Wrong-behavior challenge. The three clause strings and the Fix: line do not exist on the base, so each positive assertion is red there. For the guide, changing one quoted line and one heading made the test name both problems.
Rendered behavior. Run with the built binary on a scratch repository for every case above; the outputs are in the PR body.
Contract parity. Human text only. JSON, agent and GitHub formats already carried the recovery and are untouched. cargo xtask goldens check exits 0, so the four goldens that contain the pointer line are unchanged. check-doc-index, check-doc-artifacts, check-static-language, check-changelog-fragments, check-no-panic-family, check-allow-attributes and check-local-context pass.
Platform. The guide test stages its no-repository case under /tmp on Unix and leaves that one section unchecked elsewhere. Quoted lines avoid paths and shell-specific commands.
Evidence gap. The library unit tests were type-checked (cargo check -p ripr --lib --profile test) and could not be run locally: building that target exceeds this container's memory (#12726). One unit test in output/human.rs was edited, so hosted qualification is the evidence for it.
Automated review. Devin raised four findings on 92b17289; all four were valid, are repaired in 510a92e9 (suffix wording, RIPR-SPEC-0122 text, two guide wordings), answered in one conversation comment, and their threads are resolved. Gemini and CodeRabbit reported quota limits, so those providers supplied no review.
Residual. An explain miss cannot say whether the named line changed, because the run output has counts and no per-file changed-line set. Recorded on #14077.
Generated by Claude Code
ripr static exposure checkCommit Took 64s. |
check-process-policy (reported by Ripr Rust Small precommit) counts Command::new in the new binary-driven tests. Each runs git and the built ripr binary with fixed arguments. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016EQRVhPEoLXwVore3Epctc
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Source and oracle review of head 4bd7bbcf915e8443dffeef8e9056bc0196a01cc0 by the owning session. Hosted qualification of this head has not completed and is not claimed here.
Subject. PR #14170, base main at abf2c72d. GitHub merge ref ed1217a6 has parents abf2c72d and 4bd7bbcf, a clean merge.
Inspected. The whole diff: app/explain.rs, app/selector.rs, output/human.rs, analysis/pipeline.rs, analysis/mod.rs, three new test files, docs/TROUBLESHOOTING.md, docs/specs/RIPR-SPEC-0122-bounded-human-check-output.md, three doc index edits, three changelog fragments, one process allowlist file.
Semantic owner and consumers.
- The miss clause lives in
no_finding_matched_fresh_run, the one message builderexplainandcontext --atshare, so both commands change together. "Same file" useslocator_paths_match, extracted fromselector_matches_file_linewith no change to selection. - The
Not analyzed:line stays in the human renderer. The identity of the Rust-excluded limitation is answered by a helper beside its producer inpipeline.rs, built from the same constants as the detail text, so the renderer holds no copy of that string.
Claim and evidence map.
- A miss in a file with a finding names the finding lines:
a_miss_in_a_file_with_a_finding_names_the_finding_linecovers an unchanged line, a changed comment line, a line past the end of the file and a suffix spelling, in both commands. - A path that is not a file names the root:
a_miss_on_a_path_that_is_not_a_file_names_the_analyzed_root, including a directory and a bare file name, which must not be called a missing file. - A file without a finding gives the reason and counts only for a complete run:
a_miss_in_an_existing_file_without_findings_gives_the_run_countsanda_miss_in_an_incomplete_run_does_not_claim_the_file_was_analyzed. The second was added during this review after noticing the first draft gave the complete-run reason for a file an excluded language never analyzed. - Ids, seam ids, malformed locations and paths leaving the root carry no clause:
ids_malformed_locations_and_paths_leaving_the_root_get_no_cause_clause. The on-disk probe accepts only plain relative components. - The pointer line is printed only when a note follows: three tests cover Rust switched off, a preview language, and a mixed diff where exactly one pointer remains. Each asserts that any pointer has a
Note:after it. - The guide quotes only printed lines:
troubleshooting_guidereproduces 22 situations, checks everytextfence line against its own section's output, checks every situation is quoted, and checks each non-zero exit code is stated.
Wrong-behavior challenge. The three clause strings and the Fix: line do not exist on the base, so each positive assertion is red there. For the guide, changing one quoted line and one heading made the test name both problems.
Rendered behavior. Run with the built binary on a scratch repository for every case above; the outputs are in the PR body.
Contract parity. Human text only. JSON, agent and GitHub formats already carried the recovery and are untouched. cargo xtask goldens check exits 0, so the four goldens that contain the pointer line are unchanged. check-doc-index, check-doc-artifacts, check-static-language, check-changelog-fragments, check-no-panic-family, check-allow-attributes and check-local-context pass.
Platform. The guide test stages its no-repository case under /tmp on Unix and leaves that one section unchecked elsewhere. Quoted lines avoid paths and shell-specific commands.
Evidence gap. The library unit tests were type-checked (cargo check -p ripr --lib --profile test) and could not be run locally: building that target exceeds this container's memory (#12726). One unit test in output/human.rs was edited, so hosted qualification is the evidence for it.
Automated review. Devin raised four findings on 92b17289; all four were valid, are repaired in 510a92e9 (suffix wording, RIPR-SPEC-0122 text, two guide wordings), answered in one conversation comment, and their threads are resolved. Gemini and CodeRabbit reported quota limits, so those providers supplied no review.
Hosted result on the previous head. Ripr Rust Small on 510a92e9 stopped in precommit at check-process-policy: the three new tests call Command::new for git and the built binary, with no allowlist entry. Reproduced locally, then 4bd7bbcf adds policy/process_allowlist.d/14152-self-diagnosis-tests.txt and check-policy-all passes locally. No source, test or doc line changed, so the review above carries over unchanged.
Residual. An explain miss cannot say whether the named line changed, because the run output has counts and no per-file changed-line set. Recorded on #14077.
Generated by Claude Code
…t with The Rust-only feature lane builds ripr without the Python and TypeScript adapters, where a ripr.toml naming them is a config error. The cases that need an adapter are compiled or run only when it is present; the guide test leaves those two sections unchecked in such a build. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016EQRVhPEoLXwVore3Epctc
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Source and oracle review of head 3c69dbc169a5b618cc04eafc93c7ab068d4a2f54 by the owning session. Hosted qualification of this head has not completed and is not claimed here.
Subject. PR #14170, base main at abf2c72d. GitHub merge ref 01e49857 has parents abf2c72d and 3c69dbc1, a clean merge.
Inspected. The whole diff: app/explain.rs, app/selector.rs, output/human.rs, analysis/pipeline.rs, analysis/mod.rs, three new test files, docs/TROUBLESHOOTING.md, docs/specs/RIPR-SPEC-0122-bounded-human-check-output.md, three doc index edits, three changelog fragments, one process allowlist file.
Semantic owner and consumers.
- The miss clause lives in
no_finding_matched_fresh_run, the one message builderexplainandcontext --atshare, so both commands change together. "Same file" useslocator_paths_match, extracted fromselector_matches_file_linewith no change to selection. - The
Not analyzed:line stays in the human renderer. The identity of the Rust-excluded limitation is answered by a helper beside its producer inpipeline.rs, built from the same constants as the detail text, so the renderer holds no copy of that string.
Claim and evidence map.
- A miss in a file with a finding names the finding lines:
a_miss_in_a_file_with_a_finding_names_the_finding_linecovers an unchanged line, a changed comment line, a line past the end of the file and a suffix spelling, in both commands. - A path that is not a file names the root:
a_miss_on_a_path_that_is_not_a_file_names_the_analyzed_root, including a directory and a bare file name, which must not be called a missing file. - A file without a finding gives the reason and counts only for a complete run:
a_miss_in_an_existing_file_without_findings_gives_the_run_countsanda_miss_in_an_incomplete_run_does_not_claim_the_file_was_analyzed. The second was added during this review after noticing the first draft gave the complete-run reason for a file an excluded language never analyzed. - Ids, seam ids, malformed locations and paths leaving the root carry no clause:
ids_malformed_locations_and_paths_leaving_the_root_get_no_cause_clause. The on-disk probe accepts only plain relative components. - The pointer line is printed only when a note follows: three tests cover Rust switched off, a preview language, and a mixed diff where exactly one pointer remains. Each asserts that any pointer has a
Note:after it. - The guide quotes only printed lines:
troubleshooting_guidereproduces 22 situations, checks everytextfence line against its own section's output, checks every situation is quoted, and checks each non-zero exit code is stated.
Wrong-behavior challenge. The three clause strings and the Fix: line do not exist on the base, so each positive assertion is red there. For the guide, changing one quoted line and one heading made the test name both problems.
Rendered behavior. Run with the built binary on a scratch repository for every case above; the outputs are in the PR body.
Contract parity. Human text only. JSON, agent and GitHub formats already carried the recovery and are untouched. cargo xtask goldens check exits 0, so the four goldens that contain the pointer line are unchanged. check-doc-index, check-doc-artifacts, check-static-language, check-changelog-fragments, check-no-panic-family, check-allow-attributes and check-local-context pass.
Platform. The guide test stages its no-repository case under /tmp on Unix and leaves that one section unchecked elsewhere. Quoted lines avoid paths and shell-specific commands.
Evidence gap. The library unit tests were type-checked (cargo check -p ripr --lib --profile test) and could not be run locally: building that target exceeds this container's memory (#12726). One unit test in output/human.rs was edited, so hosted qualification is the evidence for it.
Automated review. Devin raised four findings on 92b17289; all four were valid, are repaired in 510a92e9 (suffix wording, RIPR-SPEC-0122 text, two guide wordings), answered in one conversation comment, and their threads are resolved. Gemini and CodeRabbit reported quota limits, so those providers supplied no review.
Hosted results on earlier heads.
510a92e9:Ripr Rust Smallstopped in precommit atcheck-process-policy, because the three new tests callCommand::newfor git and the built binary. Reproduced locally;4bd7bbcfaddspolicy/process_allowlist.d/14152-self-diagnosis-tests.txtandcheck-policy-allpasses.4bd7bbcf: the Rust gates job passed; theRust-only feature lane(--no-default-features --features lang-rust) was red in the three new test files, because aripr.tomlnamingpythonortypescriptis a config error in a binary built without those adapters. Reproduced locally.3c69dbc1compilescheck_not_analyzed_note_pointeronly with both adapters, gates the one incomplete-run case inexplain_location_miss_causeonlang-python, and has the guide test leave its two preview-language sections unchecked in such a build. Both builds now pass locally: Rust-only 0 + 5 + 2, default 3 + 6 + 2. No production or doc line changed in either repair.
Residual. An explain miss cannot say whether the named line changed, because the run output has counts and no per-file changed-line set. Recorded on #14077.
Generated by Claude Code
|
I cannot re-run the job from this session; it will go green on the next push or re-run after the lockfile bump lands. Generated by Claude Code |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Final review of head 3c69dbc169a5b618cc04eafc93c7ab068d4a2f54 by the owning session, after hosted qualification of that exact head.
Hosted evidence on this head (run 42989690049). Admit PR Candidate, Ripr Rust Small on GitHub Hosted / Rust gates, test shards 1 to 4 of 4, Rust test shards verify and the required Ripr Rust Small Result all concluded success. The library unit tests, including the edited bounded_adapter_unavailable_limitation_is_one_plain_pointer in output/human.rs that could not be built locally, ran in those shards. Ripr Windows Gate Result also concluded success.
Source review. The exact-head source and oracle review posted at 08:46Z on this same head stands unchanged; no commit followed it.
Review threads and comments. Four Devin threads, all repaired in 510a92e9, answered and resolved; none opened since. Gemini and CodeRabbit reported quota limits and supplied no review. The advisory static-exposure comment lists one weakly_exposed row on is_rust_excluded_by_config_detail; the three binary-driven tests in check_not_analyzed_note_pointer.rs discriminate both of its outcomes, which the static model does not connect to that helper.
Known unrelated check. cargo-deny reports RUSTSEC-2026-0486 on rustix 1.1.5, pinned identically on main; this diff touches no manifest or lockfile, and the check is not part of the required result. Explained in a conversation comment.
Integration. main moved from abf2c72d to 2ab9f908 (four commits in CI workflow, xtask, seam-cache test and release-notes files, none touched by this diff). git merge-tree of 2ab9f908 and this head is clean. The merge queue qualifies the actual composition.
Residual. An explain miss cannot say whether the named line changed; recorded on #14077.
Generated by Claude Code
…ting guide A --depth clone tracks one branch, so after this PR ripr prints the widen- then-fetch advice for the guide's reproduction. The guide's contract test (added on main by #14170) requires the quoted line to be one ripr prints. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016EQRVk5uqGu4nAVbiM65QP
file:line miss in a file without findings cannot say whether that line changed
#15039
Requested by Steven Zimmerman · project thread
Summary
Three related self-diagnosis changes for the situations where a user gets no finding, or a stop, and cannot tell why. They share one candidate because the guide's test pins the two new messages, and because the merge queue lands one entry at a time.
ripr explain <file:line>andripr context --at <file:line>say why a location has no finding (ux(explain): afile:linemiss prints the same message for six different causes, so the user cannot tell why there is no finding #14077).ripr checkscreen no longer says "(see the note below)" with no note when Rust is switched off inripr.toml(ux(check): the default screen says "(see the note below)" with no note when Rust is switched off in ripr.toml; no troubleshooting guide ties symptoms to output #14152).docs/TROUBLESHOOTING.md, checked line by line against the built binary (ux(check): the default screen says "(see the note below)" with no note when Rust is switched off in ripr.toml; no troubleshooting guide ties symptoms to output #14152).Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal: none
Spec:
docs/specs/RIPR-SPEC-0122-bounded-human-check-output.md(pointer rule amended)ADR: none
Plan item: none
Governing issue or accepted claim: #14152 (and #14077 for the explain part)
Acceptance delta (one sentence): A
file:linemiss inexplainandcontextnames its cause, the defaultcheckscreen prints the recovery when no preview-language note follows, and a troubleshooting guide quotes only lines the built binary prints.Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication):
claude/project-thread-wofbbtStack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): none
Scope
Production delta:
app/explain.rs:location_miss_causeappends one clause tono_finding_matched_fresh_run, whichexplainandcontextshare. It reads the run's finding list,output.rootandanalysis_outcome. Three causes: the file has a finding at another line (the nearest finding lines are named); the text is not the path of a file from the analyzed root, and no finding is in a file whose path ends with it; the file exists and has no finding (the reason and the run's counts for a complete run, "may not have been analyzed" for an incomplete or partitioned one).app/selector.rs: the path half ofselector_matches_file_linebecomeslocator_paths_match, so "same file" in the diagnosis is the selector's own rule. No matching behavior changes.output/human.rs: the plainNot analyzed:line points at the preview-language note only when one follows for that limitation; otherwise it prints the limitation's recovery on aFix:line.analysis/pipeline.rs:is_rust_excluded_by_config_detailsits beside the producer of the Rust-excluded limitation, which now builds its detail from the same two constants. The detail text is byte-identical.Evidence/support delta:
crates/ripr/tests/explain_location_miss_cause.rs(6 tests),crates/ripr/tests/check_not_analyzed_note_pointer.rs(3 tests),crates/ripr/tests/troubleshooting_guide.rs(2 tests over 22 reproduced situations). All drive the built binary against real git repositories.output/human.rspinned the pointer on an output with no advisory, which is the defect; it now pins theFix:line.docs/TROUBLESHOOTING.md, linked fromdocs/README.md,docs/DOCUMENTATION.mdand the Quickstart troubleshooting section. Three changelog fragments.Single acceptance criterion:
Non-goals:
explainmiss.CheckOutputcarries counts, not the per-file changed-line set; that is the residual on ux(explain): afile:linemiss prints the same message for six different causes, so the user cannot tell why there is no finding #14077.--fromartifact lookups, and the editor surfaces.Before and after:
Support-tier Impact
Claim/proof notes:
explainmiss is unchanged, and thecli_smokelisting parser reads the first backtick span, which is still the listing command.cargo xtask goldens checkexits 0 with the change, so the preview-language goldens that contain the pointer line (python_disabled,typescript_disabled,ts_full_repo_guidance,perl_cpan_alpha) are byte-identical.Policy Impact
Ledger or exception notes:
docs/DOCUMENTATION.md.check-doc-index,check-doc-artifacts,check-static-language,check-changelog-fragments,check-no-panic-family,check-allow-attributesandcheck-local-contextpass locally.Proof
Result, failures, or skipped proof:
cargo xtask precommitandcheck-file-policydid not complete locally. Both build theriprlib test target, andrustcis killed for memory (SIGKILL) in this 15 GB container (perf(build): the ripr lib test compile holds ~11 GB before codegen and peaks near 14 GB #12726). This is an infrastructure limit, not a source result. The library unit tests were type-checked but not run locally; hosted qualification on this head is the evidence for them.troubleshooting_guidefail with both problems named.location_miss_causeis limited to plain relative components, so a selector cannot ask whether something outside the analyzed root exists.src/../Cargo.toml:1,../outside.rs:1and/etc/hostname:1are pinned to carry no clause./tmpon Unix, because the workspace cargo config puts the temp directory inside the checkout. On a host that cannot stage it, that one section is left unchecked.Claim Boundary
Rollback
Revert the squash commit. No schema, artifact or config change.
Spec-Test-Code Traceability
docs/specs/RIPR-SPEC-0122-bounded-human-check-output.mdcrates/ripr/src/app/explain.rs,crates/ripr/src/app/selector.rs,crates/ripr/src/output/human.rs,crates/ripr/src/analysis/pipeline.rsStatic Language Check
killed,survived,untested,proven, andadequate.🤖 Generated with Claude Code
https://claude.ai/code/session_016EQRVhPEoLXwVore3Epctc