Repository navigation
fix(javascript): hash graph and evidence JSON incrementally - #646
Merged
Merged
Conversation
2 of 17 tasks
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
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.
Changes
verify:javascript:digestslane that crosses Node's actual single-string limit without adding that workload to routine tests.Refs #623. The maintainer's 4.0.1 comment prompted verification: the current main still fails both production hash paths with
RangeError: Invalid string lengthfor an aggregate beyond the engine limit.Verification
npm run check:fast: passed; typecheck, lint, formatting and metadata passed in the static gate;npm run knippassed after registering the opt-in verifier.npm run docs:check: passed.node scripts/verify-large-javascript-digests.mjs: passed for 537,921,040 serialized bytes against a 536,870,888 engine string limit on a 1 GiB heap; peak RSS 76,720 KiB. The unchanged production graph and Evidence digest paths both throw on the equivalent fixture.maxBufferSizeoption.No real Hopper/Ghidra run was performed for this provider-neutral hashing change.
Remaining coverage
This PR removes aggregate string assembly from hashing. Incur output formatting and MCP JSON serialization still assemble whole strings, so full results beyond the engine's string limit remain a separate output-boundary limitation; this PR leaves the issue open for the remaining output work. CLI field filtering happens before formatting and remains available. The repository's full
dist/reproduction is additionally blocked earlier by an existing empty-endpoint graph schema failure, which is recorded separately rather than folded into this change.