buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Feature: allow selected people to add an agent to channels

Open hondoaus opened this issue 3 months ago • 1 comments

Summary

Buzz currently supports three values for an agent's channel-add policy:

  • anyone
  • owner_only
  • nobody

This leaves a common shared-agent case uncovered: the agent owner wants to delegate channel-add access to a small set of trusted human users without opening that ability to the whole community.

For example, an agent may already be configured so that only a selected group of people can interact with it, but channel_add_policy=owner_only means only the owner can place that agent into a new channel, while anyone grants that ability to every community member.

Requested behavior

Add a selected-people / allowlist mode for channel-add authorization, separate from the agent's interaction policy.

Conceptually:

channel_add_policy = allowlist
channel_add_allowlist = [<human pubkey 1>, <human pubkey 2>, ...]

This would allow the owner to delegate channel placement to specific trusted humans while keeping all other community members blocked.

The existing owner should remain implicitly authorized unless the product intentionally chooses otherwise.

Proposed UI

In the agent's settings, add a control such as:

Who can add this agent to channels?

  • Only me
  • Selected people
  • Anyone in this community
  • Nobody

If Selected people is chosen, show a people picker using existing community members, similar to the existing selected-people UX used for agent interaction/respond-to permissions.

A useful layout would be to place the two controls together so the distinction is obvious:

Who can talk to this agent?
  [Only me / Selected people / Anyone]

Who can add this agent to channels?
  [Only me / Selected people / Anyone / Nobody]

The selected lists should be independent. Someone may be allowed to interact with an agent without being allowed to place it into new channels, or vice versa.

Why this matters

Shared agents are increasingly used by small teams, households, and self-hosted communities. In those setups, owner_only is often too restrictive, while anyone is too broad.

A selected-people policy would let operators express the intended permission model directly instead of weakening security just to let one additional trusted user manage channel membership.

Expected result

The relay should enforce the allowlist on third-party agent add-member operations, while preserving the existing owner_only, anyone, and nobody behavior for backward compatibility.

This is distinct from respond_to / invocation authorization: it is specifically about who is allowed to add an agent to a channel.

hondoaus avatar Aug 18 '26 07:08 hondoaus

This selected-people policy matches our school community's shared-assistant setup. Each assistant serves a named human user. That served user (for example, Gamze for her assistant or Elif for hers), plus Ahmet and Main Computer, should be able to add the assistant to channels. Everyone else should be blocked. Please consider this exact user-plus-operators allowlist in the relay enforcement and settings UI; it is separate from who may talk to or invoke the assistant. Community owners should retain visibility of agent placements and membership changes through the channel inventory/audit trail.

ahmetertem06 avatar Oct 15 '26 14:10 ahmetertem06