Skip to content

fix(human): limitation lines say why the analysis was limited (#14398) - #14437

Merged
EffortlessSteven merged 3 commits into
mainfrom
claude/project-thread-8doc7v-limitation-detail
Nov 14, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
claude/project-thread-8doc7v-limitation-detail

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Governing issue or accepted claim: #14398
Acceptance delta (one sentence): a ripr check human limitation line now says why the analysis was limited (the producer's bounded detail, for example 1 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.rs prints the limitation's bounded_detail before the recovery. On the default surface, plain_limitation_detail strips a leading snake_case code (RIPR-SPEC-0122: no schema tokens) and a trailing : <path> that repeats the line's file:. human-full keeps the codes.
  • RIPR-SPEC-0147 names the detail as part of human/JSON parity.
  • 14 fixtures re-blessed (RIPR-SPEC-0147: human limitation lines carry the producer's bounded detail (#14398)), each with one CHANGELOG entry. typescript_mock_count_alias gains its default human.txt golden 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.
  • New unit test plain_limitation_detail_drops_codes_and_repeated_paths. The extended typed_incomplete_outcome_matches_human_and_json_projection fails without the human.rs change.
  • The preparing thread also ran the lib output::human, output::json and analysis_outcome tests (516 passed) and the cli_smoke limitation, outcome and parse filters (31 passed).
  • Independent subagent review of the exact head found no blocking defects:
    • the stripper is UTF-8 safe and panic-free;
    • no raw codes reach the default surface;
    • the detail is length-bounded upstream (bounded_nonempty_text).
  • Minor items left as they are:
    • some details still repeat the file through at path:line;
    • no pinned cases yet for a non-underscore word: head.

Generated by Claude Code

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

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

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 144 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: 2e822816-b205-4d53-b9a5-0e27c3c0e5f3
Commits

Reviewing files that changed from the base of the PR and between 4fbebfd and fb4f2f4.

Files selected for processing: 37

  • changelog.d/human-limitation-detail.md
  • crates/ripr/src/output/human.rs
  • crates/ripr/src/output/json/mod.rs
  • docs/specs/RIPR-SPEC-0147-analysis-outcome-projection.md
  • fixtures/property_macro_lexical_fallback/expected/CHANGELOG.md
  • fixtures/property_macro_lexical_fallback/expected/human-full.txt
  • fixtures/property_macro_lexical_fallback/expected/human.txt
  • fixtures/python_generated_file_excluded/expected/CHANGELOG.md
  • fixtures/python_generated_file_excluded/expected/human.txt
  • fixtures/rust_verification_contract_only_edit/expected/CHANGELOG.md
  • fixtures/rust_verification_contract_only_edit/expected/human.txt
  • fixtures/rust_verification_ghost_only_edit/expected/CHANGELOG.md
  • fixtures/rust_verification_ghost_only_edit/expected/human.txt
  • fixtures/ts_parse_depth_budget/expected/CHANGELOG.md
  • fixtures/ts_parse_depth_budget/expected/human.txt
  • fixtures/ts_table_row_expected_refused/expected/CHANGELOG.md
  • fixtures/ts_table_row_expected_refused/expected/human.txt
  • fixtures/typescript_conditional_assertion_credit/expected/CHANGELOG.md
  • fixtures/typescript_conditional_assertion_credit/expected/human.txt
  • fixtures/typescript_local_registration/expected/CHANGELOG.md
  • fixtures/typescript_local_registration/expected/human-full.txt
  • fixtures/typescript_local_registration/expected/human.txt
  • fixtures/typescript_mock_count_alias/expected/CHANGELOG.md
  • fixtures/typescript_mock_count_alias/expected/human-full.txt
  • fixtures/typescript_mock_count_alias/expected/human.txt
  • fixtures/typescript_namespace_inactive_pick/expected/CHANGELOG.md
  • fixtures/typescript_namespace_inactive_pick/expected/human-full.txt
  • fixtures/typescript_namespace_inactive_pick/expected/human.txt
  • fixtures/typescript_nested_private_method_partial/expected/CHANGELOG.md
  • fixtures/typescript_nested_private_method_partial/expected/human-full.txt
  • fixtures/typescript_nested_private_method_partial/expected/human.txt
  • fixtures/typescript_nonliteral_loop_test/expected/CHANGELOG.md
  • fixtures/typescript_nonliteral_loop_test/expected/human.txt
  • fixtures/typescript_parse_error_unsupported_syntax/expected/CHANGELOG.md
  • fixtures/typescript_parse_error_unsupported_syntax/expected/human.txt
  • fixtures/typescript_platform_guarded_test/expected/CHANGELOG.md
  • fixtures/typescript_platform_guarded_test/expected/human.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 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 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 fixture expected/ 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 harness xtask/src/reports/fixtures.rs.

Behavior audit (observed from source and goldens)

  • The human limitation line now renders bounded_detail between affected items and recovery on both surfaces (crates/ripr/src/output/human.rs:831-839). On the plain surface plain_limitation_detail (human.rs:857-884) drops a leading snake_case code (optionally after static limit ) and a trailing : <path> only when it repeats the line's own file:; 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.txt pairs (python -I script over the worktree) confirms the stripper's real effect: ts_parse_depth_budget raw detail static limit expression_nesting_budget: estimated expression nesting depth 2101 ... renders as estimated expression nesting depth 2101 ...; property_macro_lexical_fallback drops both the code and the trailing : tests/opaque.rs that repeats file:; 1 parser error(s): Unexpected token and backticked-condition details pass through untouched. human-full.txt goldens 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_text trims 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 new human.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.rs contains zero bounded_detail references, so the oracle grips the behavior change.
  • cargo xtask goldens check — pass: report says Status: 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

  1. 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-underscore word: heads unpinned; at path:line repetition); 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.
  2. low — coverage note: 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 (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.

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

  1. The path shown twice on lines like fixtures/python_generated_file_excluded/expected/human.txt:10 is the cause naming the file and then the recovery naming it again. That line has no file: 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 own file:.
  2. The human-full.txt coverage gap is pre-existing harness policy, as the review notes. No change here.

Generated by Claude Code

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

Copy link
Copy Markdown
Member Author

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

@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: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@github-actions

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit 031322ff697e · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=0c829ac4a869df71ba5591ba5e2fefe166613357 findings=16 gaps=0 propagation_unknown=1 static_unknown=10 weakly_exposed=5
stop=ripr cannot tell from reading the code whether tests would notice; the documented route is a co-located test that reaches and observes the changed behavior; static advisory, not runtime proof
limits=propagation_unknown:1,static_unknown:10,weakly_exposed:5
next=ripr explain --root . --base 0c829ac4a869df71ba5591ba5e2fefe166613357 --committed --mode draft --format agent probe:crates_ripr_src_output_human.rs:return_value:7ea15290
verify=refused|outcome=complete_with_findings|findings=16|exposed=0|reason=gaps_remain

Took 50s.

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

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 12, 2026
…-8doc7v-limitation-detail

# Conflicts:
#	fixtures/ts_parse_depth_budget/expected/CHANGELOG.md

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

Copy link
Copy Markdown
Member Author

Shard 4 failed on lsp_lifecycle::deleting_an_unopened_file_outside_the_editor_retracts_its_diagnostics with received response with id 2 while awaiting id 3. That failure is not from this PR. It is the known test race in #14514: the test never reads its fired ripr.refresh response, so on a slow runner that response arrives after the retraction and trips the shutdown correlation. The fix is #14505, which is already in the merge queue. This PR touches only human limitation rendering and goldens, and the test passes locally on this head (11 of 11 runs). I will re-run the failed shard once the run finishes.


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.

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.

Merged via the queue into main with commit eb11ffe Nov 14, 2026
64 of 71 checks passed
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