SCR.F Document · Version history ADR 0032 · DIFF + REVIEW
SNAPSHOT TIMELINEINLINE DIFFSUGGESTION QUEUE
v13 v14 · archivist → current
Comparingv13 v14 (current)
Blocks touched3 of 24
01
Runtime topology & co-hosting.
04~ MOD
archivist edited · 09:41
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
archivist edited · 09:41
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
Nadia A. added · now
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
linter-bot removed · 09:30
TODO: confirm whether beforeSync is awaited in Hocuspocus 3.4.x — leftover note, superseded.