Overwrites the known record unconditionally — for authoritative hub corrections, which must win even against a locally-newer version.
Applies an incoming record iff it is strictly newer than the known one. Returns whether it won (and was stored).
Stamps and stores a local removal tombstone.
All known records, tombstones included.
Stamps and stores the next local edit of a definition.
Versioned layer-definition state for one canvas: the latest known
LayerRecordper layer id, including tombstones so a removal is never resurrected by a stale upsert. All parties (clients and hub) converge by applying the same last-writer-wins rule fromisNewerLayerRecord.One ledger can outlive individual
SyncClientinstances — pass the same ledger to successive clients over one store (e.g. across managed-connection rebuilds) so version counters and tombstones survive credential rebuilds.