Skip to content

feat: AVM cutover — delete NAPI AVM, wire IPC simulator pool + CDB IPC server [PR 3b]#23697

Open
charlielye wants to merge 1 commit into
cl/ipc-4-avm-binaryfrom
cl/ipc-5-avm-cutover
Open

feat: AVM cutover — delete NAPI AVM, wire IPC simulator pool + CDB IPC server [PR 3b]#23697
charlielye wants to merge 1 commit into
cl/ipc-4-avm-binaryfrom
cl/ipc-5-avm-cutover

Conversation

@charlielye

@charlielye charlielye commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Cuts the simulator from the in-process NAPI AVM to the standalone aztec-avm service introduced in #23084. Contract data callbacks are served by the TS-hosted CdbIpcServer, and world-state access goes through the generated wsdb package/service from the lower stack.

This is the top PR in the current IPC stack.

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

What changes

Deletes NAPI AVM

  • Deletes barretenberg/cpp/src/barretenberg/nodejs_module/avm_simulate/.
  • Removes AVM simulation exports from nodejs_module / @aztec/native.
  • Leaves nodejs_module focused on the remaining native pieces that still belong there.

Rewires simulator and node/prover paths

  • CppPublicTxSimulator drives an AvmIpcBackend backed by AvmSimulatorPool.
  • AvmSimulatorPool owns AvmBackend instances and uses explicit async disposal.
  • CdbIpcServer serves contract data to standalone aztec-avm.
  • aztec-node, validator, prover-node, and TXE startup paths create and clean up wsdb/avm/cdb resources explicitly.
  • Tests that own proving/simulator fixtures now close those resources instead of relying on process exit.

Cleanup and test alignment

  • Replaces cpp_vs_ts_public_tx_simulator with ipc_vs_ts_public_tx_simulator.
  • Removes tests that only covered the old in-process AVM/world-state race.
  • Keeps generated CDB/AVM client usage aligned with the lower codegen changes.

Validation

  • yarn-project/yarn install --immutable passed on lower cutover branch after generated package lock updates.
  • Root ./bootstrap.sh passed on this branch during stack validation.
  • Follow-up CI should exercise the full top-of-stack e2e surface: block building, AVM simulator, prover-node, validator, TXE.

@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 1c8d4f9 to a4e2e70 Compare May 29, 2026 14:19
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 6867e96 to 65f9aed Compare May 30, 2026 13:39
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from a4e2e70 to 0df283e Compare May 30, 2026 13:39
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 65f9aed to 47b1d3b Compare May 30, 2026 16:57
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 0df283e to 42d8d4f Compare May 30, 2026 16:57
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 47b1d3b to 43f900d Compare May 30, 2026 18:30
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 42d8d4f to 7f602eb Compare May 30, 2026 18:30
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 43f900d to 85b52b4 Compare May 30, 2026 22:27
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 7f602eb to 498b1ca Compare May 30, 2026 22:27
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 85b52b4 to fac9421 Compare May 31, 2026 13:23
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 498b1ca to 4597920 Compare May 31, 2026 13:23
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from fac9421 to 8b51cfa Compare June 1, 2026 09:48
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 4597920 to 4a53618 Compare June 1, 2026 09:48
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 8b51cfa to cbffb29 Compare June 1, 2026 11:39
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch 2 times, most recently from af3dc85 to 8cc9db5 Compare June 1, 2026 11:54
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch 2 times, most recently from a9908cb to 665dc82 Compare June 1, 2026 15:35
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 8cc9db5 to 3fe908c Compare June 1, 2026 15:54
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 665dc82 to 77496a4 Compare June 1, 2026 22:39
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch 2 times, most recently from 1ea909f to e7f5dc1 Compare June 2, 2026 15:45
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 77496a4 to 8b2448a Compare June 2, 2026 15:45
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 2358098 to b248948 Compare June 2, 2026 16:28
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 8de6b5d to 389063c Compare June 2, 2026 17:19
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from b248948 to 9835c8c Compare June 2, 2026 17:26
@charlielye charlielye added the ci-full Run all master checks. label Jun 4, 2026
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 62d51d9 to cfc6ad9 Compare June 10, 2026 14:11
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 242ae5a to a5fddf3 Compare June 10, 2026 14:11
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from cfc6ad9 to 9c3e9c7 Compare June 11, 2026 17:50
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from a5fddf3 to 3735bd8 Compare June 11, 2026 17:50
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 9c3e9c7 to 3ab720f Compare June 11, 2026 18:37
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 3735bd8 to aae8fc7 Compare June 11, 2026 18:37
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 3ab720f to 7c38799 Compare June 11, 2026 18:52
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from aae8fc7 to 476ea6b Compare June 11, 2026 18:52
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 7c38799 to 6b222ba Compare June 11, 2026 19:05
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 476ea6b to f14b0ba Compare June 11, 2026 19:05
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 6b222ba to a53f9a5 Compare June 11, 2026 19:17
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from f14b0ba to 7c17ac3 Compare June 11, 2026 19:17
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from a53f9a5 to 4d7c55c Compare June 11, 2026 19:57
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch 2 times, most recently from 328033c to c947bce Compare June 11, 2026 20:25
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 4d7c55c to 6793497 Compare June 12, 2026 10:48
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from c947bce to 15daef1 Compare June 12, 2026 10:48
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from 6793497 to bf67554 Compare June 12, 2026 11:04
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 15daef1 to 3484d44 Compare June 12, 2026 11:04
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch from bf67554 to a0707df Compare June 12, 2026 11:51
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch 2 times, most recently from 456e460 to 6094676 Compare June 12, 2026 12:23
@charlielye charlielye force-pushed the cl/ipc-4-avm-binary branch 2 times, most recently from 1b4352c to ebe1ab2 Compare June 12, 2026 12:56
@charlielye charlielye force-pushed the cl/ipc-5-avm-cutover branch from 6094676 to 0562481 Compare June 12, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant