Repository navigation
fix(captures): retain wide native numeric exclusions - #10343
Merged
kaoru0822-kitauji merged 1 commit intoNov 13, 2026
Merged
Conversation
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. |
Contributor
[Low impact] The PR appears safe to merge; individual appends remove the argument-stack failure without changing exclusion semantics. SummaryReplaces a wide
Reviews (1) · Last reviewed commit: "fix(captures): append admitted numeric e..." · Reviewed by Greptile |
2 tasks done
kaoru0822-kitauji
deleted the
fix/10341-native-numeric-exclusions-c6-01a1d00b
branch
November 13, 2026 14:07
N0zoM1z0
pushed a commit
that referenced
this pull request
Nov 14, 2026
`target.push(...items)` passes every item as a call argument and overflows the stack once a target-sized array grows past the engine's argument limit. This class was fixed one site at a time in #10304, #10343, #10362 and #8632. Add one shared appendAll helper in src/domain and use it at the remaining sites whose arrays grow with the input: XML member counting, app-task row suggestions, native call routes and unresolved calls, call-path caveats, environment-manifest merges, reference-source import entries, dyld trace edges and JS symbolic flow values. The web bundle merge from the previous commit now uses the shared helper too. Bounded spreads (fixed literals, page-sized reads) are left as they are. Refs #10445 Refs #10342 Co-Authored-By: gensokyo-dev <[email protected]>
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.
Summary
Fixes #10341. An admitted native capture reply with many numeric exclusions could fail with
AnalysisOutputErrorcaused byMaximum call stack size exceeded. Normalization had already excluded each value, but spreading the complete redaction inventory intopushput it on V8's argument stack.Append individual exclusions at the existing reply owner. Both container and record projections keep the same value, sidecar and pointer semantics; no new limit, downstream repair or generic helper is introduced. The sibling redaction producers already append individual records.
Verification
Executed on macOS arm64, Node 24.22.1/npm 11.16.0, base
5cddc69c51:RangeError, within the default 96 MiB reply allowance.npm run test:focused -- tests/boundary/browser/historicalCaptureWideNumbers.test.ts tests/boundary/browser/historicalCaptureDecoder.test.ts src/browser/history/HistoricalCaptureReply.test.ts— 49 passed, 2 Linux-only skips across three files.npm run check— passed; typed lint: 0 errors (4,986 advisory warnings).npm run verify:test-discovery— all 3,505 test files discovered exactly once.git diff --check— passed.The regression uses a source-owned subprocess that copies a native-shape reply through the production supervision/snapshot/cleanup boundary. The unchanged Python projection was separately executed using the repository's import stand-ins to confirm
1e-07survives the producer's1e-7exclusion. These are controlled boundary checks, not an installed mitmproxy, real native-flow or public CLI/MCP run. Other hosts and natural occurrence frequency remain unverified. No performance improvement is claimed.Scope
Existing capture reply admission only. No provider, execution authority, schema, budget, package or installation changes. Existing malformed-input, explicit-exclusion, deadline and cleanup tests were retained and rerun. New regression file avoids editing the existing decoder suite.
Author readiness
Human owner: @kaoru0822-kitauji. This author is exempt from the declaration under CONTRIBUTING.md; no human review is attested here.