Repository navigation
Conversation
Sharing a chat with a channel sent one kind 9000 per person and read the roster after each. Send one kind 9000 naming every fresh person instead, with per-person roles in the p tags, then read the roster once. A relay without batch support adds only the first p and reads only the event's role tag, so humans go first and an all-agent batch also carries role=bot. Whoever the roster doesn't show falls back to today's single add, which reports that person's own failure. The batch is best effort: a failed read or send leaves everyone to the single path rather than failing the share. Each batch has its own receipt key, single adds never resume a batch receipt, and a settled or left-over batch is acknowledged so it can't block later additions. Relay side: block/buzz#8575. 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1591, which is stacked on #1529. Relay side: block/buzz#8575.
What changes
Sharing a chat used to send one kind 9000 per person and read the roster after each one.
grantSoloChatAccessnow:botas theptag's third element.It does this only when two or more people are fresh. A fresh person is valid, not already a member, not archived, has no addition already under way, and is not an agent being added where single adds would refuse agents.
Works on today's relays
A relay without #8575 adds only the first
p, and reads the role only from the event'sroletag. So:["role", "bot"].Failure handling (from agent review)
beforeDispatch, ends it.member-add:batch:<uuid>).Tests
share.test.ts:p;setup({ batch: true })adds them all.role=bot). ItsonConfirmedcheck now ignores order, since batch order puts humans first.Validation:
vitest runat1ca91f57e: 736 files passed, 0 failed.tscis clean.🤖 Generated with Claude Code