Skip to content

fix(typescript): withhold no-static-path when the workspace walk hit its entry cap - #11794

Merged
EffortlessSteven merged 7 commits into
mainfrom
claude/ts-truncated-discovery-withhold
Oct 31, 2026
Merged

EffortlessSteven merged 7 commits into
mainfrom
claude/ts-truncated-discovery-withhold

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #11767

Acceptance delta (one sentence): When the TypeScript workspace walk stops at its entry cap, a finding that would have said no_static_path becomes static_unknown with the new typescript_workspace_discovery_truncated limit, naming the cap, RIPR_TS_MAX_WORKSPACE_FILES and the next step.

What changed

  • New StaticLimitKind::TypescriptWorkspaceDiscoveryTruncated (wire string typescript_workspace_discovery_truncated) with describe text and next step.
  • withhold_truncated_discovery_gap in classify/gap_admission.rs rewrites only no_static_path findings with no existing limit kind.
  • When the walk is truncated, accepted changed TS files are added to the partial file set, so a cut walk can no longer leave a change with no owner and zero findings (the silent-zero cause).
  • The cap limitation detail now says discovered files are a partial set.
  • Docs, output contract, spec RIPR-SPEC-0240, traceability, changelog fragment and process allowlist updated.

Proof

Not in this PR

Walk order/budgeting (count only candidate source entries, prune reference-output trees) and the same withholding for read-budget exhaustion; to be filed as follow-ups.


Generated by Claude Code

… truncated (#11767)

A walk cut short at RIPR_TS_MAX_WORKSPACE_FILES cannot back 'no related test
was found'. Such findings are static_unknown under the new
typescript_workspace_discovery_truncated limit, and a changed source file is
always analyzed even when the walk stopped before it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f51xjzAhck2zj1mK7Bw3q
@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 Oct 31, 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 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 149 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: a372f2ca-4c61-4d9c-8343-439f21125e71
Commits

Reviewing files that changed from the base of the PR and between 264db59 and 94c95ac.

Files selected for processing: 15
  • .ripr/traceability.d/11767-ts-truncated-discovery.toml
  • changelog.d/11767-ts-truncated-discovery-withholds-no-path.md
  • crates/ripr/src/analysis/classify/gap_admission.rs
  • crates/ripr/src/analysis/classify/mod.rs
  • crates/ripr/src/analysis/language/typescript/mod.rs
  • crates/ripr/src/domain/language.rs
  • crates/ripr/src/domain/limit_guidance.rs
  • crates/ripr/src/lsp/gap_artifacts.rs
  • crates/ripr/tests/typescript_truncated_discovery.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/STATIC_LIMITS.md
  • docs/specs/RIPR-SPEC-0240-unknown-not-a-gap.md
  • policy/output_contracts.txt
  • policy/process_allowlist.d/11767-ts-truncated-discovery.txt
  • xtask/src/python_judged_panel.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 31, 2026 17:46
@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!

…on verb (#11767)

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

Copy link
Copy Markdown
Member Author

Review of record, head 94c95acbd7c8b387b2c1d3712565a3ecfc8d85a6 (author self-review, COMMENT disposition)

Angles inspected: classification semantics, fail-closed behavior, discovery-set construction, wire/schema parity, tests and oracle grip, docs/spec/traceability, hosted proof.

  • Semantics: withhold_truncated_discovery_gap only rewrites no_static_path findings with no existing limit kind, so findings with a related test and findings another limit already withheld are untouched. Reuses withhold_gap, the single owner of the withheld-finding shape.
  • Silent-zero cause: a cut walk could miss the changed file itself, leaving no owner and no finding. Accepted, non-excluded changed TS paths now join the partial set when truncated; the exclusion rules match the normal path.
  • Wire parity: the new variant's snake-cased wire string is checked by check-output-contracts. Variant table, ordinals, limit_guidance next step, LSP known list, xtask known list, OUTPUT_SCHEMA and STATIC_LIMITS are all updated.
  • Tests: a CLI test with a finished walk still reports no_static_path (negative control); a walk capped at 3 reports static_unknown, the new limit kind, the env var and cap in the text, and analysis_complete == false.
  • Finding fixed on this head: the first hosted run failed every_static_limit_names_an_actionable_next_step (next step began with "Raise"). Reworded to start with "Run"; full ripr --lib suite passes locally.
  • Hosted proof on this exact head: Ripr Rust Small Result success, all four test shards and gates green.
  • Open threads: none. Gemini and CodeRabbit posted quota/rate-limit notices only; that is missing provider review, not a clean review.

Not covered (follow-ups): walk ordering and budgeting, and the same withholding for read-budget exhaustion. No blocking findings.


Generated by Claude Code

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