The shadow bridge adapter the BatchedFlush queue drives. The single-commit commit(state, action) is the pre-C.3 F-marshal.5 shadow surface (kept for the afterN === 1 fast path and for adapters that have not adopted commit_batch yet); commit_batch is the C.1 batched extern (tools/engine-rs-bridge-{serde,gc}, PRs #1496/#1497).

interface BatchedFlushBridge {
    commit(state: unknown, action: unknown): unknown;
    commit_batch(state: unknown, actions: unknown): unknown;
}

Methods

  • Parameters

    • state: unknown
    • action: unknown

    Returns unknown

  • Optional — the C.1 commit_batch(state, actions) extern. When a primed bridge does not expose it (legacy single-commit adapters, older test mocks) the queue degrades to N sequential commit(state, action) calls, which is byte-identical by construction (option-c doc §3.1) — the loop body IS the single-envelope path.

    Parameters

    • state: unknown
    • actions: unknown

    Returns unknown