Repository navigation
fix(human): limitation lines say why the analysis was limited (#14398) - #14437
Conversation
The human check report printed a limitation's kind, stage, file and recovery but dropped the producer's bounded detail, so a file that did not parse read only as "part of the analysis failed ... inspect the failure". JSON, SARIF, repo-exposure and the editor sentence already carry that detail. The human line now prints it ahead of the recovery on both surfaces. RIPR-SPEC-0147 names it as part of the human/JSON parity, the projection test pins it, and 14 fixture goldens are re-blessed for the added cause text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzTy2PRterqDJuSXY8V
|
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 28 minutes. View limit details
Pre-merge checks:
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head review (head be2bca0)
Read-only review lane: this comment is the only write; no labels, threads or merges touched.
Surfaces read
- Full diff vs merge-base 46b6297 (37 files):
crates/ripr/src/output/human.rs,crates/ripr/src/output/json/mod.rs,changelog.d/human-limitation-detail.md,docs/specs/RIPR-SPEC-0147-analysis-outcome-projection.md, and 14 fixtureexpected/trees. - Governing issue #14398 and the PR body.
- Producer/consumer sites of
bounded_detail:analysis_outcome.rs(DTO,incomplete_scope_sentence,bounded_nonempty_text),output/sarif.rs,output/github.rs,output/repo_exposure.rs,output/human/agent.rs,output/json/mod.rs,mcp/workspace.rs, and the golden harnessxtask/src/reports/fixtures.rs.
Behavior audit (observed from source and goldens)
- The human limitation line now renders
bounded_detailbetween affected items and recovery on both surfaces (crates/ripr/src/output/human.rs:831-839). On the plain surfaceplain_limitation_detail(human.rs:857-884) drops a leading snake_case code (optionally afterstatic limit) and a trailing: <path>only when it repeats the line's ownfile:; the full surface keeps codes and only trims the trailing period, mirroring the existing editor sentence at analysis_outcome.rs:633. - Parity premise holds: every other surface already carried the detail (sarif.rs:459, github.rs:364 and :403 shared segments, repo_exposure.rs:114 and :1926, human/agent.rs:270, mcp/workspace.rs:291, editor sentence analysis_outcome.rs:632-634), so this PR fixes exactly the one missing surface named in #14398.
- Golden cross-check of all 13 modified
check.json/human.txtpairs (python -I script over the worktree) confirms the stripper's real effect: ts_parse_depth_budget raw detailstatic limit expression_nesting_budget: estimated expression nesting depth 2101 ...renders asestimated expression nesting depth 2101 ...; property_macro_lexical_fallback drops both the code and the trailing: tests/opaque.rsthat repeatsfile:;1 parser error(s): Unexpected tokenand backticked-condition details pass through untouched.human-full.txtgoldens keep the codes, as documented. - Receiver audit: the path-suffix strip uses the same limitation's
path(correct receiver); a detail ending in a different path is not stripped.bounded_nonempty_texttrims and rejects empty (analysis_outcome.rs:690-698), so whitespace-only fragments are unreachable through the DTO.
Commands run (worktree F:/code/Rust/delta-14437, isolated CARGO_TARGET_DIR, toolchain 1.95.0)
cargo fmt --check— pass (exit 0, no output).cargo test -p ripr --lib plain_limitation_detail— pass: 1 passed, 18791 filtered.cargo test -p ripr --lib typed_incomplete_outcome_matches_human_and_json_projection— pass: 1 passed. The newhuman.contains("affected items: 1; the merge diff has three-way hunks; recovery: ")assertion cannot pass on the merge-base:git show 46b62971:crates/ripr/src/output/human.rscontains zerobounded_detailreferences, so the oracle grips the behavior change.cargo xtask goldens check— pass: report saysStatus: pass, 955 fixtures listed,Violations: None detected. The command has no fixture filter (command.rs:606-608), so this ran at full scale and covers the 14 re-blesses plus any missed drift elsewhere.cargo clippy -p ripr --all-targets -- -D warnings— exit 101; all 8 errors are confined to untouched cfg-gated files (edit_cage/mod.rs:2133 and :1698; lsp/backend.rs:14646, :14667, :14693, :14720; lsp/tests.rs:27428 — unused/dead-code on a Windows host). No diagnostic names output/human.rs or output/json/mod.rs. Classified as inherited host noise per lane rules, not attributed to this change.- Hosted CI at this head:
gh api repos/EffortlessMetrics/ripr-swarm/commits/be2bca0d0ecf6f65c603cce787b23649860e8084/check-runs— 0 failed, 11 success, 24 skipped, 1 neutral (CodeRabbit). The skipped required jobs are the draft-lane reduction; nothing failing was observed.
Findings
- low — fixtures/python_generated_file_excluded/expected/human.txt:10: the plain surface keeps a numbered (non-snake-case) detail head with its trailing path even though the line has no
file:field, so the path appears twice on one line (...excluded-path rules: src/schema_pb2.py; recovery: ... — Not analyzed by the Python preview adapter: src/schema_pb2.py.). Same class at fixtures/rust_verification_contract_only_edit/expected/human.txt:8 and fixtures/rust_verification_ghost_only_edit/expected/human.txt:8 (... and were not probed: src/lib.rs). The PR body discloses the adjacent residuals (non-underscoreword:heads unpinned;at path:linerepetition); this is the numbered-head variant. Cosmetic duplication only;plain_limitation_detail's contract intentionally strips only snake_case code heads, and no wrong-credit risk was found. - low — coverage note: fixtures/python_generated_file_excluded pins no
human-full.txt, so the full-surface detail forlanguage_adapter_unavailablelimitations is not golden-pinned anywhere (only 5 touched fixtures carry human-full goldens; bless writes human-full only when the file already exists, xtask/src/reports/fixtures.rs:643-644). Pre-existing harness policy, informational.
No high or medium findings. The change does what the PR body and #14398 state; the output-shape change is justified by the RIPR-SPEC-0147 wording, the per-fixture bless ledger entries, and the full 955-fixture goldens check passing at this head.
Not established
- Local proof was focused by design: the full workspace matrix,
precommit,check-pr,dogfood, and the PR body's other suite counts (516 lib output/analysis filters, 31 cli_smoke filters) were not re-run here; hosted CI owns the merge gate. - The 24 skipped required checks mean full hosted qualification is still ahead of this draft head; nothing failing was observed.
- Merge-base clippy was not re-run; the failing-file set matches the pre-classified inherited host-noise list exactly.
- Advisory bot check-runs (Graphite success, CodeRabbit neutral) were noted but not treated as review evidence.
…-8doc7v-limitation-detail
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY for the exact head
Head: 031322f
This head is be2bca0 plus a clean merge of main. The merge touches none of this PR's source files (git diff be2bca0d 031322ff -- crates/ripr/src/output/human.rs crates/ripr/src/output/json/mod.rs docs/specs/RIPR-SPEC-0147-analysis-outcome-projection.md is empty), so the exact-head review of be2bca0 above still covers the change. On the merged tree, cargo xtask goldens check and cargo xtask precommit both exited 0.
On that review's findings:
- The path shown twice on lines like
fixtures/python_generated_file_excluded/expected/human.txt:10is the cause naming the file and then the recovery naming it again. That line has nofile:field, so nothing in the cause repeats a field the line already prints. Stripping it would make the cause sentence lose its subject whenever the recovery text happens to mention the same path. I'm keeping the narrow rule that only drops a suffix repeating the line's ownfile:. - The
human-full.txtcoverage gap is pre-existing harness policy, as the review notes. No change here.
Generated by Claude Code
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
cargo-deny fails on RUSTSEC-2026-0486 (rustix xattr soundness advisory). That comes from main's lockfile, not this PR: this PR changes no Cargo.toml or Cargo.lock. #14240 carries the fix. cargo-deny is not one of the required checks for the merge queue. Generated by Claude Code |
ripr static exposure checkCommit Took 50s. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
VERDICT: APPROVE 031322f — no blocking findings on this head.
Verdict on the exact-head review I published at be2bca0d0e (2026-11-12T02:49Z), carried to this head after confirming the movement is base-only.
Movement check. The head moved from be2bca0d0e to 031322ff69, but every commit in that range is a main commit merged in; the PR's own 37 files are byte-identical between the two heads (verified by diffing the PR-side file list between the two commits — empty diff). Base movement alone does not invalidate a verdict, so the review applies unchanged.
What the review established. The human limitation line now renders bounded_detail between affected items and recovery on both surfaces, and plain_limitation_detail drops a leading snake_case code and a trailing : <path> only when it repeats the line's own file:. Every other surface already carried the detail, so the change fixes exactly the one missing surface named in #14398. The golden cross-check of all 13 modified check.json/human.txt pairs confirmed the stripper's real effect, and cargo xtask goldens check passed at full scale (955 fixtures, no violations) at the reviewed head. No high or medium findings.
Re-checked now. Ripr Rust Small Result success at this head; 0 unresolved review threads; the only red check is cargo-deny (the known rustix advisory, not a required check).
Carried forward, non-blocking. Two low observations: a numbered (non-snake-case) detail head keeps its trailing path on a line with no file: field, so the path appears twice (fixtures/python_generated_file_excluded/expected/human.txt:10 and two sibling fixtures) — cosmetic duplication only; and fixtures/python_generated_file_excluded pins no human-full.txt, so the full-surface detail for language_adapter_unavailable limitations is not golden-pinned anywhere (pre-existing harness policy).
Not established. The full workspace matrix, precommit, check-pr and dogfood were not re-run; hosted CI owns the merge gate.
Read-only: no checkout, branch or worktree created.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
VERDICT: APPROVE 031322f — no blocking findings on this head.
Repair: the prior verdict-only review carried no admission marker, so the merge-queue eligibility recheck would refuse this entry. This review restores the marker at the same head.
…-8doc7v-limitation-detail # Conflicts: # fixtures/ts_parse_depth_budget/expected/CHANGELOG.md
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY for the exact head
fb4f2f4
This head merges main into the reviewed head 031322f after the queue dropped it on a merge conflict. The only conflict was the golden changelog fixtures/ts_parse_depth_budget/expected/CHANGELOG.md, where main's #14381 entry and this PR's #14398 entry both claimed pending slot 45. The resolution keeps main's entry as 45 and moves this PR's entry to 46. The expected check.json and human.txt files auto-merged. A full local cargo xtask goldens check on this head passed with exit 0 across every fixture, so the combined goldens agree with the combined producer. No production source changed in the merge.
Generated by Claude Code
|
Shard 4 failed on Generated by Claude Code |
EffortlessSteven
left a comment
There was a problem hiding this comment.
VERDICT: APPROVE fb4f2f4 — no blocking findings on this head.
Exact-head review of fb4f2f4, superseding the APPROVE at 031322f. Movement is a merge of main; the combined diff resolves the fixture CHANGELOG.md overlap by keeping both pending blocks, and the PR's own test plain_limitation_detail_drops_codes_and_repeated_paths passed in shard 1. No production line changed by the merge.
Qualification still missing: Ripr Rust Small tests on GitHub Hosted / Rust tests shard 1 of 4 timed out after 40 minutes at 7357/7460 tests with no assertion failure, and Ripr Rust Small Result failed on runner-API eligibility. The head is not fully green; the red is infrastructure, not a failing input.
Requested by Steven · project thread
Governing issue or accepted claim: #14398
Acceptance delta (one sentence): a
ripr checkhuman limitation line now says why the analysis was limited (the producer's bounded detail, for example1 parser error(s): Unexpected token) ahead of its recovery, as JSON, SARIF and the editor already did.Source review: REVIEW_READY fb4f2f4
What changed
output/human.rsprints the limitation'sbounded_detailbefore the recovery. On the default surface,plain_limitation_detailstrips a leading snake_case code (RIPR-SPEC-0122: no schema tokens) and a trailing: <path>that repeats the line'sfile:.human-fullkeeps the codes.RIPR-SPEC-0147: human limitation lines carry the producer's bounded detail (#14398)), each with one CHANGELOG entry.typescript_mock_count_aliasgains its defaulthuman.txtgolden from the bless.Patch prepared by the errors-and-help work; published and owned here.
Proof (on this head, base main 46b6297)
cargo xtask goldens check: pass.cargo xtask precommit: pass.plain_limitation_detail_drops_codes_and_repeated_paths. The extendedtyped_incomplete_outcome_matches_human_and_json_projectionfails without the human.rs change.output::human,output::jsonandanalysis_outcometests (516 passed) and the cli_smoke limitation, outcome and parse filters (31 passed).bounded_nonempty_text).at path:line;word:head.Generated by Claude Code