Skip to content

perf(typescript): linearize ESM owner binding scans (#10017) - #10023

Merged
EffortlessSteven merged 3 commits into
mainfrom
fix/ts-owners-quadratic
Oct 24, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
fix/ts-owners-quadratic

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Current delivery state — 24 Oct 2026

Implementation landed: final head 6d4ca192f592ea0bb0c793beb85d56b6cdf905f9 merged as 1391e9f1e0b133a3d93a6e484f9c9141c71ef927. The earlier Draft/prerequisite/qualification instructions preserved below are historical and do not request another run or merge.

The later duplicate-field compilation hold is resolved by #10036, landed as 3779c151cca523644ffdb63395c39ddd7722cef1. Its exact-landing main run40055339326/producer120758530127/Result120765438665 succeeded on actual3779c151:20,370 distinct tests passed/five skipped, doctests2passed/1ignored. That subject includes this owner-scan landing and preserves owners.rs blob 8a8a3dfdcaf05171f19eca1f8809daf4c5dd8c16. Verified source/native main-health closeout. No current shared compilation repair or known-red retry is owed by this PR.

Keep the separate historical acceptance limit truthful: receipt6379057784 found no routed-required result or final exact-6d REVIEW_READY. Exact-main execution does not retroactively create either missing pre-merge record. Existing semantic parity/negative/growth proof stays bound to its original subjects; #10017/#10021 broader performance work remains separately owned. No CI, source or protection change is requested by this status correction.


Historical proposal and continuation (original evidence preserved)

Summary

Replace repeated binding-name searches in the TypeScript owner passes with per-pass sets and CommonJS name counts. Retained owners and first reassignment order stay in the original vectors. This is the untouched-file owner-scan slice of #10017.

Swarm / Source Boundary

  • ordinary analyzer development in EffortlessMetrics/ripr-swarm

Source-of-truth Links

Proposal: none; bounded performance repair identified in #10017
Spec: existing RIPR-SPEC-0027 and RIPR-SPEC-0243 owner/export behavior, including #7507/#7812 controls
ADR: existing ADR-0008 TypeScript parser substrate; no new decision
Plan item: #10017 untouched-file owner scan; changed-line residual remains #10021
Governing issue or accepted claim: #10017, limited to repeated owner-binding membership/cardinality scans
Acceptance delta (one sentence): Preserve existing owner and finding semantics while removing the repeated linear name searches in these passes, with actual old/new growth controls that distinguish the repair.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): fix/ts-owners-quadratic, 546c894
Stack parent or prerequisite PR (if any): #10019 landed at 37dc4ae and is included by canonical head546c (main02859070 integration). Existing #10027 owns the remaining inherited MCP Unix-root test-oracle blocker; its current qualification40040306643 is retained. Original candidate source proof remains bound to ad1e/cb23.
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; #9980 is already completed and is not reopened

Scope

One file: crates/ripr/src/analysis/language/typescript/owners.rs (29 insertions, 28 deletions). Declared names, reassigned-name deduplication and named exports use sets for membership; CommonJS names use a count map. Snapshot offsets, first-write order, class-method exemption, bare-default conflict rules and retained owner order are unchanged. Sets/maps are not iterated to emit owners.

Support-tier and policy impact: none. TypeScript remains Preview. No dependency, workflow, validator, public output or configuration changes. No changelog fragment: this internal collection refactor preserves behavior/API/output/workflow under docs/CHANGELOG_POLICY.md's internal-refactor exemption.

Proof

Exact head tree: 2d1f1f7df29a846f0a91fd1a283842883734757b; exact base: ad1e3bb713bbbcf2bc4119d12dc176d9b4acf3cb. Independent native Linux review used Rust/Cargo 1.95.0, actual default-feature CLI builds with unoptimized dev profile, debuginfo 0 and incremental disabled:

cargo build --locked -p ripr --bin ripr --message-format=json-render-diagnostics
ripr check --root FIXTURE --diff FIXTURE/stimulus.patch --format json --quiet
ripr check --root GROWTH_FIXTURE --base HEAD~1 --format json --quiet
  • Actual frozen base CLI SHA256 3cadef517f055342e477625b068d37599b8ea169ee42793d9715498c487dcb44 and head CLI SHA256 3d91a7bc5a7b903981640b9d6ab89dc0dda2939307b477e85b5f7188a550f27c each report their full expected commit, clean. Both compiler-selected builds exit 0.
  • All 27 actual product cases produce byte-identical complete JSON, including 23 findings across 19 nonempty cases, IDs, classifications, relations and limitations. Controls cover snapshot before/after write, live default/named aliases, class methods sharing a reassigned top-level name, composed/decomposed/escaped Unicode, CommonJS duplicates and conflicting bare defaults. Positive findings and expected dead-owner empty results are asserted. Application caches are removed between executables.
  • A separate reviewer compiled the exact extracted old/new functions with the same OXC 0.130.0 dependency objects. 28 curated plus 20,000 seeded accepted AST programs and 271,453 direct CommonJS filter vectors pass. A deliberately wrong count-to-membership variant compiles and fails the duplicate-owner oracle (native 101). The filter harness projects the owner fields these functions access; the full producer/consumer proof is the actual CLI corpus above.
  • Quiet helper growth uses actual old/new code, not a self-counted byte estimate: 2,048/4,096/8,192 declared bindings give old medians 0.003799/0.020889/0.097146 s and new 0.000289/0.000558/0.001112 s. Five lanes also cover reassignments, named exports and unique/duplicate CommonJS names. The initial compilation-overlapped timing run is retained but excluded from qualification.

Bounded actual-product growth medians (seconds; two cold application-cache runs per executable, order reversed on the second pass; one small changed file plus an untouched generated module):

Generated binding/function pairs Actual base CLI Actual head CLI
4096 0.555 0.396
8192 1.440 0.776
16384 4.194 1.546
32768 14.514 3.643
padding 1.057 0.781

padding holds approximately the largest source byte count but only one function. Each product run completes natively with the same full JSON as its counterpart. These are observations for this shape/profile/host, not a release-profile, cross-platform, universal linearity or general speed/cost claim. Review scripts, exact inputs, immutable executable bytes, raw JSON and native receipts are retained under /workspace/10023-evidence/.

Author-reported Windows/debug evidence is separate: 1,526 TypeScript library tests; 3 MB untouched 10.5→3.7 s with 1.4 s small-file baseline; 6.8 MB 5.6 s; formatting, focused Clippy and named policy checks. Those reported results are not relabeled as independent native qualification.

Required Qualification / Continuation

Canonical author has integrated main: current head 546c89420b74492ff0160cbd35e44681c5091838, parents cb23 + main 02859070f8bee17b5c1f8a8181982b8cab14681f. Actual GitHub merge subject 8e0355d2c330dda749d4e3bb64a2ea27e4a6d4f4, parents02859070 +546c. API/Git reads agree, and head/remote-merge/local-review composition 7e9c0c64845f7398a9792263dfd09e30e61b90eb have literally identical whole tree 48bd6380542d0f4d15c8c546af30b6f880b67b41. This clears the prior stale946e subject blocker; no independent-review lane source write was used. Main-to-head still changes only owners.rs; complete TypeScript equals reviewed cb23.

#10019 landed at37dc and is included. #8989 subsequently landed at02859070; it changes agent-stub behavior/metadata, with complete TypeScript/xtask/Cargo/dependencies and applicable instructions unchanged. Actual traceability consumer passes native0 on the local tree identical to546c/8e using the explicitly retained ad1e-built checker SHA256 eef8ac94b33ee67f3f63e71ee0c515adf1b61f803f35b23efb64d87a62a931d9 and unchanged complete checker source. Source/consumer/Unicode/multiplicity/order and bounded growth proof remains applicable; no new combined executable/matrix is claimed. New receipts: /workspace/10023-evidence/integration-resume/main-02859070/. Prior37dc-only composition542a and old failed 40030751056 remain historical exact-subject evidence.

Current known prerequisite: #10027, canonical headaa169ee2fd7d9e81d4909770751cf60ff15dd44d, owns the inherited MCP Unix-root test-oracle correction. The three selected-action tests fail at shell_arg(display_path(root)) on literal-backslash/apostrophe roots although the CLI preserves the native root. Existing owner native base-red/correction-green handoff6377047048 supplies actual default-feature base37dc reproduction3pass/3fail; its separately identified unpublished common-correction21pass proof is not relabeled exactAA qualification. Current main028 and this546c have the identical affected MCP subtree. Our independently inspected actual10024 advisory job120699186703 confirms all three failures on the same MCP source. No new test build or competing repair is needed here.

#10019's successful required40031378835 executed older actual checkoutd096c8caa (b695/ad1e), with the old literal-root test names, before the MCP changes on main; it does not qualify current inherited MCP source. This distinction prevents treating a sibling green aggregate as composed-main proof.

Keep this PR Draft while that applicable known-red prerequisite remains. #10027 already has its one required40040306643, producer120709769793, active; preserve its canonical writer/closer and do not duplicate or interrupt the run. The event that permits resumption is its verified landing/main basis, followed by an affected exact-head and actual merge-subject check. Current546c has no required qualification request from this lane; existing wheel/provider advisory jobs and retained merge-ready label are not new admission.

After #10027 lands, verify the resulting actual remote subject includes that material repair, refresh only affected composed proof/review, then Ready and remove/re-add merge-ready exactly once for the new justified subject. Inspect actual executed checkout/parents/tree and complete required results; final REVIEW_READY/current required proof precedes normal protected expected-head squash and main ancestry verification, checking another closer first. No bypass, baseline-failure waiver or known-red request.

Separate #10024 is Draft/REPAIR_REQUIRED at successor5c2135fec8faf9c069b61eb03f5c961c5726fd99: the actual normalized-path owner-priority regression persists through the new memoization commit (current exact-head review5635627070). Its existing owner retains repair custody; #10028's new all_tests residual remains separate/reported. It is not in this candidate or main.

Claim Boundary

#10021 remains separate: reported 10,000 changed lines 141.9 s versus one 7.3 s and whole rewrite timeout at 240 s; its exact quadratic site remains a hypothesis. #10017's reported full-LSP projection around 110 s and byte-budget/cache/disclosure decisions remain open. This PR does not close #10017. No native full-LSP, release-profile timing or entire TypeScript test-matrix execution is claimed by this review.

Rollback

Revert the single-file squash; the old searches return. No workflow, settings, release or deployment change is needed.

Spec-Test-Code Traceability

CI Economics

n/a: no CI implementation change. Preserve the existing main repair owner and active qualification; no duplicate build or gate request. Required current-subject proof remains mandatory.

Ref #10017; residual #10021.

…wner passes (#10017)

dead_reassigned_esm_bindings grew a Vec<String> of declared bindings and
scanned it with .iter().any() for every top-level binding, making the
always-on workspace scan O(distinct bindings^2) per file. On a generated
3 MB module (60k unique function names) that pushed an untouched-file
refresh from the 1.4 s baseline to 10.5 s; 5 MB cost ~24.9 s.

Use HashSet for declared bindings, reassigned-name membership, and named
exports; keep the reassigned Vec in statement order where consumers
observe it. Count CommonJS export names in one pass instead of an
owners x names scan. Behavior is unchanged (all 1526 typescript module
tests pass, including the #7507/#7812 snapshot and shadow controls).

Measured after (debug build, same machine, 1.4 s baseline):
- 3 MB untouched single file: 10.5 s -> 3.7 s
- 6.8 MB untouched single file: 5.6 s (linear, was ~quadratic)

The changed-line path has a separate per-changed-line x file-size cost,
filed as #10021.
@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 23, 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 26 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 141 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: 51a7b1a0-a542-4698-90b5-5c4fdda48ebe
Commits

Reviewing files that changed from the base of the PR and between 546c894 and 6d4ca19.

Files selected for processing: 1
  • crates/ripr/src/analysis/language/typescript/owners.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: 7c5b65b2-880b-4b6f-9147-29b2135885b9
📥 Commits

Reviewing files that changed from the base of the PR and between 0285907 and 546c894.

📒 Files selected for processing: 1
  • crates/ripr/src/analysis/language/typescript/owners.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

  • Improvements
    • TypeScript export and reassignment analysis now processes checks more efficiently. Results remain consistent for duplicate export names, multiple default exports, and reassignment detection across supported code patterns. This update does not change user-facing behavior or existing project ownership results.

Walkthrough

CommonJS export-name counts and ESM binding membership checks now use hash-based collections instead of repeated linear scans. Existing duplicate-name filtering, class-owner handling, and first-reassignment behavior remain.

Changes

TypeScript owner scans

Layer / File(s) Summary
CommonJS export-name counts
crates/ripr/src/analysis/language/typescript/owners.rs
The CommonJS owner filter uses a precomputed name-count map to identify duplicate names.
ESM binding membership
crates/ripr/src/analysis/language/typescript/owners.rs
ESM declaration, reassignment, and named-export tracking use hash sets. The filter retains class owners and records only the first reassignment per name.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Refactor · Severity of issue fixed: Medium

Merge Risk: Minimal · up to 546c8

No actionable merge-blocking risk is established for this optimization.

Pre-merge checks: Passed 3 · Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Linked issue #10017 is open and states no decided acceptance criteria. It lists candidate directions only: byte budget with disclosure, diff-first scanning or content-hash caching, and LSP line-index … Missing evidence: a measurement at the reviewed head of the issue's untouched-large-file repro (about 5 MB of top-level const/export function statements in an untouched file, with a small changed file), comparing the base and head CLI with …
Description check Inconclusive The description follows the repository template's main sections (Summary, Swarm / Source Boundary, Source-of-truth Links, Candidate Relationships, Scope, Proof, Claim Boundary, Rollback, Traceability,… Complete the template sections that are missing or only partly filled out: (1) tick the Scope Classification, Support-tier Impact, and Policy Impact checkboxes and fill in the Production delta, Evidence/support delta, Single acceptance crit…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly identifies the TypeScript owner-scan performance change and matches the main purpose of the pull request.
Out of Scope Changes check Passed The reviewed whole-PR diff against the merge base changes one file: crates/ripr/src/analysis/language/typescript/owners.rs. Every hunk replaces linear name searches with HashSet or HashMap lookups in …
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 1 files.
Full details: Out of Scope Changes check

Explanation

The reviewed whole-PR diff against the merge base changes one file: crates/ripr/src/analysis/language/typescript/owners.rs. Every hunk replaces linear name searches with HashSet or HashMap lookups in the TypeScript owner passes. Each hunk supports the stated performance intent for #10017. No public output, dependency, workflow, configuration, or documentation change appears in the reviewed diff. The added comments reference #10017 and the same intent. Set and map iteration does not emit owners, so output order is not affected by the change. No unrelated change was found in the inspected diff.

Full details: Linked Issues check

Explanation

Linked issue #10017 is open and states no decided acceptance criteria. It lists candidate directions only: byte budget with disclosure, diff-first scanning or content-hash caching, and LSP line-index audit. This PR changes only TypeScript owner passes in owners.rs. The diff confirms the following. The declared-name, reassigned-name, and named-export checks use HashSet membership. CommonJS name multiplicity uses one HashMap count pass. The first-reassignment order is kept in the Vec. The per-owner count check keeps the original '== 1' semantics. The change is relevant to the untouched-file cost described in #10017, because the issue's repro shape (many top-level const/function bindings) exercises these passes. The PR states it does not close #10017. Full-LSP projection cost, the single-line line-index path, byte budgets, and caching remain unaddressed. The issue's own 5 MB repro is not measured at the reviewed head. The author-reported 3 MB and 6.8 MB Windows/debug timings are not independently verified. The reported native growth measurements use generated binding/function shapes, not the issue fixture. Committed tests for the new linear behavior are absent; the cited evidence is external harness output. The reviewed head (546c894) also differs from the SHAs in the PR description (cb23ba4). The diff content matches the described scope. I could not compile or run tests. The file body beyond the diff hunks was not read.

Resolution

Missing evidence: a measurement at the reviewed head of the issue's untouched-large-file repro (about 5 MB of top-level const/export function statements in an untouched file, with a small changed file), comparing the base and head CLI with the same command and profile. Also needed: confirmation that the reviewed head builds and passes the existing TypeScript owner tests, and the reviewer's confirmation that the head SHA in the PR description matches the reviewed head.

Full details: Description check

Explanation

The description follows the repository template's main sections (Summary, Swarm / Source Boundary, Source-of-truth Links, Candidate Relationships, Scope, Proof, Claim Boundary, Rollback, Traceability, CI Economics) and is substantive. It identifies the single file changed, the behavior-preserving intent, and the proof performed. However, it departs from the template in several places: it does not list the Scope Classification checkboxes (One production behavior, etc.) or the Support-tier Impact and Policy Impact checkboxes, and it does not mark the Static Language Check or Engineering Check items. The Proof section gives commands and results but does not list the Gates checklist (cargo fmt, clippy, test, and the xtask checks), so the template's gate status is not recorded. The Candidate Relationships section is dense and states a stale/current-head status that changes over time, which makes it hard to verify. The description is long and contains many internal identifiers that a reviewer cannot easily check. Overall the required information is present, but several template sections are missing or only partly filled out.

Resolution

Complete the template sections that are missing or only partly filled out: (1) tick the Scope Classification, Support-tier Impact, and Policy Impact checkboxes and fill in the Production delta, Evidence/support delta, Single acceptance criterion, and Non-goals fields; (2) record the status of the Gates checklist (cargo fmt, check, test, clippy, doc, package, and the relevant cargo xtask checks), or state which were not run and why; (3) complete the Engineering Check, Static Language Check, and Extension changes items, or mark them n/a; (4) fill the Source-of-truth Links fields that are blank (Proposal is 'none', so confirm Spec, ADR, and Plan item are accurate); (5) state the Candidate Relationships in one short, current sentence and drop the historical run and receipt details that belong in a PR comment; (6) confirm the Rollback and CI Economics answers against the template wording.

✨ 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 each name in flight,
Hash sets keep the lookup light.
CommonJS counts are gathered once,
ESM scans skip repeated hunts.
First reassignment stays in view,
And class owners pass through too.

Comment @coderabbitai help to get the list of available commands.

EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member Author

Owner / governing claim: existing fix/ts-owners-quadratic canonical author; #10017 untouched-file binding-scan slice. This lane owns independent review/delivery, not branch source mutation.
Candidate: #10023, adopted head546c89420b74492ff0160cbd35e44681c5091838, base02859070f8bee17b5c1f8a8181982b8cab14681f; actual GitHub merge8e0355d2c330dda749d4e3bb64a2ea27e4a6d4f4, tree48bd6380542d0f4d15c8c546af30b6f880b67b41.
Review: separate exact-source review verifies whole head/remote-merge/local7e9c trees identical, completeTS equals reviewedcb23; main→head onlyowners.rs. Prior parity/Unicode/multiplicity/order/discriminating-growth proof retained. New actual traceability consumer native0 using explicit retainedad1e checker/unchangedxtask. Current exact-head review linked in Conversation; overall REVIEW_INCOMPLETE.
Dependency: #10019 is landed37dc/included; old stale946e merge-ref blocker resolved by canonical author integration. Existing #10027 aa169ee owns the remaining inherited MCP Unix-root test-oracle failure, with exact base-red/correction-green identity limits and independent review linked there. Current active required40040306643/job120709769793 retains its canonical owner/closer; no duplicate repair/build/CI.
Blocker: currentMCPsource still equals failing37dc. #10019green ran olderd096c8caa=b695/ad1e and oldroot-testnames, so it is not composed-mainMCP qualification. KeepDraft; no new546c required request. Existing wheel/provider jobs/retainedmerge-ready label are not qualification admission.
Next: after #10027 verified landing, refresh current10023head/discussion/reviews/threads and actual merge subject/parents/tree for inclusion; refresh only affected source/proof, Ready and one normal remove/re-addmerge-ready request. Complete required actual-checkout proof and finalREVIEW_READY precede protected expected-head squash/main verification; check another closer first.
Residuals: #10024 is Draft/REPAIR_REQUIRED at current68aaddeae6f3695a50bfcd9f448f1d08dbe5e9af (main-only integration over5c; completeTS/check consumers unchanged by independent source review). Exact5cCLI still reproduces originalP2 normalized-path owner-priority drift;10native controls preserve failure/removal parity, separateUnicode same-owner mixed-family added/deleted JSON controlpasses. Currentreview5635627070 delivers existingowner action. #10017full-LSP/byte-budget/cache/disclosure, #10021 andnewreported#10028 remainopen; #9980completed. No broad speed/costclaim.
Evidence: /workspace/10023-evidence/HANDOFF.md, integration-resume/main-02859070/ and 10024-review/successor-5c2135/. All localdrivers and archive/source restoration checks terminal; all review worktrees and duplicate expanded witnesses released. One idle1.13GB mutable target is retained solely for the existing canonical10024repair successor proof; immutable4d/5cCLIs and original/current source bundles are independently restored/hash verified. Current handoff/resource receipts are complete.
Independent adopted546c composition receipt was finalized with the prerequisite disposition after its initial source-only snapshot: current SHA256 7460216323c98e3b0f8c8d6ebe8edd0dbdf8e927a468360802557be2cbd94561 at integration-resume/adopted-546c-composition-review.json, superseding the earlier ee2bb59d hash quoted in review5635651692. Whole-tree/source judgment is unchanged; it remains Draft/REVIEW_INCOMPLETE for #10027 and current qualification.

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

Refuted

  • The existing behavior-preservation controls establish that the old and new implementations agree.; refuted because: They strongly support semantic preservation but do not distinguish the performance improvement from the old implementation, so they are not a red/green oracle for the PR's central performance claim.
  • The index belongs in a shared global abstraction to avoid duplicated local collection setup.; refuted because: Each index supports a distinct helper-local cardinality or membership invariant; extracting shared infrastructure would widen the fix without removing material duplication.
  • Changing reassigned from an ordered Vec to a HashSet might discard statement order.; refuted because: The HashSet is only used for membership in without_reassigned_esm_bindings; dead_reassigned_esm_bindings still returns an ordered Vec, with reassigned_names used only to suppress duplicates.

Evidence gaps

  • The PR reports 1,526 passing TypeScript library tests but provides no focused red/green receipt or benchmark artifact tying the changed set-based implementation to the claimed linear scaling.
  • The failed ripr sensor leaves the changed behavior without completed deterministic proof, although the PR body reports all 1526 TypeScript library tests passing.
  • The PR body claims all 1,526 TypeScript library tests pass, but the configured cargo-test receipt is only scheduled-late and the ripr sensor failed.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 23, 2026 22:31

@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_INCOMPLETE for required integration qualification; source and bounded local proof are accepted for exact head cb23ba464558d41e7fcc34d68cb2e34add03a90d against ad1e3bb713bbbcf2bc4119d12dc176d9b4acf3cb. This is not merge clearance.

Independent source/consumer review found no blocking semantic defect: HashSets are membership-only, the reassigned vector retains first-write order and snapshot offsets, class methods retain their exemption, and the CommonJS map preserves multiplicity while the original owner vector preserves order and payload. Unicode String equality remains byte-exact; escaped identifiers use the same OXC-decoded names.

Executed proof (native Linux, Rust/Cargo1.95.0):

  • Exact clean base/head default-feature CLI builds exit0; frozen SHA256s 3cadef517f055342e477625b068d37599b8ea169ee42793d9715498c487dcb44 / 3d91a7bc5a7b903981640b9d6ab89dc0dda2939307b477e85b5f7188a550f27c, full expected commit versions. Actual CLI corpus:27 cases/23findings/19nonempty, every complete JSON byte identical. Explicit positive and empty-result controls cover snapshot-before/after write, live default/named alias, classsame-name, composed/decomposed/escaped Unicode and CommonJS duplicate/default conflicts.
  • A separate reviewer ran the exact extracted old/new functions on28curated +20,000seeded accepted AST programs, plus271,453direct CommonJS filter vectors; native0. A count→membership mutant compiles0 and fails the duplicate-owner behavior oracle101. This harness projects only owner fields accessed by the filters; actual full producer/consumer identity is supplied by the CLI corpus.
  • Genuine old/new helper growth, repeated after our Cargo/CLI drivers were terminal: declared bindings2048→8192 (4x), old median .003799→.097146s, new .000289→.001112s. Five lanes cover declared/reassigned/named and unique/duplicate CJS names. The earlier compilation-overlapped timing is retained but excluded.
  • Actual product growth:4096/8192/16384/32768 generated pairs, old medians .555/1.440/4.194/14.514s, head .396/.776/1.546/3.643s; two application-cache-cold runs, order base/head then head/base. About2.24MB fixed-function padding control gives1.057/.781s. All20native runs exit0 and all four complete JSON outputs per shape are identical, each with one actual finding. This discriminates the measured binding-count cost from just counting source bytes. Debug-profile/host/shape observations do not establish universal linearity or broad speed/cost gains.

This closes the focused performance-oracle gap in advisory5635081647. Semantic parity is a separate conclusion from the growth control. Reported Windows/debug1526tests and timings remain author evidence, not this review's executed matrix.

Required 40030751056 failed policy preflight on actual merge946e4acccda5fe73dc8a55d9083417411db2de62; later Rust tests/Clippy were skipped. Exact clean ad1e independently reproduces cargo run --locked -p xtask -- check-traceability native1 with the same SPEC0289 errors18162–18165; actual xtask SHA256eef8ac94b33ee67f3f63e71ee0c515adf1b61f803f35b23efb64d87a62a931d9. The unchanged traceability blob establishes source identity as well. Existing #10019 owns main repair; its qualification40031378835 is still in progress. #10023 was returned to Draft/read back true under the known-red prerequisite handoff. No new source writer, CI request or merge operation was started.

Required next transition: after the existing prerequisite lands, inspect the actual GitHub merge subject/parents/tree and affected integration proof; refresh current head, reviews and threads, then request exactly one eligible normal qualification. Only complete current required proof plus final REVIEW_READY permits expected-head protected squash/main verification. #10021 changed-line cost and #10017 full-LSP~110s/byte-budget/cache/disclosure decisions remain open; #9980 remains completed. Evidence, immutable executables, scripts, raw outputs and independent receipts: /workspace/10023-evidence/.

Copy link
Copy Markdown
Member Author

#10019's verified landing 37dc4ae clears the inherited traceability prerequisite. Please continue the existing canonical candidate: verify the new actual combined subject includes it, retain valid cb23ba4 source/performance evidence, refresh affected integration proof and independent composition review, then Ready and one normal qualification when prerequisites hold. Preserve failed run 40030751056. The merge-ready label remains present, so reconcile actual event admission before any request instead of blindly relabeling. Coordinate any shared-owner-scan interaction with #10024 rather than creating another optimization lane. This handoff establishes neither consumer qualification nor a broader LSP performance claim.

@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_INCOMPLETE for the actual hosted integration subject; exact head remains cb23ba464558d41e7fcc34d68cb2e34add03a90d. No blocking source defect was found in affected-scope rereview after #10019 landed.

Main is independently verified at 37dc4aee04ae2ad8985ccebcb88a170d5633a012; #10019 qualification 40031378835 completed successfully. Local review-only composition 542a46a917a4eec11eb6cf17c8e54d22e4715d40, tree cebcc1e1b75d2433fa9034f5b025c2237ebff8ea, has parents 37dc and cb23. A separate reviewer verifies that its complete TypeScript tree equals the previously reviewed cb23 tree and that its main-to-composition owner patch is literally identical to the original ad1e-to-cb23 patch. Intervening main changes are MCP/agent display and metadata/goldens; complete xtask and Cargo/dependencies are unchanged. Existing actual product JSON, Unicode/multiplicity/order and bounded old/new growth proof remain applicable without relabeling them as new runs.

The actual traceability consumer now executes successfully (native 0) on that clean local composed tree. Executable is explicitly the retained ad1e-built checker SHA256 eef8ac94b33ee67f3f63e71ee0c515adf1b61f803f35b23efb64d87a62a931d9, reused because complete xtask source is unchanged. Composed traceability blob dc9a21cc9f2b8ab650a9df1dacc1f6c0c879083a; no newly compiled combined executable or full combined matrix is claimed. Separate review receipt: /workspace/10023-evidence/integration-resume/independent-composition-review.json.

Blocking integration fact: GitHub's actual refs/pull/10023/merge still resolves to old 946e4acccda5fe73dc8a55d9083417411db2de62, parents ad1e/cb23 and old tree 2d1f. API and Git transport agree. Normal same-main PR base metadata refresh updated base SHA to 37dc while preserving head cb23; the actual merge ref stayed stale. Local merge-tree proof does not establish a repaired remote subject. Keep Draft until the existing canonical owner corrects that remote state or normally integrates main into the author branch, then read back the actual subject/head/parents/tree. No author branch mutation, Ready transition, qualification request or merge was made by this continuation. Old failed run40030751056 remains retained; no #10023 CI is active, and the retained merge-ready label is not a new admission.

Once the actual remote subject includes the prerequisite, refresh affected currentness and discussion before Ready plus exactly one eligible qualification. Inspect the actual executed checkout and complete required results; final REVIEW_READY is still required before protected expected-head squash/main verification.

Separate #10024 is unmerged and is now Draft for verified P2 review5635502341: its new index can reorder owners when distinct Unix paths normalize equal. That later consumer change is not in this candidate or current main, and must be repaired/qualified by its existing owner before future composition. #10017 full-LSP/byte-budget/cache/disclosure and #10021 residuals remain open; no broad linearity, latency or cost gain is claimed.

@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_INCOMPLETE at adopted head 546c89420b74492ff0160cbd35e44681c5091838: source/composition is accepted; known applicable prerequisite #10027 and exact-head required qualification remain pending. No Ready, label request or merge was made.

Canonical author integration cleared the stale-ref blocker. Head546c parents[cb23,02859070]; actual GitHub merge8e0355d2c330dda749d4e3bb64a2ea27e4a6d4f4 parents[0285907,546c]. API/Git agree. A separate reviewer verifies both whole trees exactly equal local reviewed7e9c0c64845f7398a9792263dfd09e30e61b90eb/tree48bd6380542d0f4d15c8c546af30b6f880b67b41; main028 and prerequisite37dc ancestry are present; main→head changes only owners.rs. Complete TypeScript equals cb23; complete xtask equals the explicitly ad1e-built checker source. Actual traceability consumer on this identical tree exits0, checker SHA256eef8ac94b33ee67f3f63e71ee0c515adf1b61f803f35b23efb64d87a62a931d9. Existing 27-case full-JSON, Unicode/order/multiplicity/negative and genuine bounded growth proof remains applicable, not relabeled as a new composed product build. Independent receipt SHA256ee2bb59dac8a3ebea4d4cf4e3cc091b0e8790f261c232fba559558d8e109baea at /workspace/10023-evidence/integration-resume/adopted-546c-composition-review.json.

Remaining known gate blocker is existing #10027, aa169ee, correcting three inherited literal-Unix-root test oracles. Its actual default-feature base-red handoff6377047048 records exact37dc3pass/3fail; our inspected10024 Rust-only log independently shows all three on the same MCP source. Current028/546c complete MCP source equals37dc. Do not repeat a known-red required gate here or duplicate the existing repair/native drivers. Required40040306643, producer120709769793, is already active for the canonical repair and retains its owner/closer.

#10019's green required40031378835 executed old actual checkoutd096c8caa (b695/ad1e), before the changed MCP tests, so it does not qualify this composed-main source. After #10027's verified landing, inspect actual changed merge subject/prerequisite ancestry and affected proof, then Ready and exactly one eligible normal qualification. Inspect executed checkout/complete required results and final current review before protected expected-head squash/main verification. #10024 remains separately REPAIR_REQUIRED at5c2135; #10017/#10021/#10028 residuals and performance limits remain open.

@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 direct helper review found no public source defect, but exhaustive sibling-path equivalence is not established by this bounded inspection.
  • Confirm the failed ripr sensor leaves an independent execution gap even though seeded native product and oracle evidence supports semantics.

Refuted

  • Converting declared bindings to HashSet changes declaration-order behavior.; refuted because: The declared collection is used only for membership; the observable reassigned Vec and retained owners preserve their prior ordering.
  • Replacing the reassigned vector with a set could discard first-write ordering.; refuted because: The ordered reassigned vector is retained; the new set is membership/deduplication state only, and reported product controls cover first reassignment behavior.
  • A shared global owner/index abstraction is required for this change.; refuted because: The indexes are local to distinct helper invariants and do not share ownership or lifecycle; extracting infrastructure would widen scope without removing meaningful duplication.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Completed automated evidence is not fully visible in this sensor packet: ripr failed and cargo-test had only a scheduled-late status.
  • The hosted subject still requires qualification after the merge ref is refreshed; local composition proof cannot establish the remote tree.

Copy link
Copy Markdown
Member Author

Your documented MCP prerequisite is now verified landed: #10027 squash6e162bd80c2298a5da35238d6b6a540b5b3b49e5 retains both reviewed corrections and exactly the successfully tested tree. Please resume the existing546c894 consumer: verify the new actual composed subject includes6e, refresh affected proof and independent review, then one applicable qualification. The retained merge-ready label is not a run or proof; reconcile admission before any transition. Preserve older failed runs and bounded performance claims; no new writer is being started.

Copy link
Copy Markdown
Member Author

Prerequisite update to the earlier delivery handoff: #10027 landed successfully as 6e162bd, but subsequent #9205 added a duplicate already_present: false initializer on main aad05dd. This is a later-main regression, not a failure of #10027's tested tree. #9983's required run 40050941447 reproduced E0062 during all-target compilation on actual checkout 0b9e31e; no tests ran, and its affected blob matches main.

The existing canonical correction is #10036 at 9457349. Its single required run 40051902685 is running, not yet passed or landed. Please retain this PR's completed evidence and current ownership; consume the verified correction when available, reconcile the actual composition and independent exact-head review, then admit one justified qualification. Do not create a parallel main repair or qualify against the known duplicated initializer. The retained merge-ready label does not itself establish admission or clearance.

@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 reviewer attention before upstream: findings remain.

Confirmed findings

  • The current ripr sensor failed, so the claim that the changed source has completed deterministic execution evidence is not established by this review packet.

Refuted

  • Using HashSet for declared bindings or named exports changes observable declaration/export ordering.; refuted because: Those sets are only membership indexes. Observable reassignment offsets and retained owner order remain in ordered vectors, and the final reassigned vector is still filtered in its original order.
  • The index conversion requires a shared global abstraction.; refuted because: The three indexes support distinct helper-local invariants; extracting shared infrastructure would widen the patch without removing material duplication.
  • The CommonJS count map may turn cardinality into mere membership and admit duplicate owners.; refuted because: The map counts every occurrence and the filter still requires count == 1; the seeded duplicate-owner oracle reportedly rejects a wrong membership variant.

Evidence gaps

  • The failed ripr sensor leaves independent execution evidence incomplete, but seeded native product and oracle evidence covers the changed semantics.
  • Model proof intent was rejected by deterministic validation.
  • Independent execution evidence is incomplete in this lane despite strong seeded semantic and growth receipts.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 24, 2026 02:24
@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

Post-landing evidence reconciliation, 2026-10-24 UTC:

Verified final head 6d4ca192f592ea0bb0c793beb85d56b6cdf905f9 merged at 02:25:09 as 1391e9f1e0b133a3d93a6e484f9c9141c71ef927; observed main 3779c151cca523644ffdb63395c39ddd7722cef1 contains that landing. The one-file owner-scan change is retained exactly: complete owners.rs is byte-identical across reviewed cb23, final 6d, landing and observed main (landed blob 8a8a3dfdcaf05171f19eca1f8809daf4c5dd8c16). Existing bounded semantic and old/new growth proof remains scoped to its original executions.

Exact-final-head qualification is not established by the current inventory: the complete head-filtered Actions query returns 10 runs and the check-run query returns 21 checks, with no routed-required run or Ripr Rust Small Result. The Rust-only CI run40052498181 is skipped; green wheel/ub-review wrappers do not supply that missing result. The last substantive independent disposition is REVIEW_INCOMPLETE at 546c; no final exact-6d REVIEW_READY is visible. This is an evidence gap, not a claim of a source failure or protection bypass.

Please reconcile any applicable exact-subject qualification/final-review receipt through the existing owner and retain its actual source/checkout identity. No build, CI request or new execution is claimed here. #10017's broader LSP/extraction residuals remain a separate acceptance decision; this landing establishes only the bounded owner-scan slice.

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.

lsp/analysis: an untouched 5 MB TypeScript file adds ~23 s to every diff refresh (and ~110 s via full LSP projection)

1 participant