Skip to content

revert: back out buffer trailer reservation pending a container-neutral design - #198

Merged
steipete merged 1 commit into
mainfrom
revert/buffer-trailer-reservation
Oct 24, 2026
Merged

steipete merged 1 commit into
mainfrom
revert/buffer-trailer-reservation

Conversation

@steipete

@steipete steipete commented Oct 24, 2026 •

Copy link
Copy Markdown

The candidate containing #195 and #197 failed the fixed small-payload Worker postMessage performance gate: the median paired candidate/baseline ratio was 1.053 (about 5.3% slower) against a 1.03 limit, with 9 of 10 pairs slower. The payload contains nested plain hook data and no Buffer or Error; this measures synchronous sender serialization, not complete tool-call latency.

#195 adds pending-container bookkeeping to ordinary objects, arrays, Maps and Sets. Plain payloads pay that cost without receiving the large-Buffer copy reduction. The benchmark does not exercise TLS, and no isolated instruction-level attribution is claimed. Back out #195 (f45fff0d8f) using git revert, resolving its overlap with the earlier Error.cause backout without restoring that code. The serializer returns exactly to baseline ef37c31de3; #197's SNI fix remains intact.

Follow the rollback precedent in #196. Retain #195's historical changelog line and add an Unreleased backout note. The Buffer copy reduction should return once a redesign charges only large-Buffer paths and passes the same fixed small-payload gate. This PR introduces no replacement optimization or wire-format change.

Related: Buffer trailer reservation #195, Error.cause backout #196, pre-connect SNI fix #197.

Validation on 564c7ae5b2620be57fcb1a26c17e89f576a1bdd1:

Check Result
GitHub compare API against ef37c31de3 Exactly #197’s six paths, including CHANGELOG; all five non-changelog blobs match #197
Serializer source Byte-identical to ef37c31de3
Independent Codex P2 review Scoped-clean, no findings
Exact-head native Linux x64 27 selected files pass, both dependency checks pass, separate net suite passes
Exact-head native macOS arm64 21 selected files pass, both dependency checks pass
Format and JavaScript Lint/typechecks Pass

Exact-head native CI, Format, Lint. The automatic PR native run also passes on Linux and macOS. No CI failure or rerun was needed.

…al design (#198)

This reverts f45fff0 (#195), resolving
overlap with #196 without restoring its Error.cause serialization changes.

The fixed small-payload Worker postMessage gate measured a median paired
ratio of 1.053 against a maximum 1.03, with 9 of 10 pairs slower. Remove the
per-container bookkeeping pending a design that charges only large-Buffer
paths. Preserve the #197 pre-connect SNI fix and the historical #195
changelog entry, with a new backout note.
@steipete
steipete force-pushed the revert/buffer-trailer-reservation branch from e93a41f to 564c7ae Compare October 24, 2026 09:16
@steipete
steipete marked this pull request as ready for review October 24, 2026 09:50
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T09:52:12.065250Z 564c7ae Draft marked ready
ℹ️ 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.

@steipete
steipete merged commit 8072115 into main Oct 24, 2026
10 checks passed
@steipete
steipete deleted the revert/buffer-trailer-reservation branch October 24, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant