Files
buzz/crates/buzz-cli/src
morgmart 22c532f776 fix(relay): keep DM writes on one connection and tighten agent checks
- fork_dm finds or makes the new DM on the transaction that holds the
  source DM's lock, so a 41011 without the tag uses one connection
  besides the command's, and it checks that the source is a live,
  unarchived DM, as grow_dm does.
- Removing an agent from a DM identified by all its members moves it to
  its people's identity when that is free, instead of discarding it.
- A tagged add that lands in the DM its people already have checks agent
  policies against that DM only.
- The direct-DM policy exemption applies only to a newly created DM, not
  to a DM someone left.
- A tagged 41010 reopen adds only the named agents, so it cannot re-add
  someone who left, and the race-only redirect branches are gone.
- SDK and CLI no longer cap DM opens at 8 pubkeys: the relay enforces
  nine people, and agents, including an agent caller, do not count.
  They document that agents cannot send the history tag.
- Tests force the lost-insert race and wait on the DM lock explicitly
  instead of sleeping.

Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 12:28:36 -10:00
..
…