Sync / Editing server data
What each helper handles
ProductEdits.editedandProductEdits.Edit: Schemas describing the durableMessagepayload and the stored per-cell edit entries.ProductEdits.merge: Purely folds new changes over existing edits, keeping the latest edit per cell. Sending the operation to the server happens viaSync.factinupdate.ProductEdits.stamped: Runs exclusively inside the server journal at commit time. Clients leaveatandbyunset; the journal'svalidaterejects any client operation that tries to supply them.RemoteEdits.reconcile: Purely aligns Remote's optimistic overlays with the currenteditsslice and returns the updatedModel. Call it inafterUpdaterather thanupdateso server and replica replay only touch the replicated slice.settleandapplyEdits: Runsapplyfor each committed change through a recovery intent. Because the journal's effect ledger and the SQL table may be separate stores, an intent can replay after a crash;applyEditsguards the update withrevision <= aton the binding's fixed columns so replaying an older or identical sequence is safe.