mirror of
https://github.com/block/buzz.git
synced 2026-10-31 06:21:34 +00:00
Buzz Desktop was the only implementation of the kind:30175 / kind:30176 wire format. Anything else that wanted to publish an agent definition had to re-derive it, and a re-derivation that gets serde field order wrong produces different content bytes, a different event id, and a persona Desktop treats as unrelated to the one it already has. Move the builders, content structs, and coordinate helpers into `buzz_sdk::agent_definitions`; Desktop now calls them instead of holding its own copy. `double_option` moves with them, because the persona/team tri-state (absent = "unknown, preserve local" vs. null/[] = "explicitly cleared") is part of the wire contract rather than a Desktop detail. Field order is pinned by a byte-exact serialization test — a reorder would silently invalidate every stored `persona_content_hash`. Signed-off-by: Max Lampert <maxwell@squareup.com>