CAS-append: expectedHead must equal the current JournalHead
(ZERO32 for an empty store) AND the event must chain onto it —
any divergence rejects with FORK_DETECTED.
All events in order (implementations return a snapshot).
JournalHead — evHash of the last event, or ZERO32 when empty.
Append-only journal storage with optimistic CAS-append (C2). Concurrency model:
append(expectedHead, event)fails with FORK_DETECTED when the store head has moved — the caller re-reads, re-verifies and retries on the winning branch (history before the split stays valid, D27). Implementations decide persistence; the protocol only fixes the contract.Example