Repository navigation
Description
Problem
Every workflow and every agent in Buzz is bound to exactly one person's key, and there is no way to hand either one to someone else. When that person departs (leaves a channel, is removed, is offboarded, or a team goes through a reduction in force), their automations and agents are either killed or left running unattended, depending on how offboarding happens. Neither outcome preserves continuity for the team that depended on them.
For an organization this is a single-point-of-failure on individual employment: one person can own a team's digests, webhook relays, scheduled jobs and agents, and nothing lets an admin reassign them.
Current behavior (main @ 30e1fa4)
Workflows
workflows.owner_pubkeyis a single key, and kind:30620 definitions are addressable by(author pubkey, d), so the author key is the workflow's identity.- Only the owner may edit, enable/disable, or trigger (
handlers/command_executor.rs;upsert_workflowrequiresowner_pubkey = EXCLUDED.owner_pubkey). Channel owners/admins cannot take over. An agent's human owner can delete but not edit/pause/trigger the agent's workflows (Agent owners can't edit, pause, or trigger workflows their agent created #8992). - Owner leaves or is removed from the channel → all their workflows there are disabled (SEC-006), and today cannot be re-enabled at all (Workflows disabled when owner leaves a channel can never be re-enabled; UI still shows them as on #9333).
- Owner stays a member but is no longer around → workflows keep running with that person's authority, including
call_webhookif they held owner/admin. - Owner is banned → per-run authority gate blocks everything.
Agents
- An agent is a keypair with a NIP-OA owner attestation signed by its human owner. Name, memberships, memory, history and agent-owned workflows live on the relay; the process usually runs in the owner's desktop app.
- Owner's machine is wiped/returned but nothing changes on the relay → agents stop responding but remain channel members, and agent-owned workflows keep firing (the relay executes them and the agent key is still a member).
- Owner is banned → ban cascades to all their agents (
handlers/auth.rs), and agent workflows stop. - User deletion →
purge_agentsstage; agent deletion can leave its workflows live and undeletable (Agent deletion leaves owned workflows live and undeletable #7634). - No path transfers an agent to a new owner. Network transfer of agents between owner devices. Agent migration #6586 covers moving an agent between the same owner's devices. Workspace export (Owner-controlled workspace export and restore for agents, channels, workflows, memories, and history #5731) is open.
In flight
- feat(relay): add operator identity archive and unarchive #9301 (operator identity retirement) adds an ownership preview and a durable execution hold for a retired key and its verified agents. That's a clean kill switch, but release restores everything to the same key; it is not a handoff.
What's missing
A supported continuity path. Options worth considering (not mutually exclusive):
- Ownership transfer. A channel owner/admin (or community operator) reassigns a workflow to another current member. The new owner re-signs the definition under their key, and the relay migrates run history / webhook secrets and supersedes the old coordinate. Similar transfer for agents: the new owner publishes a fresh NIP-OA attestation and the relay retires the old owner link.
- Channel-owned workflows. The channel (or a relay-held channel identity) is the principal, managed by channel admins as a role. This matches how teams think about channel automations, but requires redefining the SEC-006 authority model, which currently re-checks one person's channel authority on every run.
- Offboarding inventory + guardrails. Surface "what does this person own" (the feat(relay): add operator identity archive and unarchive #9301 preview) to channel admins, warn before leave/removal when the person owns workflows or agents, and notify the channel when its automations are disabled.
Related
#9333, #8992, #7634, #9301, #6586, #5731, #3230 (member deactivation), #4639 / #2956.
Activity