Files
buzz/crates
Riley Crane 0308c7fd43 accumulator: replay missed membership notifications via persisted watermark
A channel created or joined while the daemon was backfilling, reconnecting,
or briefly down never appeared until a process restart: the live-membership
subscription (44100/44101, which are persisted and p-gated) anchored at
"now", taken only after discovery + channel backfill + the profile backfill
— so a notification emitted in that window was never queried again.

The daemon now persists a membership watermark (meta table), advanced when
discovery completes and past each handled notification. The subscription
anchors at the watermark, so missed notifications replay on subscribe and
trigger the existing clean resync; replays terminate because every resync's
discovery re-advances the watermark. One subscription per channel is
unchanged (a resync is a fresh connection).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Riley Crane <rileycrane@squareup.com>
2026-09-04 10:04:49 -07:00
..