Skip to content

Reject trailing input across zlib codecs - #239

Merged
noise64 merged 6 commits into
mainfrom
fix-zlib-trailing-input
Nov 27, 2026
Merged

noise64 merged 6 commits into
mainfrom
fix-zlib-trailing-input

Conversation

@noise64

@noise64 noise64 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor
  • follow-up to Add optional zstd support #232; repairs the six retained mixed-codec trailing-input cases, not the broader Node compatibility plan
  • validates rejectGarbageAfterEnd and tracks native consumption across sync/streaming inflate, raw inflate, gzip/unzip and Brotli; strict gzip rejects a second member, while zstd still accepts valid concatenated frames
  • preserves default concatenation and bounded Brotli output; genuine Huffman errors and decoded prefixes survive, premature EOF is rejected by default, and permissive finishFlush does not hide decoder corruption. No backend-policy or checksum-validation expansion
  • integrates updated Add optional zstd support #232 dc2b6803 through ordinary merge 4c38582d, preserving zstd contracts/abort ownership, both native outcome types, both runtime tests and README qualifications; regenerates the inventory report
  • final fit-only correction 9f3917d8 reuses the shared trailing-input error helper and documents the null-message -7 sentinel versus named Brotli Huffman errors; native backend/ABI, discriminator, fixtures and selections are unchanged
  • ordinarily merges refreshed Add optional zstd support #232 9df36e0a (including main a57ed896 and Switch node_compat to Node 26.13.1 #218 df908bf7) at b9cb154f, entirely automatically. Retains upstream zstd consumed-byte accounting and its regression controls alongside the existing trailing-input semantics. Against the refreshed parent, this remains the original nine-file trailing-input slice; no manual resolution, new behavior/design decision or unrelated correction is authored

Node compatibility

Actual #232 base 9df36e0a → head b9cb154f: runnable 3228 → 3234, known gaps 1295 → 1289; primary 3228/4523 (71.4%) → 3234/4523 (71.5%); full public 3228/9654 (33.4%) → 3234/9654 (33.5%). Zlib runnable 73 → 79, known gaps 11 → 5. Totals unchanged: 10794 overall / 324 zlib. These generated classification inventories retain the original six split-case promotions, not new selections or a new-head full-suite pass; the parent integration changes no config/report inputs. No vendored edits.

Validation and limits

  • exact integration b9cb154f: stock optimized runtime 5 passed, configured Node zlib 79 passed / 244 ignored, builtin discovery 15 passed, report 37 passed / 1 generator ignored, zlib DTS 1 passed. All-target Clippy (-Dwarnings), all five skeleton Clippy lanes, fmt and diff checks exited 0. HEAD/tree/clean state were checked before and after every command; generated Full/Normal/compat builtin JS/native bytes match the candidate, and actual optimized Full/Normal components contain the new byte-accounting fixture. Direct integration assessment is COMPLETE/CLEAR, with raw logs, hashes and source identities inspected (nov27-239-b9cb154f-local-integration, rev3); no new model round or approval. Published head/base reconciliation is recorded in golem-review (nov27-239-b9cb154f-published-reconciliation, rev1): Team review, zero open concerns, retaining the integration waiver without a new approval or duplicate team request. Exact-head CI46006796006 completed successfully: all 28 executed validation jobs passed; publish/release-binaries and separate Proof were skipped. No source fix or rerun was needed. CI is separate from review; previous-head checks and CI below remain historical. The first local fixture attempt failed before tests because an existing build-cache symlink pointed to a reclaimed directory; diagnostic confirmed ENOTDIR, and only that regenerable cache directory was recreated. Failed runs remain retained, not counted as passes
  • historical 9f3917d8: stock optimized runtime 5 passed, configured zlib 79 passed / 245 ignored, syntax/diff checks passed; generated full/normal/compat JS and native bytes match that source. Includes trailing-input, zstd contracts and feature-disabled controls
  • broader checks on integration 4c38582d: discovery 15 passed, report 37 passed / 1 generator ignored, zlib DTS 1 passed, all-target build/Clippy (-Dwarnings), five skeleton Clippy lanes and formatting/dev-tool checks passed. Pinned Node 26.13.1 passed the unchanged trailing-input fixture and full upstream reject-garbage file 12/0. These were not rerun wholesale or relabeled as final-head checks
  • full nine-file integration self-reviews: GPT-6.1 Sol/high clear; Claude Opus5.5/high reported one P3 fit issue, resolved by 9f3917d8 and focused existing-reviewer adjudication. Prior mixed verdicts remain bound to 4c38582d; no new full-model round or approval transfer. Raw results/fit gate retained in golem-review nov26-239-unpublished-integration-fit and nov26-239-integration-fit-gate
  • source-bound regression reds, harness failures/recoveries and historical CI45776867453 stale DTS/discovery failures remain disclosed in retained evidence (nov26-239-author-self-review-r4, nov26-239-ci-expectations-repair-r1 and current integration/fit evidence). No codec change was made to repair the harness failures; Cargo manifest warnings remain
  • historical CI45824079129 passed on 9f3917d8: 28 executed jobs passed; publish and release-binaries jobs and the separate Proof check were skipped. CI and golem-review ran in parallel; that prior head was owner-approved and Ready for team review. This does not validate the latest integration or create a new approval. Existing conditional merge authorization remains gated on successful checks, first trusted team approval and no non-trivial conflict; no merge is requested now. No local full Node/fork sweep, Golem consumer, host durability or shipped-artifact qualification is claimed. Historical [skip ci] commits remain historical; no manual CI run

@noise64
noise64 marked this pull request as ready for review November 25, 2026 22:45
@noise64
noise64 marked this pull request as draft November 25, 2026 23:31
@noise64
noise64 marked this pull request as ready for review November 26, 2026 08:13
@noise64
noise64 marked this pull request as draft November 26, 2026 12:54
@noise64
noise64 marked this pull request as ready for review November 26, 2026 13:04

@vigoo vigoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed this PR’s own delta against the refreshed #232 head. No blocking findings. The merge retains the parent’s zstd bytesWritten correction, and the trailing-input patch is unchanged from the previously reviewed delta. Native boundary checks and pinned Node fixture checks passed locally; exact-head CI passed, including the trailing-input and zstd contract runtime tests. Full WASI/QuickJS execution was verified through CI, not rerun locally.

@noise64
noise64 changed the base branch from add-zstd to main November 27, 2026 14:34
@noise64
noise64 merged commit fd433d5 into main Nov 27, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants