Skip to content

fix(typescript): prune reference-output trees from the workspace walk - #12285

Merged
EffortlessSteven merged 1 commit into
mainfrom
cursor/ts-walk-prune-reference-output-de84
Nov 2, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
cursor/ts-walk-prune-reference-output-de84

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Advances #11984

Prune TypeScript compiler reference-output trees (baselines/reference,
baselines/local) and Jest __snapshots__ directories from the shared
workspace walk and diff-loop refusal, so a microsoft/TypeScript-scale clone
does not spend the candidate cap or the 5× entry backstop on those trees
before src/ is indexed.

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for
trusted same-repo ripr work. Confirm the change belongs here:

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge,
    dependency, or repo-ops development for ripr-swarm
  • repair or follow-up for a same-repo swarm PR
  • swarm-only CI, runner, routing, source-of-truth, or agent-operating
    surface
  • other swarm-scoped work:

If this PR moves crates.io publishing, VS Marketplace publishing, Open VSX
publishing, GitHub Release assets, signing, release environments, or release
secrets, close or retarget it. Those surfaces belong in EffortlessMetrics/ripr
unless a dedicated release-boundary change has already been approved.

Source-of-truth Links

Proposal: none
Spec: none (issue #11984 item 2)
ADR: none
Plan item: none
Governing issue or accepted claim: #11984
Acceptance delta (one sentence): TypeScript workspace discovery and the TypeScript/JavaScript diff loop prune baselines/reference, baselines/local, and __snapshots__ trees so large compiler clones reach src/ under the existing cap.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): cursor/ts-walk-prune-reference-output-de84
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): none

Name a stack or proposed replacement explicitly. A proposed replacement does
not make its predecessor superseded. Shared files or a shared parent issue
alone do not establish duplication. If the relationship is unknown, record it
as needing reconciliation before disposing of either PR.

Scope

visit_workspace_with_handwritten still walked into compiler tests/baselines/reference
(and local) and Jest __snapshots__ trees. After item 1 (#12031), baseline .js
files still counted as candidate sources and spent RIPR_TS_MAX_WORKSPACE_FILES
before src/ was indexed.

Scope Classification

This PR is scoped by:

  • One production behavior
  • One public contract
  • One architectural seam
  • Docs/spec/test-only evidence package
  • Other:

Production delta:

  • __snapshots__ joins TYPESCRIPT_EXCLUDED_DIRS (name-table prune, shared with the diff loop).
  • Path-shaped pairs baselines/reference and baselines/local are refused by
    is_detectable_excluded_typescript_path and pruned as directories in the walk.
    A bare baselines directory, src/baselines/foo.ts, and src/baselines/reference.ts
    stay ordinary source.
  • Declared [languages.typescript] handwritten_files keep a pruned ancestor reachable;
    siblings under that tree stay skipped.
  • Changed files under those trees are named by the existing generated/excluded-path
    limitation (RIPR-SPEC-0082). No new schema field.
  • The fix(typescript): a truncated workspace walk still reports no_static_path ("no related test was found") for tests it never read #11767 truncated-walk refusal is unchanged.

Evidence/support delta:

  • Discriminating unit tests in discovery.rs and config/typescript.rs.
  • Producer-path integration case in typescript_truncated_discovery.rs.
  • Changelog fragment changelog.d/11984-ts-walk-prune-reference-output.md.

Single acceptance criterion:

  • A workspace with many tests/baselines/reference/*.js files plus src/a.ts and
    src/a.test.ts under a tiny cap indexes src and is not truncated.

Non-goals:

Support-tier Impact

  • none
  • updates docs/status/SUPPORT_TIERS.md
  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Claim/proof notes:

  • Skipped changed files under the new trees reuse the existing generated/excluded-path
    limitation wording. This PR does not add a schema field.

Policy Impact

  • none
  • doc artifacts
  • CI lane
  • package boundary
  • lint / Clippy
  • no-panic
  • file policy
  • generated artifact
  • dependency
  • process/network

Ledger or exception notes:

  • The integration test reuses the existing single Command::new helper so the
    process-policy count for this file stays at 1.

Proof

cargo fmt --all
cargo test -p ripr --lib --features lang-typescript -- analysis::language::typescript::discovery::tests config::typescript::tests -- --test-threads=1
cargo test -p ripr --test typescript_truncated_discovery --features lang-typescript -- --test-threads=1
cargo clippy -p ripr --all-targets -- -D warnings
cargo xtask precommit

Result, failures, or skipped proof:

  • Red before the walk/path-helper change: workspace_walk_prunes_baselines_reference_before_the_source_cap truncated after indexing baseline .js files; __snapshots__ consumed the cap; is_detectable_excluded_typescript_path did not match tests/baselines/reference/case.js.
  • After the repair: 43 discovery+config tests passed, 3 typescript_truncated_discovery tests passed (including the new producer case), cargo clippy -p ripr --all-targets -- -D warnings passed, cargo xtask precommit exit 0.
  • Process finisher (2026-11-02): rebased onto current main; head ee5e88c3c6ee7ec9ddc6f086d99e5c6f112e346c; cargo xtask precommit exit 0 on that SHA.
  • Optional 50k-entry tree was not materialized in CI. The unit fixture uses 80 baseline .js files under cap 5 and asserts the walk visits fewer than 40 entries.

Claim Boundary

What may be claimed after this PR? What must not be claimed yet?

  • May claim: the TypeScript workspace walk and diff loop prune baselines/reference, baselines/local, and __snapshots__ through the shared excluded-path helper.
  • Must not claim: microsoft/TypeScript clone completion, changed-path walk order, or that static discovery is sufficient runtime mutation evidence.
  • Must not claim: RIPR-SPEC-0082, CONFIGURATION.md, or OUTPUT_SCHEMA.md were updated (those records live outside the allowed files).

Rollback

How can this PR be reverted safely?

  • Revert the four-file commit. Discovery returns to walking reference-output trees. No data migration.

Spec-Test-Code Traceability

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

Complete this section when the PR changes workflows, policy gates, branch
protection expectations, CI artifacts, report uploads, release checks, or the
cost/posture of existing lanes. Use n/a for ordinary PRs that do not affect
CI behavior.

  • LEM impact: n/a
  • Workflows touched: n/a
  • Branch protection impact: n/a
  • Failure mode caught: n/a
  • Cheaper signal considered: n/a
  • Required lanes affected: n/a
  • Advisory lanes affected: n/a
  • On-demand/release lanes affected: n/a
  • Labels that alter behavior: n/a
  • Artifact families affected: n/a
  • Rollback path: n/a

If rollback requires branch-protection or workflow-file changes, say so here
and split the PR unless the workflow change itself is the narrow reviewed
surface. If a CI-breaking rollback would need emergency procedures because
normal CI cannot validate the revert, document that explicitly.

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New non-Rust programming files are allowlisted with owner, surface, and reason.
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason.
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented.

Gates

  • cargo fmt --check
  • cargo check --workspace --all-targets
  • cargo test --workspace
  • cargo clippy --workspace --all-targets -- -D warnings (package-scoped: cargo clippy -p ripr --all-targets -- -D warnings)
  • cargo doc --workspace --no-deps
  • cargo package -p ripr --list
  • cargo publish -p ripr --dry-run
  • cargo xtask check-static-language
  • cargo xtask check-doc-artifacts
  • cargo xtask check-support-tiers
  • cargo xtask check-no-panic-family
  • cargo xtask check-allow-attributes
  • cargo xtask check-local-context
  • cargo xtask check-file-policy
  • cargo xtask check-covered-by
  • cargo xtask check-executable-files
  • cargo xtask check-workflows
  • cargo xtask check-spec-format
  • cargo xtask check-spec-numbering
  • cargo xtask check-fixture-contracts
  • cargo xtask check-generated
  • cargo xtask check-badge-diff-policy
  • cargo xtask check-generated-clean
  • cargo xtask check-dependencies
  • cargo xtask check-process-policy
  • cargo xtask check-network-policy

Extension changes:

  • cd editors/vscode && npm ci
  • cd editors/vscode && npm run compile
  • cd editors/vscode && npm run package

Continuation

Owner / governing claim: #11984 item 2
Candidate: branch cursor/ts-walk-prune-reference-output-de84 head ee5e88c3c6ee7ec9ddc6f086d99e5c6f112e346c
Review: Devin detection-alignment thread refuted + resolved; hosted Admit/Small Result pending merge-ready re-toggle on this head (agent token lacks label ACL)
Validation: cargo xtask precommit exit 0 on ee5e88c3c6
Dependency: human or maintainer must remove and re-add merge-ready to qualify rebased head
Next: after green Admit + Ripr Rust Small Result on exact head, post merge-ready @ ee5e88c3c6…; do not merge from this lane.

Open in Web Open in Cursor 

@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 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 64 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: fca37f56-6be2-463a-9a84-1c259a686169
Commits

Reviewing files that changed from the base of the PR and between 9b4eef7 and ee5e88c.

Files selected for processing: 4
  • changelog.d/11984-ts-walk-prune-reference-output.md
  • crates/ripr/src/analysis/language/typescript/discovery.rs
  • crates/ripr/src/config/typescript.rs
  • crates/ripr/tests/typescript_truncated_discovery.rs

No actionable comments were generated in the recent review.

Recent review info
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: 228de14b-719c-4c11-b9f6-4ab6d7f511d7
Commits

Reviewing files that changed from the base of the PR and between 565ae13 and 9b4eef7.

Files selected for processing: 4
  • changelog.d/11984-ts-walk-prune-reference-output.md
  • crates/ripr/src/analysis/language/typescript/discovery.rs
  • crates/ripr/src/config/typescript.rs
  • crates/ripr/tests/typescript_truncated_discovery.rs

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Summary by CodeRabbit

  • Bug Fixes
    • TypeScript workspace discovery now skips files under baselines/reference, baselines/local, and __snapshots__, preventing these directories from affecting discovery limits.
    • A plain baselines directory remains included, and explicitly declared handwritten files remain discoverable even when located beneath an excluded directory.
    • Changed files in excluded directories continue to be reported through the existing generated or excluded-path limitation.

Walkthrough

TypeScript exclusions now cover __snapshots__, baselines/reference, and baselines/local. Workspace discovery prunes matching directories unless a declared handwritten file lies beneath them. Tests cover ordinary baselines paths and capped discovery over baseline-reference files.

Changes

TypeScript workspace pruning

Layer / File(s) Summary
Define TypeScript path exclusions
crates/ripr/src/config/typescript.rs, changelog.d/11984-ts-walk-prune-reference-output.md
The shared path predicate recognizes __snapshots__, baselines/reference, and baselines/local. Bare baselines, reference, and local paths remain eligible. The changelog describes these exclusions and the existing limitation for skipped changed files.
Apply exclusions during workspace discovery
crates/ripr/src/analysis/language/typescript/discovery.rs
The walker checks root-relative paths before descending. A declared handwritten file beneath an excluded path keeps that path reachable. Tests cover the excluded paths, ordinary baselines sources, and candidate limits.
Verify capped discovery results
crates/ripr/tests/typescript_truncated_discovery.rs
The integration fixture supports documentation and baseline-reference workspace shapes. A capped walk over baseline-reference files completes with no_static_path, no static-limit kind, and a complete analysis outcome.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: Minimal · previous review 9b4ee

The change prunes TypeScript output trees; changed files under them retain the existing exclusion limitation. No merge-blocking risk is established.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 75.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: pruning TypeScript reference-output trees from the workspace walk.
Description check Passed The description is comprehensive and follows the required template. It documents scope, source boundary, acceptance criteria, tests, proof results, non-goals, rollback, policy impact, and claim bounda…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description is comprehensive and follows the required template. It documents scope, source boundary, acceptance criteria, tests, proof results, non-goals, rollback, policy impact, and claim boundaries. Some repository-wide gates remain unchecked or pending, but this does not make the description incomplete.

Full details: Docstring Coverage

Explanation

Docstring coverage is 75.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 12 functions across 3 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the paths at dawn,
And skips the trees marked for exclusion.
Bare baselines stay in view,
Handwritten leaves still make it through.
Tests count each hop along the way,
Then twitch their noses: paths behave today.

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

Author COMMENT review of exact head after merging origin/main (REVIEW_INCOMPLETE for hosted checks).

Inspected: is_detectable_excluded_typescript_path (shared walk + diff-loop authority), visit_workspace_with_handwritten directory prune, handwritten ancestor keep, and the new discovery/config/producer tests.

Disposition: no blocking source or oracle defect on this head. Path-shaped baselines/reference and baselines/local plus name-table __snapshots__ are the intended rule; a bare baselines directory stays source. Existing generated/excluded-path limitation names skipped changed files; no schema field added. #11767 truncated-walk producer still trips on the docs tree.

This is not approval. Hosted Ripr Rust Small Result and bot threads remain missing until merge-ready.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Merged origin/main 3f109cb343 (no conflict with this leaf). Exact head is d1f710fd7eefe5d637568ffe5fc54fbef3d5d31a. Focused discovery/config and typescript_truncated_discovery tests still pass. Waiting for review threads, then merge-ready once. Will not merge.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Merged origin/main b01bb3ed5e (windows process_owner cleanup, no conflict with this leaf). Exact head is 20380e00d5. Focused discovery/config and typescript_truncated_discovery tests still pass. Waiting for review threads on this head, then Ready + merge-ready once. Will not merge.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Merged origin/main 8d8b4ff318 (no conflict with this leaf). Exact head is 470f216222. Focused discovery/config and typescript_truncated_discovery tests still pass. Waiting for review threads on this head, then Ready + merge-ready once. Will not merge.

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

Reporter summary

No independently validated blocking defect was found, but approval is unsupported: the only scheduled cargo-test receipt timed out after 900 seconds, ripr failed with exit code 2, and the author-reported passing tests are not independently linked to the exact current HEAD. The main unresolved product risk is that the shared path predicate excludes any consecutive baselines/reference or baselines/local components, plus any __snapshots__, so it may hide legitimate source or changed files in unrelated layouts; symlink traversal semantics are also unverified. Evidence therefore supports retaining the prior no-blocking-defect observation only as lower-confidence, with trust-affecting validation and path-policy gaps remaining.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Reply to ub-review on 470f216222 (review 5730922371). No inline review threads exist (reviewThreads.totalCount is 0).

Path predicate: this is the #11984 item 2 rule. Consecutive baselines/reference and baselines/local plus name-table __snapshots__ are the intended prune, shared with the diff-loop helper. A bare baselines directory, src/baselines/foo.ts, and src/baselines/reference.ts stay ordinary source; declared handwritten files under a pruned ancestor stay reachable. Those cases are covered by tests on this SHA. Changed files under a pruned tree keep the existing generated/excluded-path limitation. Narrowing to tests/baselines/** only would miss the same pair in other layouts; expanding the schema is out of FILES.

The scheduled cargo-test 900s timeout and ripr exit 2 are ub-review instrument state, not a failing discriminator for this leaf. On this SHA after merging 8d8b4ff318: 43 discovery/config tests and 3 typescript_truncated_discovery tests passed.

Symlink following is unchanged: discovery still counts skipped links without following them. The path-shaped prune runs on directory relative paths after file_type.is_dir().

Waiting for the in-progress ub-review job to go terminal, then Ready + merge-ready once. Will not merge.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Merged origin/main through 565ae139c5 (no conflict with this leaf). Exact head is 9b4eef7aa7. Waiting for review threads on this head, then Ready + merge-ready once. Will not merge.

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

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the candidate cap test does not prove that pruning occurs before the source cap, because the fixture has only 80 baseline files while the cap is 5 and traversal order is unspecified.
  • Confirm the integration fixture proves a completed walk for the baseline shape, but its expected source set is not asserted.
  • Confirm the shared route excludes baselines/reference, baselines/local, and __snapshots__ before candidate counting, while preserving ordinary baselines paths.

Parked follow-ups

  • The tests do not directly prove the changelog claim that both reference and local trees are pruned at production scale; scale remains inferred from unit and one reference-only producer fixture.

Evidence gaps

  • Exact-head execution proof is unavailable in the cached evidence.
  • Model proof intent was rejected by deterministic validation.
  • The unit and producer tests discriminate the intended old/new behavior, but their actual red/green execution is supported only by author comments.
  • Focused unit and producer-path tests exercise the changed exclusion behavior, but the scheduled cargo-test receipt is absent and ripr exited 2.
  • The late cargo-test receipt remains absent and the ripr sensor failed, so the PR's focused passing-test claims are not independently established by this review packet.
  • Current-HEAD executable test evidence is not independently available in the review packet.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Reply to ub-review on 9b4eef7aa7 (review 5731011509). No inline review threads (reviewThreads.totalCount is 0). CodeRabbit posted no actionable comments.

Verification:

  1. Cap test. workspace_walk_prunes_baselines_reference_before_the_source_cap writes 40 tests/baselines/reference/*.js plus 40 tests/baselines/local/*.js under cap 5, then asserts !truncated, scan.files == [src/a.test.ts, src/a.ts], and LAST_WALK_TOTAL_ENTRIES < 40. Sorted DFS visiting src/ first still leaves 3 candidate slots. Without the prune those 80 .js files fill the cap and truncate. The files vector plus the entry bound prove the children were not walked. Order does not make the old behavior pass.
  2. Integration fixture. a_finished_walk_prunes_baselines_reference_instead_of_truncating is the producer-path completion oracle (no_static_path, no static_limit_kind, analysis_complete: true) under cap 3 with 20 baseline .js files. The indexed source set is asserted in the unit test above, not in this CLI case. The fix(typescript): a truncated workspace walk still reports no_static_path ("no related test was found") for tests it never read #11767 docs-tree producer still truncates.
  3. Shared route. is_detectable_excluded_typescript_path refuses consecutive baselines/reference and baselines/local plus name-table __snapshots__ for both the walk and the diff loop. Bare baselines, src/baselines/foo.ts, and src/baselines/reference.ts stay source.

Parked scale: the optional 50k-entry tree was not materialized. The unit fixture uses 80 baseline files and the entry bound.

ub-review cargo-test timeout / ripr exit 2 remain instrument state. Focused tests for this leaf passed locally on the merged heads; Ripr Rust Small Result after merge-ready is the hosted exact-head proof.

Waiting for the in-progress ub-review job to go terminal, then Ready + merge-ready once. Will not merge.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Merged origin/main cc88b5b95a (kani edit-cage / dogfood CI summary, no conflict with this leaf). Exact head is c05bd7e692. Waiting for review threads on this head, then Ready + merge-ready once. Will not merge.

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

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm the producer integration test proves completion for the reference-tree shape but does not directly prove that the intended source files were indexed.

Parked follow-ups

  • The path rule intentionally hides any legitimate source nested under a consecutive baselines/reference or baselines/local pair, regardless of whether it is generated output.

Evidence gaps

  • Exact-head executable evidence is not available in the cached review packet, although the author reports focused tests passing.
  • Model proof intent was rejected by deterministic validation.
  • Independent execution proof for the current HEAD is unavailable.
  • Exact-head executable cargo-test evidence is unavailable because the scheduled receipt is absent and the ripr sensor failed.
  • The changelog and tests align with the intended behavior, but exact-head independent cargo-test evidence is absent from the cached receipts.
  • The cap test discriminates old from new behavior rather than merely relying on traversal order: 80 baseline candidates exceed cap 5, and the asserted file set plus entry bound require pruning.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Reply to ub-review on c05bd7e692 (review 5731114243). No inline review threads (reviewThreads.totalCount is 0).

Producer integration: a_finished_walk_prunes_baselines_reference_instead_of_truncating is the CLI completion oracle (no_static_path, no static_limit_kind, analysis_complete: true). The indexed source set is asserted by workspace_walk_prunes_baselines_reference_before_the_source_cap (scan.files == [src/a.test.ts, src/a.ts] plus LAST_WALK_TOTAL_ENTRIES < 40). This review already records that the cap test discriminates old from new behavior rather than relying on walk order.

Parked path rule: hiding nested source under a consecutive baselines/reference or baselines/local pair is the #11984 item 2 contract. Declared handwritten files under that tree stay reachable; a bare baselines path stays source.

Waiting for the in-progress ub-review job to go terminal, then Ready + merge-ready once. Will not merge.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 2, 2026 01:09
@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

Copy link
Copy Markdown
Member Author

merge-ready @ cfb4e9b

@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

Comment thread crates/ripr/src/config/typescript.rs Resolved

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

Parked follow-ups

  • The producer integration case establishes completed analysis for the reference-tree shape, but the unit test—not the producer case—asserts the indexed source set.
  • The changed rule excludes any source nested beneath consecutive baselines/reference or baselines/local components, not only compiler-generated output.
  • TypeScript source-presence detection still uses only the name table, so a tree containing only baselines/reference TypeScript can activate the adapter and then produce an empty scan.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Exact-head executable validation is unavailable in the cached review packet.
  • The focused unit and producer tests discriminate the intended prune, but exact-HEAD executable evidence is unavailable because cargo-test has no receipt and ripr exited 2.
  • Exact-head executable validation is not independently available: cargo-test is receipt-absent and ripr failed with exit code 2.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Ripr Rust Small Result failed on cfb4e9b055cda6bfb75a41ac0c96ce45cc377c2c (run 41370958403). Cause is not this leaf.

Shard 1 and the rust-only feature lane both fail cli_progress::catalog_commands_with_narration_paths_stay_quiet_under_ripr_quiet with unclassified catalog command \reports kani``. Rust gates and shards 2–4 passed. Admission succeeded.

That catalog row is crates/ripr/tests/cli_progress.rs, outside this leaf's allowed files (config/typescript.rs, discovery.rs, typescript_truncated_discovery.rs). It is a combined-tree miss from merging reports kani (#11387) with the RIPR_QUIET catalog guard (#12288) before #12325 classified the command. origin/main deab1faddc (#12325) now lists reports kani under NO_NARRATION.

merge-ready was already applied once on this head. Will not re-add it, will not edit cli_progress.rs, and will not merge.

TypeScript workspace discovery and the diff loop now skip
baselines/reference, baselines/local, and __snapshots__ through the
shared excluded-path helper, so a large compiler clone does not spend
the candidate cap on reference output before src/ is indexed.

A bare baselines directory stays ordinary source. Declared handwritten
files under a pruned tree stay reachable. The #11767 truncated-walk
refusal is unchanged.

Advances #11984.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/ts-walk-prune-reference-output-de84 branch from cfb4e9b to ee5e88c Compare November 2, 2026 05:21
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Process finisher (blocked on label ACL)

Rebased onto current main; head ee5e88c3c6ee7ec9ddc6f086d99e5c6f112e346c. Local cargo xtask precommit exit 0 on that SHA.

This agent token cannot remove/add labels (403 removeLabelsFromLabelable). Push/synchronize does not re-run Admit PR Candidate / Ripr Rust Small Result while merge-ready stays applied (#4986).

Needed: remove merge-ready, then re-add it on this head so qualification runs on the rebased tree (prior red was shard 1 on stale base).

Review: sole inline thread (Devin detection-alignment) already refuted + resolved; out of scope for #11984 item 2.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

merge-ready @ ee5e88c

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

Parked follow-ups

  • The path rule intentionally excludes any consecutive baselines/reference or baselines/local components, including unrelated layouts; this is a documented policy risk rather than an implementation mismatch.
  • No-config TypeScript detection can still activate from a TypeScript file located solely beneath baselines/reference, although the workspace scan then contains no admissible TypeScript files; this is outside the changed walk/diff contract.
  • The path-pair rule intentionally excludes any consecutive baselines/reference or baselines/local components, including unrelated layouts, while preserving bare baselines directories and explicit reference.ts/local.ts files.
  • The path-shaped exclusion is intentionally broader than compiler-generated output and can hide legitimate nested source under any consecutive baselines/reference or baselines/local pair.
  • The new producer case proves completion for the baseline shape, while source membership is asserted separately by the unit test.

Evidence gaps

  • Independent exact-head executable validation remains unavailable.
  • Model proof intent was rejected by deterministic validation.
  • The changed unit and producer fixtures exercise the intended discrimination, but the cached packet lacks independent exact-head cargo-test execution.

@EffortlessSteven
EffortlessSteven merged commit 005e776 into main Nov 2, 2026
84 of 95 checks passed
@EffortlessSteven
EffortlessSteven deleted the cursor/ts-walk-prune-reference-output-de84 branch November 2, 2026 06:36
cursor Bot pushed a commit that referenced this pull request Nov 2, 2026
…#12285)

Exact-head review (opencode, head ee5e88c): REVIEW_READY. Result+gates SUCCESS on exact head; mergeable CLEAN; 1/1 threads resolved. Walk/diff-loop prune parity via shared helper (baselines/reference+local path-shaped prune, #11984 item 2), #7386 hand-written escape preserved, regression test pins cap premise. Scope matches title.
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