Repository navigation
Closed
Labels
ready-for-agentSpecified and ready for agent implementation
Description
Parent
Native Bun APIs: measure and selectively migrate runtime boundaries (#18)
What to build
A final, independently verified record showing that the chosen set of runtime boundaries works together and that later maintainers can recover every accepted, retained, or inconclusive decision. Users receive a reliable current build and a safe upgrade route; the fork keeps its current upstream-import workflow. All four retained is a valid final result.
Ticket-definition review completed on 2026-10-08: Claude Opus 5.5 agrees this ticket is ready for agent implementation with no remaining blockers. Separate review thread. The completed-work review below remains required after execution.
Acceptance criteria
- Read the parent and all four completed boundary decisions. Publish a concise decision/evidence table on this ticket, linking the baseline, each boundary's issue/results, accepted production revisions, retained reasons, inconclusive gaps, and separate Opus review threads.
- Confirm retained/inconclusive candidates left no production adapter/composition refactors behind, and accepted boundaries have one chosen production implementation with comparison variants removed. Attribute every runtime-relevant hunk since the baseline revision to an accepted ticket or a necessary accepted integration correction. Check combined composition keeps the single Effect context, Node contributor tests, unchanged wire/auth/durable formats, and fork web/server/distribution policies using existing focused evidence, not a new generic audit system.
- If production adapters changed, use the existing integrated source/actual-archive harness to prove combined current-build authenticated transport/Browser, file access, core/plugin recovery/atomicity, controlled process/helper execution, and service lifecycle as affected. Reuse evidence only when Bun pin, lockfile, adapters/consumers/composition, build/packaging inputs, and fixture match the final runtime. If previously separate accepted changes were never verified together, obtain combined parity on all three supported targets; otherwise cite matching integrated evidence and disclose gaps. If nothing changed, cite baseline/retention evidence rather than running redundant suites.
- If no adapter was accepted, cite the latest matching baseline and run no new performance batches. If the last accepted candidate already included every earlier change with final runtime-relevant inputs, reuse its qualifying batches. Otherwise compare the final build with the same revision's compatibility composition in a disposable checkout, reverting only accepted adapter/composition changes needed for that comparison. Apply the parent's regression gates in two alternating batches of at least five launches per variant/build, at least 60 seconds idle, source/archive separately, and native performance hosts only. Report startup, CPU, RSS/footprint and affected workload/tail/wire metrics as applicable; there is no additional combined benefit threshold.
- Reproduced combined regression, one-batch-only unresolved regression, missing required combined evidence, or behavior failure blocks completion and shipment of the failing combination. Revert the smallest later-landed interacting adapter when necessary to restore passing behavior, preserve unrelated work/data, and record its final disposition as inconclusive; otherwise obtain the maintainer's concrete follow-up decision. Do not explain away failed gates or mark a failing combination complete.
- Verify approved runtime breaks have safe first-upgrade, ordinary-update failure/recovery, same-line lifecycle, and manual cross-break recovery evidence. If a break combines with other accepted boundaries, exercise the actual cumulative route once from the pre-program archive to the final archive: clean-stop upgrade, ordinary update that completes or safely restores the running old service, and manual restoration of the pre-program archive over state written by the final build. Use the baseline archive, or the specifically identified installed release in disposable state; otherwise cite matching Evaluate native subprocesses and service lifecycle #23 evidence. No mixed-version IPC bridge is required; current history remains usable.
- Confirm each accepted adapter passed a genuine baseline/candidate upstream rehearsal with a concise preservation rule. If multiple adapters changed shared files and the latest rehearsal did not already include their combined changes/input, rehearse the pre-program baseline against the final revision with one fixed actual upstream input covering the union of changed shared sites. Otherwise cite matching individual/combined evidence. Apply the parent's conflict-confinement and mechanical preservation criteria; no added recurring repairs, global rewrites, no-op merge evidence, or new sync system. Unresolved combined conflicts block completion.
- Rewrite the existing runtime-candidates guidance into concise durable decisions: accepted with boundary/preservation rule, retained with reason, or inconclusive with gap and what could resolve it. Link each ticket; do not duplicate benchmark tables or implementation checklists. Add sync-skill preservation text only for accepted adapters. Keep raw artifacts/research outside the repository, with real-data material private/redacted under Baseline and profile native Bun opportunities #19's policy. No new CI workflows/checks/matrices, repo-wide checks, release publication, or sync machinery.
- Prepare necessary documentation/integration corrections as reviewable repository changes. Commits, push, and any single PR follow the maintainer's actual request and AGENTS.md; create no unsolicited PR or automatic merge/release. PR approval is not invented as a prerequisite for preparing the changes. Keep all edits/comments/labels/state of parent Native Bun APIs: measure and selectively migrate runtime boundaries #18 unchanged: this ticket owns the linked final decision table, and parent closure is the maintainer's action.
- Have the completed combined evidence and decision record verified by Claude Opus 5.5 in its own fresh separate T3 thread. Resolve blocking findings and link the final agreement before completion; individual reviews are not a substitute for this combined review.
Blocked by
- Evaluate native SQLite persistence (#22) — final SQLite decision/evidence, including the completed HTTP/file phase.
- Evaluate native subprocesses and service lifecycle (#23) — final process/service decision/evidence, including the completed HTTP/file phase.
Metadata
Metadata
Assignees
Labels
ready-for-agentSpecified and ready for agent implementation
Activity
Igloczek commentedon Oct 9, 2026
Program progress: execution started (2026-10-09)
origin/mainis still the Baseline and profile native Bun opportunities #19 baselined5cee2d8fa. Under this ticket's rules, combined parity, performance batches, the cumulative upgrade route and the combined rehearsal are therefore not applicable. The baseline and retention evidence is cited instead.native-bun/decision-record, the only layer, based onorigin/main. Its only repository change rewrites the runtime-candidates guidance indocs/internals/bun-runtime.mdinto durable decisions. The layer will be published as a draft PR for review and CI. It will not be merged automatically.native-bun-24-exec-r1(Codex GPT-6.1-Sol, high reasoning).Status: preparing decision record
Igloczek commentedon Oct 9, 2026
#24 combined verification and durable decisions
Outcome: no native adapter was accepted. All runtime inputs remain at baseline
d5cee2d8faed9d4923af4f59fdfa7e81009c880c/ Bun 1.4.2. Repository changes are limited to the durable decisions indocs/internals/bun-runtime.mdand the pointer wording in.agents/skills/sync-upstream/SKILL.md. No runtime break or integration correction was needed.Decision and evidence table
Each review below is its own fresh Claude Opus 5.5 / Gilfoyle completed-work review. These individual agreements do not substitute for #24's combined review.
d5cee2d8fa. Five launches per build form; separate diagnostic attribution. Historical provenance and coverage limits remain.mcp:5590e0b2-97bb-4b3e-bde8-04bad293e5bd, round 3 AGREEBun.servestrips supplied Content-Length on streamed bodies, including 206 and raw compressed responses; held-descriptor slices send slice bytes with full-file length. Buffering/pathname reopening cannot preserve the required contract. Explain #20's dedicated/shared compressor wire-byte anomaly first. Reopen when a supported Bun pin fixes both framing defects, using the qualifying test in #20.mcp:f9c1c66c-86ce-47e8-ae49-66e3db41f7a1, AGREEmcp:29b3a736-6f76-4fb3-9ec2-f9f86eba9d30, round 2 AGREEnode:sqliteandbun:sqliteshare SQLite source ID/options on measured macOS arm64 source; even all attributed core-write SQLite work is below the source/archive compatibility ranges, and replay deltas change sign. This is screening evidence from separate runs, not a universal ceiling. Reopen for incompatibility, supported-target engine divergence or actionable binding cost, using the qualifying test in #22. Reports-resolve cannot replace the core-write adoption metric; establish catalog owner policy first.mcp:4b06e343-8953-45e3-b7c5-17b764f2d5b1, round 2 AGREEmcp:105d5b0c-5d4e-4016-81bb-d9a8137d3fe3, round 2 AGREE for all three unitsReopening authorizes triage, not adoption. Any future candidate still needs the parent's behavioral, two-batch regression, supported-target and genuine upstream rehearsal gates.
Runtime-hunk attribution audit
The baseline audit and publication record establish:
origin/mainremainsd5cee2d8faed9d4923af4f59fdfa7e81009c880c, the Baseline and profile native Bun opportunities #19 baseline.git diff d5cee2d8fa origin/mainandgit log d5cee2d8fa..origin/mainare empty.native-bun/decision-recordsince baseline touch onlydocs/internals/bun-runtime.mdand the pointer wording in.agents/skills/sync-upstream/SKILL.md.There are zero runtime-relevant hunks to attribute. No retained/inconclusive candidate left a production adapter or composition refactor. The unchanged tree proves that adapters/consumers/composition, the single bundled Effect context, Node contributor tests, wire/auth/durable formats, helper interpreter/assets, packaging, web/server scope, fork distribution defaults and lightweight CI retain their baseline implementations. This is unchanged-input evidence, not a fresh behavioral pass or a new audit framework.
Recorded identity checks match #19: installed and pinned Bun 1.4.2; pnpm lock SHA-256
0481f1411a5b808e3434eea352eac2458a3300119ccfc220432c8c2dd9feb4ee; baseline archive 85,231,164 bytes, SHA-256214c518e79ce84a17b39a03c317e856106db793ee1e9c55c41692cca3982c15e; fixture-manifest SHA-2562cab401236f6543712a9028154d7a5cdd2992ca78d792498d2c5b9795829b3be. No rebuild, dependency change or fixture mutation occurred.Combined gates: not applicable
Explicit remaining gaps
Repository change and handoff
PR #33 merged as
55df74e33b(headc347f6ac2bf1); Check status existingCheckpassed onc347f6a. It records retained/inconclusive boundary decisions, corrects the descriptor-read limit, links the qualifying reopen tests and restores the PR #15 migration evidence; the sync-skill edit changes pointer wording only.Combined Opus review link/verdict: fresh Claude Opus 5.5 / Gilfoyle combined review thread
mcp:141416bf-3e73-4664-8082-9f0449a86f00. Round 1 required three fixes (a #21 overstatement, undefined workload labels and checklist length, a stale handoff section). Round 2 verdict:VERDICT: AGREE — all #24 acceptance criteria satisfied (combined record verified)Status: landed in PR #33 (merge
55df74e33b). Non-blocking follow-ups the combined reviewer noted and left out of this PR:docs/internals/effect-services.md:101still calls the runtime doc a list of "native Bun candidates".bun-runtime.mdcould restate why RPC frames are uncompressed: Bun'swscompatibility path ignores theperMessageDeflaterequested atserver.ts:260.Igloczek commentedon Oct 9, 2026
Landed in #33 (merge 55df74e); CI passed on main. Remaining evidence gaps listed above are being addressed as follow-up work.