From 697c94c782ac709800397293426d0c2c10fd29a4 Mon Sep 17 00:00:00 2001 From: Tom Boucher Date: Fri, 15 May 2026 11:11:13 -0400 Subject: [PATCH] chore(3558): add changeset fragment for Phase 5.0 --- .changeset/sharp-quails-leap.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/sharp-quails-leap.md diff --git a/.changeset/sharp-quails-leap.md b/.changeset/sharp-quails-leap.md new file mode 100644 index 000000000..d200116f5 --- /dev/null +++ b/.changeset/sharp-quails-leap.md @@ -0,0 +1,5 @@ +--- +type: Added +pr: 3558 +--- +**`executeForCjs` synchronous primitive on the SDK runtime bridge** — new sync entry point at `@gsd-build/sdk/dist/runtime-bridge-sync` that lets CJS callers (the `gsd-tools.cjs` dispatcher and per-family `*-command-router.cjs` files) invoke SDK query handlers in-process without spawning a subprocess and without breaking the synchronous CJS contract that ~21 CJS test files and 100+ consumers depend on. Implemented with `synckit` (Atomics.wait on a SharedArrayBuffer in a pooled Worker thread). First-call cost ~80ms (Worker startup + native bridge construction); steady-state ~0.1ms per call after the Worker warms. Returns a typed sync result `{ ok, data | errorKind, exitCode, errorDetails?, stderrLines }` aligned with the ADR-0001 Dispatch Policy Module error taxonomy. Foundation for the Phase 5 per-family CJS router migrations (state.*, verify.*, init.*, phase.*, phases.*, validate.*, roadmap.*, frontmatter.*, config.*) that follow as separate enhancements.