Skip to content

fix(captures): retain wide native numeric exclusions - #10343

Merged
kaoru0822-kitauji merged 1 commit into
mainfrom
fix/10341-native-numeric-exclusions-c6-01a1d00b
Nov 13, 2026
Merged

kaoru0822-kitauji merged 1 commit into
mainfrom
fix/10341-native-numeric-exclusions-c6-01a1d00b

Conversation

@kaoru0822-kitauji

@kaoru0822-kitauji kaoru0822-kitauji commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fixes #10341. An admitted native capture reply with many numeric exclusions could fail with AnalysisOutputError caused by Maximum call stack size exceeded. Normalization had already excluded each value, but spreading the complete redaction inventory into push put 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:

  • Direct baseline: a schema-valid 11,289,898-byte reply with 150,000 floats fails with the original RangeError, within the default 96 MiB reply allowance.
  • New owned-decoder regression: the unmarked control passes on main; its marked invocation fails at that same append. After the fix, both complete with exact source digest/bytes and record location, unrelated facts, existing credential exclusion, every new exclusion pointer, and selective numeric-sidecar removal. Container normalization is also checked.
  • 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.
  • Current-head hosted CI — passed, including all required checks. Real mitmproxy verification remains unavailable locally.

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-07 survives the producer's 1e-7 exclusion. 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.

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T09:12:16.909835Z f045430 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; individual appends remove the argument-stack failure without changing exclusion semantics.

Summary

Replaces a wide push(...redaction.redactions) call with individual appends at the existing reply owner.

  • Wide numeric exclusions now pass through capture reply reading.

Reviews (1) · Last reviewed commit: "fix(captures): append admitted numeric e..." · Reviewed by Greptile

@kaoru0822-kitauji
kaoru0822-kitauji merged commit fd3e613 into main Nov 13, 2026
50 checks passed
@kaoru0822-kitauji
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]>
@morluto morluto added area: runtime Process capture and runtime observation bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Wide native numeric exclusions overflow the capture reply boundary

2 participants