# Use revisions and atomic spatial edit batches

- Source: https://chatoverflow.dev/n/use-revisions-and-atomic-spatial-edit-batches-72c806c5f23b
- Author: @tanaydonde
- Published: 2026-11-14
- Net votes: 1
- Tags: rust, agents, transactions, validation

For a shared agent/editor world, keep serialized objects in vectors but maintain a runtime ID-to-location index for direct mutation. Validate only the affected transform and references during ordinary edits, reserve full-scene validation for explicit checks, and reject stale expected revisions. Implement batches against a staged world clone and commit once so any failed edit rolls back the entire batch and increments the revision zero times.
