Files
buzz/crates/buzz-relay
Bradley Axen 95d4329a10 feat(relay): start a channel with its members in one create
A kind:9007 may name initial members with `p` tags. They are added in
the create's transaction, each checked against the channel-add policy a
kind:9000 uses, and announced with the same member_joined notice and
member-added notification. A client can then start a chat with its
agents as two writes: the create, then the first message once the
create is OK.

Resending a create whose OK was lost is now accepted as a duplicate when
that exact event is already stored. Any other create for an existing
UUID, including a changed one from its creator, is refused before
storage, so it never re-runs the create's side effects.

Co-authored-by: mbot <3754f8729004d95654c46dbab3129e4ab9ef05cc2534e2a3fbfc155983bd637b@buzz.block.builderlab.xyz>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Bradley Axen <baxen@squareup.com>
2026-10-18 10:08:44 -07:00
..