Skip to content

fix(ux): say why ripr reported nothing: explain miss causes, honest not-analyzed line, troubleshooting guide (#14077, #14152) - #14170

Merged
EffortlessSteven merged 7 commits into
mainfrom
claude/project-thread-wofbbt
Nov 12, 2026
Merged

EffortlessSteven merged 7 commits into
mainfrom
claude/project-thread-wofbbt

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

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.

Swarm / Source Boundary

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

Source-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:line miss in explain and context names its cause, the default check screen 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-wofbbt
Stack 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

  • One public contract

Production delta:

  • app/explain.rs: location_miss_cause appends one clause to no_finding_matched_fresh_run, which explain and context share. It reads the run's finding list, output.root and analysis_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 of selector_matches_file_line becomes locator_paths_match, so "same file" in the diagnosis is the selector's own rule. No matching behavior changes.
  • output/human.rs: the plain Not analyzed: line points at the preview-language note only when one follows for that limitation; otherwise it prints the limitation's recovery on a Fix: line.
  • analysis/pipeline.rs: is_rust_excluded_by_config_detail sits 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.
  • One existing unit test in output/human.rs pinned the pointer on an output with no advisory, which is the defect; it now pins the Fix: line.
  • docs/TROUBLESHOOTING.md, linked from docs/README.md, docs/DOCUMENTATION.md and the Quickstart troubleshooting section. Three changelog fragments.

Single acceptance criterion:

  • The three new test files pass, and the guide test fails when a quoted line stops being printed or a section loses its exit code.

Non-goals:

Before and after:

ripr explain src/lib.rs:3   (the finding is at line 2)
before: no finding matched "src/lib.rs:3"; run `ripr check ... --format json` to list available finding ids
after:  ...to list available finding ids. No finding is at line 3, but this run has a finding at another line of that file: it is at src/lib.rs:2. Retry with one of those locations

ripr check   (ripr.toml: [languages] enabled = ["python"], a Rust file changed)
before:   Not analyzed: 1 changed file(s) in a language ripr is not set up to analyze (see the note below).
          <no note>
after:    Not analyzed: 1 changed file(s) in a language ripr is not set up to analyze.
          Fix: The effective [languages].enabled set is ["python"], which excludes rust; add "rust" to [languages].enabled in ripr.toml and re-run the analysis.

Support-tier Impact

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

Claim/proof notes:

  • Human text only. No JSON, schema, exit code or verdict changes. The first sentence of the explain miss is unchanged, and the cli_smoke listing parser reads the first backtick span, which is still the listing command.
  • cargo xtask goldens check exits 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

  • doc artifacts

Ledger or exception notes:

  • One new doc, indexed in docs/DOCUMENTATION.md. check-doc-index, check-doc-artifacts, check-static-language, check-changelog-fragments, check-no-panic-family, check-allow-attributes and check-local-context pass locally.

Proof

cargo test -p ripr --test explain_location_miss_cause --test check_not_analyzed_note_pointer --test troubleshooting_guide   # 6 + 3 + 2 passed
cargo clippy -p ripr --lib --bins --test explain_location_miss_cause --test check_not_analyzed_note_pointer --test troubleshooting_guide -- -D warnings   # clean
CARGO_INCREMENTAL=0 cargo check -p ripr --lib --profile test   # type-checks the edited unit test
cargo xtask goldens check   # exit 0
cargo fmt --check   # clean

Result, failures, or skipped proof:

  • cargo xtask precommit and check-file-policy did not complete locally. Both build the ripr lib test target, and rustc is 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.
  • Wrong-guide experiment: changing one quoted line and one section heading in the guide makes troubleshooting_guide fail with both problems named.
  • The path probe in location_miss_cause is limited to plain relative components, so a selector cannot ask whether something outside the analyzed root exists. src/../Cargo.toml:1, ../outside.rs:1 and /etc/hostname:1 are pinned to carry no clause.
  • The "not a Git repository" situation is staged under /tmp on 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

  • May be claimed: a location miss names one of three causes the run can establish; the default screen never points at a missing note; the guide's quoted lines are printed by the binary.
  • Must not be claimed: that ripr tells a changed line from an unchanged one on a miss, that the guide covers editor or CI-provider failures, or anything about runtime behavior.

Rollback

Revert the squash commit. No schema, artifact or config change.

Spec-Test-Code Traceability

  • Spec: docs/specs/RIPR-SPEC-0122-bounded-human-check-output.md
  • Tests: the three test files above
  • Code: crates/ripr/src/app/explain.rs, crates/ripr/src/app/selector.rs, crates/ripr/src/output/human.rs, crates/ripr/src/analysis/pipeline.rs
  • Golden outputs: unchanged
  • Metrics: none
  • ADR/learning: none

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

🤖 Generated with Claude Code

https://claude.ai/code/session_016EQRVhPEoLXwVore3Epctc

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

@EffortlessSteven EffortlessSteven self-assigned this Nov 11, 2026
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 145 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 24dfc668-d426-43fe-a491-26933a3f195b
Commits

Reviewing files that changed from the base of the PR and between abf2c72 and 3c69dbc.

Files selected for processing: 17

  • changelog.d/14077-explain-location-miss-cause.md
  • changelog.d/14152-not-analyzed-recovery-on-default-screen.md
  • changelog.d/14152-troubleshooting-guide.md
  • crates/ripr/src/analysis/mod.rs
  • crates/ripr/src/analysis/pipeline.rs
  • crates/ripr/src/app/explain.rs
  • crates/ripr/src/app/selector.rs
  • crates/ripr/src/output/human.rs
  • crates/ripr/tests/check_not_analyzed_note_pointer.rs
  • crates/ripr/tests/explain_location_miss_cause.rs
  • crates/ripr/tests/troubleshooting_guide.rs
  • docs/DOCUMENTATION.md
  • docs/QUICKSTART.md
  • docs/README.md
  • docs/TROUBLESHOOTING.md
  • docs/specs/RIPR-SPEC-0122-bounded-human-check-output.md
  • policy/process_allowlist.d/14152-self-diagnosis-tests.txt
Pre-merge checks: Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Title check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
Description check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 11, 2026 07:04
@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!

@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 4 potential issues.

Devin Review

Comment thread crates/ripr/src/app/explain.rs Resolved
Comment thread crates/ripr/src/output/human.rs Resolved
Comment thread docs/TROUBLESHOOTING.md Resolved
…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

Copy link
Copy Markdown
Member Author

Reply to the four Devin threads on 92b17289. All four were valid and are repaired in 510a92e9.

  1. Suffix location reported as a missing file (app/explain.rs). Confirmed: ripr explain t.rs:4 with tests/t.rs present and no finding said no file exists. A bare suffix resolves only through finding files, so the clause now reads "t.rs" is not the path of a file from the analyzed root ..., and no finding is in a file whose path ends with it; give the file's path from that root, check the spelling, or pass --root. I did not add a tree walk to resolve suffixes on disk. a_miss_on_a_path_that_is_not_a_file_names_the_analyzed_root now covers the suffix case and rejects the old wording.
  2. RIPR-SPEC-0122 contradicted the Fix: line. The spec now says the pointer is printed only when a preview-language note follows for that limitation, and otherwise a Fix: line carries the limitation's recovery. check-spec-format passes.
  3. Guide quotes are verified as fragments. Correct, and intended: the rest of those lines carries paths and names. The guide and the test header now say a quote is a whole line or the stable part of a longer one, so the stated claim matches what the test establishes.
  4. Guide said the third clause means the file was read. Corrected: it means the file exists and the run reported nothing in it, an unchanged file has no finding, and an incomplete run says the file may not have been analyzed.

Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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 builder explain and context --at share, so both commands change together. "Same file" uses locator_paths_match, extracted from selector_matches_file_line with 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 in pipeline.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_line covers 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_counts and a_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_guide reproduces 22 situations, checks every text fence 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

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit 3c69dbc169a5 · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=abf2c72db29b8717348596d9034d18af66479b10 findings=84 gaps=1 infection_unknown=2 static_unknown=27 weakly_exposed=55
analysis=incomplete|outcome=partial_with_limitations
limitation=diff_scope_oversized|reason=The run analyzed 665 changed line(s) and left at least 519 changed line(s) outsi…|recovery=To widen the analyzed partition, raise RIPR_PARTIAL_DIFF_LINE_BUDGET to at least 1184, then re-run.
weakly_exposed|crates/ripr/src/analysis/pipeline.rs:902|detail.starts_with(RUST_EXCLUDED_DETAIL_LEAD) && detail.contains(RUST_EXCLUDED_D…|missing=No strong discriminator was detected|test=t1|id=probe:crates_ripr_src_analysis_pipeline.rs:return_value:a189f533
stages=reach:weak,infect:yes,propagate:yes,observe:yes,discriminate:weak
t1=crates/ripr/src/analysis/pipeline.rs:9911 a_conflict_in_a_scoped_out_file_does_not_make_the_kept_files_unsupported unknown miss=assertion_inert
limits=infection_unknown:2,static_unknown:27,weakly_exposed:54
next=ripr explain --root . --base abf2c72db29b8717348596d9034d18af66479b10 --committed --mode draft --format agent probe:crates_ripr_src_analysis_pipeline.rs:return_value:a189f533
verify=refused|outcome=partial_with_limitations|findings=84|exposed=0|reason=analysis_incomplete,gaps_remain,partial_scope

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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 builder explain and context --at share, so both commands change together. "Same file" uses locator_paths_match, extracted from selector_matches_file_line with 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 in pipeline.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_line covers 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_counts and a_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_guide reproduces 22 situations, checks every text fence 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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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 builder explain and context --at share, so both commands change together. "Same file" uses locator_paths_match, extracted from selector_matches_file_line with 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 in pipeline.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_line covers 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_counts and a_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_guide reproduces 22 situations, checks every text fence 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 Small stopped in precommit at check-process-policy, because the three new tests call Command::new for git and the built binary. Reproduced locally; 4bd7bbcf adds policy/process_allowlist.d/14152-self-diagnosis-tests.txt and check-policy-all passes.
  • 4bd7bbcf: the Rust gates job passed; the Rust-only feature lane (--no-default-features --features lang-rust) was red in the three new test files, because a ripr.toml naming python or typescript is a config error in a binary built without those adapters. Reproduced locally. 3c69dbc1 compiles check_not_analyzed_note_pointer only with both adapters, gates the one incomplete-run case in explain_location_miss_cause on lang-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

Copy link
Copy Markdown
Member Author

cargo-deny is red on 3c69dbc1 and it is not caused by this PR.

  • What fails: the advisories check reports RUSTSEC-2026-0486 against rustix 1.1.5 (fixed in 1.1.6). bans, licenses and sources are ok.
  • Why it is not this PR's: the diff touches no manifest and no Cargo.lock line. main at abf2c72d pins the same rustix 1.1.5, and the same job passed on this PR's previous head 4bd7bbcf an hour earlier, so the advisory was published in between and affects every branch.
  • Fix: cargo update -p rustix --precise 1.1.6 on main. I found no open PR for it yet and have not ported the lockfile bump into this candidate, to keep it to one claim; the security.yml deny-red tracker job owns the shared repair. Ripr Rust Small Result does not run cargo-deny, so qualification of this head continues.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit b9f04db Nov 12, 2026
76 of 78 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-wofbbt branch November 12, 2026 05:16
EffortlessSteven pushed a commit that referenced this pull request Nov 13, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants