Skip to content

refactor(bb.js): migrate to ipc-codegen + ipc-runtime; delete legacy bb::ipc#23614

Open
charlielye wants to merge 1 commit into
cl/ipc-bb-rs-migratefrom
cl/ipc-bb-js-migrate
Open

refactor(bb.js): migrate to ipc-codegen + ipc-runtime; delete legacy bb::ipc#23614
charlielye wants to merge 1 commit into
cl/ipc-bb-rs-migratefrom
cl/ipc-bb-js-migrate

Conversation

@charlielye

@charlielye charlielye commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Migrates bb.js and the remaining NAPI IPC substrate to the shared runtime, then removes the legacy bb::ipc transport.

This is the final bb-side migration PR before the AVM/wsdb cutover PRs.

Stack

  1. feat(ipc): add /ipc-codegen and /ipc-runtime foundation packages #23610 cl/ipc-foundation
  2. refactor(wsdb): migrate aztec-wsdb to ipc-codegen + ipc-runtime #23611 cl/ipc-wsdb-migrate
  3. refactor(bbapi): migrate bb binary to ipc-codegen + ipc-runtime #23612 cl/ipc-bb-migrate
  4. refactor(barretenberg-rs): migrate to ipc-codegen + ipc-runtime; drop PipeBackend #23613 cl/ipc-bb-rs-migrate
  5. refactor(bb.js): migrate to ipc-codegen + ipc-runtime; delete legacy bb::ipc #23614 cl/ipc-bb-js-migrate — this PR
  6. refactor: cut TS world state and NAPI AVM over to WSDB IPC; delete NAPI WSDB #23036 cl/ipc-3-avm-wsdb-cutover
  7. feat: add aztec-avm + aztec-cdb binaries and IPC supporting code (inert) #23084 cl/ipc-4-avm-binary
  8. feat: AVM cutover — delete NAPI AVM, wire IPC simulator pool + CDB IPC server [PR 3b] #23697 cl/ipc-5-avm-cutover

What changes

  • bb.js UDS clients use @aztec/ipc-runtime instead of local hand-written socket code.
  • bb.js SHM clients use @aztec/ipc-runtime NAPI SHM bindings instead of the old NAPI msgpack client wrapper.
  • Removes the redundant nodejs_module/msgpack_client C++ wrapper/async client implementation.
  • Removes the legacy barretenberg/cpp/src/barretenberg/ipc/ library once all consumers have moved to ipc_runtime.
  • Keeps generated bb API error handling compatible with BBApiException.
  • Keeps bb.js package binary resolution on the arch-package model introduced in refactor(bbapi): migrate bb binary to ipc-codegen + ipc-runtime #23612.

End state after this PR

  • bb and wsdb servers use codegen-emitted handlers over ipc_runtime.
  • bb.js and barretenberg-rs use generated typed clients over shared runtime transports.
  • The legacy bb::ipc implementation is gone.

Validation

  • barretenberg/ts ESM/CJS build.
  • Root ./bootstrap.sh passed on this branch during stack validation after cleaning stale local CMake state that had cached AVM=OFF.

@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from e77abcf to 7e96565 Compare May 28, 2026 06:19
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from adf973a to 322ce16 Compare May 28, 2026 06:19
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from 7e96565 to 1613aa0 Compare May 28, 2026 07:10
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from 322ce16 to bb33f70 Compare May 28, 2026 07:11
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from 1613aa0 to c0dc6a8 Compare May 28, 2026 09:26
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from bb33f70 to 2939fdd Compare May 28, 2026 09:26
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from c0dc6a8 to fc07715 Compare May 28, 2026 09:40
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from 2939fdd to 1a1a5f0 Compare May 28, 2026 09:40
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from fc07715 to be7439e Compare May 28, 2026 10:43
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from 1a1a5f0 to 65e30ae Compare May 28, 2026 10:43
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch 2 times, most recently from be7439e to e456007 Compare May 28, 2026 11:07
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from 65e30ae to e987100 Compare May 28, 2026 11:08
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from e456007 to 9f87d9a Compare May 28, 2026 11:25
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from e987100 to f3033da Compare May 28, 2026 11:25
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from 9f87d9a to bfa811c Compare May 28, 2026 11:39
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from f3033da to 85cb574 Compare May 28, 2026 11:39
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from bfa811c to 9cccf57 Compare May 28, 2026 12:23
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from 85cb574 to bc488ca Compare May 28, 2026 12:23
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from 9cccf57 to c3680bc Compare May 28, 2026 12:37
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from bc488ca to d03e182 Compare May 28, 2026 12:37
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from c3680bc to 85fcd4a Compare May 28, 2026 12:59
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from d03e182 to 4bf8968 Compare May 28, 2026 12:59
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from 85fcd4a to e59398e Compare May 28, 2026 13:13
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch 3 times, most recently from 6309d01 to 787e9bc Compare May 28, 2026 15:25
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from 6f36fc6 to bbd6798 Compare May 29, 2026 12:31
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from 27b99b0 to 4fecf96 Compare May 29, 2026 12:31
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from bbd6798 to 85a65a3 Compare May 29, 2026 14:50
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from 4fecf96 to 84a8115 Compare May 29, 2026 14:50
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from 85a65a3 to 477ed98 Compare May 29, 2026 14:58
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from 84a8115 to 8b8659f Compare May 29, 2026 14:59
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from 477ed98 to 8d038fc Compare May 29, 2026 15:40
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch 2 times, most recently from a44b53a to ef805f7 Compare May 29, 2026 23:17
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch 2 times, most recently from ae6194d to e45e326 Compare May 30, 2026 13:39
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from ef805f7 to a7bef44 Compare May 30, 2026 13:39
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from e45e326 to 1cf9cb1 Compare May 30, 2026 16:57
@charlielye charlielye force-pushed the cl/ipc-bb-js-migrate branch from a7bef44 to dd6ff04 Compare May 30, 2026 16:57
@charlielye charlielye force-pushed the cl/ipc-bb-rs-migrate branch from 1cf9cb1 to 0bd0310 Compare May 30, 2026 18:30
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.

1 participant