Skip to content

No ownership transfer for workflows or agents: departing owners strand or silently kill team automations #9334

Open

Description

@ensley

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_pubkey is 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_workflow requires owner_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_webhook if they held owner/admin.
  • Owner is banned → per-run authority gate blocks everything.

Agents

In flight

What's missing

A supported continuity path. Options worth considering (not mutually exclusive):

  1. 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.
  2. 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.
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions