Skip to content

fix(artifacts): append claims without call spreads - #10342

Closed
ShuaixinHuang wants to merge 7 commits into
morluto:mainfrom
ShuaixinHuang:artifact-claims-no-spread
Closed

ShuaixinHuang wants to merge 7 commits into
morluto:mainfrom
ShuaixinHuang:artifact-claims-no-spread

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Problem and resulting behavior

Bun and Node SEA claim arrays can exceed JavaScript's function-argument limit while their format tables remain within admitted byte limits. push(...claims) then throws RangeError, and a valid-but-ambiguous Bun carrier is reported as a generic I/O failure.

Append claims iteratively at every affected producer: Bun's FAT-slice and nested Mach-O segment collectors, and Node SEA's FAT-slice and ELF note-table collectors. Ordering, ambiguity, cancellation and byte budgets are preserved. The public CLI regression uses one FAT slice with 200,000 matching sections, explicitly within the default 16 MiB load-command allowance; it must return the existing structured unavailable ambiguity result rather than execution_failure / io. The normal inventory/extraction control remains intact.

Current base and validation

Aligned with main b3657c557f6431d259b2fcb65e73a7c2d48bd4a4 at 8074fed10196d76683a0d092df1a57e958bd59d5. Upstream 84990f977 absorbed the separate CLI test-timer correction: cliOutput.test.ts now has no PR diff. The production claim repair and its admitted-table regression remain useful. Existing serial scheduling for the two wide fingerprint-capacity suites is retained; their workload and assertions are unchanged.

  • Historical final regression on reviewed 5a29c45f4 production: 1 failed / 1 passed; a direct production probe recorded RangeError: Maximum call stack size exceeded at the nested Bun spread. This is earlier reproduction evidence, not a new-base test run.
  • Fresh on the current merged base: Bun/SEA readers and compiled CLI/MCP, complete CLI output and process-fixture lifecycle: 153 passed / 8 files, 62.20 s.
  • check:ci:fast: 3 tasks passed, 38.843 s; type-aware lint of all three PR-specific TS files: 0 errors / 15 advisories. Format/diff review, normal commit/pre-push hooks and all six PR-file hashes passed.
  • Previous head c4076febd CI 43565969469 succeeded. Fresh-head CI is required and pending; previous-head success does not qualify this merge.

Scope and limits

No new provider, schema, dependency, authority, budget, retry or production timeout. The CLI reads a controlled inert format carrier, not a real Bun producer build. No local native Windows/macOS, real Bun target, full monolithic npm run check or current-head hosted-CI success is claimed. Initial human readiness is retained without claiming review of later commits.

Author readiness

Human owner: @ShuaixinHuang

The existing initial author declarations are retained under CONTRIBUTING. They do not claim human review of the new follow-up commit 5bbf1875449cbd627f385285f68014f37938f12c.

  • 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: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T06:55:27.488236Z
We couldn’t complete this review. Comment @codex review to try again.
8074fed New commits
ℹ️ 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

[Medium impact] The reviewed changes appear safe to merge; no blocking issue remains.

Summary

Replaces function-call spreads with item-by-item appends in the Bun and Node SEA readers.

  • Bun inspection reports large Mach-O ambiguity without hitting argument limits.
  • Node SEA readers keep large Mach-O and ELF range lists intact.
  • Wide-capacity tests now run in the serial process lane.

The previous thread was unnumbered, so it has no previousFindings entry. Its reported crash is addressed by the current code.

Review scope used the full supplied PR changes because the two merge bases differed. Checks were source-only; no tests were run. Live supersession status could not be checked because GitHub authentication was unavailable.

Reviews (6) · Last reviewed commit: "chore: align artifact claim fixes with l..." · Reviewed by Greptile

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

N0zoM1z0 pushed a commit that referenced this pull request Nov 14, 2026
N0zoM1z0 pushed a commit that referenced this pull request Nov 14, 2026
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]>
@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Thank you for this fix. It landed in #10539 with your authorship kept on the commit, so I'm closing this PR as superseded.

@N0zoM1z0 N0zoM1z0 closed this Nov 14, 2026
@morluto morluto added area: evidence Evidence, artifacts, and reconstruction 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: evidence Evidence, artifacts, and reconstruction bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants