Update uses shared createUpdate on a cloned object, validates identity and values, removes affected index entries, reconciles object fields in place, then attaches changed entries. It preserves the original leaf object. Direct scalar setValue can move an entry without replacing the leaf. No atomic batch or conflict reconciliation guarantee is made.
{
method: 'object.update',
object: [{ uuid: 'uuid8', '$inc.quantity': 5 }],
updated: [{ uuid: 'uuid8', root: 'object', quantity: 15 }],
success: true
}The snapshot is abbreviated; actual updated entries contain the complete resulting leaf, including parent and other fields when present. Existing updates preserve request patch operators for communication and return independent structuredClone snapshots. The DB also records changed leaves in persistence.pending; an explicit db.persist() sends complete current leaf snapshots for upserts and UUIDs for deletes. Upsert creation returns a created leaf, not necessarily an updated snapshot. Deletes identify removed leaves. Persistence of root/index branches is not yet implemented.
Transform accepted mutation intent when conflict handling requires it; do not advertise rejected changes as applied. Preserve operation identity and original timestamp, explicitly represent removed keys, and handle relative operators exactly once per recipient. Reduce clone/diff overhead without bypassing validation or index maintenance. See reconciliation.