Skip to content

fix(explain): a location miss never reads as an all-clear on an incomplete run or a replayed artifact (#14406, #14440) - #14435

Merged
EffortlessSteven merged 12 commits into
mainfrom
claude/project-thread-3o2r0e
Nov 14, 2026
Merged

EffortlessSteven merged 12 commits into
mainfrom
claude/project-thread-3o2r0e

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Governing issue or accepted claim: #14406
Acceptance delta (one sentence): A file:line miss on explain/context claims the scope or file has no findings only when the run is known complete; an incomplete fresh run says analysis was incomplete (once), and a replayed --from artifact says it does not record whether its run was complete.
Source review: REVIEW_READY b35579a

Also fixes #14440 (same all-clear surface, --from routes).

What changes

location_miss_hint (app/selector.rs) takes ScopeCompleteness { Complete, Incomplete, IncompleteDisclosed, Unrecorded }:

Wording when not Complete:

  • empty scope: No findings were reported in this scope. plus Analysis of this scope was incomplete, so a finding there may be missing. or The artifact does not record whether its run was complete, so a finding there may be missing.
  • file with no finding: No finding was reported in "x"; findings are in ... plus the same sentence.

Complete keeps today's wording; the named-file-lines branch is unchanged; exit code stays 2. RIPR-SPEC-0003 states the contract next to #14077's sentence. One changelog fragment covers both issues.

Checks (head 7e23977, merged with main 6959344)

Review

https://claude.ai/code/session_01YVdGzVHcMqknZrbijS2Uis


Generated by Claude Code

…14384)

ripr explain and ripr context answered a location selector that matched
nothing with only a listing command, so the next try needed a second
run. The refusal now adds one bounded sentence: the lines that hold
findings in the named file (root-relative, with a selector that
resolves), or the files that do, or that the scope has none; a
file:line:column selector is told to drop the column. A suffix that
matches several files lists one file's lines and counts the rest. The
fresh route and both --from artifact routes share it; exit stays 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzTy2PRterqDJuSXY8V
…#14384)

A line shared by several findings would refuse as ambiguous on retry, so
the miss hint now suggests the first listed line whose selector resolves
to exactly one finding, or points at probe ids when every line is shared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzUyYRhWEmeAR1YkniC
…all-clear (#14406)

On a fresh run whose language run did not complete or left preview files
unanalyzed, the #14384 hint no longer says the scope or the named file
has no findings; it says none were reported and that analysis was
incomplete, so a finding there may be missing. Complete-run and --from
artifact wording is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzUyYRhWEmeAR1YkniC
@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 12, 2026
@coderabbitai

coderabbitai Bot commented Nov 12, 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 31 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: 884f856b-5195-47cf-9431-2eb97e09aeb8
Commits

Reviewing files that changed from the base of the PR and between 6959344 and b35579a.

Files selected for processing: 7

  • changelog.d/explain-location-miss-incomplete-run.md
  • crates/ripr/src/app/context.rs
  • crates/ripr/src/app/explain.rs
  • crates/ripr/src/app/selector.rs
  • crates/ripr/tests/cli_smoke.rs
  • crates/ripr/tests/cli_smoke/selector_language_recovery.rs
  • docs/specs/RIPR-SPEC-0003-agent-context.md
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

#14406)

An oversized or malformed diff (or any partial_with_limitations,
unsupported_input or analysis_failed outcome) can leave no language-run
or preview record, so the location-miss hint still read as an all-clear.
fresh_run_incomplete now also checks the producer outcome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzVHcMqknZrbijS2Uis

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

Exact-head review (head 860d185)

Independent read-only review lane. PR state at review time: OPEN draft at head 860d185; base claude/project-thread-ro5x5s (stacked on #14400). I read this PR's own two commits (55f4b0d, 860d185) and the full merge-base delta against origin/main (46b6297), which also carries #14400's location_miss_hint introduction.

Surfaces read

  • crates/ripr/src/app/explain.rs — fresh-run miss route (NoMatch at 176), hint splice 381-388, fresh_run_incomplete 400-412, new unit test 681-711
  • crates/ripr/src/app/context.rs — fresh miss 156-165 (shares no_finding_matched_fresh_run, so it inherits the computed flag); artifact miss 242-250
  • crates/ripr/src/app/selector.rs — location_miss_hint 266-356 (#14400), incomplete note 296-301, complete-run wordings 309-313, unit tests 684-817
  • crates/ripr/tests/cli_smoke.rs 25121-25198 (new three-route e2e) and crates/ripr/tests/cli_smoke/selector_language_recovery.rs 179-185, 250-258, 343-346
  • crates/ripr/src/analysis_outcome.rs 42-51, 94-103 (AnalysisOutcomeKind, is_complete)
  • crates/ripr/src/analysis/pipeline.rs 2340-2376 and crates/ripr/src/app/check.rs 605-625 (who sets analysis_outcome)
  • crates/ripr/src/analysis/mod.rs 1009-1011 (advisory analyzed)
  • Issue #14406 (governing, OPEN), issue #14440 (--from follow-up, OPEN), both changelog.d/ fragments

Audit

  • is_complete (analysis_outcome.rs:94-103) admits exactly NoScope, NoChangedLines, NoBehavioralCandidates, CompleteNoFindings, CompleteWithFindings. The PR body's semantic claim — empty-scope outcomes stay complete; partial_with_limitations/unsupported_input/analysis_failed read incomplete — matches the source exactly.
  • All three location_miss_hint call sites audited: fresh explain (explain.rs:382) and fresh context (context.rs:157) compute the flag from the live output; both artifact routes pass false (explain.rs:559, context.rs:247). That matches the issue's acceptance ("the artifact (--from) wording is unchanged") and the open follow-up #14440. No fourth miss route exists (grep over src/app).
  • Reading analysis_outcome: None as complete is not a production hole on the fresh route: pipeline.rs:2367 always constructs Some; the only None producers are repo_seam_inventory_input (check.rs:618, a no-analysis seam helper that is not the explain/context producer) and a test helper (check.rs:1584).
  • The new sentence "Analysis of this scope was incomplete, so a finding there may be missing." exists in exactly one production site (selector.rs:300); grep found no sibling surface carrying a competing all-clear wording, so the cli_smoke negative assertions cannot pass via a different producer.
  • The unit test's oracle is discriminating, not self-confirming: it first clears language_runs and preview_language_advisories (explain.rs:688-689), so the initial true can only be owned by the new producer-outcome arm; flipping the kind to CompleteWithFindings while those lists stay empty (explain.rs:696-699) proves the arm owns the result. The PartialWithLimitations construction (explain.rs:702-710) pins the oversized/malformed-diff class.
  • Scope note, not a defect: the producer-outcome trigger is a superset of #14406's literal acceptance, which named only non-Ok language runs and unanalyzed preview advisories. The extension is disclosed in the PR body, moves in the issue's direction (the all-clear hazard), and the acceptance's other half — complete-run and --from wording unchanged — holds in the source. Issue is OPEN; the extension is recorded here for the acceptance reconciliation.

Commands run (worktree F:/code/Rust/delta-14435 at 860d185; CARGO_TARGET_DIR set to a pre-created lane target; cold build)

  • cargo test -p ripr --lib app:: → 1037 passed, 1 failed (environment note below), 17755 filtered. Both targeted tests pass: app::explain::tests::fresh_run_incomplete_reads_an_incomplete_producer_outcome, app::selector::tests::location_miss_hint_names_lines_files_and_the_column_form.
  • cargo test -p ripr --test cli_smoke -- selector_language_recovery location_miss_names_where_findings_are → 6 passed, 0 failed, including location_miss_names_where_findings_are_on_fresh_and_artifact_routes (asserts exit 2 on all three routes and retries the suggested selector to a success).
  • cargo fmt --check → clean, exit 0.
  • cargo clippy -p ripr --all-targets -- -D warnings → 9 errors, every one in untouched cfg-gated files (edit_cage/mod.rs:1698,2133; lsp/backend.rs:14646,14667,14693,14720; lsp/tests.rs:27428); zero in the touched files. Per this lane's protocol that is inherited Windows-host noise.
  • gh api repos/EffortlessMetrics/ripr-swarm/commits/860d1854.../check-runs → 34 runs, 0 failed, 0 cancelled; several path-filtered lanes skipped (draft); "Ripr Windows Gate Result" success at this head.

Findings

  • low — oracle gap: the producer-outcome arm of fresh_run_incomplete (crates/ripr/src/app/explain.rs:400-403) has no end-to-end witness. The new e2e coverage (selector_language_recovery.rs:179-185, 250-258, 343-346) exercises only the language-run and preview arms, and cli_smoke.rs:25125 covers the complete-run rendering, so a run whose only incompleteness signal is the producer outcome (for example an oversized diff yielding partial_with_limitations/unsupported_input with no language-run records) has its rendered wording pinned only by unit-level construction of CheckOutput (explain.rs:702-710). A cli_smoke case for that input class would close the gap. Not blocking: the predicate is discriminating and the message-assembly path is e2e-covered by the sibling arms.

Environment notes (not code findings)

  • The single lib-test failure, app::verification_execution::tests::windows_cancellation_ends_a_pipe_inheriting_descendant (verification_execution.rs:1725), is in a file this PR does not touch; it shells out to cmd/start/ping and the descendant never started (empty stdout) in this lane's sandbox. Plausibly environmental or inherited; I did not rebuild the exact merge base to re-establish inheritance, so that comparison is not established.
  • Hosted required/full-CI lanes were skipped at this draft head; qualification evidence remains to be produced when requested. Not established in this lane: --from behavior on incomplete artifacts (out of scope by design, tracked in #14440), fixtures/goldens checks (the delta contains no fixture or golden changes), and the exact-base inheritance check above.

No high or medium findings. The change is narrowly scoped, matches its governing issue's direction, and both new wordings are pinned by discriminating tests I ran at this exact head.

…tor; spec the hint (#14384)

The hint now renders each file root-relative through finding_location_text,
so a Windows verbatim finding path under a plain-drive root is shown as
src/lib.rs rather than //?/C:/repo/src/lib.rs. RIPR-SPEC-0003 states the
location-miss hint contract and the traceability entry maps its unit and
CLI tests. Adds path-guard boundary cases (rust:12, :12, ./:12).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzUyYRhWEmeAR1YkniC
…to claude/project-thread-3o2r0e

# Conflicts:
#	crates/ripr/src/app/selector.rs
…n all-clear (#14440)

A --from artifact records its findings but not whether its run was
complete, so its completeness is unrecorded rather than assumed. The
location-miss hint now takes a ScopeCompleteness (Complete, Incomplete,
Unrecorded): replayed misses say none were reported and that the
artifact does not record whether its run was complete. Fresh complete
runs keep the plain wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzUyYRhWEmeAR1YkniC
@EffortlessSteven EffortlessSteven changed the title fix(explain): a location miss on an incomplete run never reads as an all-clear (#14406) fix(explain): a location miss never reads as an all-clear on an incomplete run or a replayed artifact (#14406, #14440) Nov 12, 2026
Base automatically changed from claude/project-thread-ro5x5s to main November 13, 2026 01:40
…-3o2r0e

# Conflicts:
#	crates/ripr/src/app/context.rs
#	crates/ripr/src/app/explain.rs
#	crates/ripr/src/app/selector.rs
#	crates/ripr/tests/cli_smoke.rs
#	docs/specs/RIPR-SPEC-0003-agent-context.md
When the #14077 miss cause already says the analysis was incomplete, the
#14384 hint keeps its "reported" wording without repeating the sentence
(ScopeCompleteness::IncompleteDisclosed). RIPR-SPEC-0003 lists the partial
diff scope among the incomplete signals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzVHcMqknZrbijS2Uis
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 13, 2026 02:50
@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 1 potential issue.

Devin Review

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

VERDICT: APPROVE b35579a — no blocking findings on this head.

Independent read-only review of the exact head. Scope: the PR's own 7-file delta against its merge base, read at b35579ab (not a stale earlier head).

What I checked, and the evidence

  • The predicate is the one the issues ask for. fresh_run_incomplete (crates/ripr/src/app/explain.rs:413-433) is true for a non-complete producer analysis_outcome, a partial_scope, a non-Ok language_run, or an unanalyzed preview advisory. AnalysisOutcomeKind::is_complete (analysis_outcome.rs:94-103) admits exactly NoScope, NoChangedLines, NoBehavioralCandidates, CompleteNoFindings, CompleteWithFindings, so partial_with_limitations / unsupported_input / analysis_failed read incomplete. That is a superset of #14406's literal acceptance (non-Ok language run, unanalyzed preview files), disclosed in the PR body and moving in the issue's direction.
  • All three hint call sites are bound. selector.rs:292 is the only producer of the two all-clear sentences (grep over crates and tools finds no sibling surface). Fresh explain (explain.rs:404) and fresh context (context.rs:157, via the shared no_finding_matched_fresh_run) pass the computed completeness; both --from routes pass Unrecorded (explain.rs:737, context.rs:246).
  • The Unrecorded wording is factually true. CheckArtifactV1 (app/check_artifact.rs) records schema_version, tool, analyzer_version, identity, findings — no completeness field. So "The artifact does not record whether its run was complete" is accurate, and it is the fallback #14440 asks for when the artifact carries nothing.
  • No double statement. names_incomplete is set only in the "file exists, outcome incomplete/partial" cause branch (explain.rs:562-580), and that branch is the only one that already says "The analysis was incomplete". It maps to IncompleteDisclosed, which keeps the "reported" wording and suppresses the note. The other incomplete triggers (language run, preview advisory) leave names_incomplete false, so the note is added once. selector_language_recovery.rs:611 pins matches("was incomplete").count() == 1.
  • Complete-run wording is unchanged. ScopeCompleteness::Complete keeps "This scope has no findings, so no location can match." and "No finding in this scope is in ..." (selector.rs:336-343, :428-433), pinned by the unit test at selector.rs:755-760 and the e2e at selector_language_recovery.rs:252-258.
  • The analysis_outcome: None arm is not a production hole. None is reserved for repo-scope projections (app.rs:296-299); the fresh explain/context producer always sets Some (app/check/output_builder.rs:20), and ripr explain with no scope flags resolves a default base rather than producing NoScope. The unit test's None assertion is a control, not a reachable all-clear.
  • Hosted evidence at this head: all Rust test shards 1-4, Rust gates, Rust Small Result, Admit PR Candidate, Docs-Only Surface, vscode surface and Graphite mergeability pass on run 43356030822. git merge-tree --write-tree origin/main b35579ab is clean, so the head merges with current main without conflict.

Non-blocking

  • Oracle gap (carried from the earlier review, still open): the producer-outcome arm has no end-to-end witness. The e2e cases exercise the language-run and preview arms; a run whose only incompleteness signal is the producer outcome (oversized/malformed diff with no language-run records) is pinned only by the unit-level CheckOutput construction at explain.rs:873-905. A cli_smoke case for that input class would close it. The predicate is discriminating and the message-assembly path is e2e-covered by the sibling arms, so this does not block.
  • The head is behind main; base movement alone does not invalidate this verdict, and the merge route handles the restack.

Limits: static review plus hosted-check and merge-tree evidence. No local build or test run on this Windows host, so I did not re-execute the Rust tests myself.

Merged via the queue into main with commit db01ef5 Nov 14, 2026
21 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-3o2r0e branch November 14, 2026 07:47
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.

explain/context --from: a location miss on a replayed incomplete artifact still reads as an all-clear

2 participants