Repository navigation
fix(javascript): retain wide function fingerprint inventories - #10355
Merged
Merged
Conversation
2 tasks done
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryThe PR replaces two fingerprint call spreads with ordered loops, allowing admitted wide inventories to reach the finished graph.
Reviews (1) · Last reviewed commit: "fix(javascript): retain wide function fi..." · Reviewed by Greptile |
This was referenced Nov 13, 2026
kaoru0822-kitauji
marked this pull request as ready for review
November 13, 2026 14:08
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 13, 2026
1 of 19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #8545; follows merged #10304 and the closed, unmerged #8568.
Problem and change
A valid 1.3 MB source containing 130,000 inert
(()=>{});expressions produces 130,000 function fingerprints. With the caller-selected 130,001 total/per-file node limits and sufficient parent result budget, the compiled application CLI exits 1 after worker transfer withexecution_failure/RangeError: Maximum call stack size exceeded.Replace the two data-sized fingerprint call spreads with ordered iteration at their shared graph owner: direct projection and adoption of worker results. Existing node/memory/transfer admission remains authoritative. No new cap, helper/lint migration, provider, schema, generated metadata, target execution, or mutation authority. Ordinary correctness fix; advance maintainer scope approval is not applicable. Canonical graph ordering and consumers are unchanged; both superseded append paths are removed.
Executed evidence
bbe2bcc979be747698d9ad9ce87af017b92e0f10; macOS arm64, Node 24.22.1 / npm 11.16.0.npm run test:focused -- tests/boundary/javascript/semanticFingerprintAccumulation.test.ts src/application/javascript/JavaScriptSemanticGraphBuilder.test.ts— 82 passed in 2 files, including existing small, duplicate-fingerprint, exact-capacity, and budget-refusal cases.npm run check— passed; typed lint: 7,252 files, 0 errors, 4,987 advisory warnings.npm run verify:test-discovery— 3,507 test files exactly once.git diff --checkpassed.node --max-old-space-size=6144 scripts/rea.mjs analyze-javascript-application <fixture-directory> --max-semantic-nodes 130001 --max-semantic-nodes-per-file 130001 --max-heap-mb 1536 --analysis-timeout-ms 45000 --format json— exit 1 before, exit 0 after. After: 130,001 nodes, 130,000 fingerprints referring to 130,000 distinct function nodes, zero unknown entries and no truncation/retention limits. Ordinary static relationship uncertainty remains visible. A 1536-MiB parent correctly refused its result budget before reaching the faulty append; this fix does not change that bound.c3eb6dd4e72c18e3b21442468f1d46ef9c72c24dcompleted with 23 successful checks, 24 skipped, none failed or pending. No human verification is implied.Bounded cost control
Equivalent 50,000-function analysis/projection/sealing tasks, first and repeated operation in one initialized process per revision; one sample each, same 1024-MiB heap request. Module startup is excluded and OS cache/host load are uncontrolled. No speedup is inferred.
These process peaks exclude loader subprocesses; process-family peak, agent tokens, cold startup, and statistically meaningful variance were not measured. The wide task has no completed base run to compare.
Author readiness
Human owner: @kaoru0822-kitauji
The author is exempt from the declaration check under CONTRIBUTING.md. This draft does not attest that human review occurred.
The separate
PR readinesscommit status remains pending while this PR is a draft.