Atomic Command Batches
Multiple commands can be submitted as one batch that is validated, permission-checked, confirmed and applied atomically. If any step fails, nothing is applied. AI responses that combine several operations become a single reviewable, undoable unit.
Planned. This page shows the specification from issue #207. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Sales data with a batch editor containing three commands.
Expected behavior
A valid batch applies all steps and creates one journal entry. With an invalid step and atomic=true, the whole batch is rejected with per-step errors. With atomic=false, the valid steps apply and each step's status is reported.
Planned API surface
grid.commands.executeBatch(commands)batch.atomicBatchResultonBatchExecutedAcceptance criteria
- An atomic batch failure leaves the state unchanged (pending)
- A batch with any mutation triggers a single combined confirmation (pending)
- One undo reverts the entire batch (pending)
- BatchResult lists the status of each step (pending)