Repository navigation
fix(explain): a location miss never reads as an all-clear on an incomplete run or a replayed artifact (#14406, #14440) - #14435
Conversation
…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
|
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 31 minutes. View limit details
Pre-merge checks:
|
#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
left a comment
There was a problem hiding this comment.
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_incomplete400-412, new unit test 681-711crates/ripr/src/app/context.rs— fresh miss 156-165 (sharesno_finding_matched_fresh_run, so it inherits the computed flag); artifact miss 242-250crates/ripr/src/app/selector.rs—location_miss_hint266-356 (#14400), incomplete note 296-301, complete-run wordings 309-313, unit tests 684-817crates/ripr/tests/cli_smoke.rs25121-25198 (new three-route e2e) andcrates/ripr/tests/cli_smoke/selector_language_recovery.rs179-185, 250-258, 343-346crates/ripr/src/analysis_outcome.rs42-51, 94-103 (AnalysisOutcomeKind,is_complete)crates/ripr/src/analysis/pipeline.rs2340-2376 andcrates/ripr/src/app/check.rs605-625 (who setsanalysis_outcome)crates/ripr/src/analysis/mod.rs1009-1011 (advisoryanalyzed)- Issue #14406 (governing, OPEN), issue #14440 (
--fromfollow-up, OPEN), bothchangelog.d/fragments
Audit
is_complete(analysis_outcome.rs:94-103) admits exactlyNoScope,NoChangedLines,NoBehavioralCandidates,CompleteNoFindings,CompleteWithFindings. The PR body's semantic claim — empty-scope outcomes stay complete;partial_with_limitations/unsupported_input/analysis_failedread incomplete — matches the source exactly.- All three
location_miss_hintcall sites audited: fresh explain (explain.rs:382) and fresh context (context.rs:157) compute the flag from the live output; both artifact routes passfalse(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 oversrc/app). - Reading
analysis_outcome: Noneas complete is not a production hole on the fresh route:pipeline.rs:2367always constructsSome; the onlyNoneproducers arerepo_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_runsandpreview_language_advisories(explain.rs:688-689), so the initial true can only be owned by the new producer-outcome arm; flipping the kind toCompleteWithFindingswhile those lists stay empty (explain.rs:696-699) proves the arm owns the result. ThePartialWithLimitationsconstruction (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
--fromwording 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, includinglocation_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, andcli_smoke.rs:25125covers the complete-run rendering, so a run whose only incompleteness signal is the producer outcome (for example an oversized diff yieldingpartial_with_limitations/unsupported_inputwith no language-run records) has its rendered wording pinned only by unit-level construction ofCheckOutput(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 tocmd/start/pingand 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:
--frombehavior 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
…-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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzVHcMqknZrbijS2Uis
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzVHcMqknZrbijS2Uis
EffortlessSteven
left a comment
There was a problem hiding this comment.
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 produceranalysis_outcome, apartial_scope, a non-Oklanguage_run, or an unanalyzed preview advisory.AnalysisOutcomeKind::is_complete(analysis_outcome.rs:94-103) admits exactlyNoScope,NoChangedLines,NoBehavioralCandidates,CompleteNoFindings,CompleteWithFindings, sopartial_with_limitations/unsupported_input/analysis_failedread incomplete. That is a superset of #14406's literal acceptance (non-Oklanguage 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:292is the only producer of the two all-clear sentences (grep overcratesandtoolsfinds no sibling surface). Freshexplain(explain.rs:404) and freshcontext(context.rs:157, via the sharedno_finding_matched_fresh_run) pass the computed completeness; both--fromroutes passUnrecorded(explain.rs:737,context.rs:246). - The
Unrecordedwording is factually true.CheckArtifactV1(app/check_artifact.rs) recordsschema_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_incompleteis 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 toIncompleteDisclosed, which keeps the "reported" wording and suppresses the note. The other incomplete triggers (language run, preview advisory) leavenames_incompletefalse, so the note is added once.selector_language_recovery.rs:611pinsmatches("was incomplete").count() == 1. - Complete-run wording is unchanged.
ScopeCompleteness::Completekeeps "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 atselector.rs:755-760and the e2e atselector_language_recovery.rs:252-258. - The
analysis_outcome: Nonearm is not a production hole.Noneis reserved for repo-scope projections (app.rs:296-299); the fresh explain/context producer always setsSome(app/check/output_builder.rs:20), andripr explainwith no scope flags resolves a default base rather than producingNoScope. The unit test'sNoneassertion 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 b35579abis 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
CheckOutputconstruction atexplain.rs:873-905. Acli_smokecase 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.
Requested by Steven · project thread
Governing issue or accepted claim: #14406
Acceptance delta (one sentence): A
file:linemiss 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--fromartifact says it does not record whether its run was complete.Source review: REVIEW_READY b35579a
Also fixes #14440 (same all-clear surface,
--fromroutes).What changes
location_miss_hint(app/selector.rs) takesScopeCompleteness { Complete, Incomplete, IncompleteDisclosed, Unrecorded }:explain/contextroutes passIncompletewhenfresh_run_incomplete(app/explain.rs) holds: the produceranalysis_outcomeis not complete (partial_with_limitations,unsupported_input,analysis_failed), the diff was degraded to a partial scope, a language run is notOk, or a preview-language advisory is unanalyzed. When ux(explain): afile:linemiss prints the same message for six different causes, so the user cannot tell why there is no finding #14077's miss-cause clause already says the analysis was incomplete, they passIncompleteDisclosed: same "reported" wording, without repeating the sentence. OtherwiseComplete.--fromroutes passUnrecorded:CheckArtifactV1(deny_unknown_fields) records findings and identity, not run completeness (explain/context --from: a location miss on a replayed incomplete artifact still reads as an all-clear #14440).Wording when not
Complete:No findings were reported in this scope.plusAnalysis of this scope was incomplete, so a finding there may be missing.orThe artifact does not record whether its run was complete, so a finding there may be missing.No finding was reported in "x"; findings are in ...plus the same sentence.Completekeeps 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)
cargo test -p ripr --lib app::: 1061 passed.cargo test -p ripr --test cli_smoke -- selector_language_recovery location_miss explain context: 41 passed (preview-miss tests now require the "reported" wording and exactly one incompleteness statement; the location-miss test asserts the--fromunrecorded wording).cargo fmt --check: clean.cargo xtask precommit: exit 0.partial_scopearm offresh_run_incompletein isolation (its struct has many required fields); it mirrors ux(explain): afile:linemiss prints the same message for six different causes, so the user cannot tell why there is no finding #14077's own incomplete rule.Review
file:linemiss prints the same message for six different causes, so the user cannot tell why there is no finding #14077): independent review found a double incompleteness disclosure; fixed in 0d9661a / 7e23977.https://claude.ai/code/session_01YVdGzVHcMqknZrbijS2Uis
Generated by Claude Code