01
Runtime topology & co-hosting.
04~ MOD
A rolled-back SQL transaction must
not break the never leave a mutation resident in the
live Y.Doc once WebSocket clients attach.
07~ MOD
onAuthenticate.ts · tsNORMALISED
// reject before the socket joins the room if (!ctx.principal) throw "unauthorized"; return ctx.doc; return ctx.attach(ctx.doc, { evictOnRollback: true });
11+ ADD
02 — Eviction guarantee
Once a transaction rolls back, the dispatcher evicts the staged Y update before any client attaches — the audit log records the eviction as a single entry.
14− DEL
TODO: confirm whether beforeSync is awaited in Hocuspocus 3.4.x — leftover note, superseded.