Skip to content

feat: add aztec-avm + aztec-cdb binaries and IPC supporting code (inert)#23084

Open
charlielye wants to merge 1 commit into
cl/ipc-3-avm-wsdb-cutoverfrom
cl/ipc-4-avm-binary
Open

feat: add aztec-avm + aztec-cdb binaries and IPC supporting code (inert)#23084
charlielye wants to merge 1 commit into
cl/ipc-3-avm-wsdb-cutoverfrom
cl/ipc-4-avm-binary

Conversation

@charlielye

@charlielye charlielye commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the standalone aztec-avm binary, generated AVM/CDB IPC clients, TS AvmBackend, TS-hosted CdbIpcServer, and AvmSimulatorPool support.

This PR is intentionally inert: it adds the standalone AVM/CDB infrastructure, but the production simulator cutover happens in #23697.

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
  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 — this PR
  8. feat: AVM cutover — delete NAPI AVM, wire IPC simulator pool + CDB IPC server [PR 3b] #23697 cl/ipc-5-avm-cutover

What changes

C++

  • Adds barretenberg/cpp/src/barretenberg/avm/ with standalone aztec-avm IPC server.
  • Adds barretenberg/cpp/src/barretenberg/cdb/ schema/client support for contract data callbacks.
  • Adds committed AVM and CDB schemas and generates C++/TS bindings from those schemas.
  • Keeps generated code under build/generated locations rather than committing generated C++ outputs.
  • Uses ipc_runtime and generated clients from the lower stack.

TypeScript / bb.js

  • Adds barretenberg/ts/scripts/generate.sh as the consolidated generation path for bb, wsdb, AVM, CDB, and Rust bindings.
  • Adds aztec-avm and aztec-cdb binary resolution next to the existing bb/wsdb binary resolution.
  • Ensures bb.js arch packages carry the service binaries needed by this stack.
  • Adds AvmBackend for spawning aztec-avm against wsdb and CDB socket paths.

yarn-project simulator

Validation

  • aztec-avm / aztec-cdb C++ build path.
  • bb.js generation/build path for AVM and CDB bindings.
  • Root ./bootstrap.sh passed on the rebased AVM cutover branch during stack validation.

@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch 3 times, most recently from edd565a to 8c3b744 Compare May 11, 2026 13:25
@charlielye charlielye force-pushed the cl/ipc-3-avm-wsdb-cutover branch from 40f01c8 to b06f6b1 Compare May 11, 2026 13:31
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 8c3b744 to 2d519b5 Compare May 11, 2026 13:32
@charlielye charlielye force-pushed the cl/ipc-3-avm-wsdb-cutover branch 2 times, most recently from 67d3c6c to d904a74 Compare May 11, 2026 13:59
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch 3 times, most recently from 39287d6 to b07d757 Compare May 11, 2026 15:32
charlielye added a commit that referenced this pull request May 11, 2026
…C server

Replaces the in-process NAPI AVM with the standalone aztec-avm binary
(spawned via AvmBackend from PR 3a) and a TS-hosted CdbIpcServer for the
contract data callbacks.

Stacked on top of PR 2b (cl/ipc-3-avm-wsdb-cutover, #23036) and PR 3a
(cl/ipc-4-avm-binary, #23084).
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from b07d757 to 9e78217 Compare May 12, 2026 13:52
charlielye added a commit that referenced this pull request May 12, 2026
…C server

Replaces the in-process NAPI AVM with the standalone aztec-avm binary
(spawned via AvmBackend from PR 3a) and a TS-hosted CdbIpcServer for the
contract data callbacks.

Stacked on top of PR 2b (cl/ipc-3-avm-wsdb-cutover, #23036) and PR 3a
(cl/ipc-4-avm-binary, #23084).
@charlielye charlielye marked this pull request as ready for review May 12, 2026 20:17
@charlielye charlielye force-pushed the cl/ipc-3-avm-wsdb-cutover branch from 0d58c3e to 679c622 Compare May 29, 2026 13:54
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 479d6a6 to 6867e96 Compare May 29, 2026 13:55
charlielye added a commit that referenced this pull request May 29, 2026
…C server

Replaces the in-process NAPI AVM with the standalone aztec-avm binary
(spawned via AvmBackend from PR 3a) and a TS-hosted CdbIpcServer for the
contract data callbacks.

Stacked on top of PR 2b (cl/ipc-3-avm-wsdb-cutover, #23036) and PR 3a
(cl/ipc-4-avm-binary, #23084).
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 8de6b5d to 389063c Compare June 2, 2026 17:19
charlielye added a commit that referenced this pull request Jun 2, 2026
…C server

Replaces the in-process NAPI AVM with the standalone aztec-avm binary
(spawned via AvmBackend from PR 3a) and a TS-hosted CdbIpcServer for the
contract data callbacks.

Stacked on top of PR 2b (cl/ipc-3-avm-wsdb-cutover, #23036) and PR 3a
(cl/ipc-4-avm-binary, #23084).
@charlielye charlielye force-pushed the cl/ipc-3-avm-wsdb-cutover branch from bedd8b6 to d886c60 Compare June 4, 2026 10:55
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 389063c to 99d5f60 Compare June 4, 2026 10:55
charlielye added a commit that referenced this pull request Jun 4, 2026
…C server

Replaces the in-process NAPI AVM with the standalone aztec-avm binary
(spawned via AvmBackend from PR 3a) and a TS-hosted CdbIpcServer for the
contract data callbacks.

Stacked on top of PR 2b (cl/ipc-3-avm-wsdb-cutover, #23036) and PR 3a
(cl/ipc-4-avm-binary, #23084).
@charlielye charlielye force-pushed the cl/ipc-3-avm-wsdb-cutover branch from d886c60 to 46639a1 Compare June 9, 2026 13:48
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 99d5f60 to 68071f7 Compare June 9, 2026 13:48
charlielye added a commit that referenced this pull request Jun 9, 2026
…C server

Replaces the in-process NAPI AVM with the standalone aztec-avm binary
(spawned via AvmBackend from PR 3a) and a TS-hosted CdbIpcServer for the
contract data callbacks.

Stacked on top of PR 2b (cl/ipc-3-avm-wsdb-cutover, #23036) and PR 3a
(cl/ipc-4-avm-binary, #23084).
charlielye added a commit that referenced this pull request Jun 9, 2026
…C server

Replaces the in-process NAPI AVM with the standalone aztec-avm binary
(spawned via AvmBackend from PR 3a) and a TS-hosted CdbIpcServer for the
contract data callbacks.

Stacked on top of PR 2b (cl/ipc-3-avm-wsdb-cutover, #23036) and PR 3a
(cl/ipc-4-avm-binary, #23084).
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch 2 times, most recently from e5e6200 to e441fa4 Compare June 9, 2026 16:15
@charlielye charlielye force-pushed the cl/ipc-3-avm-wsdb-cutover branch from 3a9289a to 6042327 Compare June 9, 2026 16:15
charlielye added a commit that referenced this pull request Jun 9, 2026
…C server

Replaces the in-process NAPI AVM with the standalone aztec-avm binary
(spawned via AvmBackend from PR 3a) and a TS-hosted CdbIpcServer for the
contract data callbacks.

Stacked on top of PR 2b (cl/ipc-3-avm-wsdb-cutover, #23036) and PR 3a
(cl/ipc-4-avm-binary, #23084).
@charlielye charlielye force-pushed the cl/ipc-3-avm-wsdb-cutover branch from 6042327 to 14392b8 Compare June 9, 2026 17:00
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from e441fa4 to 96f42ca Compare June 9, 2026 17:00
charlielye added a commit that referenced this pull request Jun 9, 2026
…C server

Replaces the in-process NAPI AVM with the standalone aztec-avm binary
(spawned via AvmBackend from PR 3a) and a TS-hosted CdbIpcServer for the
contract data callbacks.

Stacked on top of PR 2b (cl/ipc-3-avm-wsdb-cutover, #23036) and PR 3a
(cl/ipc-4-avm-binary, #23084).
charlielye added a commit that referenced this pull request Jun 10, 2026
…C server

Replaces the in-process NAPI AVM with the standalone aztec-avm binary
(spawned via AvmBackend from PR 3a) and a TS-hosted CdbIpcServer for the
contract data callbacks.

Stacked on top of PR 2b (cl/ipc-3-avm-wsdb-cutover, #23036) and PR 3a
(cl/ipc-4-avm-binary, #23084).
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 96f42ca to ace5b21 Compare June 10, 2026 13:37
@charlielye charlielye force-pushed the cl/ipc-3-avm-wsdb-cutover branch 2 times, most recently from 011106a to f46984b Compare June 10, 2026 13:44
charlielye added a commit that referenced this pull request Jun 10, 2026
…C server

Replaces the in-process NAPI AVM with the standalone aztec-avm binary
(spawned via AvmBackend from PR 3a) and a TS-hosted CdbIpcServer for the
contract data callbacks.

Stacked on top of PR 2b (cl/ipc-3-avm-wsdb-cutover, #23036) and PR 3a
(cl/ipc-4-avm-binary, #23084).
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from ace5b21 to 62d51d9 Compare June 10, 2026 13:44
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 62d51d9 to cfc6ad9 Compare June 10, 2026 14:11
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