Skip to content

Commit e853e2b

Browse files
matt2eclaude
andcommitted
perf(relay): confirm membership hints with exact channel reads
Resolve named member-added hints against only their channels when discovery is ready, instead of rediscovering the full viewer roster. Keep full refreshes for removals, held channels, malformed hints, and failed confirmations, with bounded batches and lifecycle cancellation guards. Add regression coverage for exact reads, fallback and coalescing, preview grants, batch limits, disposal, cache clearing, disconnects, and concurrent roster errors. Document the hint behavior and resolve caller contract. Signed-off-by: Matt Toohey <[email protected]> Co-Authored-By: Claude Code <[email protected]>
1 parent 1a692d5 commit e853e2b

4 files changed

Lines changed: 529 additions & 12 deletions

File tree

‎docs/relay-queries.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,10 @@ including failures when no channel is selected. The store owns that obligation,
681681
the optional metadata read, and its learned retry time; live Retry and diagnostic
682682
Refresh channels share the same cooldown. Metadata failure never revokes successful
683683
membership authority. Hints during an active read coalesce into one follow-up;
684-
a refused read retains the obligation without draining queued work. Live Retry
684+
a member-added hint naming a channel the viewer does not yet hold confirms only
685+
that channel when the list is already ready, while removals, unnamed hints, held
686+
channels and CLOSED still schedule the full refresh.
687+
A refused read retains the obligation without draining queued work. Live Retry
685688
retries failed/deferred work, not every successful refresh or healthy subscription.
686689
A new channel-route failure with Buzz's `restricted: channel access revoked`
687690
reason schedules this same coalesced refresh. CLOSED is a hint, not archive or

0 commit comments

Comments
 (0)