Apply one reducer event to the on-disk store. Idempotent: each
arm checks for the entity’s current SQLite state before writing
so duplicate events (from at-least-once delivery semantics) don’t
produce duplicate rows or wcore errors.
Phase E.5 — remove the id from Client.windowids, then delete the
persisted Window row, in one transaction. Pruning FIRST means any
read between the two ops doesn’t see a dangling id.
(codex P1 #619.)
Spawn the persist subscriber task. Runs until the broadcast
channel closes (i.e., the reducer’s bus is dropped at process
shutdown). The state handle is read for the full resync after a
RecvError::Lagged.