Process an incoming fog-meta or fog-patch op from a remote peer or the hub.
Merge fog data from an authoritative snapshot. Handles pending edits, rollback, and replay of unresolved local edits.
Include fog data in an outgoing snapshot op. Returns fog snapshot or undefined.
Reset state for a reconnect: mark snapshot pending, clear resync state.
Serialize session state for cross-reconnect persistence.
Capture a fog edit made while no SyncClient is active (managed-connection offline window). Records the edit in the ledger and pending state so it can be replayed when a client reconnects.