resolves the storage lazily on each call, so a missing or throwing
localStorage is handled per call rather than at construction.
Removes the user's snapshot.
Reads the user's snapshot, or null when absent, unreadable, or of another format version.
Writes (replaces) the user's snapshot. Silently does nothing when storage is unavailable.
StaticKeyThe storage key for a user's snapshot.
Synchronous, per-user workspace snapshot in browser storage. Every operation is exception-safe: storage can be absent, full, or blocked (private mode), and the journal is only ever a recovery aid — the database stays the system of record.