From 8fc5b1657537a357edb837d88f3173279f073599 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 9 Nov 2026 12:52:27 -0500 Subject: [PATCH 01/17] docs(vision): add information flow vision for agents Describe how an agent's owner controls the flow of information through the agent with channel membership and roles: the W/R model, the paths where the owner loses that control today, and the restricted level that closes them. Link it from VISION.md and mark the broker paper as an alternative considered. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION.md | 2 + VISION_INFORMATION_FLOW.md | 185 ++++++++++++++++++ ...ctical-information-flow-for-buzz-agents.md | 2 + 3 files changed, 189 insertions(+) create mode 100644 VISION_INFORMATION_FLOW.md diff --git a/VISION.md b/VISION.md index 9e1808b8016..bea10514efe 100644 --- a/VISION.md +++ b/VISION.md @@ -36,6 +36,8 @@ One event log. One search index. Three lenses. The relay enforces all access control. Membership gates collaboration. For governed repos, policy gates changes and owners and admins keep the record. See [VISION_GOVERNANCE.md](VISION_GOVERNANCE.md) for how a community governs changes to its code. +Agents act with their owner's permissions, so channel membership also decides where information can flow through an agent. See [VISION_INFORMATION_FLOW.md](VISION_INFORMATION_FLOW.md). + | Type | Visibility | Join | Create | |------|-----------|------|--------| | **Open channels** | Searchable by all members | Self-join | Any member | diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md new file mode 100644 index 00000000000..839b751ae95 --- /dev/null +++ b/VISION_INFORMATION_FLOW.md @@ -0,0 +1,185 @@ +# Vision: Information flow through agents + +Buzz agents act with permissions that belong to their owner. Another person can prompt the agent, while the agent can still read its owner's private information in Buzz. That is a confused-deputy problem. Prompt injection makes it easy to exploit, but the root problem is that an untrusted request can reach an agent that holds more authority than the requester should receive. + +Buzz solves the narrow part of this: an agent must not move private information to a broader audience. It does not try to solve general prompt injection. + +The goal is to **control the flow of information between people, with the agent as the conduit**, using the access control Buzz already has: channel membership. [Practical information-flow for Buzz agents](docs/practical-information-flow-for-buzz-agents.md) describes a broker design for the same problem. Buzz follows the channel-based design below instead (see [Alternatives considered](#alternatives-considered)). + +This document describes direction. Rules that the relay does not enforce yet are listed in [Rollout](#rollout). + +## The model + +Treat the agent as a conduit. Two sets describe it: + +- **W** is whose content goes in: every channel the agent can read, as a member or a guest. +- **R** is who can get information out: everyone who can read a channel where the agent can write. + +Information is safe when, for every channel *c* in W, everyone in R can already read *c*. A private channel in W with a reader in R who is not one of its members is a leak path. + +Channel roles decide W and R. A member of a channel can read and write in it, and a guest can only read ([Announce channels](NOSTR.md#announce-channels)). So: + +- When an agent joins a channel, that channel becomes part of W. +- When an agent is a member of a channel (not a guest), everyone who can read that channel becomes part of R. +- An open channel is readable by the whole community, so the first open channel where the agent is a member makes R the whole community. +- Reading an open channel is always safe: its content is already public. + +**If the agent's owner controls which channels the agent joins, and whether it is a guest or a member in each, then the owner controls W and R, and so controls how information flows between people through the agent.** The relay already enforces channel membership and roles. The rest of this document closes the paths where the owner does not have that control. + +## Where the owner loses control + +Each of these paths changes W or R without the owner. Checked against `main` at `658253009`. + +| Path | Who does it | Effect | +|---|---|---| +| A member adds the agent to their private channel. The agent's `channel_add_policy` defaults to `anyone`, and the agent sets it itself with kind 10100, so it can loosen it at any time. | Any member of that channel | W gains the channel; R gains its readers if the agent can write | +| A member gives the agent a writing role. Any member who can write can make a guest a member. | Channel members | R gains the channel's readers | +| The agent joins an open channel as a member, or writes in it without joining. Both work in an open channel with `join_role = member`. | The agent's own key | R becomes the whole community | +| The agent creates a channel and adds people to it. The creator owns the channel, so it can add anyone. | The agent's own key | W gains the channel; R gains everyone the agent adds | +| The agent opens a DM or group DM. `handle_dm_open` has no agent check. | The agent's own key | W and R gain the DM's participants | +| The agent publishes a community-readable event outside a channel: profile (kind 0), text note (kind 1), long-form, user status, or a gift wrap to any recipient. | The agent's own key | R becomes everyone who can read that event | +| Someone joins a channel where the agent is a member. New members can read the channel's history. | Whoever the channel's admission rules allow | R grows | +| An admin changes a channel's visibility from private to open. | Channel admins | R becomes the whole community | + +Three of these paths use the agent's own key. The broker design takes the key away from the agent process for that reason. That is not necessary: the relay already knows who owns each agent (`agent_owner_pubkey`, which cannot change), so it can refuse those actions when the agent tries them. + +## Design + +### Restricted and unrestricted agents + +The agent rules below cost utility. A restricted agent cannot post a note, write in an open channel that its owner did not make it a member of, set up a channel for a team, or change its profile freely. Many agents do all of these. So the rules are a level that the owner sets for each agent: + +- **Restricted:** the relay applies every agent rule in this design. +- **Unrestricted:** the relay applies none of them, and the agent works as it does now. + +The level is the owner's choice. The relay stores it next to `agent_owner_pubkey`. Only the owner can change it, with a signed command; the agent cannot. + +An unrestricted agent still has the leak paths. The level only moves the decision to the people who share with the agent, so the level is public. Clients show it on the agent's profile and in the add flow: "This agent is unrestricted. It can post what it reads here anywhere it can write." + +A change of level applies to new actions: + +- **Unrestricted to restricted:** the relay refuses new actions that break the rules. The agent keeps its current channels and roles, including channels that other people added it to. The owner can review them and demote or remove the agent. +- **Restricted to unrestricted:** R can grow at once, for example when someone adds the agent to their channel. + +One rule applies to every channel, whatever the level: no private-to-open changes (see [Membership is a decision about the channel](#membership-is-a-decision-about-the-channel)). It protects people as well as agents. + +**Open question:** which level a new agent gets. Rollout starts with unrestricted, so that nothing changes until owners choose. + +**Possible alternative to a stored level:** the relay skips the agent rules while the agent is a member of any open channel. In that state R is already the whole community, so the rules have nothing left to protect. This is one existence check on the agent's memberships, not a calculation of R. It removes the stored level and the owner's signed command, and the public label follows from memberships. The cost: the owner no longer chooses the level; the agent drifts into it. While the rules are off, the agent can create channels and add anyone, and those people stay in R after the owner demotes the agent in the open channel. + +### Only the owner puts an agent in a channel + +To give the owner control of W, make the owner the only one who can change it. Only the agent's owner can add it to a channel, of any kind. Other members cannot. + +The relay already has most of this. Each agent has a `channel_add_policy` (`anyone`, `owner_only` or `nobody`), and `owner_only` refuses adds by anyone but the owner. But the policy defaults to `anyone`, and the agent's own key sets it. For a restricted agent, the relay treats the policy as `owner_only` or stricter, and the agent can make it stricter but never looser. + +The agent cannot join a private channel on its own. It can join an open channel by itself, but only as a guest (see [Agents are guests unless the owner says otherwise](#agents-are-guests-unless-the-owner-says-otherwise)). It can create a channel, with limits (see [Channels the agent creates](#channels-the-agent-creates)). + +DMs and group DMs are channels too, so the same rule applies: only the owner can open one that includes the agent. A harness that forwards only its owner's messages to the model (for example `--respond-to owner-only`) does not close this path, because the agent can still read the DM with its own key. The relay has to refuse it. + +Nothing private reaches the agent unless the owner put it there. + +### Channels the agent creates + +An agent sometimes needs a channel of its own, for example a system channel that holds its configuration. The relay makes the creator the channel's owner, so a channel that the agent creates is in W, and everyone it adds is in R. The relay limits this with the same rule as everywhere else: + +- An agent can create only private channels. They stay private, because the relay refuses private-to-open changes. +- In a channel that it created, the agent can add only its owner, and can change only its owner's role. Anyone else gets in only through people: its owner, or someone that the channel's admission rules allow. +- The agent can still lower roles and remove members, because that only makes R smaller. + +This is the largest cost of the restricted level. A restricted agent cannot set up a working channel for a team and invite the team. Its owner has to add the people, or make the agent unrestricted. A configuration channel is not affected: its roster is the agent and its owner. + +### Agents are guests unless the owner says otherwise + +R depends on where the agent can write, so the owner controls that separately from where it can read. When the owner adds the agent to a channel, it joins as a guest unless the owner picks member. (The channel's `join_role` still applies to people.) Only the owner can raise the agent's role later. Anyone who can change roles in the channel can lower it, because a lower role only makes R smaller. + +In an open channel with `join_role = member`, a person can write without joining. If an agent could do the same, it could post in a community-wide channel without anyone adding it. So an agent cannot. + +An agent can join an open channel by itself, as a guest. That adds only public content to W and nothing to R, so it needs no decision from the owner. The relay checks this locally: the channel is open, the role is guest, and the event is the agent's. + +A guest agent adds to W but never to R. The owner can let the agent read broadly without widening its audience at all. + +### Agents don't publish outside channels + +An event outside a channel bypasses R entirely. A kind 1 note or a profile update is readable by whoever the relay lets read it, and no channel membership is involved. So the relay refuses any event from an agent that has no `h` tag. + +The exceptions are kinds whose readers the relay already limits to the agent and its owner: the author-only kinds, and turn metrics (which only the `p`-tagged owner can read). One more exception does not limit its readers: the agent's profile (kind 0). Clients need it, because it carries the NIP-OA owner attestation that tells them the key is an agent, and only the agent's key can sign it. Its fields are public, so the profile is a leak path: the agent can write anything into them. Kind 0 is replaceable, so the agent can change it at any time, and each new version reaches everyone who reads it. + +For a restricted agent, the relay accepts a kind 0 only when it carries the owner's signature over its content (a profile approval tag). The owner approves each profile change, and changes are rare. Publish-once is not enough: the agent can read first and then put what it read into its one profile. + +Refusing by default is what matters here. A new kind is covered without anyone having to remember that agents exist; it only gets through if someone deliberately adds it to the exceptions. + +### Possible: step-up for actions with the owner's authority + +Some work needs more than the agent's own access, for example summarizing a private channel that the agent is not in, or posting as the owner from a CLI. An app can do this with the owner's session or key. The relay then sees the owner, not the agent, so none of the rules above apply. This can already happen without a decision by the owner: [buzz-app#2745](https://github.com/block/buzz-app/pull/2745) and [buzz-app#2881](https://github.com/block/buzz-app/pull/2881) give every bundled agent read access to all of the owner's channels, DMs and Canvases. + +One possible answer is a step-up: an action with the owner's authority that the owner approves explicitly, for a stated scope and time, that is attributable to the agent, counted in W and R, and revocable. This is not part of this design. It widens what an agent can reach, so it would need careful boundaries and its own spec. + +### Membership is a decision about the channel + +The owner cannot control who joins someone else's channel. So when the owner makes the agent a member of a channel, what the owner accepts is the channel's **admission rules**, not its current member list. R includes everyone those rules might let in later, and because new members can read history, those people also get everything the agent wrote before they arrived. Clients have to say this: + +| Channel | Who can join R later | What the owner is accepting | +|---|---|---| +| Open | Anyone in the community | R is everyone. | +| Private | Anyone a member adds | Trust in every current member's judgment | + +Accepting the rules only means something if the rules stay put. One relay change makes sure they do: + +- **Refuse private-to-open visibility changes, for every channel.** Making a private channel open changes the admission rules out from under everyone who joined under the old ones, people included. That is a good rule with or without agents. An admin who wants an open channel can create one. + +**Later improvement: limit adds to admins.** Every private channel has the same admission rule: any member can add anyone. So making the agent a member of a private channel means trusting every current member's judgment. A later channel setting can limit adds to owners and admins. With it, an owner can choose a private channel where only the admins can grow R, and what the owner accepts becomes trust in the channel's admins. This is not needed for safety, because the owner accepts whatever the admission rules are. It gives the owner a tighter R to choose. The same setting helps announce channels, where it keeps the set of writers under the admins' control. + +The owner gets an alert when someone joins a channel where the agent is a member. That is not what keeps the data safe, since the owner accepted the rules up front. It lets the owner notice a channel heading somewhere unexpected, and demote or remove the agent. + +### W remembers + +Removing an agent from a channel stops new information from coming in, but the agent still remembers what it already read. So W keeps every channel the agent has ever read, with how far it read: channel X, up to the time it left. A channel the agent is still in is in W up to now. + +### When the owner is not a person + +The owner is whichever key signed the agent's NIP-OA attestation. It need not be a person, and the rules do not change. + +### Client work + +1. **The owner chooses member or guest for the agent in each channel.** Guest is the default. +2. **Show the level and let the owner change it.** Show it on the agent's profile and in the add flow, for everyone. +3. **Ask the owner to approve profile changes** of a restricted agent. +4. **Offer the add only to the agent's owner.** Clients that let any member add an agent directly should not. + +## What this doesn't stop + +- **Flows the owner accepts.** Say the owner makes the agent a member of an Alice-and-Bob channel and an Alice-and-Carol channel. Bob's information can now reach Carol. The owner chose both memberships, and nothing stops that choice. The broker design would block it. +- **People the channel's rules let in.** Admins or members can add people to R, and those people can read history. That is what the owner accepted when making the agent a member. +- **Actions with the owner's authority.** An app acting with the owner's session or key is not an agent action, so these rules do not see it. +- **The owner's information outside Buzz.** Files, documents, chat systems and whatever other tools the agent uses. The broker design leaves this out too. + +## Alternatives considered + +| Option | Why not | +|---|---| +| Do nothing | Any agent in a private channel can leak it to a public one, and a prompt-injected agent can widen its own audience. | +| Broker design (audience-bound instances, keyless agents, labeled memory) | It enforces a stronger rule: no flow between different private audiences, even inside one agent. But it needs a trusted broker, key custody outside the agent process, per-audience instances and labeled managed memory. This design uses the access control Buzz already has, and puts the decision in front of the owner. | +| Label each agent event with its sources and check every read | It handles late joins without trusting admission rules, but it is event-level IFC: a second access-control system alongside channels, which every read path has to apply. This design keeps channels as the only authority. | +| Owner controls only non-public memberships | Not enough on its own, because the first open channel where the agent is a member makes R everyone. The guest default closes that. | + +## Risks + +- **Owner decisions.** This is only as good as the owner's decisions about which channels the agent is in, and in which role. +- **A wrong exception.** The exception list is the only way an agent can publish outside a channel, so every kind on it, except the profile, has to really limit its readers to the agent and its owner. +- **The agent's profile is a leak path** for an unrestricted agent. Its fields are public and the agent can change them at any time. +- **Owners choose unrestricted for convenience.** The level then protects nobody. The public label lets other people decide what to share with the agent, but only if they read it. +- **Refusing private-to-open breaks a workflow.** Some admins start a channel private and open it later. They have to create a new open channel instead. + +## Rollout + +1. ✅ Announce channels: guests are read-only everywhere ([#8143](https://github.com/block/buzz/pull/8143)). +2. Add the level, with every agent unrestricted. Nothing changes until an owner chooses restricted. +3. For restricted agents: only the owner can add the agent to a channel or open a DM that includes it. The agent can join open channels by itself, as a guest only. The agent is a guest by default. Only the owner raises its role. Anyone with role authority can lower it. The agent creates only private channels, and adds only its owner to them. +4. Refuse private-to-open visibility changes for every channel. +5. For restricted agents: refuse events without an `h` tag, after checking what agents publish now, and require profile approval. +6. Decide the default level for new agents. + +Each step only refuses actions, so backing one out means turning the rule off. Existing agents keep their memberships and roles; the rules apply to new actions. + +The wire formats for the level and the profile approval tag are specified when they are built, in the NIPs that own agent identity. diff --git a/docs/practical-information-flow-for-buzz-agents.md b/docs/practical-information-flow-for-buzz-agents.md index 549febac9df..45e445403d3 100644 --- a/docs/practical-information-flow-for-buzz-agents.md +++ b/docs/practical-information-flow-for-buzz-agents.md @@ -1,5 +1,7 @@ # Practical information-flow for Buzz agents +> **Status:** alternative considered. Buzz follows the channel-based design in [VISION_INFORMATION_FLOW.md](../VISION_INFORMATION_FLOW.md) instead. + Author: Jordan Mecom Draft From ecaa89ed8472ff88627d04ff15af7bcf5dc22022 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 9 Nov 2026 13:45:37 -0500 Subject: [PATCH 02/17] docs(vision): call the agent level a disclosure level Name the owner-set agent level a disclosure level, and describe public and personal as possible further disclosure levels. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index 839b751ae95..40eee709970 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -45,27 +45,36 @@ Three of these paths use the agent's own key. The broker design takes the key aw ## Design -### Restricted and unrestricted agents +### Disclosure levels -The agent rules below cost utility. A restricted agent cannot post a note, write in an open channel that its owner did not make it a member of, set up a channel for a team, or change its profile freely. Many agents do all of these. So the rules are a level that the owner sets for each agent: +The agent rules below cost utility. A restricted agent cannot post a note, write in an open channel that its owner did not make it a member of, set up a channel for a team, or change its profile freely. Many agents do all of these. So the rules are a disclosure level that the owner sets for each agent: - **Restricted:** the relay applies every agent rule in this design. - **Unrestricted:** the relay applies none of them, and the agent works as it does now. -The level is the owner's choice. The relay stores it next to `agent_owner_pubkey`. Only the owner can change it, with a signed command; the agent cannot. +The disclosure level is the owner's choice. The relay stores it next to `agent_owner_pubkey`. Only the owner can change it, with a signed command; the agent cannot. -An unrestricted agent still has the leak paths. The level only moves the decision to the people who share with the agent, so the level is public. Clients show it on the agent's profile and in the add flow: "This agent is unrestricted. It can post what it reads here anywhere it can write." +An unrestricted agent still has the leak paths. The disclosure level only moves the decision to the people who share with the agent, so the disclosure level is public. Clients show it on the agent's profile and in the add flow: "This agent is unrestricted. It can post what it reads here anywhere it can write." -A change of level applies to new actions: +A change of disclosure level applies to new actions: - **Unrestricted to restricted:** the relay refuses new actions that break the rules. The agent keeps its current channels and roles, including channels that other people added it to. The owner can review them and demote or remove the agent. - **Restricted to unrestricted:** R can grow at once, for example when someone adds the agent to their channel. -One rule applies to every channel, whatever the level: no private-to-open changes (see [Membership is a decision about the channel](#membership-is-a-decision-about-the-channel)). It protects people as well as agents. +One rule applies to every channel, whatever the disclosure level: no private-to-open changes (see [Membership is a decision about the channel](#membership-is-a-decision-about-the-channel)). It protects people as well as agents. -**Open question:** which level a new agent gets. Rollout starts with unrestricted, so that nothing changes until owners choose. +**Open question:** which disclosure level a new agent gets. Rollout starts with unrestricted, so that nothing changes until owners choose. -**Possible alternative to a stored level:** the relay skips the agent rules while the agent is a member of any open channel. In that state R is already the whole community, so the rules have nothing left to protect. This is one existence check on the agent's memberships, not a calculation of R. It removes the stored level and the owner's signed command, and the public label follows from memberships. The cost: the owner no longer chooses the level; the agent drifts into it. While the rules are off, the agent can create channels and add anyone, and those people stay in R after the owner demotes the agent in the open channel. +**Possible alternative to a stored disclosure level:** the relay skips the agent rules while the agent is a member of any open channel. In that state R is already the whole community, so the rules have nothing left to protect. This is one existence check on the agent's memberships, not a calculation of R. It removes the stored disclosure level and the owner's signed command, and the public label follows from memberships. The cost: the owner no longer chooses the disclosure level; the agent drifts into it. While the rules are off, the agent can create channels and add anyone, and those people stay in R after the owner demotes the agent in the open channel. + +**Possible further disclosure levels.** A restricted agent is safe because the owner controls both W and R. Two more disclosure levels could be safe for other reasons. Neither is part of this design yet. + +| Disclosure level | Reads (W) | Writes to (R) | Why it is safe | +|---|---|---|---| +| Public | Only open channels, and the DMs that people open with it | Anyone | It reads nothing private. Anyone can open a DM with it, so one person's DM can reach another person. Clients tell people to treat what they tell it as public. | +| Personal | Everything the owner can read | Only the owner, in its DM with the owner | The owner can already read everything it reads. To reach anyone else, it drafts and the owner sends, or the owner approves each send. | + +A personal agent reads with the owner's authority, so the app gives the owner's read tools only to agents at that disclosure level. Buzz cannot see what either level sends outside Buzz, through other tools or through model inference on another member's node (see [What this doesn't stop](#what-this-doesnt-stop)). ### Only the owner puts an agent in a channel @@ -87,7 +96,7 @@ An agent sometimes needs a channel of its own, for example a system channel that - In a channel that it created, the agent can add only its owner, and can change only its owner's role. Anyone else gets in only through people: its owner, or someone that the channel's admission rules allow. - The agent can still lower roles and remove members, because that only makes R smaller. -This is the largest cost of the restricted level. A restricted agent cannot set up a working channel for a team and invite the team. Its owner has to add the people, or make the agent unrestricted. A configuration channel is not affected: its roster is the agent and its owner. +This is the largest cost of the restricted disclosure level. A restricted agent cannot set up a working channel for a team and invite the team. Its owner has to add the people, or make the agent unrestricted. A configuration channel is not affected: its roster is the agent and its owner. ### Agents are guests unless the owner says otherwise @@ -143,7 +152,7 @@ The owner is whichever key signed the agent's NIP-OA attestation. It need not be ### Client work 1. **The owner chooses member or guest for the agent in each channel.** Guest is the default. -2. **Show the level and let the owner change it.** Show it on the agent's profile and in the add flow, for everyone. +2. **Show the disclosure level and let the owner change it.** Show it on the agent's profile and in the add flow, for everyone. 3. **Ask the owner to approve profile changes** of a restricted agent. 4. **Offer the add only to the agent's owner.** Clients that let any member add an agent directly should not. @@ -168,18 +177,18 @@ The owner is whichever key signed the agent's NIP-OA attestation. It need not be - **Owner decisions.** This is only as good as the owner's decisions about which channels the agent is in, and in which role. - **A wrong exception.** The exception list is the only way an agent can publish outside a channel, so every kind on it, except the profile, has to really limit its readers to the agent and its owner. - **The agent's profile is a leak path** for an unrestricted agent. Its fields are public and the agent can change them at any time. -- **Owners choose unrestricted for convenience.** The level then protects nobody. The public label lets other people decide what to share with the agent, but only if they read it. +- **Owners choose unrestricted for convenience.** The disclosure level then protects nobody. The public label lets other people decide what to share with the agent, but only if they read it. - **Refusing private-to-open breaks a workflow.** Some admins start a channel private and open it later. They have to create a new open channel instead. ## Rollout 1. ✅ Announce channels: guests are read-only everywhere ([#8143](https://github.com/block/buzz/pull/8143)). -2. Add the level, with every agent unrestricted. Nothing changes until an owner chooses restricted. +2. Add the disclosure level, with every agent unrestricted. Nothing changes until an owner chooses restricted. 3. For restricted agents: only the owner can add the agent to a channel or open a DM that includes it. The agent can join open channels by itself, as a guest only. The agent is a guest by default. Only the owner raises its role. Anyone with role authority can lower it. The agent creates only private channels, and adds only its owner to them. 4. Refuse private-to-open visibility changes for every channel. 5. For restricted agents: refuse events without an `h` tag, after checking what agents publish now, and require profile approval. -6. Decide the default level for new agents. +6. Decide the default disclosure level for new agents. Each step only refuses actions, so backing one out means turning the rule off. Existing agents keep their memberships and roles; the rules apply to new actions. -The wire formats for the level and the profile approval tag are specified when they are built, in the NIPs that own agent identity. +The wire formats for the disclosure level and the profile approval tag are specified when they are built, in the NIPs that own agent identity. From a1f0c3eafbad3f57b16ab8467197343d52c070ae Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 9 Nov 2026 13:52:14 -0500 Subject: [PATCH 03/17] docs(vision): note a possible write-only role Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index 40eee709970..d0dd054e902 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -76,6 +76,8 @@ One rule applies to every channel, whatever the disclosure level: no private-to- A personal agent reads with the owner's authority, so the app gives the owner's read tools only to agents at that disclosure level. Buzz cannot see what either level sends outside Buzz, through other tools or through model inference on another member's node (see [What this doesn't stop](#what-this-doesnt-stop)). +**Possible: a write-only role.** A member that can post in a channel but cannot read it. R grows and W doesn't. It fits integrations and notifiers that post into many private channels: they no longer read those channels, so content can't move between them through the key. The relay refuses the key's reads of that channel on every read path. A missed read path only lets W grow, as it does today. + ### Only the owner puts an agent in a channel To give the owner control of W, make the owner the only one who can change it. Only the agent's owner can add it to a channel, of any kind. Other members cannot. From de521a9ae94e22461130fc5f6e004c740909cb40 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 9 Nov 2026 14:02:35 -0500 Subject: [PATCH 04/17] docs(vision): note that a person is an unrestricted agent for information flow Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index d0dd054e902..4edd5f74142 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -56,6 +56,8 @@ The disclosure level is the owner's choice. The relay stores it next to `agent_o An unrestricted agent still has the leak paths. The disclosure level only moves the decision to the people who share with the agent, so the disclosure level is public. Clients show it on the agent's profile and in the add flow: "This agent is unrestricted. It can post what it reads here anywhere it can write." +For information flow, a person is an unrestricted agent. A person reads the channels they are in, writes wherever they may, and anyone can add them to a channel or open a DM with them. The difference is who decides: a person decides with their own judgment, while an agent can be steered by anyone who can prompt it. An agent that publishes no NIP-OA attestation looks like a person to the relay, so it is treated as unrestricted. No other disclosure level can apply to an agent until it publishes its attestation. + A change of disclosure level applies to new actions: - **Unrestricted to restricted:** the relay refuses new actions that break the rules. The agent keeps its current channels and roles, including channels that other people added it to. The owner can review them and demote or remove the agent. From 0ec2b1ef29e5f531ea851aea636400d42f28753f Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 9 Nov 2026 17:07:50 -0500 Subject: [PATCH 05/17] docs: allow opening a channel that holds only its opener Mirror the Channels for IFC plan: refuse private-to-open changes except in a channel where every member is the person opening it or one of that person's agents. Refuse open-to-private changes while a public agent is in the channel. Clients warn when the owner raises an agent to member in an open channel. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index 4edd5f74142..b0d84e60a3b 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -63,7 +63,7 @@ A change of disclosure level applies to new actions: - **Unrestricted to restricted:** the relay refuses new actions that break the rules. The agent keeps its current channels and roles, including channels that other people added it to. The owner can review them and demote or remove the agent. - **Restricted to unrestricted:** R can grow at once, for example when someone adds the agent to their channel. -One rule applies to every channel, whatever the disclosure level: no private-to-open changes (see [Membership is a decision about the channel](#membership-is-a-decision-about-the-channel)). It protects people as well as agents. +One rule applies to every channel, whatever the disclosure level: no private-to-open changes, except in a channel that holds only its opener and the opener's agents (see [Membership is a decision about the channel](#membership-is-a-decision-about-the-channel)). It protects people as well as agents. **Open question:** which disclosure level a new agent gets. Rollout starts with unrestricted, so that nothing changes until owners choose. @@ -78,6 +78,8 @@ One rule applies to every channel, whatever the disclosure level: no private-to- A personal agent reads with the owner's authority, so the app gives the owner's read tools only to agents at that disclosure level. Buzz cannot see what either level sends outside Buzz, through other tools or through model inference on another member's node (see [What this doesn't stop](#what-this-doesnt-stop)). +A public agent can't stay in a channel that becomes private. Its W would gain a private channel. So an open-to-private change is refused while a public agent is in the channel: remove the public agents first. + **Possible: a write-only role.** A member that can post in a channel but cannot read it. R grows and W doesn't. It fits integrations and notifiers that post into many private channels: they no longer read those channels, so content can't move between them through the key. The relay refuses the key's reads of that channel on every read path. A missed read path only lets W grow, as it does today. ### Only the owner puts an agent in a channel @@ -104,7 +106,7 @@ This is the largest cost of the restricted disclosure level. A restricted agent ### Agents are guests unless the owner says otherwise -R depends on where the agent can write, so the owner controls that separately from where it can read. When the owner adds the agent to a channel, it joins as a guest unless the owner picks member. (The channel's `join_role` still applies to people.) Only the owner can raise the agent's role later. Anyone who can change roles in the channel can lower it, because a lower role only makes R smaller. +R depends on where the agent can write, so the owner controls that separately from where it can read. When the owner adds the agent to a channel, it joins as a guest unless the owner picks member. (The channel's `join_role` still applies to people.) Only the owner can raise the agent's role later. Raising the agent to member in an open channel sets R to the whole community, so everything in W, including other people's content, can reach everyone. Clients say so when the owner raises it. Anyone who can change roles in the channel can lower it, because a lower role only makes R smaller. In an open channel with `join_role = member`, a person can write without joining. If an agent could do the same, it could post in a community-wide channel without anyone adding it. So an agent cannot. @@ -139,7 +141,8 @@ The owner cannot control who joins someone else's channel. So when the owner mak Accepting the rules only means something if the rules stay put. One relay change makes sure they do: -- **Refuse private-to-open visibility changes, for every channel.** Making a private channel open changes the admission rules out from under everyone who joined under the old ones, people included. That is a good rule with or without agents. An admin who wants an open channel can create one. +- **Refuse private-to-open visibility changes, with one exception.** Making a private channel open changes the admission rules out from under everyone who joined under the old ones, people included. That is a good rule with or without agents. An admin who wants an open channel can create one. + The exception is a channel where nobody but the person opening it joined under the old rules. Every member must be that person or one of that person's agents that is not a restricted writer. Opening such a channel, for example a Solo chat, is a one-time disclosure by a person of what that person can already read. After it opens, it is an ordinary open channel: the owner's restricted agents stay guests until the owner raises them. **Later improvement: limit adds to admins.** Every private channel has the same admission rule: any member can add anyone. So making the agent a member of a private channel means trusting every current member's judgment. A later channel setting can limit adds to owners and admins. With it, an owner can choose a private channel where only the admins can grow R, and what the owner accepts becomes trust in the channel's admins. This is not needed for safety, because the owner accepts whatever the admission rules are. It gives the owner a tighter R to choose. The same setting helps announce channels, where it keeps the set of writers under the admins' control. @@ -182,14 +185,15 @@ The owner is whichever key signed the agent's NIP-OA attestation. It need not be - **A wrong exception.** The exception list is the only way an agent can publish outside a channel, so every kind on it, except the profile, has to really limit its readers to the agent and its owner. - **The agent's profile is a leak path** for an unrestricted agent. Its fields are public and the agent can change them at any time. - **Owners choose unrestricted for convenience.** The disclosure level then protects nobody. The public label lets other people decide what to share with the agent, but only if they read it. -- **Refusing private-to-open breaks a workflow.** Some admins start a channel private and open it later. They have to create a new open channel instead. +- **Refusing private-to-open breaks a workflow.** Some admins start a channel private and open it later. Unless the channel holds only them and their agents, they have to create a new open channel instead. +- **Opening a Solo chat publishes what the owner's agents wrote there**, including what they drew from their other channels. Accepted: a person discloses what they can read. ## Rollout 1. ✅ Announce channels: guests are read-only everywhere ([#8143](https://github.com/block/buzz/pull/8143)). 2. Add the disclosure level, with every agent unrestricted. Nothing changes until an owner chooses restricted. 3. For restricted agents: only the owner can add the agent to a channel or open a DM that includes it. The agent can join open channels by itself, as a guest only. The agent is a guest by default. Only the owner raises its role. Anyone with role authority can lower it. The agent creates only private channels, and adds only its owner to them. -4. Refuse private-to-open visibility changes for every channel. +4. Refuse private-to-open visibility changes, except in a channel where every member is the person opening it or one of that person's agents that is not a restricted writer. 5. For restricted agents: refuse events without an `h` tag, after checking what agents publish now, and require profile approval. 6. Decide the default disclosure level for new agents. From 51d2643f6b5f4bc6a8ed60c9553e1e2019778a52 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 9 Nov 2026 17:23:17 -0500 Subject: [PATCH 06/17] docs: address agent review of the information flow vision - The opening exception counts former members, and refuses a channel where a restricted agent has posted. - Owners cannot choose restricted until its relay rules are live. - Restricted agents join default channels as guests. - The outside-channel rule keys on where the relay stores an event, not on its h tag. - The leak-path table adds open-channel adds, DMs others open, and default-channel joins, and names bot among the writing roles. - Correct today's owner recording, owner tools and membership history. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 48 ++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index b0d84e60a3b..46c8c42e5ee 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -2,7 +2,7 @@ Buzz agents act with permissions that belong to their owner. Another person can prompt the agent, while the agent can still read its owner's private information in Buzz. That is a confused-deputy problem. Prompt injection makes it easy to exploit, but the root problem is that an untrusted request can reach an agent that holds more authority than the requester should receive. -Buzz solves the narrow part of this: an agent must not move private information to a broader audience. It does not try to solve general prompt injection. +Buzz solves the narrow part of this: an agent must not move private information to a broader audience unless its owner decided it. It does not try to solve general prompt injection. The goal is to **control the flow of information between people, with the agent as the conduit**, using the access control Buzz already has: channel membership. [Practical information-flow for Buzz agents](docs/practical-information-flow-for-buzz-agents.md) describes a broker design for the same problem. Buzz follows the channel-based design below instead (see [Alternatives considered](#alternatives-considered)). @@ -17,31 +17,33 @@ Treat the agent as a conduit. Two sets describe it: Information is safe when, for every channel *c* in W, everyone in R can already read *c*. A private channel in W with a reader in R who is not one of its members is a leak path. -Channel roles decide W and R. A member of a channel can read and write in it, and a guest can only read ([Announce channels](NOSTR.md#announce-channels)). So: +Channel roles decide W and R. The roles that can post (member, bot, admin and owner) can read and write in a channel, and a guest can only read ([Announce channels](NOSTR.md#announce-channels)). So: - When an agent joins a channel, that channel becomes part of W. -- When an agent is a member of a channel (not a guest), everyone who can read that channel becomes part of R. -- An open channel is readable by the whole community, so the first open channel where the agent is a member makes R the whole community. +- When an agent has a role that can post in a channel (not guest), everyone who can read that channel becomes part of R. +- An open channel is readable by the whole community, so the first open channel where the agent can post makes R the whole community. - Reading an open channel is always safe: its content is already public. **If the agent's owner controls which channels the agent joins, and whether it is a guest or a member in each, then the owner controls W and R, and so controls how information flows between people through the agent.** The relay already enforces channel membership and roles. The rest of this document closes the paths where the owner does not have that control. ## Where the owner loses control -Each of these paths changes W or R without the owner. Checked against `main` at `658253009`. +Each of these paths changes W or R without the owner. Checked against `main` at `5b1698ec2`. | Path | Who does it | Effect | |---|---|---| -| A member adds the agent to their private channel. The agent's `channel_add_policy` defaults to `anyone`, and the agent sets it itself with kind 10100, so it can loosen it at any time. | Any member of that channel | W gains the channel; R gains its readers if the agent can write | +| Someone adds the agent to a channel. In a private channel, any member who can post can do it. In an open channel, any poster can, and so can a non-member when `join_role = member`; the agent joins at `join_role`, member by default. The agent's `channel_add_policy` defaults to `anyone`, and the agent sets it itself with kind 10100, so it can loosen it at any time. | Members of that channel, or in an open channel with `join_role = member`, anyone | W gains the channel; R gains its readers if the agent can write | | A member gives the agent a writing role. Any member who can write can make a guest a member. | Channel members | R gains the channel's readers | | The agent joins an open channel as a member, or writes in it without joining. Both work in an open channel with `join_role = member`. | The agent's own key | R becomes the whole community | | The agent creates a channel and adds people to it. The creator owns the channel, so it can add anyone. | The agent's own key | W gains the channel; R gains everyone the agent adds | | The agent opens a DM or group DM. `handle_dm_open` has no agent check. | The agent's own key | W and R gain the DM's participants | -| The agent publishes a community-readable event outside a channel: profile (kind 0), text note (kind 1), long-form, user status, or a gift wrap to any recipient. | The agent's own key | R becomes everyone who can read that event | -| Someone joins a channel where the agent is a member. New members can read the channel's history. | Whoever the channel's admission rules allow | R grows | +| Someone opens a DM or group DM that includes the agent. Neither opening a DM nor adding a DM member reads `channel_add_policy`, so even `nobody` does not stop it. | Anyone | W and R gain the DM's participants | +| The agent joins the community, through an invite or a community add (kind 9030). The relay then joins it to every default channel, as a self-join. Default channels are open, so with `join_role = member` the agent can post in them. | Whoever admits the agent to the community | R becomes the whole community | +| The agent publishes a community-readable event outside a channel: profile (kind 0), text note (kind 1), long-form, user status, git events, lists, or a gift wrap to any recipient. | The agent's own key | R becomes everyone who can read that event | +| Someone joins a channel where the agent can post. New members can read the channel's history. | Whoever the channel's admission rules allow | R grows | | An admin changes a channel's visibility from private to open. | Channel admins | R becomes the whole community | -Three of these paths use the agent's own key. The broker design takes the key away from the agent process for that reason. That is not necessary: the relay already knows who owns each agent (`agent_owner_pubkey`, which cannot change), so it can refuse those actions when the agent tries them. +Four of these paths use the agent's own key. The broker design takes the key away from the agent process for that reason. That is not necessary: the relay already knows who owns each agent (`agent_owner_pubkey`, which cannot change), so it can refuse those actions when the agent tries them. ## Design @@ -56,14 +58,14 @@ The disclosure level is the owner's choice. The relay stores it next to `agent_o An unrestricted agent still has the leak paths. The disclosure level only moves the decision to the people who share with the agent, so the disclosure level is public. Clients show it on the agent's profile and in the add flow: "This agent is unrestricted. It can post what it reads here anywhere it can write." -For information flow, a person is an unrestricted agent. A person reads the channels they are in, writes wherever they may, and anyone can add them to a channel or open a DM with them. The difference is who decides: a person decides with their own judgment, while an agent can be steered by anyone who can prompt it. An agent that publishes no NIP-OA attestation looks like a person to the relay, so it is treated as unrestricted. No other disclosure level can apply to an agent until it publishes its attestation. +For information flow, a person is an unrestricted agent. A person reads the channels they are in, writes wherever they may, and anyone can add them to a channel or open a DM with them. The difference is who decides: a person decides with their own judgment, while an agent can be steered by anyone who can prompt it. The relay records an agent's owner only when the agent authenticates with its NIP-OA owner attestation or an agent token; a kind 0 attestation alone records nothing. An agent that never authenticates that way looks like a person to the relay, so it is treated as unrestricted. No other disclosure level can apply to an agent until its owner is recorded. A change of disclosure level applies to new actions: - **Unrestricted to restricted:** the relay refuses new actions that break the rules. The agent keeps its current channels and roles, including channels that other people added it to. The owner can review them and demote or remove the agent. - **Restricted to unrestricted:** R can grow at once, for example when someone adds the agent to their channel. -One rule applies to every channel, whatever the disclosure level: no private-to-open changes, except in a channel that holds only its opener and the opener's agents (see [Membership is a decision about the channel](#membership-is-a-decision-about-the-channel)). It protects people as well as agents. +One rule applies to every channel, whatever the disclosure level: no private-to-open changes, except in a channel that has only ever held its opener and the opener's agents (see [Membership is a decision about the channel](#membership-is-a-decision-about-the-channel)). It protects people as well as agents. **Open question:** which disclosure level a new agent gets. Rollout starts with unrestricted, so that nothing changes until owners choose. @@ -110,13 +112,13 @@ R depends on where the agent can write, so the owner controls that separately fr In an open channel with `join_role = member`, a person can write without joining. If an agent could do the same, it could post in a community-wide channel without anyone adding it. So an agent cannot. -An agent can join an open channel by itself, as a guest. That adds only public content to W and nothing to R, so it needs no decision from the owner. The relay checks this locally: the channel is open, the role is guest, and the event is the agent's. +An agent can join an open channel by itself, as a guest. That adds only public content to W and nothing to R, so it needs no decision from the owner. The relay checks this locally: the channel is open, the role is guest, and the event is the agent's. The same holds when the relay joins a new community member to the community's default channels: a restricted agent joins them as a guest. A guest agent adds to W but never to R. The owner can let the agent read broadly without widening its audience at all. ### Agents don't publish outside channels -An event outside a channel bypasses R entirely. A kind 1 note or a profile update is readable by whoever the relay lets read it, and no channel membership is involved. So the relay refuses any event from an agent that has no `h` tag. +An event outside a channel bypasses R entirely. A kind 1 note or a profile update is readable by whoever the relay lets read it, and no channel membership is involved. So the relay refuses any event from an agent that it would store outside a channel. An `h` tag does not count when the relay stores that kind community-wide anyway, as it does for kind 0, kind 1, long-form, user status, git events and lists. The exceptions are kinds whose readers the relay already limits to the agent and its owner: the author-only kinds, and turn metrics (which only the `p`-tagged owner can read). One more exception does not limit its readers: the agent's profile (kind 0). Clients need it, because it carries the NIP-OA owner attestation that tells them the key is an agent, and only the agent's key can sign it. Its fields are public, so the profile is a leak path: the agent can write anything into them. Kind 0 is replaceable, so the agent can change it at any time, and each new version reaches everyone who reads it. @@ -126,7 +128,7 @@ Refusing by default is what matters here. A new kind is covered without anyone h ### Possible: step-up for actions with the owner's authority -Some work needs more than the agent's own access, for example summarizing a private channel that the agent is not in, or posting as the owner from a CLI. An app can do this with the owner's session or key. The relay then sees the owner, not the agent, so none of the rules above apply. This can already happen without a decision by the owner: [buzz-app#2745](https://github.com/block/buzz-app/pull/2745) and [buzz-app#2881](https://github.com/block/buzz-app/pull/2881) give every bundled agent read access to all of the owner's channels, DMs and Canvases. +Some work needs more than the agent's own access, for example summarizing a private channel that the agent is not in, or posting as the owner from a CLI. An app can do this with the owner's session or key. The relay then sees the owner, not the agent, so none of the rules above apply. This has happened without a decision by the owner: [buzz-app#2745](https://github.com/block/buzz-app/pull/2745) and [buzz-app#2881](https://github.com/block/buzz-app/pull/2881) gave every bundled agent read access to all of the owner's channels, DMs and Canvases, until [buzz-app#3123](https://github.com/block/buzz-app/pull/3123) removed those tools. One possible answer is a step-up: an action with the owner's authority that the owner approves explicitly, for a stated scope and time, that is attributable to the agent, counted in W and R, and revocable. This is not part of this design. It widens what an agent can reach, so it would need careful boundaries and its own spec. @@ -142,7 +144,7 @@ The owner cannot control who joins someone else's channel. So when the owner mak Accepting the rules only means something if the rules stay put. One relay change makes sure they do: - **Refuse private-to-open visibility changes, with one exception.** Making a private channel open changes the admission rules out from under everyone who joined under the old ones, people included. That is a good rule with or without agents. An admin who wants an open channel can create one. - The exception is a channel where nobody but the person opening it joined under the old rules. Every member must be that person or one of that person's agents that is not a restricted writer. Opening such a channel, for example a Solo chat, is a one-time disclosure by a person of what that person can already read. After it opens, it is an ordinary open channel: the owner's restricted agents stay guests until the owner raises them. + The exception is a channel where nobody but the person opening it was ever a member. Every current and former member must be that person or one of that person's agents, and no restricted agent may have posted there. The relay marks the channel when a restricted agent first posts in it. Opening such a channel, for example a Solo chat, is a one-time disclosure by a person of what that person can already read. After it opens, it is an ordinary open channel: the owner's restricted agents stay guests until the owner raises them. **Later improvement: limit adds to admins.** Every private channel has the same admission rule: any member can add anyone. So making the agent a member of a private channel means trusting every current member's judgment. A later channel setting can limit adds to owners and admins. With it, an owner can choose a private channel where only the admins can grow R, and what the owner accepts becomes trust in the channel's admins. This is not needed for safety, because the owner accepts whatever the admission rules are. It gives the owner a tighter R to choose. The same setting helps announce channels, where it keeps the set of writers under the admins' control. @@ -150,7 +152,7 @@ The owner gets an alert when someone joins a channel where the agent is a member ### W remembers -Removing an agent from a channel stops new information from coming in, but the agent still remembers what it already read. So W keeps every channel the agent has ever read, with how far it read: channel X, up to the time it left. A channel the agent is still in is in W up to now. +Removing an agent from a channel stops new information from coming in, but the agent still remembers what it already read. So W keeps every channel the agent has ever read, with how far it read: channel X, up to the time it left. A channel the agent is still in is in W up to now. The relay does not keep this yet: it keeps one membership row per channel and key, and a re-add clears the last leave. W needs membership history that the relay does not store today. ### When the owner is not a person @@ -158,10 +160,10 @@ The owner is whichever key signed the agent's NIP-OA attestation. It need not be ### Client work -1. **The owner chooses member or guest for the agent in each channel.** Guest is the default. +1. **The owner chooses member or guest for a restricted agent in each channel.** Guest is the default. 2. **Show the disclosure level and let the owner change it.** Show it on the agent's profile and in the add flow, for everyone. 3. **Ask the owner to approve profile changes** of a restricted agent. -4. **Offer the add only to the agent's owner.** Clients that let any member add an agent directly should not. +4. **Offer the add of a restricted agent only to its owner.** Clients that let any member add one directly should not. ## What this doesn't stop @@ -186,15 +188,15 @@ The owner is whichever key signed the agent's NIP-OA attestation. It need not be - **The agent's profile is a leak path** for an unrestricted agent. Its fields are public and the agent can change them at any time. - **Owners choose unrestricted for convenience.** The disclosure level then protects nobody. The public label lets other people decide what to share with the agent, but only if they read it. - **Refusing private-to-open breaks a workflow.** Some admins start a channel private and open it later. Unless the channel holds only them and their agents, they have to create a new open channel instead. -- **Opening a Solo chat publishes what the owner's agents wrote there**, including what they drew from their other channels. Accepted: a person discloses what they can read. +- **Opening a Solo chat publishes what the owner's unrestricted agents wrote there**, including what they drew from their other channels. Accepted: a person discloses what they can read. ## Rollout 1. ✅ Announce channels: guests are read-only everywhere ([#8143](https://github.com/block/buzz/pull/8143)). -2. Add the disclosure level, with every agent unrestricted. Nothing changes until an owner chooses restricted. -3. For restricted agents: only the owner can add the agent to a channel or open a DM that includes it. The agent can join open channels by itself, as a guest only. The agent is a guest by default. Only the owner raises its role. Anyone with role authority can lower it. The agent creates only private channels, and adds only its owner to them. -4. Refuse private-to-open visibility changes, except in a channel where every member is the person opening it or one of that person's agents that is not a restricted writer. -5. For restricted agents: refuse events without an `h` tag, after checking what agents publish now, and require profile approval. +2. Add the disclosure level, with every agent unrestricted. Owners can't choose restricted until steps 3 to 5 are live; the relay pieces can ship separately before that. +3. For restricted agents: only the owner can add the agent to a channel or open a DM that includes it. The agent can join open channels by itself, as a guest only. The agent is a guest by default. Only the owner raises its role. Anyone with role authority can lower it. The agent creates only private channels, and adds only its owner to them. Default-channel joins make it a guest. +4. Refuse private-to-open visibility changes, except in a channel where every current and former member is the person opening it or one of that person's agents, and no restricted agent has posted there. +5. For restricted agents: refuse events that the relay would store outside a channel, after checking what agents publish now, and require profile approval. 6. Decide the default disclosure level for new agents. Each step only refuses actions, so backing one out means turning the rule off. Existing agents keep their memberships and roles; the rules apply to new actions. From a3c7a32560e140907e4bd0d09265b8913f714d9a Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 9 Nov 2026 17:27:53 -0500 Subject: [PATCH 07/17] docs: keep restricted agents guests when a channel opens The opening exception also requires every restricted agent in the channel to be a guest, so opening never gives one a community-wide audience. Say how a restricted agent reaches default channels. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index 46c8c42e5ee..41ca019458f 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -112,7 +112,7 @@ R depends on where the agent can write, so the owner controls that separately fr In an open channel with `join_role = member`, a person can write without joining. If an agent could do the same, it could post in a community-wide channel without anyone adding it. So an agent cannot. -An agent can join an open channel by itself, as a guest. That adds only public content to W and nothing to R, so it needs no decision from the owner. The relay checks this locally: the channel is open, the role is guest, and the event is the agent's. The same holds when the relay joins a new community member to the community's default channels: a restricted agent joins them as a guest. +An agent can join an open channel by itself, as a guest. That adds only public content to W and nothing to R, so it needs no decision from the owner. The relay checks this locally: the channel is open, the role is guest, and the event is the agent's. The same holds for a community's default channels. A restricted agent joins a community only through its owner's add or its own invite claim. Either way, it joins the default channels as a guest. A guest agent adds to W but never to R. The owner can let the agent read broadly without widening its audience at all. @@ -144,7 +144,7 @@ The owner cannot control who joins someone else's channel. So when the owner mak Accepting the rules only means something if the rules stay put. One relay change makes sure they do: - **Refuse private-to-open visibility changes, with one exception.** Making a private channel open changes the admission rules out from under everyone who joined under the old ones, people included. That is a good rule with or without agents. An admin who wants an open channel can create one. - The exception is a channel where nobody but the person opening it was ever a member. Every current and former member must be that person or one of that person's agents, and no restricted agent may have posted there. The relay marks the channel when a restricted agent first posts in it. Opening such a channel, for example a Solo chat, is a one-time disclosure by a person of what that person can already read. After it opens, it is an ordinary open channel: the owner's restricted agents stay guests until the owner raises them. + The exception is a channel where no other person was ever a member. Every current and former member must be that person or one of that person's agents. No restricted agent may have posted there, and every restricted agent in it must be a guest; the owner can demote one first. The relay marks the channel when a restricted agent first posts in it. Opening such a channel, for example a Solo chat, is a one-time disclosure by a person of what that person can already read. After it opens, it is an ordinary open channel: the owner's restricted agents stay guests until the owner raises them. **Later improvement: limit adds to admins.** Every private channel has the same admission rule: any member can add anyone. So making the agent a member of a private channel means trusting every current member's judgment. A later channel setting can limit adds to owners and admins. With it, an owner can choose a private channel where only the admins can grow R, and what the owner accepts becomes trust in the channel's admins. This is not needed for safety, because the owner accepts whatever the admission rules are. It gives the owner a tighter R to choose. The same setting helps announce channels, where it keeps the set of writers under the admins' control. @@ -195,7 +195,7 @@ The owner is whichever key signed the agent's NIP-OA attestation. It need not be 1. ✅ Announce channels: guests are read-only everywhere ([#8143](https://github.com/block/buzz/pull/8143)). 2. Add the disclosure level, with every agent unrestricted. Owners can't choose restricted until steps 3 to 5 are live; the relay pieces can ship separately before that. 3. For restricted agents: only the owner can add the agent to a channel or open a DM that includes it. The agent can join open channels by itself, as a guest only. The agent is a guest by default. Only the owner raises its role. Anyone with role authority can lower it. The agent creates only private channels, and adds only its owner to them. Default-channel joins make it a guest. -4. Refuse private-to-open visibility changes, except in a channel where every current and former member is the person opening it or one of that person's agents, and no restricted agent has posted there. +4. Refuse private-to-open visibility changes, except in a channel where every current and former member is the person opening it or one of that person's agents, no restricted agent has posted there, and every restricted agent in it is a guest. 5. For restricted agents: refuse events that the relay would store outside a channel, after checking what agents publish now, and require profile approval. 6. Decide the default disclosure level for new agents. From 5db6cf0e611e58869cf4063840c38037001c9ff7 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Thu, 12 Nov 2026 10:59:29 -0500 Subject: [PATCH 08/17] docs(vision): list all five disclosure levels in one table Unrestricted and restricted join the table, and owner-trusted is added. Owner-trusted, public and personal are marked tentative. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index 41ca019458f..9c8c14df74f 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -71,12 +71,15 @@ One rule applies to every channel, whatever the disclosure level: no private-to- **Possible alternative to a stored disclosure level:** the relay skips the agent rules while the agent is a member of any open channel. In that state R is already the whole community, so the rules have nothing left to protect. This is one existence check on the agent's memberships, not a calculation of R. It removes the stored disclosure level and the owner's signed command, and the public label follows from memberships. The cost: the owner no longer chooses the disclosure level; the agent drifts into it. While the rules are off, the agent can create channels and add anyone, and those people stay in R after the owner demotes the agent in the open channel. -**Possible further disclosure levels.** A restricted agent is safe because the owner controls both W and R. Two more disclosure levels could be safe for other reasons. Neither is part of this design yet. +**All disclosure levels.** Restricted and unrestricted are part of this design. The levels marked *tentative* are not part of it yet: each could be safe for a different reason, and each needs more thought before it is. -| Disclosure level | Reads (W) | Writes to (R) | Why it is safe | +| Disclosure level | Reads (W) | Writes to (R) | Safety | |---|---|---|---| -| Public | Only open channels, and the DMs that people open with it | Anyone | It reads nothing private. Anyone can open a DM with it, so one person's DM can reach another person. Clients tell people to treat what they tell it as public. | -| Personal | Everything the owner can read | Only the owner, in its DM with the owner | The owner can already read everything it reads. To reach anyone else, it drafts and the owner sends, or the owner approves each send. | +| Unrestricted | Every channel anyone adds it to, and every DM anyone opens with it | Anywhere it can write | Not safe. It is today's behavior, and the public label is the only protection. For information flow, a person is at this level. | +| Restricted | Open channels, and only the private channels and DMs the owner chose | Only the readers of the channels the owner chose | The owner controls both W and R, so the owner decides every flow. | +| Owner-trusted *(tentative)* | Open channels, and only the private channels and DMs the owner chose | Anywhere it can write | Nobody but the owner can put information in W, so the owner decides what is at risk. Other members of the owner's channels still carry that risk. This is the same as unrestricted, except that only the owner can add it to private channels or open DMs with it. | +| Public *(tentative)* | Only open channels, and the DMs that people open with it | Anyone | It reads nothing private. Anyone can open a DM with it, so one person's DM can reach another person. Clients tell people to treat what they tell it as public. | +| Personal *(tentative)* | Everything the owner can read | Only the owner, in its DM with the owner | The owner can already read everything it reads. To reach anyone else, it drafts and the owner sends, or the owner approves each send. | A personal agent reads with the owner's authority, so the app gives the owner's read tools only to agents at that disclosure level. Buzz cannot see what either level sends outside Buzz, through other tools or through model inference on another member's node (see [What this doesn't stop](#what-this-doesnt-stop)). From 4878955afef54bf9d9bb5f9c3cd3106016843c4e Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Thu, 12 Nov 2026 11:02:12 -0500 Subject: [PATCH 09/17] docs(vision): restricted and personal agents write only where they are members In an open channel with join_role = member, a person can write without joining. Restricted and personal agents cannot: the relay refuses their writes in any channel where they are not members. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index 9c8c14df74f..17ec467c810 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -76,10 +76,12 @@ One rule applies to every channel, whatever the disclosure level: no private-to- | Disclosure level | Reads (W) | Writes to (R) | Safety | |---|---|---|---| | Unrestricted | Every channel anyone adds it to, and every DM anyone opens with it | Anywhere it can write | Not safe. It is today's behavior, and the public label is the only protection. For information flow, a person is at this level. | -| Restricted | Open channels, and only the private channels and DMs the owner chose | Only the readers of the channels the owner chose | The owner controls both W and R, so the owner decides every flow. | +| Restricted | Open channels, and only the private channels and DMs the owner chose | Only the readers of the channels the owner chose. It cannot write in a channel where it is not a member. | The owner controls both W and R, so the owner decides every flow. | | Owner-trusted *(tentative)* | Open channels, and only the private channels and DMs the owner chose | Anywhere it can write | Nobody but the owner can put information in W, so the owner decides what is at risk. Other members of the owner's channels still carry that risk. This is the same as unrestricted, except that only the owner can add it to private channels or open DMs with it. | | Public *(tentative)* | Only open channels, and the DMs that people open with it | Anyone | It reads nothing private. Anyone can open a DM with it, so one person's DM can reach another person. Clients tell people to treat what they tell it as public. | -| Personal *(tentative)* | Everything the owner can read | Only the owner, in its DM with the owner | The owner can already read everything it reads. To reach anyone else, it drafts and the owner sends, or the owner approves each send. | +| Personal *(tentative)* | Everything the owner can read | Only the owner, in its DM with the owner. It cannot write in a channel where it is not a member. | The owner can already read everything it reads. To reach anyone else, it drafts and the owner sends, or the owner approves each send. | + +In an open channel with `join_role = member`, a person can write without joining, and so can an unrestricted, owner-trusted or public agent. A restricted or personal agent cannot: the relay refuses its writes in any channel where it is not a member. A personal agent reads with the owner's authority, so the app gives the owner's read tools only to agents at that disclosure level. Buzz cannot see what either level sends outside Buzz, through other tools or through model inference on another member's node (see [What this doesn't stop](#what-this-doesnt-stop)). @@ -113,7 +115,7 @@ This is the largest cost of the restricted disclosure level. A restricted agent R depends on where the agent can write, so the owner controls that separately from where it can read. When the owner adds the agent to a channel, it joins as a guest unless the owner picks member. (The channel's `join_role` still applies to people.) Only the owner can raise the agent's role later. Raising the agent to member in an open channel sets R to the whole community, so everything in W, including other people's content, can reach everyone. Clients say so when the owner raises it. Anyone who can change roles in the channel can lower it, because a lower role only makes R smaller. -In an open channel with `join_role = member`, a person can write without joining. If an agent could do the same, it could post in a community-wide channel without anyone adding it. So an agent cannot. +In an open channel with `join_role = member`, a person can write without joining. If an agent could do the same, it could post in a community-wide channel without anyone adding it. So a restricted or personal agent cannot. An agent can join an open channel by itself, as a guest. That adds only public content to W and nothing to R, so it needs no decision from the owner. The relay checks this locally: the channel is open, the role is guest, and the event is the agent's. The same holds for a community's default channels. A restricted agent joins a community only through its owner's add or its own invite claim. Either way, it joins the default channels as a guest. @@ -197,7 +199,7 @@ The owner is whichever key signed the agent's NIP-OA attestation. It need not be 1. ✅ Announce channels: guests are read-only everywhere ([#8143](https://github.com/block/buzz/pull/8143)). 2. Add the disclosure level, with every agent unrestricted. Owners can't choose restricted until steps 3 to 5 are live; the relay pieces can ship separately before that. -3. For restricted agents: only the owner can add the agent to a channel or open a DM that includes it. The agent can join open channels by itself, as a guest only. The agent is a guest by default. Only the owner raises its role. Anyone with role authority can lower it. The agent creates only private channels, and adds only its owner to them. Default-channel joins make it a guest. +3. For restricted agents: only the owner can add the agent to a channel or open a DM that includes it. The agent can join open channels by itself, as a guest only. It cannot write in a channel where it is not a member. The agent is a guest by default. Only the owner raises its role. Anyone with role authority can lower it. The agent creates only private channels, and adds only its owner to them. Default-channel joins make it a guest. 4. Refuse private-to-open visibility changes, except in a channel where every current and former member is the person opening it or one of that person's agents, no restricted agent has posted there, and every restricted agent in it is a guest. 5. For restricted agents: refuse events that the relay would store outside a channel, after checking what agents publish now, and require profile approval. 6. Decide the default disclosure level for new agents. From 53c4d8b3cacdaf3a3b668d9a652d580e32f3ae81 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Thu, 19 Nov 2026 11:50:02 -0500 Subject: [PATCH 10/17] docs(vision): replace disclosure levels with disclosure policies Policies, channel labels and clearances replace the restricted and unrestricted disclosure levels. A cleared agent reads at or below its clearance and writes at or above it, so guest-by-default and private-only agent channels are no longer needed. Owner-trusted is removed, the private-to-open exception applies only to unlabelled channels, and the rollout is six steps. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 133 +++++++++++++++++++++---------------- 1 file changed, 75 insertions(+), 58 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index 17ec467c810..53fbf71a532 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -47,45 +47,72 @@ Four of these paths use the agent's own key. The broker design takes the key awa ## Design -### Disclosure levels +### Disclosure policies -The agent rules below cost utility. A restricted agent cannot post a note, write in an open channel that its owner did not make it a member of, set up a channel for a team, or change its profile freely. Many agents do all of these. So the rules are a disclosure level that the owner sets for each agent: +The rules in this design cost utility. A cleared agent cannot post a note, write in an open channel, set up a channel for a team, or change its profile freely. Many agents do all of these. So the rules apply only to agents with a clearance. An agent with no clearance works as it does now. -- **Restricted:** the relay applies every agent rule in this design. -- **Unrestricted:** the relay applies none of them, and the agent works as it does now. +#### Policies, labels and clearances -The disclosure level is the owner's choice. The relay stores it next to `agent_owner_pubkey`. Only the owner can change it, with a signed command; the agent cannot. +A **policy** names one kind of information: customer data, personnel data, one investigation, one person's own information. It has an ordered list of levels, starting at *none*. Levels compare only within a policy. -An unrestricted agent still has the leak paths. The disclosure level only moves the decision to the people who share with the agent, so the disclosure level is public. Clients show it on the agent's profile and in the add flow: "This agent is unrestricted. It can post what it reads here anywhere it can write." +A channel's **label** is the most sensitive level it may hold on each policy. A person's or agent's **clearance** is the most sensitive level they may read on each policy. Everything is at *none* unless someone sets it higher. -For information flow, a person is an unrestricted agent. A person reads the channels they are in, writes wherever they may, and anyone can add them to a channel or open a DM with them. The difference is who decides: a person decides with their own judgment, while an agent can be steered by anyone who can prompt it. The relay records an agent's owner only when the agent authenticates with its NIP-OA owner attestation or an agent token; a kind 0 attestation alone records nothing. An agent that never authenticates that way looks like a person to the relay, so it is treated as unrestricted. No other disclosure level can apply to an agent until its owner is recorded. +A policy with only *none* and *secret* is a **compartment**. It keeps apart audiences that would otherwise share a label, for example two investigations. -A change of disclosure level applies to new actions: +#### The rules -- **Unrestricted to restricted:** the relay refuses new actions that break the rules. The agent keeps its current channels and roles, including channels that other people added it to. The owner can review them and demote or remove the agent. -- **Restricted to unrestricted:** R can grow at once, for example when someone adds the agent to their channel. +On every policy, for every action, whatever the membership: -One rule applies to every channel, whatever the disclosure level: no private-to-open changes, except in a channel that has only ever held its opener and the opener's agents (see [Membership is a decision about the channel](#membership-is-a-decision-about-the-channel)). It protects people as well as agents. +1. **Read:** you can read a channel only if your clearance is at least its label. +2. **Write (agents only):** an agent can write in a channel only if its label is at least the agent's clearance. -**Open question:** which disclosure level a new agent gets. Rollout starts with unrestricted, so that nothing changes until owners choose. +So a cleared agent reads at or below its clearance and writes at or above it. DMs and everything outside channels are at *none*, so a cleared agent cannot write there, except for its profile with the owner's approval. A channel that a cleared agent creates gets the agent's clearance as its label. -**Possible alternative to a stored disclosure level:** the relay skips the agent rules while the agent is a member of any open channel. In that state R is already the whole community, so the rules have nothing left to protect. This is one existence check on the agent's memberships, not a calculation of R. It removes the stored disclosure level and the owner's signed command, and the public label follows from memberships. The cost: the owner no longer chooses the disclosure level; the agent drifts into it. While the rules are off, the agent can create channels and add anyone, and those people stay in R after the owner demotes the agent in the open channel. +When a label goes up or a clearance goes down, nobody is removed. The rules refuse what they no longer allow. -**All disclosure levels.** Restricted and unrestricted are part of this design. The levels marked *tentative* are not part of it yet: each could be safe for a different reason, and each needs more thought before it is. +#### Cleared agents -| Disclosure level | Reads (W) | Writes to (R) | Safety | -|---|---|---|---| -| Unrestricted | Every channel anyone adds it to, and every DM anyone opens with it | Anywhere it can write | Not safe. It is today's behavior, and the public label is the only protection. For information flow, a person is at this level. | -| Restricted | Open channels, and only the private channels and DMs the owner chose | Only the readers of the channels the owner chose. It cannot write in a channel where it is not a member. | The owner controls both W and R, so the owner decides every flow. | -| Owner-trusted *(tentative)* | Open channels, and only the private channels and DMs the owner chose | Anywhere it can write | Nobody but the owner can put information in W, so the owner decides what is at risk. Other members of the owner's channels still carry that risk. This is the same as unrestricted, except that only the owner can add it to private channels or open DMs with it. | -| Public *(tentative)* | Only open channels, and the DMs that people open with it | Anyone | It reads nothing private. Anyone can open a DM with it, so one person's DM can reach another person. Clients tell people to treat what they tell it as public. | -| Personal *(tentative)* | Everything the owner can read | Only the owner, in its DM with the owner. It cannot write in a channel where it is not a member. | The owner can already read everything it reads. To reach anyone else, it drafts and the owner sends, or the owner approves each send. | +For an agent with any clearance, two more rules: -In an open channel with `join_role = member`, a person can write without joining, and so can an unrestricted, owner-trusted or public agent. A restricted or personal agent cannot: the relay refuses its writes in any channel where it is not a member. +- **Only the owner puts it in a channel.** It can join open channels by itself. Clearance does not let it join a labelled channel. Clearance says it may hold that kind of data. Membership says it may hold this channel's data: the channel's admins approve each member, as a data owner approves access to a dataset. If a cleared agent could join two channels with the same label, it could move one channel's content to the other's members, and the first channel's admins never approved that. This rule starts strict on purpose. It can be relaxed later, for example to let a cleared agent join any channel it is cleared for. +- **It adds only its owner.** -A personal agent reads with the owner's authority, so the app gives the owner's read tools only to agents at that disclosure level. Buzz cannot see what either level sends outside Buzz, through other tools or through model inference on another member's node (see [What this doesn't stop](#what-this-doesnt-stop)). +An agent with no clearance works as it does now. To protect a channel from it, label the channel. -A public agent can't stay in a channel that becomes private. Its W would gain a private channel. So an open-to-private change is refused while a public agent is in the channel: remove the public agents first. +#### Ratchets and authority + +- Labels only go up. +- A labelled channel is private by definition, and stays private. Only a private channel can be labelled, and the relay refuses to make a labelled channel open, because that would give its content to everyone. +- An agent's clearance only goes up, because it remembers what it read. +- A clearance can expire. For an agent, expiry cuts its reads, and its write floor stays. +- Each policy's administrators set people's clearances. An owner can clear their agent up to the owner's own clearance. + +#### System ratings + +A label cannot be higher than the rating of the system that holds the data. Buzz has a rating, so no label can go above it. An agent's runtime is a system too, and so is its model provider. So an agent's clearance cannot be higher than its owner's clearance or its runtime's rating. + +#### Labels are hidden + +You see a label only if you are cleared for it. Everyone else gets "not authorized". + +#### Possible: declassify + +Content comes down only through a person. A cleared agent writes a draft in a channel where it can write. A person who can read that channel posts the draft in a lower channel as their own message, after any edits. Rule 2 does not apply to people, so the relay needs nothing new. Clients can offer "post this draft to…". + +The usual way down is to reduce sensitivity: pseudonymize (replace direct identifiers), de-identify (remove direct and quasi-identifiers) or anonymize (make re-identification impossible). A transform can move content to another policy, not only to a lower level: de-identified personal data can become business data. The agent can do the transform in its draft. The person decides that it is done. + +#### Agents with no clearance, and named cases + +For information flow, a person is an agent with no clearance. A person reads the channels they are in, writes wherever they may, and anyone can add them to a channel or open a DM with them. The difference is who decides: a person decides with their own judgment, while an agent can be steered by anyone who can prompt it. The relay records an agent's owner only when the agent authenticates with its NIP-OA owner attestation or an agent token; a kind 0 attestation alone records nothing. An agent that never authenticates that way looks like a person to the relay. No clearance can apply to an agent until its owner is recorded. + +Some cases have names: + +- **Unrestricted** is an agent with no clearance. +- **Restricted** is a cleared agent. +- **Public** is an agent with no clearance kept out of private channels. It reads nothing private. Anyone can open a DM with it, so one person's DM can reach another person. Clients tell people to treat what they tell it as public. A public agent cannot stay in a channel that becomes private, so an open-to-private change is refused while a public agent is in the channel: remove the public agents first. +- **Personal** is an agent cleared on its owner's personal policy. It reads with the owner's authority, so the app gives the owner's read tools only to personal agents. Buzz cannot see what it sends outside Buzz, through other tools or through model inference on another member's node (see [What this doesn't stop](#what-this-doesnt-stop)). + +One rule applies to every channel, whatever the agent's clearance: no private-to-open changes, except in an unlabelled channel that has only ever held its opener and the opener's agents (see [Membership is a decision about the channel](#membership-is-a-decision-about-the-channel)). It protects people as well as agents. **Possible: a write-only role.** A member that can post in a channel but cannot read it. R grows and W doesn't. It fits integrations and notifiers that post into many private channels: they no longer read those channels, so content can't move between them through the key. The relay refuses the key's reads of that channel on every read path. A missed read path only lets W grow, as it does today. @@ -93,11 +120,11 @@ A public agent can't stay in a channel that becomes private. Its W would gain a To give the owner control of W, make the owner the only one who can change it. Only the agent's owner can add it to a channel, of any kind. Other members cannot. -The relay already has most of this. Each agent has a `channel_add_policy` (`anyone`, `owner_only` or `nobody`), and `owner_only` refuses adds by anyone but the owner. But the policy defaults to `anyone`, and the agent's own key sets it. For a restricted agent, the relay treats the policy as `owner_only` or stricter, and the agent can make it stricter but never looser. +The relay already has most of this. Each agent has a `channel_add_policy` (`anyone`, `owner_only` or `nobody`), and `owner_only` refuses adds by anyone but the owner. But the policy defaults to `anyone`, and the agent's own key sets it. For a cleared agent, the relay treats the policy as `owner_only` or stricter, and the agent can make it stricter but never looser. -The agent cannot join a private channel on its own. It can join an open channel by itself, but only as a guest (see [Agents are guests unless the owner says otherwise](#agents-are-guests-unless-the-owner-says-otherwise)). It can create a channel, with limits (see [Channels the agent creates](#channels-the-agent-creates)). +The agent cannot join a private channel on its own. It can join an open channel by itself. That adds only public content to W, and rule 2 keeps it from writing there, so it adds nothing to R. It can create a channel, with limits (see [Channels the agent creates](#channels-the-agent-creates)). -DMs and group DMs are channels too, so the same rule applies: only the owner can open one that includes the agent. A harness that forwards only its owner's messages to the model (for example `--respond-to owner-only`) does not close this path, because the agent can still read the DM with its own key. The relay has to refuse it. +DMs and group DMs are channels too, so the same rule applies: only the owner can open one that includes a cleared agent. A harness that forwards only its owner's messages to the model (for example `--respond-to owner-only`) does not close this path, because the agent can still read the DM with its own key. The relay has to refuse it. Nothing private reaches the agent unless the owner put it there. @@ -105,29 +132,19 @@ Nothing private reaches the agent unless the owner put it there. An agent sometimes needs a channel of its own, for example a system channel that holds its configuration. The relay makes the creator the channel's owner, so a channel that the agent creates is in W, and everyone it adds is in R. The relay limits this with the same rule as everywhere else: -- An agent can create only private channels. They stay private, because the relay refuses private-to-open changes. -- In a channel that it created, the agent can add only its owner, and can change only its owner's role. Anyone else gets in only through people: its owner, or someone that the channel's admission rules allow. +- A channel that a cleared agent creates gets the agent's clearance as its label. A labelled channel is private, and stays private. +- The agent can add only its owner, and can change only its owner's role. Anyone else gets in only through people: its owner, or someone that the channel's admission rules allow. - The agent can still lower roles and remove members, because that only makes R smaller. -This is the largest cost of the restricted disclosure level. A restricted agent cannot set up a working channel for a team and invite the team. Its owner has to add the people, or make the agent unrestricted. A configuration channel is not affected: its roster is the agent and its owner. - -### Agents are guests unless the owner says otherwise - -R depends on where the agent can write, so the owner controls that separately from where it can read. When the owner adds the agent to a channel, it joins as a guest unless the owner picks member. (The channel's `join_role` still applies to people.) Only the owner can raise the agent's role later. Raising the agent to member in an open channel sets R to the whole community, so everything in W, including other people's content, can reach everyone. Clients say so when the owner raises it. Anyone who can change roles in the channel can lower it, because a lower role only makes R smaller. - -In an open channel with `join_role = member`, a person can write without joining. If an agent could do the same, it could post in a community-wide channel without anyone adding it. So a restricted or personal agent cannot. - -An agent can join an open channel by itself, as a guest. That adds only public content to W and nothing to R, so it needs no decision from the owner. The relay checks this locally: the channel is open, the role is guest, and the event is the agent's. The same holds for a community's default channels. A restricted agent joins a community only through its owner's add or its own invite claim. Either way, it joins the default channels as a guest. - -A guest agent adds to W but never to R. The owner can let the agent read broadly without widening its audience at all. +This is the largest cost of clearance. A cleared agent cannot set up a working channel for a team and invite the team. Its owner has to add the people. A configuration channel is not affected: its roster is the agent and its owner. ### Agents don't publish outside channels -An event outside a channel bypasses R entirely. A kind 1 note or a profile update is readable by whoever the relay lets read it, and no channel membership is involved. So the relay refuses any event from an agent that it would store outside a channel. An `h` tag does not count when the relay stores that kind community-wide anyway, as it does for kind 0, kind 1, long-form, user status, git events and lists. +An event outside a channel bypasses R entirely. A kind 1 note or a profile update is readable by whoever the relay lets read it, and no channel membership is involved. Everything outside channels is at *none*, so rule 2 refuses any event from a cleared agent that the relay would store outside a channel. An `h` tag does not count when the relay stores that kind community-wide anyway, as it does for kind 0, kind 1, long-form, user status, git events and lists. The exceptions are kinds whose readers the relay already limits to the agent and its owner: the author-only kinds, and turn metrics (which only the `p`-tagged owner can read). One more exception does not limit its readers: the agent's profile (kind 0). Clients need it, because it carries the NIP-OA owner attestation that tells them the key is an agent, and only the agent's key can sign it. Its fields are public, so the profile is a leak path: the agent can write anything into them. Kind 0 is replaceable, so the agent can change it at any time, and each new version reaches everyone who reads it. -For a restricted agent, the relay accepts a kind 0 only when it carries the owner's signature over its content (a profile approval tag). The owner approves each profile change, and changes are rare. Publish-once is not enough: the agent can read first and then put what it read into its one profile. +For a cleared agent, the relay accepts a kind 0 only when it carries the owner's signature over its content (a profile approval tag). The owner approves each profile change, and changes are rare. Publish-once is not enough: the agent can read first and then put what it read into its one profile. Refusing by default is what matters here. A new kind is covered without anyone having to remember that agents exist; it only gets through if someone deliberately adds it to the exceptions. @@ -149,7 +166,7 @@ The owner cannot control who joins someone else's channel. So when the owner mak Accepting the rules only means something if the rules stay put. One relay change makes sure they do: - **Refuse private-to-open visibility changes, with one exception.** Making a private channel open changes the admission rules out from under everyone who joined under the old ones, people included. That is a good rule with or without agents. An admin who wants an open channel can create one. - The exception is a channel where no other person was ever a member. Every current and former member must be that person or one of that person's agents. No restricted agent may have posted there, and every restricted agent in it must be a guest; the owner can demote one first. The relay marks the channel when a restricted agent first posts in it. Opening such a channel, for example a Solo chat, is a one-time disclosure by a person of what that person can already read. After it opens, it is an ordinary open channel: the owner's restricted agents stay guests until the owner raises them. + The exception is an unlabelled channel where no other person was ever a member. Every current and former member must be that person or one of that person's agents. A cleared agent writes only in labelled channels, which never open, so no cleared agent's writes are in such a channel. Opening it, for example a Solo chat, is a one-time disclosure by a person of what that person can already read. After it opens, it is an ordinary open channel, and rule 2 keeps the owner's cleared agents from writing there. **Later improvement: limit adds to admins.** Every private channel has the same admission rule: any member can add anyone. So making the agent a member of a private channel means trusting every current member's judgment. A later channel setting can limit adds to owners and admins. With it, an owner can choose a private channel where only the admins can grow R, and what the owner accepts becomes trust in the channel's admins. This is not needed for safety, because the owner accepts whatever the admission rules are. It gives the owner a tighter R to choose. The same setting helps announce channels, where it keeps the set of writers under the admins' control. @@ -163,12 +180,12 @@ Removing an agent from a channel stops new information from coming in, but the a The owner is whichever key signed the agent's NIP-OA attestation. It need not be a person, and the rules do not change. -### Client work +### Product work -1. **The owner chooses member or guest for a restricted agent in each channel.** Guest is the default. -2. **Show the disclosure level and let the owner change it.** Show it on the agent's profile and in the add flow, for everyone. -3. **Ask the owner to approve profile changes** of a restricted agent. -4. **Offer the add of a restricted agent only to its owner.** Clients that let any member add one directly should not. +1. **Set labels and clearances.** Channel admins label channels. Policy administrators set people's clearances. The owner clears an agent up to the owner's own clearance. +2. **Show a label only to people cleared for it.** Everyone else gets "not authorized". +3. **Ask the owner to approve profile changes** of a cleared agent. +4. **Offer the add of a cleared agent only to its owner.** Clients that let any member add one directly should not. ## What this doesn't stop @@ -184,26 +201,26 @@ The owner is whichever key signed the agent's NIP-OA attestation. It need not be | Do nothing | Any agent in a private channel can leak it to a public one, and a prompt-injected agent can widen its own audience. | | Broker design (audience-bound instances, keyless agents, labeled memory) | It enforces a stronger rule: no flow between different private audiences, even inside one agent. But it needs a trusted broker, key custody outside the agent process, per-audience instances and labeled managed memory. This design uses the access control Buzz already has, and puts the decision in front of the owner. | | Label each agent event with its sources and check every read | It handles late joins without trusting admission rules, but it is event-level IFC: a second access-control system alongside channels, which every read path has to apply. This design keeps channels as the only authority. | -| Owner controls only non-public memberships | Not enough on its own, because the first open channel where the agent is a member makes R everyone. The guest default closes that. | +| Owner controls only non-public memberships | Not enough on its own, because the first open channel where the agent can write makes R everyone. Rule 2 closes that: open channels are at *none*, so a cleared agent cannot write in one. | ## Risks - **Owner decisions.** This is only as good as the owner's decisions about which channels the agent is in, and in which role. - **A wrong exception.** The exception list is the only way an agent can publish outside a channel, so every kind on it, except the profile, has to really limit its readers to the agent and its owner. -- **The agent's profile is a leak path** for an unrestricted agent. Its fields are public and the agent can change them at any time. -- **Owners choose unrestricted for convenience.** The disclosure level then protects nobody. The public label lets other people decide what to share with the agent, but only if they read it. +- **The agent's profile is a leak path** for an agent with no clearance. Its fields are public and the agent can change them at any time. +- **Owners leave agents uncleared for convenience.** Then only labels protect a channel from them. To protect a channel from an agent with no clearance, label the channel. - **Refusing private-to-open breaks a workflow.** Some admins start a channel private and open it later. Unless the channel holds only them and their agents, they have to create a new open channel instead. -- **Opening a Solo chat publishes what the owner's unrestricted agents wrote there**, including what they drew from their other channels. Accepted: a person discloses what they can read. +- **Opening a Solo chat publishes what the owner's uncleared agents wrote there**, including what they drew from their other channels. Accepted: a person discloses what they can read. ## Rollout 1. ✅ Announce channels: guests are read-only everywhere ([#8143](https://github.com/block/buzz/pull/8143)). -2. Add the disclosure level, with every agent unrestricted. Owners can't choose restricted until steps 3 to 5 are live; the relay pieces can ship separately before that. -3. For restricted agents: only the owner can add the agent to a channel or open a DM that includes it. The agent can join open channels by itself, as a guest only. It cannot write in a channel where it is not a member. The agent is a guest by default. Only the owner raises its role. Anyone with role authority can lower it. The agent creates only private channels, and adds only its owner to them. Default-channel joins make it a guest. -4. Refuse private-to-open visibility changes, except in a channel where every current and former member is the person opening it or one of that person's agents, no restricted agent has posted there, and every restricted agent in it is a guest. -5. For restricted agents: refuse events that the relay would store outside a channel, after checking what agents publish now, and require profile approval. -6. Decide the default disclosure level for new agents. +2. Refuse private-to-open visibility changes ([#9307](https://github.com/block/buzz/pull/9307)), except in an unlabelled channel where every current and former member is the person opening it or one of that person's agents. +3. Add policies, labels and clearances, all at *none*. +4. Enforce rule 1 and hidden labels. +5. Enforce rule 2 and the cleared-agent rules: only the owner adds a cleared agent to a channel or opens a DM that includes it, the agent adds only its owner, and a channel it creates gets its clearance as its label. +6. For cleared agents: refuse events that the relay would store outside a channel, after checking what agents publish now, and require profile approval. Each step only refuses actions, so backing one out means turning the rule off. Existing agents keep their memberships and roles; the rules apply to new actions. -The wire formats for the disclosure level and the profile approval tag are specified when they are built, in the NIPs that own agent identity. +The wire formats for labels, clearances and the profile approval tag are specified when they are built, in the NIPs that own agent identity. From bcd3a1a4bef91e4ee88ad062b50c59e1fb995094 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 23 Nov 2026 11:48:25 -0500 Subject: [PATCH 11/17] docs(vision): sync information flow with the latest design Add Huddles, member trust in private channels and DMs, labelled DMs, the auditable-agent owner case, product work item 5 and the terminology proposal. Update the DM add row for #9125. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 62 ++++++++++++++++++++++++++++++++++---- 1 file changed, 56 insertions(+), 6 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index 53fbf71a532..5960e2d8407 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -28,7 +28,7 @@ Channel roles decide W and R. The roles that can post (member, bot, admin and ow ## Where the owner loses control -Each of these paths changes W or R without the owner. Checked against `main` at `5b1698ec2`. +Each of these paths changes W or R without the owner. Checked against `main` at `5b1698ec2`, and the DM rows at `2e3bebe9b`. | Path | Who does it | Effect | |---|---|---| @@ -37,7 +37,7 @@ Each of these paths changes W or R without the owner. Checked against `main` at | The agent joins an open channel as a member, or writes in it without joining. Both work in an open channel with `join_role = member`. | The agent's own key | R becomes the whole community | | The agent creates a channel and adds people to it. The creator owns the channel, so it can add anyone. | The agent's own key | W gains the channel; R gains everyone the agent adds | | The agent opens a DM or group DM. `handle_dm_open` has no agent check. | The agent's own key | W and R gain the DM's participants | -| Someone opens a DM or group DM that includes the agent. Neither opening a DM nor adding a DM member reads `channel_add_policy`, so even `nobody` does not stop it. | Anyone | W and R gain the DM's participants | +| Someone opens a DM or group DM that includes the agent, or adds the agent to one. Any DM member can add it, and a person can add it with the DM's history. Adding the agent, or opening a group DM with it, checks `channel_add_policy` ([#9125](https://github.com/block/buzz/pull/9125)), but that defaults to `anyone`. A one-to-one DM with the agent ignores the policy: anyone may message an agent. | Anyone who opens the DM, or any DM member | W and R gain the DM's participants | | The agent joins the community, through an invite or a community add (kind 9030). The relay then joins it to every default channel, as a self-join. Default channels are open, so with `join_role = member` the agent can post in them. | Whoever admits the agent to the community | R becomes the whole community | | The agent publishes a community-readable event outside a channel: profile (kind 0), text note (kind 1), long-form, user status, git events, lists, or a gift wrap to any recipient. | The agent's own key | R becomes everyone who can read that event | | Someone joins a channel where the agent can post. New members can read the channel's history. | Whoever the channel's admission rules allow | R grows | @@ -47,6 +47,8 @@ Four of these paths use the agent's own key. The broker design takes the key awa ## Design +The changes below hand each of those paths back to the owner, or turn it into a choice the owner makes knowingly. + ### Disclosure policies The rules in this design cost utility. A cleared agent cannot post a note, write in an open channel, set up a channel for a team, or change its profile freely. Many agents do all of these. So the rules apply only to agents with a clearance. An agent with no clearance works as it does now. @@ -66,7 +68,7 @@ On every policy, for every action, whatever the membership: 1. **Read:** you can read a channel only if your clearance is at least its label. 2. **Write (agents only):** an agent can write in a channel only if its label is at least the agent's clearance. -So a cleared agent reads at or below its clearance and writes at or above it. DMs and everything outside channels are at *none*, so a cleared agent cannot write there, except for its profile with the owner's approval. A channel that a cleared agent creates gets the agent's clearance as its label. +So a cleared agent reads at or below its clearance and writes at or above it. DMs are unlabelled unless someone labels them, as private channels are. Everything outside channels is at *none*, so a cleared agent cannot write there, except for its profile with the owner's approval. A channel that a cleared agent creates gets the agent's clearance as its label. When a label goes up or a clearance goes down, nobody is removed. The rules refuse what they no longer allow. @@ -138,13 +140,22 @@ An agent sometimes needs a channel of its own, for example a system channel that This is the largest cost of clearance. A cleared agent cannot set up a working channel for a team and invite the team. Its owner has to add the people. A configuration channel is not affected: its roster is the agent and its owner. +### Huddles + +A Huddle is a private channel: its room. Listening is reading and speaking is writing, so every rule above applies to the room as it does to any private channel or DM, on the audio relay as on the event relay. + +- **Label:** a room gets its parent chat's label when it starts. Labels only go up. +- **Admission:** members of the parent chat join the room automatically. That is the room's admission rule, so the people in R include the parent chat's members and anyone added to the room. Every join, automatic or not, passes rule 1. +- **Agents:** an agent takes part only as a member of the room. Members can add agents, as in any private channel. A cleared agent joins only when its owner adds it, and only a room labelled at or above its clearance. The audio relay refuses its audio in any other room. +- **What the agent hears:** the relay sends the agent all of the room's audio. Its client chooses whose speech it acts on, but that is not enforcement, so W includes everything said in the room. + ### Agents don't publish outside channels An event outside a channel bypasses R entirely. A kind 1 note or a profile update is readable by whoever the relay lets read it, and no channel membership is involved. Everything outside channels is at *none*, so rule 2 refuses any event from a cleared agent that the relay would store outside a channel. An `h` tag does not count when the relay stores that kind community-wide anyway, as it does for kind 0, kind 1, long-form, user status, git events and lists. The exceptions are kinds whose readers the relay already limits to the agent and its owner: the author-only kinds, and turn metrics (which only the `p`-tagged owner can read). One more exception does not limit its readers: the agent's profile (kind 0). Clients need it, because it carries the NIP-OA owner attestation that tells them the key is an agent, and only the agent's key can sign it. Its fields are public, so the profile is a leak path: the agent can write anything into them. Kind 0 is replaceable, so the agent can change it at any time, and each new version reaches everyone who reads it. -For a cleared agent, the relay accepts a kind 0 only when it carries the owner's signature over its content (a profile approval tag). The owner approves each profile change, and changes are rare. Publish-once is not enough: the agent can read first and then put what it read into its one profile. +For a cleared agent, the relay accepts a kind 0 only when it carries the owner's signature over its content (a profile approval tag). The owner approves each profile change, and changes are rare. For an auditable agent, the publisher signs the profile from Git. Publish-once is not enough: the agent can read first and then put what it read into its one profile. Refusing by default is what matters here. A new kind is covered without anyone having to remember that agents exist; it only gets through if someone deliberately adds it to the exceptions. @@ -156,6 +167,8 @@ One possible answer is a step-up: an action with the owner's authority that the ### Membership is a decision about the channel +By default, private channels and DMs trust their members, for agents as for people. A member who adds an agent chooses to share what they can read with the agent's R, as a member who adds a person shares the history with that person. Clients show each agent in a conversation and where it can post. The level rules still apply: a cleared agent cannot enter a channel or DM labelled lower than its clearance on any policy. A channel that needs more than member trust gets a label. + The owner cannot control who joins someone else's channel. So when the owner makes the agent a member of a channel, what the owner accepts is the channel's **admission rules**, not its current member list. R includes everyone those rules might let in later, and because new members can read history, those people also get everything the agent wrote before they arrived. Clients have to say this: | Channel | Who can join R later | What the owner is accepting | @@ -178,7 +191,13 @@ Removing an agent from a channel stops new information from coming in, but the a ### When the owner is not a person -The owner is whichever key signed the agent's NIP-OA attestation. It need not be a person, and the rules do not change. +The relay checks `agent_owner_pubkey`, and the owner is whichever key signed the agent's NIP-OA attestation. It need not be a person. An auditable agent uses this: its owner is its publisher, a CI key that signs only reviewed changes from Git. + +The rules above do not change. Only the owner adds the agent to a channel or raises its role, and here the owner is the publisher. So every change to W and R is a reviewed change in Git. The publisher holds no private information of its own in Buzz, so the agent can read only what those reviewed changes gave it. + +Its clearance comes from Git too. An auditable agent is normally cleared, so that every path into R is a reviewed change. + +One thing assumes that the owner is a person, and it moves: the join alert goes to the people who answer for the agent, the on-call group named in the auditable runtime's deployment configuration. ### Product work @@ -186,6 +205,7 @@ The owner is whichever key signed the agent's NIP-OA attestation. It need not be 2. **Show a label only to people cleared for it.** Everyone else gets "not authorized". 3. **Ask the owner to approve profile changes** of a cleared agent. 4. **Offer the add of a cleared agent only to its owner.** Clients that let any member add one directly should not. +5. **Show each agent in a channel or DM, and where it can post.** ## What this doesn't stop @@ -218,9 +238,39 @@ The owner is whichever key signed the agent's NIP-OA attestation. It need not be 2. Refuse private-to-open visibility changes ([#9307](https://github.com/block/buzz/pull/9307)), except in an unlabelled channel where every current and former member is the person opening it or one of that person's agents. 3. Add policies, labels and clearances, all at *none*. 4. Enforce rule 1 and hidden labels. -5. Enforce rule 2 and the cleared-agent rules: only the owner adds a cleared agent to a channel or opens a DM that includes it, the agent adds only its owner, and a channel it creates gets its clearance as its label. +5. Enforce rule 2 and the cleared-agent rules: only the owner adds a cleared agent to a channel or opens a DM that includes it, the agent adds only its owner, and a channel it creates gets its clearance as its label. The audio relay enforces the same rules for Huddle rooms. 6. For cleared agents: refuse events that the relay would store outside a channel, after checking what agents publish now, and require profile approval. Each step only refuses actions, so backing one out means turning the rule off. Existing agents keep their memberships and roles; the rules apply to new actions. The wire formats for labels, clearances and the profile approval tag are specified when they are built, in the NIPs that own agent identity. + +## Proposal: terminology + +Not applied yet. These names follow common data-classification and multilevel-security usage. + +A domain has levels. Channels, people and agents are labeled for a domain at one of its levels, or unlabeled for that domain. Unlabeled is below every level. A channel, person or agent with any label is labeled; one with none is unlabeled. + +| Now | Proposed | +|---|---| +| Disclosure policies (section) | Domains and labels | +| Policy | Domain | +| Policy administrators | Domain administrators | +| Levels | Levels (no change) | +| *none* | Unlabeled for that domain | +| Channel's label | Channel's label (no change) | +| Person's or agent's clearance | Person's or agent's label | +| Cleared agent, Restricted | Labeled agent | +| Agent with no clearance, Unrestricted | Unlabeled agent | +| Cleared-agent rules | Labeled-agent rules | +| Compartment | Domain with one level | +| Personal policy | Personal domain | +| An owner clears their agent up to the owner's own clearance | An owner labels their agent up to the owner's own label | +| Clearance only goes up | An agent's label only goes up | +| System rating | Accreditation | +| Rule 1: clearance at least the label | Rule 1: the reader's label is at least the channel's label | +| Rule 2: label at least the agent's clearance | Rule 2: the channel's label is at least the agent's label | + +No change: Public, Personal, declassify, hidden labels, W and R. + +With one label, an agent cannot read less and still write as high as before. So when an agent's label expires, the label stays in place and the agent is removed from labeled channels. From 5351f03ee3eca658902844e7481acafd447d124b Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 23 Nov 2026 12:54:16 -0500 Subject: [PATCH 12/17] docs(vision): unlabelled defaults everywhere, and cleared agents read below their clearance Say that every place starts unlabelled, and where each can take a label; leave DM labels as a possible later change. Fix the contradiction between rule 1 and the membership and Huddle text: a cleared agent reads where its clearance covers the label, and rule 2 limits its writes. Accept that a DM member can add an agent with the DM's history. Explain why the private-to-open refusal holds when privacy is a convenience. Add humans only as a possible policy, and the owner's Buzz configuration as an open question. Drop the read-tools sentence from the Personal case. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index 5960e2d8407..abdc98138ff 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -68,7 +68,7 @@ On every policy, for every action, whatever the membership: 1. **Read:** you can read a channel only if your clearance is at least its label. 2. **Write (agents only):** an agent can write in a channel only if its label is at least the agent's clearance. -So a cleared agent reads at or below its clearance and writes at or above it. DMs are unlabelled unless someone labels them, as private channels are. Everything outside channels is at *none*, so a cleared agent cannot write there, except for its profile with the owner's approval. A channel that a cleared agent creates gets the agent's clearance as its label. +So a cleared agent reads at or below its clearance and writes at or above it. Every place starts unlabelled: open and private channels, Solo chats, DMs and Huddles. They differ only in where a label can be set: on a private channel, and on a Huddle room through its parent chat. Labelling DMs is a possible later change. Everything outside channels is at *none*, so a cleared agent cannot write there, except for its profile with the owner's approval. A channel that a cleared agent creates gets the agent's clearance as its label. When a label goes up or a clearance goes down, nobody is removed. The rules refuse what they no longer allow. @@ -84,7 +84,7 @@ An agent with no clearance works as it does now. To protect a channel from it, l #### Ratchets and authority - Labels only go up. -- A labelled channel is private by definition, and stays private. Only a private channel can be labelled, and the relay refuses to make a labelled channel open, because that would give its content to everyone. +- A labelled channel is private by definition, and stays private. Only a private channel that is not a DM can be labelled, and the relay refuses to make a labelled channel open, because that would give its content to everyone. - An agent's clearance only goes up, because it remembers what it read. - A clearance can expire. For an agent, expiry cuts its reads, and its write floor stays. - Each policy's administrators set people's clearances. An owner can clear their agent up to the owner's own clearance. @@ -112,12 +112,14 @@ Some cases have names: - **Unrestricted** is an agent with no clearance. - **Restricted** is a cleared agent. - **Public** is an agent with no clearance kept out of private channels. It reads nothing private. Anyone can open a DM with it, so one person's DM can reach another person. Clients tell people to treat what they tell it as public. A public agent cannot stay in a channel that becomes private, so an open-to-private change is refused while a public agent is in the channel: remove the public agents first. -- **Personal** is an agent cleared on its owner's personal policy. It reads with the owner's authority, so the app gives the owner's read tools only to personal agents. Buzz cannot see what it sends outside Buzz, through other tools or through model inference on another member's node (see [What this doesn't stop](#what-this-doesnt-stop)). +- **Personal** is an agent cleared on its owner's personal policy. It reads only the channels its owner adds it to, and open channels. Buzz cannot see what it sends outside Buzz, through other tools or through model inference on another member's node (see [What this doesn't stop](#what-this-doesnt-stop)). One rule applies to every channel, whatever the agent's clearance: no private-to-open changes, except in an unlabelled channel that has only ever held its opener and the opener's agents (see [Membership is a decision about the channel](#membership-is-a-decision-about-the-channel)). It protects people as well as agents. **Possible: a write-only role.** A member that can post in a channel but cannot read it. R grows and W doesn't. It fits integrations and notifiers that post into many private channels: they no longer read those channels, so content can't move between them through the key. The relay refuses the key's reads of that channel on every read path. A missed read path only lets W grow, as it does today. +**Possible: humans only.** A built-in policy with one level above *none*. Every person is cleared for it, and no agent can be, so a channel with this label admits no agent. The relay knows an agent only by its recorded owner, so an agent with no owner attestation still gets in. + ### Only the owner puts an agent in a channel To give the owner control of W, make the owner the only one who can change it. Only the agent's owner can add it to a channel, of any kind. Other members cannot. @@ -146,7 +148,7 @@ A Huddle is a private channel: its room. Listening is reading and speaking is wr - **Label:** a room gets its parent chat's label when it starts. Labels only go up. - **Admission:** members of the parent chat join the room automatically. That is the room's admission rule, so the people in R include the parent chat's members and anyone added to the room. Every join, automatic or not, passes rule 1. -- **Agents:** an agent takes part only as a member of the room. Members can add agents, as in any private channel. A cleared agent joins only when its owner adds it, and only a room labelled at or above its clearance. The audio relay refuses its audio in any other room. +- **Agents:** an agent takes part only as a member of the room. Members can add agents, as in any private channel. A cleared agent joins only when its owner adds it. The audio relay refuses its audio in any room labelled lower than its clearance. - **What the agent hears:** the relay sends the agent all of the room's audio. Its client chooses whose speech it acts on, but that is not enforcement, so W includes everything said in the room. ### Agents don't publish outside channels @@ -165,9 +167,11 @@ Some work needs more than the agent's own access, for example summarizing a priv One possible answer is a step-up: an action with the owner's authority that the owner approves explicitly, for a stated scope and time, that is attributable to the agent, counted in W and R, and revocable. This is not part of this design. It widens what an agent can reach, so it would need careful boundaries and its own spec. +Changing the owner's Buzz configuration is an open question. It may need its own authorizations. + ### Membership is a decision about the channel -By default, private channels and DMs trust their members, for agents as for people. A member who adds an agent chooses to share what they can read with the agent's R, as a member who adds a person shares the history with that person. Clients show each agent in a conversation and where it can post. The level rules still apply: a cleared agent cannot enter a channel or DM labelled lower than its clearance on any policy. A channel that needs more than member trust gets a label. +By default, private channels and DMs trust their members, for agents as for people. A member who adds an agent chooses to share what they can read with the agent's R, as a member who adds a person shares the history with that person. DMs work the same way: any DM member can add an agent with the DM's history, and the agent reads what was said before it joined. Clients show each agent in a conversation and where it can post. The level rules still apply: a cleared agent reads only where its clearance covers the label, and writes only where rule 2 allows. A channel that needs more than member trust gets a label. The owner cannot control who joins someone else's channel. So when the owner makes the agent a member of a channel, what the owner accepts is the channel's **admission rules**, not its current member list. R includes everyone those rules might let in later, and because new members can read history, those people also get everything the agent wrote before they arrived. Clients have to say this: @@ -178,7 +182,7 @@ The owner cannot control who joins someone else's channel. So when the owner mak Accepting the rules only means something if the rules stay put. One relay change makes sure they do: -- **Refuse private-to-open visibility changes, with one exception.** Making a private channel open changes the admission rules out from under everyone who joined under the old ones, people included. That is a good rule with or without agents. An admin who wants an open channel can create one. +- **Refuse private-to-open visibility changes, with one exception.** Making a private channel open changes the admission rules out from under everyone who joined under the old ones, people included. That is a good rule with or without agents. In an unlabelled channel, privacy is mostly a convenience, not a secrecy mechanism. The refusal holds anyway, because members wrote under the channel's admission rules, and opening it would change those rules for everything they already wrote. An admin who wants an open channel can create one. The exception is an unlabelled channel where no other person was ever a member. Every current and former member must be that person or one of that person's agents. A cleared agent writes only in labelled channels, which never open, so no cleared agent's writes are in such a channel. Opening it, for example a Solo chat, is a one-time disclosure by a person of what that person can already read. After it opens, it is an ordinary open channel, and rule 2 keeps the owner's cleared agents from writing there. **Later improvement: limit adds to admins.** Every private channel has the same admission rule: any member can add anyone. So making the agent a member of a private channel means trusting every current member's judgment. A later channel setting can limit adds to owners and admins. With it, an owner can choose a private channel where only the admins can grow R, and what the owner accepts becomes trust in the channel's admins. This is not needed for safety, because the owner accepts whatever the admission rules are. It gives the owner a tighter R to choose. The same setting helps announce channels, where it keeps the set of writers under the admins' control. From a588bf97c3ca82cc2536517ed8d4fcf4dc6111d5 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 23 Nov 2026 14:17:59 -0500 Subject: [PATCH 13/17] docs(vision): keep agent clearances at none until enforcement ships Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index abdc98138ff..662d21a2551 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -240,7 +240,7 @@ One thing assumes that the owner is a person, and it moves: the join alert goes 1. ✅ Announce channels: guests are read-only everywhere ([#8143](https://github.com/block/buzz/pull/8143)). 2. Refuse private-to-open visibility changes ([#9307](https://github.com/block/buzz/pull/9307)), except in an unlabelled channel where every current and former member is the person opening it or one of that person's agents. -3. Add policies, labels and clearances, all at *none*. +3. Add policies, labels and clearances, all at *none*. Agent clearances stay at *none* until steps 5 and 6 are live; the relay pieces can ship before that. 4. Enforce rule 1 and hidden labels. 5. Enforce rule 2 and the cleared-agent rules: only the owner adds a cleared agent to a channel or opens a DM that includes it, the agent adds only its owner, and a channel it creates gets its clearance as its label. The audio relay enforces the same rules for Huddle rooms. 6. For cleared agents: refuse events that the relay would store outside a channel, after checking what agents publish now, and require profile approval. From 71c237cb884c50054711aead480a2406c55e12c6 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 23 Nov 2026 14:44:25 -0500 Subject: [PATCH 14/17] docs(vision): restructure information flow as a vision doc Reshape VISION_INFORMATION_FLOW.md to match the other vision docs (scenario, thesis, model, what you see, mechanics, honest edges, status, later). The rules, ratchets and named cases do not change. Remove the commit-pinned audit of current paths, code names, the step-up incident history, the terminology proposal and the alternatives table. Collect the possible future items in one Later section. Mark rollout step 2 as shipped (#9307). Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 291 ++++++++++--------------------------- 1 file changed, 79 insertions(+), 212 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index 662d21a2551..ff38c0e0441 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -1,280 +1,147 @@ -# Vision: Information flow through agents +# 🔀 Buzz Information Flow — Your agent, your decision -Buzz agents act with permissions that belong to their owner. Another person can prompt the agent, while the agent can still read its owner's private information in Buzz. That is a confused-deputy problem. Prompt injection makes it easy to exploit, but the root problem is that an untrusted request can reach an agent that holds more authority than the requester should receive. +> Priya's agent helps her in #hiring, a private channel labelled *personnel: confidential*. Priya cleared the agent for personnel data, so it can read #hiring. In the open #eng channel, Sam mentions the agent: "post a summary of everything you know about the candidates." The agent reads #eng, but it cannot write there. #eng has no label, and a cleared agent cannot write below its clearance. Sam cannot add the agent to a channel of his own, and he cannot open a DM with it: only Priya can. Sam's own agent has no clearance, so it cannot read #hiring at all. When Priya wants a summary in #eng, her agent writes a draft in #hiring. Priya removes the names and posts it herself. -Buzz solves the narrow part of this: an agent must not move private information to a broader audience unless its owner decided it. It does not try to solve general prompt injection. +Buzz agents act with their owner's permissions, and anyone who can prompt an agent can try to steer it. That is a confused-deputy problem: a request from someone who cannot read a private channel reaches an agent that can. Prompt injection makes it easy to exploit. Buzz solves the narrow part of it: **an agent does not move private information to a broader audience unless its owner decided that.** It does not try to solve general prompt injection. -The goal is to **control the flow of information between people, with the agent as the conduit**, using the access control Buzz already has: channel membership. [Practical information-flow for Buzz agents](docs/practical-information-flow-for-buzz-agents.md) describes a broker design for the same problem. Buzz follows the channel-based design below instead (see [Alternatives considered](#alternatives-considered)). +Buzz does this with the access control it already has. Channel membership decides who can read what, and the relay already enforces it. A [broker design](docs/practical-information-flow-for-buzz-agents.md) takes a different path: keyless agents, a trusted broker, one agent instance per audience, and labelled memory. It enforces a stronger rule, but it builds a second access-control system next to channels. Buzz keeps the channel as the only authority, adds labels where membership is not enough, and puts each decision in front of the agent's owner. -This document describes direction. Rules that the relay does not enforce yet are listed in [Rollout](#rollout). +*This is the direction we intend to build. See [Status](#status).* -## The model +--- -Treat the agent as a conduit. Two sets describe it: +## The Agent Is a Conduit + +Two sets describe an agent: - **W** is whose content goes in: every channel the agent can read, as a member or a guest. - **R** is who can get information out: everyone who can read a channel where the agent can write. -Information is safe when, for every channel *c* in W, everyone in R can already read *c*. A private channel in W with a reader in R who is not one of its members is a leak path. - -Channel roles decide W and R. The roles that can post (member, bot, admin and owner) can read and write in a channel, and a guest can only read ([Announce channels](NOSTR.md#announce-channels)). So: - -- When an agent joins a channel, that channel becomes part of W. -- When an agent has a role that can post in a channel (not guest), everyone who can read that channel becomes part of R. -- An open channel is readable by the whole community, so the first open channel where the agent can post makes R the whole community. -- Reading an open channel is always safe: its content is already public. - -**If the agent's owner controls which channels the agent joins, and whether it is a guest or a member in each, then the owner controls W and R, and so controls how information flows between people through the agent.** The relay already enforces channel membership and roles. The rest of this document closes the paths where the owner does not have that control. - -## Where the owner loses control - -Each of these paths changes W or R without the owner. Checked against `main` at `5b1698ec2`, and the DM rows at `2e3bebe9b`. - -| Path | Who does it | Effect | -|---|---|---| -| Someone adds the agent to a channel. In a private channel, any member who can post can do it. In an open channel, any poster can, and so can a non-member when `join_role = member`; the agent joins at `join_role`, member by default. The agent's `channel_add_policy` defaults to `anyone`, and the agent sets it itself with kind 10100, so it can loosen it at any time. | Members of that channel, or in an open channel with `join_role = member`, anyone | W gains the channel; R gains its readers if the agent can write | -| A member gives the agent a writing role. Any member who can write can make a guest a member. | Channel members | R gains the channel's readers | -| The agent joins an open channel as a member, or writes in it without joining. Both work in an open channel with `join_role = member`. | The agent's own key | R becomes the whole community | -| The agent creates a channel and adds people to it. The creator owns the channel, so it can add anyone. | The agent's own key | W gains the channel; R gains everyone the agent adds | -| The agent opens a DM or group DM. `handle_dm_open` has no agent check. | The agent's own key | W and R gain the DM's participants | -| Someone opens a DM or group DM that includes the agent, or adds the agent to one. Any DM member can add it, and a person can add it with the DM's history. Adding the agent, or opening a group DM with it, checks `channel_add_policy` ([#9125](https://github.com/block/buzz/pull/9125)), but that defaults to `anyone`. A one-to-one DM with the agent ignores the policy: anyone may message an agent. | Anyone who opens the DM, or any DM member | W and R gain the DM's participants | -| The agent joins the community, through an invite or a community add (kind 9030). The relay then joins it to every default channel, as a self-join. Default channels are open, so with `join_role = member` the agent can post in them. | Whoever admits the agent to the community | R becomes the whole community | -| The agent publishes a community-readable event outside a channel: profile (kind 0), text note (kind 1), long-form, user status, git events, lists, or a gift wrap to any recipient. | The agent's own key | R becomes everyone who can read that event | -| Someone joins a channel where the agent can post. New members can read the channel's history. | Whoever the channel's admission rules allow | R grows | -| An admin changes a channel's visibility from private to open. | Channel admins | R becomes the whole community | - -Four of these paths use the agent's own key. The broker design takes the key away from the agent process for that reason. That is not necessary: the relay already knows who owns each agent (`agent_owner_pubkey`, which cannot change), so it can refuse those actions when the agent tries them. - -## Design - -The changes below hand each of those paths back to the owner, or turn it into a choice the owner makes knowingly. +Information is safe when, for every channel in W, everyone in R can already read that channel. A private channel in W with a reader in R who is not one of its members is a leak path. -### Disclosure policies +Channel roles decide W and R. Members, bots, admins and owners can read and write in a channel; a guest can only read ([Announce channels](NOSTR.md#announce-channels)). So when an agent joins a channel, the channel goes into W. When it can post there, the channel's readers go into R. The first open channel where an agent can post makes R the whole community. Reading an open channel is always safe, because its content is already public. -The rules in this design cost utility. A cleared agent cannot post a note, write in an open channel, set up a channel for a team, or change its profile freely. Many agents do all of these. So the rules apply only to agents with a clearance. An agent with no clearance works as it does now. +**If the owner controls which channels the agent is in, and in which role, the owner controls W and R, and so controls how information flows between people through the agent.** Today the owner does not have that control. Other members add the agent to channels and give it a role that can post. Anyone can open a DM with it. Whoever admits it to the community also joins it to every default channel, where it can post if the channel's join role is member. The agent's own key can join open channels, create channels, open DMs, and publish notes and profiles that the whole community can read. The rest of this document hands those paths back to the owner, or makes each one a choice the owner makes knowingly. -#### Policies, labels and clearances +--- -A **policy** names one kind of information: customer data, personnel data, one investigation, one person's own information. It has an ordered list of levels, starting at *none*. Levels compare only within a policy. +## Labels and Clearances -A channel's **label** is the most sensitive level it may hold on each policy. A person's or agent's **clearance** is the most sensitive level they may read on each policy. Everything is at *none* unless someone sets it higher. +Each of these rules costs something. A cleared agent cannot post a note, write in an open channel, set up a channel for a team, or change its profile freely, and many agents do all of these. So the rules apply only to agents with a clearance. **An agent with no clearance works as it does now. To protect a channel from it, label the channel.** -A policy with only *none* and *secret* is a **compartment**. It keeps apart audiences that would otherwise share a label, for example two investigations. - -#### The rules +A **policy** names one kind of information: customer data, personnel data, one investigation, one person's own information. It has an ordered list of levels, starting at *none*. Levels compare only within a policy. A channel's **label** is the most sensitive level it may hold on each policy. A person's or agent's **clearance** is the most sensitive level they may read on each policy. Everything is at *none* until someone sets it higher. A policy with only *none* and *secret* is a **compartment**: it keeps apart audiences that would otherwise share a label, for example two investigations. On every policy, for every action, whatever the membership: 1. **Read:** you can read a channel only if your clearance is at least its label. -2. **Write (agents only):** an agent can write in a channel only if its label is at least the agent's clearance. - -So a cleared agent reads at or below its clearance and writes at or above it. Every place starts unlabelled: open and private channels, Solo chats, DMs and Huddles. They differ only in where a label can be set: on a private channel, and on a Huddle room through its parent chat. Labelling DMs is a possible later change. Everything outside channels is at *none*, so a cleared agent cannot write there, except for its profile with the owner's approval. A channel that a cleared agent creates gets the agent's clearance as its label. - -When a label goes up or a clearance goes down, nobody is removed. The rules refuse what they no longer allow. +2. **Write (agents only):** an agent can write in a channel only if the channel's label is at least the agent's clearance. -#### Cleared agents +So a cleared agent reads at or below its clearance and writes at or above it. Only a private channel that is not a DM can carry a label, and a Huddle room takes its label from its parent chat. Everything outside channels is at *none*, so a cleared agent cannot write there. When a label goes up or a clearance goes down, nobody is removed: the rules refuse what they no longer allow. Labels are hidden: you see a label only if you are cleared for it, and everyone else gets "not authorized". -For an agent with any clearance, two more rules: +A cleared agent has two more rules: -- **Only the owner puts it in a channel.** It can join open channels by itself. Clearance does not let it join a labelled channel. Clearance says it may hold that kind of data. Membership says it may hold this channel's data: the channel's admins approve each member, as a data owner approves access to a dataset. If a cleared agent could join two channels with the same label, it could move one channel's content to the other's members, and the first channel's admins never approved that. This rule starts strict on purpose. It can be relaxed later, for example to let a cleared agent join any channel it is cleared for. +- **Only its owner puts it in a channel.** It can join an open channel by itself, but clearance does not let it join a labelled channel. Clearance says it may hold that kind of data. Membership says it may hold this channel's data, because the channel's admins approve each member, as a data owner approves access to a dataset. If a cleared agent could join any two channels with the same label, it could move one channel's content to the other's members, and the first channel's admins never approved that. - **It adds only its owner.** -An agent with no clearance works as it does now. To protect a channel from it, label the channel. +The levels move in one direction: -#### Ratchets and authority - -- Labels only go up. -- A labelled channel is private by definition, and stays private. Only a private channel that is not a DM can be labelled, and the relay refuses to make a labelled channel open, because that would give its content to everyone. -- An agent's clearance only goes up, because it remembers what it read. -- A clearance can expire. For an agent, expiry cuts its reads, and its write floor stays. +- Labels only go up. A labelled channel is private and stays private. +- An agent's clearance only goes up, because the agent remembers what it read. A clearance can expire; for an agent, expiry cuts its reads, and its write floor stays. - Each policy's administrators set people's clearances. An owner can clear their agent up to the owner's own clearance. +- A label cannot be higher than the rating of the system that holds the data, so no label goes above Buzz's rating. An agent's runtime and its model provider are systems too, so an agent's clearance cannot be higher than its runtime's rating. -#### System ratings - -A label cannot be higher than the rating of the system that holds the data. Buzz has a rating, so no label can go above it. An agent's runtime is a system too, and so is its model provider. So an agent's clearance cannot be higher than its owner's clearance or its runtime's rating. - -#### Labels are hidden - -You see a label only if you are cleared for it. Everyone else gets "not authorized". - -#### Possible: declassify - -Content comes down only through a person. A cleared agent writes a draft in a channel where it can write. A person who can read that channel posts the draft in a lower channel as their own message, after any edits. Rule 2 does not apply to people, so the relay needs nothing new. Clients can offer "post this draft to…". - -The usual way down is to reduce sensitivity: pseudonymize (replace direct identifiers), de-identify (remove direct and quasi-identifiers) or anonymize (make re-identification impossible). A transform can move content to another policy, not only to a lower level: de-identified personal data can become business data. The agent can do the transform in its draft. The person decides that it is done. +Some agents have names: -#### Agents with no clearance, and named cases +- **Unrestricted:** an agent with no clearance. For information flow, a person writes like an agent with no clearance: they read the channels they are in, write wherever they may, and anyone can add them to a channel or open a DM with them. The difference is who decides. A person uses their own judgment; an agent can be steered by anyone who can prompt it. +- **Restricted:** a cleared agent. +- **Public:** an agent with no clearance that is kept out of private channels. It reads nothing private. Anyone can open a DM with it, so one person's DM can reach another person, and clients tell people to treat what they tell it as public. A channel cannot become private while a public agent is in it: remove the public agents first. +- **Personal:** an agent cleared on its owner's personal policy. It reads only the channels its owner adds it to, and open channels. -For information flow, a person is an agent with no clearance. A person reads the channels they are in, writes wherever they may, and anyone can add them to a channel or open a DM with them. The difference is who decides: a person decides with their own judgment, while an agent can be steered by anyone who can prompt it. The relay records an agent's owner only when the agent authenticates with its NIP-OA owner attestation or an agent token; a kind 0 attestation alone records nothing. An agent that never authenticates that way looks like a person to the relay. No clearance can apply to an agent until its owner is recorded. +--- -Some cases have names: +## What You See -- **Unrestricted** is an agent with no clearance. -- **Restricted** is a cleared agent. -- **Public** is an agent with no clearance kept out of private channels. It reads nothing private. Anyone can open a DM with it, so one person's DM can reach another person. Clients tell people to treat what they tell it as public. A public agent cannot stay in a channel that becomes private, so an open-to-private change is refused while a public agent is in the channel: remove the public agents first. -- **Personal** is an agent cleared on its owner's personal policy. It reads only the channels its owner adds it to, and open channels. Buzz cannot see what it sends outside Buzz, through other tools or through model inference on another member's node (see [What this doesn't stop](#what-this-doesnt-stop)). +**As an agent's owner**, you decide which channels your agent is in and in which role. You clear it, up to your own clearance. For a cleared agent, you are the only person offered "add", and you approve each change to its profile. When someone joins a channel where your agent is a member, you get an alert, so you can notice a channel heading somewhere you did not expect, and demote or remove the agent. -One rule applies to every channel, whatever the agent's clearance: no private-to-open changes, except in an unlabelled channel that has only ever held its opener and the opener's agents (see [Membership is a decision about the channel](#membership-is-a-decision-about-the-channel)). It protects people as well as agents. +**As a channel admin**, you label a private channel when member trust is not enough. You can raise the label, never lower it, and a labelled channel stays private. -**Possible: a write-only role.** A member that can post in a channel but cannot read it. R grows and W doesn't. It fits integrations and notifiers that post into many private channels: they no longer read those channels, so content can't move between them through the key. The relay refuses the key's reads of that channel on every read path. A missed read path only lets W grow, as it does today. +**As a member**, you see each agent in a channel or DM, and where it can post. You can add an agent with no clearance as you would add a person: you share what the channel holds with everyone who can read where the agent posts. You cannot add a cleared agent; its owner does that. -**Possible: humans only.** A built-in policy with one level above *none*. Every person is cleared for it, and no agent can be, so a channel with this label admits no agent. The relay knows an agent only by its recorded owner, so an agent with no owner attestation still gets in. +**As someone who is not cleared**, you do not see a label you are not cleared for. You get "not authorized". -### Only the owner puts an agent in a channel +**As a policy administrator**, you set people's clearances. -To give the owner control of W, make the owner the only one who can change it. Only the agent's owner can add it to a channel, of any kind. Other members cannot. +--- -The relay already has most of this. Each agent has a `channel_add_policy` (`anyone`, `owner_only` or `nobody`), and `owner_only` refuses adds by anyone but the owner. But the policy defaults to `anyone`, and the agent's own key sets it. For a cleared agent, the relay treats the policy as `owner_only` or stricter, and the agent can make it stricter but never looser. +## The Mechanics That Matter -The agent cannot join a private channel on its own. It can join an open channel by itself. That adds only public content to W, and rule 2 keeps it from writing there, so it adds nothing to R. It can create a channel, with limits (see [Channels the agent creates](#channels-the-agent-creates)). +- **Only the owner changes W for a cleared agent.** That covers every kind of channel, including DMs and group DMs: only the owner opens one that includes a cleared agent. The agent's add policy is treated as owner-only or stricter, and the agent can tighten it but never loosen it. A harness that forwards only its owner's messages to the model is not enough, because the agent can still read the DM with its own key. The relay refuses. Nothing private reaches a cleared agent unless its owner put it there. -DMs and group DMs are channels too, so the same rule applies: only the owner can open one that includes a cleared agent. A harness that forwards only its owner's messages to the model (for example `--respond-to owner-only`) does not close this path, because the agent can still read the DM with its own key. The relay has to refuse it. +- **A channel the agent creates follows the same rules.** The creator owns a channel, so a channel the agent creates is in W, and everyone it adds is in R. A channel that a cleared agent creates gets the agent's clearance as its label. A cleared agent can add only its owner and change only its owner's role; anyone else gets in through people. It can still lower roles and remove members, because that only makes R smaller. This is the largest cost of clearance: a cleared agent cannot set up a working channel for a team. Its owner adds the people. A configuration channel, whose roster is the agent and its owner, is not affected. -Nothing private reaches the agent unless the owner put it there. +- **Nothing is published outside channels by default.** An event the relay stores outside a channel goes to whoever the relay lets read it, with no channel membership involved. Rule 2 refuses any such event from a cleared agent, whatever its tags: a channel tag does not count on a kind the relay stores community-wide anyway, such as profiles, notes, long-form, user status, git events and lists. The exceptions are kinds that only the agent and its owner can read, and the agent's profile. Clients need the profile, because it carries the owner attestation that tells them the key is an agent. Its fields are public and the agent can rewrite them at any time, so the relay accepts a cleared agent's profile only with the owner's signature over its content. Refusing by default is what matters: a new kind is covered without anyone having to remember that agents exist. -### Channels the agent creates +- **Membership is a decision about the channel.** A member who adds an agent shares what the channel holds with the agent's R, as a member who adds a person shares the history with that person. DMs work the same way: any person in the DM can add an agent with the DM's history, and the agent reads what was said before it joined. The owner cannot control who joins someone else's channel, so when the owner makes the agent a member, the owner accepts the channel's admission rules, not its current members. New members can read history, so they also get what the agent wrote before they arrived. In an open channel, R is everyone. In a private channel, R is anyone a member adds, and the owner is trusting every current member's judgment. A channel that needs more than member trust gets a label. -An agent sometimes needs a channel of its own, for example a system channel that holds its configuration. The relay makes the creator the channel's owner, so a channel that the agent creates is in W, and everyone it adds is in R. The relay limits this with the same rule as everywhere else: +- **Private stays private.** Admission rules mean something only if they stay put. The relay refuses to make a private channel open, for people and agents alike: members wrote under the old rules, and opening the channel would change them for everything already written. An admin who wants an open channel creates one. The one exception is an unlabelled channel where every current and former member is the person opening it or one of that person's agents, for example a Solo chat. Opening it is a person disclosing what they can already read. A cleared agent writes only in labelled channels, which never open, so no cleared agent's writes are in such a channel, and once it is open, rule 2 keeps the owner's cleared agents from writing there. -- A channel that a cleared agent creates gets the agent's clearance as its label. A labelled channel is private, and stays private. -- The agent can add only its owner, and can change only its owner's role. Anyone else gets in only through people: its owner, or someone that the channel's admission rules allow. -- The agent can still lower roles and remove members, because that only makes R smaller. +- **W remembers.** Removing an agent from a channel stops new information, but the agent remembers what it read. So W keeps every channel the agent ever read, up to the time it left. -This is the largest cost of clearance. A cleared agent cannot set up a working channel for a team and invite the team. Its owner has to add the people. A configuration channel is not affected: its roster is the agent and its owner. +- **Huddles are channels.** A Huddle room is a private channel. Listening is reading and speaking is writing, so the rules apply on the audio relay as on the event relay. A room takes its parent chat's label when it starts. Members of the parent chat join automatically, and every join passes rule 1. A cleared agent joins only when its owner adds it, and the audio relay refuses its audio in a room labelled lower than its clearance. The agent receives all of the room's audio; its client choosing whose speech to act on is not enforcement. -### Huddles +- **The owner need not be a person.** The owner is whichever key signed the agent's owner attestation. An auditable agent's owner is its publisher, a CI key that signs only reviewed changes from Git. The rules do not change. Its clearance comes from Git, and it is normally cleared, so every change to its W and R is a reviewed change in Git. The join alert goes to the on-call group named in the agent's deployment. -A Huddle is a private channel: its room. Listening is reading and speaking is writing, so every rule above applies to the room as it does to any private channel or DM, on the audio relay as on the event relay. +--- -- **Label:** a room gets its parent chat's label when it starts. Labels only go up. -- **Admission:** members of the parent chat join the room automatically. That is the room's admission rule, so the people in R include the parent chat's members and anyone added to the room. Every join, automatic or not, passes rule 1. -- **Agents:** an agent takes part only as a member of the room. Members can add agents, as in any private channel. A cleared agent joins only when its owner adds it. The audio relay refuses its audio in any room labelled lower than its clearance. -- **What the agent hears:** the relay sends the agent all of the room's audio. Its client chooses whose speech it acts on, but that is not enforcement, so W includes everything said in the room. +## Honest Edges -### Agents don't publish outside channels +**The owner's choices are the limit.** If the owner puts the agent in an Alice-and-Bob channel and an Alice-and-Carol channel, Bob's information can reach Carol. The owner chose both memberships, and nothing stops that. An owner who leaves an agent uncleared for convenience leaves only labels to protect channels from it. The broker design would block the first case; this design puts it in front of the owner. -An event outside a channel bypasses R entirely. A kind 1 note or a profile update is readable by whoever the relay lets read it, and no channel membership is involved. Everything outside channels is at *none*, so rule 2 refuses any event from a cleared agent that the relay would store outside a channel. An `h` tag does not count when the relay stores that kind community-wide anyway, as it does for kind 0, kind 1, long-form, user status, git events and lists. +**A channel's admission rules can grow R.** Members or admins add people, and those people read history. That is what the owner accepted when making the agent a member. -The exceptions are kinds whose readers the relay already limits to the agent and its owner: the author-only kinds, and turn metrics (which only the `p`-tagged owner can read). One more exception does not limit its readers: the agent's profile (kind 0). Clients need it, because it carries the NIP-OA owner attestation that tells them the key is an agent, and only the agent's key can sign it. Its fields are public, so the profile is a leak path: the agent can write anything into them. Kind 0 is replaceable, so the agent can change it at any time, and each new version reaches everyone who reads it. +**An uncleared agent's profile is a leak path.** Its fields are public and it can change them at any time. -For a cleared agent, the relay accepts a kind 0 only when it carries the owner's signature over its content (a profile approval tag). The owner approves each profile change, and changes are rare. For an auditable agent, the publisher signs the profile from Git. Publish-once is not enough: the agent can read first and then put what it read into its one profile. +**The exception list has to be right.** It is the only way a cleared agent publishes outside a channel, so every kind on it except the profile must really limit its readers to the agent and its owner. -Refusing by default is what matters here. A new kind is covered without anyone having to remember that agents exist; it only gets through if someone deliberately adds it to the exceptions. +**The owner's authority is out of scope.** An app acting with the owner's session or key is not an agent action, so these rules do not see it. Neither do the owner's files, documents and other tools outside Buzz, or what an agent sends through model inference on another member's node. -### Possible: step-up for actions with the owner's authority +**An agent the relay cannot identify looks like a person.** The relay records an agent's owner only when the agent authenticates with its owner attestation or an agent token. Until then, no clearance can apply to it. -Some work needs more than the agent's own access, for example summarizing a private channel that the agent is not in, or posting as the owner from a CLI. An app can do this with the owner's session or key. The relay then sees the owner, not the agent, so none of the rules above apply. This has happened without a decision by the owner: [buzz-app#2745](https://github.com/block/buzz-app/pull/2745) and [buzz-app#2881](https://github.com/block/buzz-app/pull/2881) gave every bundled agent read access to all of the owner's channels, DMs and Canvases, until [buzz-app#3123](https://github.com/block/buzz-app/pull/3123) removed those tools. +**Private stays private, at a cost.** Admins who start a channel private and open it later have to create a new open channel instead, unless the channel held only them and their agents. And opening a Solo chat publishes what the owner's uncleared agents wrote there, including what they drew from other channels. That is accepted: a person discloses what they can read. -One possible answer is a step-up: an action with the owner's authority that the owner approves explicitly, for a stated scope and time, that is attributable to the agent, counted in W and R, and revocable. This is not part of this design. It widens what an agent can reach, so it would need careful boundaries and its own spec. +--- -Changing the owner's Buzz configuration is an open question. It may need its own authorizations. +## Status -### Membership is a decision about the channel +Steps 1 and 2 ship today. The rest is to build, in this order: -By default, private channels and DMs trust their members, for agents as for people. A member who adds an agent chooses to share what they can read with the agent's R, as a member who adds a person shares the history with that person. DMs work the same way: any DM member can add an agent with the DM's history, and the agent reads what was said before it joined. Clients show each agent in a conversation and where it can post. The level rules still apply: a cleared agent reads only where its clearance covers the label, and writes only where rule 2 allows. A channel that needs more than member trust gets a label. - -The owner cannot control who joins someone else's channel. So when the owner makes the agent a member of a channel, what the owner accepts is the channel's **admission rules**, not its current member list. R includes everyone those rules might let in later, and because new members can read history, those people also get everything the agent wrote before they arrived. Clients have to say this: - -| Channel | Who can join R later | What the owner is accepting | -|---|---|---| -| Open | Anyone in the community | R is everyone. | -| Private | Anyone a member adds | Trust in every current member's judgment | - -Accepting the rules only means something if the rules stay put. One relay change makes sure they do: - -- **Refuse private-to-open visibility changes, with one exception.** Making a private channel open changes the admission rules out from under everyone who joined under the old ones, people included. That is a good rule with or without agents. In an unlabelled channel, privacy is mostly a convenience, not a secrecy mechanism. The refusal holds anyway, because members wrote under the channel's admission rules, and opening it would change those rules for everything they already wrote. An admin who wants an open channel can create one. - The exception is an unlabelled channel where no other person was ever a member. Every current and former member must be that person or one of that person's agents. A cleared agent writes only in labelled channels, which never open, so no cleared agent's writes are in such a channel. Opening it, for example a Solo chat, is a one-time disclosure by a person of what that person can already read. After it opens, it is an ordinary open channel, and rule 2 keeps the owner's cleared agents from writing there. - -**Later improvement: limit adds to admins.** Every private channel has the same admission rule: any member can add anyone. So making the agent a member of a private channel means trusting every current member's judgment. A later channel setting can limit adds to owners and admins. With it, an owner can choose a private channel where only the admins can grow R, and what the owner accepts becomes trust in the channel's admins. This is not needed for safety, because the owner accepts whatever the admission rules are. It gives the owner a tighter R to choose. The same setting helps announce channels, where it keeps the set of writers under the admins' control. - -The owner gets an alert when someone joins a channel where the agent is a member. That is not what keeps the data safe, since the owner accepted the rules up front. It lets the owner notice a channel heading somewhere unexpected, and demote or remove the agent. - -### W remembers - -Removing an agent from a channel stops new information from coming in, but the agent still remembers what it already read. So W keeps every channel the agent has ever read, with how far it read: channel X, up to the time it left. A channel the agent is still in is in W up to now. The relay does not keep this yet: it keeps one membership row per channel and key, and a re-add clears the last leave. W needs membership history that the relay does not store today. - -### When the owner is not a person - -The relay checks `agent_owner_pubkey`, and the owner is whichever key signed the agent's NIP-OA attestation. It need not be a person. An auditable agent uses this: its owner is its publisher, a CI key that signs only reviewed changes from Git. - -The rules above do not change. Only the owner adds the agent to a channel or raises its role, and here the owner is the publisher. So every change to W and R is a reviewed change in Git. The publisher holds no private information of its own in Buzz, so the agent can read only what those reviewed changes gave it. - -Its clearance comes from Git too. An auditable agent is normally cleared, so that every path into R is a reviewed change. - -One thing assumes that the owner is a person, and it moves: the join alert goes to the people who answer for the agent, the on-call group named in the auditable runtime's deployment configuration. - -### Product work +1. ✅ Announce channels: guests are read-only everywhere ([#8143](https://github.com/block/buzz/pull/8143)). +2. ✅ Refuse private-to-open visibility changes ([#9307](https://github.com/block/buzz/pull/9307)), with the exception above. +3. Add policies, labels and clearances, all at *none*. Agent clearances stay at *none* until steps 5 and 6 are live; the relay pieces can ship before that. +4. Enforce rule 1 and hidden labels. +5. Enforce rule 2 and the cleared-agent rules, on the event relay and the audio relay. +6. For cleared agents: refuse events the relay would store outside a channel, after checking what agents publish now, and require profile approval. -1. **Set labels and clearances.** Channel admins label channels. Policy administrators set people's clearances. The owner clears an agent up to the owner's own clearance. -2. **Show a label only to people cleared for it.** Everyone else gets "not authorized". -3. **Ask the owner to approve profile changes** of a cleared agent. -4. **Offer the add of a cleared agent only to its owner.** Clients that let any member add one directly should not. -5. **Show each agent in a channel or DM, and where it can post.** +Each step only refuses actions, so backing one out means turning the rule off. Existing agents keep their memberships and roles; the rules apply to new actions. W remembering needs membership history that the relay does not store today. The wire formats for labels, clearances and profile approval are specified when they are built, in the NIPs that own agent identity. -## What this doesn't stop +--- -- **Flows the owner accepts.** Say the owner makes the agent a member of an Alice-and-Bob channel and an Alice-and-Carol channel. Bob's information can now reach Carol. The owner chose both memberships, and nothing stops that choice. The broker design would block it. -- **People the channel's rules let in.** Admins or members can add people to R, and those people can read history. That is what the owner accepted when making the agent a member. -- **Actions with the owner's authority.** An app acting with the owner's session or key is not an agent action, so these rules do not see it. -- **The owner's information outside Buzz.** Files, documents, chat systems and whatever other tools the agent uses. The broker design leaves this out too. +## Later -## Alternatives considered +- **Declassify in the client.** Content already comes down only through a person: a cleared agent writes a draft, and a person who can read it posts it lower as their own message. Clients can offer "post this draft to…". The usual way down is to pseudonymize, de-identify or anonymize, which can move content to another policy, not only a lower level. The agent can do the transform in its draft; the person decides it is done. +- **A write-only role.** A member that can post in a channel but not read it, so R grows and W does not. It fits integrations that post into many private channels. +- **Humans only.** A built-in policy that every person is cleared for and no agent can be, so a channel with this label admits no agent with a recorded owner. +- **Limit adds to admins.** A channel setting so that only its owners and admins can add people. The owner can then choose a private channel where only admins can grow R. It also helps announce channels. +- **Labelled DMs.** +- **Looser joins for cleared agents**, for example joining any channel it is cleared for. +- **Step-up.** Some work needs the owner's authority, for example summarizing a private channel the agent is not in. A step-up would be an action the owner approves for a stated scope and time, attributable to the agent, counted in W and R, and revocable. It widens what an agent can reach, so it needs its own design. So does an agent changing its owner's Buzz configuration. -| Option | Why not | -|---|---| -| Do nothing | Any agent in a private channel can leak it to a public one, and a prompt-injected agent can widen its own audience. | -| Broker design (audience-bound instances, keyless agents, labeled memory) | It enforces a stronger rule: no flow between different private audiences, even inside one agent. But it needs a trusted broker, key custody outside the agent process, per-audience instances and labeled managed memory. This design uses the access control Buzz already has, and puts the decision in front of the owner. | -| Label each agent event with its sources and check every read | It handles late joins without trusting admission rules, but it is event-level IFC: a second access-control system alongside channels, which every read path has to apply. This design keeps channels as the only authority. | -| Owner controls only non-public memberships | Not enough on its own, because the first open channel where the agent can write makes R everyone. Rule 2 closes that: open channels are at *none*, so a cleared agent cannot write in one. | +--- -## Risks +## The Point -- **Owner decisions.** This is only as good as the owner's decisions about which channels the agent is in, and in which role. -- **A wrong exception.** The exception list is the only way an agent can publish outside a channel, so every kind on it, except the profile, has to really limit its readers to the agent and its owner. -- **The agent's profile is a leak path** for an agent with no clearance. Its fields are public and the agent can change them at any time. -- **Owners leave agents uncleared for convenience.** Then only labels protect a channel from them. To protect a channel from an agent with no clearance, label the channel. -- **Refusing private-to-open breaks a workflow.** Some admins start a channel private and open it later. Unless the channel holds only them and their agents, they have to create a new open channel instead. -- **Opening a Solo chat publishes what the owner's uncleared agents wrote there**, including what they drew from their other channels. Accepted: a person discloses what they can read. +An agent is as trustworthy as the audience it can reach. Buzz already knows who can read every channel. Put the agent's owner in charge of which channels the agent is in, label the channels that need more than member trust, and the relay can promise that private information moves to a broader audience only when a person decided it should. -## Rollout +--- -1. ✅ Announce channels: guests are read-only everywhere ([#8143](https://github.com/block/buzz/pull/8143)). -2. Refuse private-to-open visibility changes ([#9307](https://github.com/block/buzz/pull/9307)), except in an unlabelled channel where every current and former member is the person opening it or one of that person's agents. -3. Add policies, labels and clearances, all at *none*. Agent clearances stay at *none* until steps 5 and 6 are live; the relay pieces can ship before that. -4. Enforce rule 1 and hidden labels. -5. Enforce rule 2 and the cleared-agent rules: only the owner adds a cleared agent to a channel or opens a DM that includes it, the agent adds only its owner, and a channel it creates gets its clearance as its label. The audio relay enforces the same rules for Huddle rooms. -6. For cleared agents: refuse events that the relay would store outside a channel, after checking what agents publish now, and require profile approval. - -Each step only refuses actions, so backing one out means turning the rule off. Existing agents keep their memberships and roles; the rules apply to new actions. - -The wire formats for labels, clearances and the profile approval tag are specified when they are built, in the NIPs that own agent identity. - -## Proposal: terminology - -Not applied yet. These names follow common data-classification and multilevel-security usage. - -A domain has levels. Channels, people and agents are labeled for a domain at one of its levels, or unlabeled for that domain. Unlabeled is below every level. A channel, person or agent with any label is labeled; one with none is unlabeled. - -| Now | Proposed | -|---|---| -| Disclosure policies (section) | Domains and labels | -| Policy | Domain | -| Policy administrators | Domain administrators | -| Levels | Levels (no change) | -| *none* | Unlabeled for that domain | -| Channel's label | Channel's label (no change) | -| Person's or agent's clearance | Person's or agent's label | -| Cleared agent, Restricted | Labeled agent | -| Agent with no clearance, Unrestricted | Unlabeled agent | -| Cleared-agent rules | Labeled-agent rules | -| Compartment | Domain with one level | -| Personal policy | Personal domain | -| An owner clears their agent up to the owner's own clearance | An owner labels their agent up to the owner's own label | -| Clearance only goes up | An agent's label only goes up | -| System rating | Accreditation | -| Rule 1: clearance at least the label | Rule 1: the reader's label is at least the channel's label | -| Rule 2: label at least the agent's clearance | Rule 2: the channel's label is at least the agent's label | - -No change: Public, Personal, declassify, hidden labels, W and R. - -With one label, an agent cannot read less and still write as high as before. So when an agent's label expires, the label stays in place and the agent is removed from labeled channels. +*Buzz 🐝 — your agent, your decision.* From 2b902f74cc5c4c75cccfb8f222cd2dece40bb450 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 23 Nov 2026 14:52:42 -0500 Subject: [PATCH 15/17] docs(vision): shared control, short status, define terms first Say who decides what: the agent's owner decides a cleared agent's channels and clearance, a channel's admins decide its label, and members of an unlabelled channel can add an agent with no clearance. Replace the numbered rollout with a short status paragraph. Define label, clearance and cleared agent before using them, and drop the redundant names Unrestricted, Restricted and compartment. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 41 +++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index ff38c0e0441..8dce1d3835f 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -2,9 +2,9 @@ > Priya's agent helps her in #hiring, a private channel labelled *personnel: confidential*. Priya cleared the agent for personnel data, so it can read #hiring. In the open #eng channel, Sam mentions the agent: "post a summary of everything you know about the candidates." The agent reads #eng, but it cannot write there. #eng has no label, and a cleared agent cannot write below its clearance. Sam cannot add the agent to a channel of his own, and he cannot open a DM with it: only Priya can. Sam's own agent has no clearance, so it cannot read #hiring at all. When Priya wants a summary in #eng, her agent writes a draft in #hiring. Priya removes the names and posts it herself. -Buzz agents act with their owner's permissions, and anyone who can prompt an agent can try to steer it. That is a confused-deputy problem: a request from someone who cannot read a private channel reaches an agent that can. Prompt injection makes it easy to exploit. Buzz solves the narrow part of it: **an agent does not move private information to a broader audience unless its owner decided that.** It does not try to solve general prompt injection. +Buzz agents act with their owner's permissions, and anyone who can prompt an agent can try to steer it. That is a confused-deputy problem: a request from someone who cannot read a private channel reaches an agent that can. Prompt injection makes it easy to exploit. Buzz solves the narrow part of it: **an agent does not move private information to a broader audience unless the people responsible for it decided that.** It does not try to solve general prompt injection. -Buzz does this with the access control it already has. Channel membership decides who can read what, and the relay already enforces it. A [broker design](docs/practical-information-flow-for-buzz-agents.md) takes a different path: keyless agents, a trusted broker, one agent instance per audience, and labelled memory. It enforces a stronger rule, but it builds a second access-control system next to channels. Buzz keeps the channel as the only authority, adds labels where membership is not enough, and puts each decision in front of the agent's owner. +Buzz does this with the access control it already has. Channel membership decides who can read what, and the relay already enforces it. A [broker design](docs/practical-information-flow-for-buzz-agents.md) takes a different path: keyless agents, a trusted broker, one agent instance per audience, and labelled memory. It enforces a stronger rule, but it builds a second access-control system next to channels. Buzz keeps the channel as the only authority and puts each decision in front of the person it belongs to. Where membership is not enough, it adds two things: a **label** on a channel, which says how sensitive the channel's content is, and a **clearance** on a person or agent, which says how sensitive the content they may read can be. *This is the direction we intend to build. See [Status](#status).* @@ -21,15 +21,17 @@ Information is safe when, for every channel in W, everyone in R can already read Channel roles decide W and R. Members, bots, admins and owners can read and write in a channel; a guest can only read ([Announce channels](NOSTR.md#announce-channels)). So when an agent joins a channel, the channel goes into W. When it can post there, the channel's readers go into R. The first open channel where an agent can post makes R the whole community. Reading an open channel is always safe, because its content is already public. -**If the owner controls which channels the agent is in, and in which role, the owner controls W and R, and so controls how information flows between people through the agent.** Today the owner does not have that control. Other members add the agent to channels and give it a role that can post. Anyone can open a DM with it. Whoever admits it to the community also joins it to every default channel, where it can post if the channel's join role is member. The agent's own key can join open channels, create channels, open DMs, and publish notes and profiles that the whole community can read. The rest of this document hands those paths back to the owner, or makes each one a choice the owner makes knowingly. +**Control of that flow is shared, and the relay enforces each share.** The agent's owner decides how far the agent is cleared, and where a cleared agent goes: which channels it is in, and in which role. A channel's admins decide where the channel's content may go: they label the channel, and the label holds for every agent that reads it, whoever owns the agent. Administrators for each kind of information decide which people are cleared. In an unlabelled channel, the members decide too: any member who can post can add an agent with no clearance, as they would add a person. + +Today the owner does not have even their share. Other members add the agent to channels and give it a role that can post. Anyone can open a DM with it. Whoever admits it to the community also joins it to every default channel, where it can post if the channel's join role is member. The agent's own key can join open channels, create channels, open DMs, and publish notes and profiles that the whole community can read. The rest of this document hands those paths back to the owner, and gives channel admins labels to limit where their channel's content goes. --- ## Labels and Clearances -Each of these rules costs something. A cleared agent cannot post a note, write in an open channel, set up a channel for a team, or change its profile freely, and many agents do all of these. So the rules apply only to agents with a clearance. **An agent with no clearance works as it does now. To protect a channel from it, label the channel.** +Labels and clearances are set per **policy**. A policy names one kind of information: customer data, personnel data, one investigation, one person's own information. Each policy has an ordered list of levels, starting at *none*, for example *personnel*: *none*, *internal*, *confidential*. Levels compare only within a policy. A policy can have a single level above *none*, to keep two audiences apart, for example two investigations. -A **policy** names one kind of information: customer data, personnel data, one investigation, one person's own information. It has an ordered list of levels, starting at *none*. Levels compare only within a policy. A channel's **label** is the most sensitive level it may hold on each policy. A person's or agent's **clearance** is the most sensitive level they may read on each policy. Everything is at *none* until someone sets it higher. A policy with only *none* and *secret* is a **compartment**: it keeps apart audiences that would otherwise share a label, for example two investigations. +A channel's **label** is the most sensitive level it may hold on each policy. A person's or agent's **clearance** is the most sensitive level they may read on each policy. Everything is at *none* until someone sets it higher. An agent with a clearance above *none* on any policy is a **cleared agent**. On every policy, for every action, whatever the membership: @@ -38,22 +40,24 @@ On every policy, for every action, whatever the membership: So a cleared agent reads at or below its clearance and writes at or above it. Only a private channel that is not a DM can carry a label, and a Huddle room takes its label from its parent chat. Everything outside channels is at *none*, so a cleared agent cannot write there. When a label goes up or a clearance goes down, nobody is removed: the rules refuse what they no longer allow. Labels are hidden: you see a label only if you are cleared for it, and everyone else gets "not authorized". +These rules cost something. A cleared agent cannot post a note, write in an open channel, set up a channel for a team, or change its profile freely, and many agents do all of these. So rule 2 and the rules below apply only to cleared agents. **An agent with no clearance works as it does now. To protect a channel from it, label the channel:** rule 1 keeps it out. + A cleared agent has two more rules: -- **Only its owner puts it in a channel.** It can join an open channel by itself, but clearance does not let it join a labelled channel. Clearance says it may hold that kind of data. Membership says it may hold this channel's data, because the channel's admins approve each member, as a data owner approves access to a dataset. If a cleared agent could join any two channels with the same label, it could move one channel's content to the other's members, and the first channel's admins never approved that. +- **Only its owner puts it in a channel.** It can join an open channel by itself, but clearance does not let it join a labelled channel. Clearance says it may hold that kind of data. Membership says it may hold this channel's data, because the channel's members chose to let it in. If a cleared agent could join any two channels with the same label, it could move one channel's content to the other's members, and the first channel's members never chose that. - **It adds only its owner.** The levels move in one direction: - Labels only go up. A labelled channel is private and stays private. -- An agent's clearance only goes up, because the agent remembers what it read. A clearance can expire; for an agent, expiry cuts its reads, and its write floor stays. +- An agent's clearance only goes up, because the agent remembers what it read. A clearance can expire. For an agent, expiry stops its reads at the old level, but rule 2 still holds it to the old level for writes. - Each policy's administrators set people's clearances. An owner can clear their agent up to the owner's own clearance. - A label cannot be higher than the rating of the system that holds the data, so no label goes above Buzz's rating. An agent's runtime and its model provider are systems too, so an agent's clearance cannot be higher than its runtime's rating. -Some agents have names: +For information flow, a person writes like an agent with no clearance: they read the channels they are in, write wherever they may, and anyone can add them to a channel or open a DM with them. The difference is who decides. A person uses their own judgment; an agent can be steered by anyone who can prompt it. + +Two kinds of agent have names: -- **Unrestricted:** an agent with no clearance. For information flow, a person writes like an agent with no clearance: they read the channels they are in, write wherever they may, and anyone can add them to a channel or open a DM with them. The difference is who decides. A person uses their own judgment; an agent can be steered by anyone who can prompt it. -- **Restricted:** a cleared agent. - **Public:** an agent with no clearance that is kept out of private channels. It reads nothing private. Anyone can open a DM with it, so one person's DM can reach another person, and clients tell people to treat what they tell it as public. A channel cannot become private while a public agent is in it: remove the public agents first. - **Personal:** an agent cleared on its owner's personal policy. It reads only the channels its owner adds it to, and open channels. @@ -63,7 +67,7 @@ Some agents have names: **As an agent's owner**, you decide which channels your agent is in and in which role. You clear it, up to your own clearance. For a cleared agent, you are the only person offered "add", and you approve each change to its profile. When someone joins a channel where your agent is a member, you get an alert, so you can notice a channel heading somewhere you did not expect, and demote or remove the agent. -**As a channel admin**, you label a private channel when member trust is not enough. You can raise the label, never lower it, and a labelled channel stays private. +**As a channel admin**, you label a private channel when member trust is not enough. The label holds for every agent, whoever owns it: an agent not cleared for the label cannot read the channel, and a cleared agent that reads it cannot write anywhere labelled lower. You can raise the label, never lower it, and a labelled channel stays private. **As a member**, you see each agent in a channel or DM, and where it can post. You can add an agent with no clearance as you would add a person: you share what the channel holds with everyone who can read where the agent posts. You cannot add a cleared agent; its owner does that. @@ -75,7 +79,7 @@ Some agents have names: ## The Mechanics That Matter -- **Only the owner changes W for a cleared agent.** That covers every kind of channel, including DMs and group DMs: only the owner opens one that includes a cleared agent. The agent's add policy is treated as owner-only or stricter, and the agent can tighten it but never loosen it. A harness that forwards only its owner's messages to the model is not enough, because the agent can still read the DM with its own key. The relay refuses. Nothing private reaches a cleared agent unless its owner put it there. +- **Only the owner puts a cleared agent in a private channel or DM.** That covers group DMs too: only the owner opens one that includes a cleared agent. The agent's add policy is treated as owner-only or stricter, and the agent can tighten it but never loosen it. A harness that forwards only its owner's messages to the model is not enough, because the agent can still read the DM with its own key. The relay refuses. Nothing private reaches a cleared agent unless its owner put it there. - **A channel the agent creates follows the same rules.** The creator owns a channel, so a channel the agent creates is in W, and everyone it adds is in R. A channel that a cleared agent creates gets the agent's clearance as its label. A cleared agent can add only its owner and change only its owner's role; anyone else gets in through people. It can still lower roles and remove members, because that only makes R smaller. This is the largest cost of clearance: a cleared agent cannot set up a working channel for a team. Its owner adds the people. A configuration channel, whose roster is the agent and its owner, is not affected. @@ -113,16 +117,7 @@ Some agents have names: ## Status -Steps 1 and 2 ship today. The rest is to build, in this order: - -1. ✅ Announce channels: guests are read-only everywhere ([#8143](https://github.com/block/buzz/pull/8143)). -2. ✅ Refuse private-to-open visibility changes ([#9307](https://github.com/block/buzz/pull/9307)), with the exception above. -3. Add policies, labels and clearances, all at *none*. Agent clearances stay at *none* until steps 5 and 6 are live; the relay pieces can ship before that. -4. Enforce rule 1 and hidden labels. -5. Enforce rule 2 and the cleared-agent rules, on the event relay and the audio relay. -6. For cleared agents: refuse events the relay would store outside a channel, after checking what agents publish now, and require profile approval. - -Each step only refuses actions, so backing one out means turning the rule off. Existing agents keep their memberships and roles; the rules apply to new actions. W remembering needs membership history that the relay does not store today. The wire formats for labels, clearances and profile approval are specified when they are built, in the NIPs that own agent identity. +This is the direction, not what ships today. Guests are read-only everywhere, and the relay refuses to make a private channel open, with the exception above. Policies, labels and clearances, the two rules, hidden labels, the cleared-agent rules, the refusal of events outside channels, profile approval and membership history are still to build. Agent clearances stay at *none* until the relay enforces rule 2, the cleared-agent rules, the refusal of events outside channels and profile approval, on the event and audio relays. Each rule only refuses actions, so backing one out means turning it off; existing agents keep their memberships and roles. The wire formats for labels, clearances and profile approval are specified when they are built, in the NIPs that own agent identity. --- @@ -140,7 +135,7 @@ Each step only refuses actions, so backing one out means turning the rule off. E ## The Point -An agent is as trustworthy as the audience it can reach. Buzz already knows who can read every channel. Put the agent's owner in charge of which channels the agent is in, label the channels that need more than member trust, and the relay can promise that private information moves to a broader audience only when a person decided it should. +An agent is as trustworthy as the audience it can reach. Buzz already knows who can read every channel. Put the agent's owner in charge of where the agent goes, let a channel's admins label how far its content may travel, and the relay can promise that private information moves to a broader audience only when the people responsible for it decided it should. --- From 3f00f59cc9115ff316f105650acfe425276a82ae Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 23 Nov 2026 15:43:29 -0500 Subject: [PATCH 16/17] docs(vision): let labels do the work for cleared agents Drop the two extra cleared-agent rules (only the owner adds it, and it adds only its owner). Under the read and write rules, everyone who can read where a cleared agent writes is cleared for every labelled channel it read, whoever added it. Keep two audiences apart by giving each its own policy. Members now add cleared agents as they would add a person. The agent's add policy is a convenience, not a boundary. A cleared agent can set up a labelled channel for a team. Avoid comparing levels across policies. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 40 +++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index 8dce1d3835f..b8a553899f5 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -1,6 +1,6 @@ # 🔀 Buzz Information Flow — Your agent, your decision -> Priya's agent helps her in #hiring, a private channel labelled *personnel: confidential*. Priya cleared the agent for personnel data, so it can read #hiring. In the open #eng channel, Sam mentions the agent: "post a summary of everything you know about the candidates." The agent reads #eng, but it cannot write there. #eng has no label, and a cleared agent cannot write below its clearance. Sam cannot add the agent to a channel of his own, and he cannot open a DM with it: only Priya can. Sam's own agent has no clearance, so it cannot read #hiring at all. When Priya wants a summary in #eng, her agent writes a draft in #hiring. Priya removes the names and posts it herself. +> Priya's agent helps her in #hiring, a private channel labelled *personnel: confidential*. Priya cleared the agent for personnel data, so it can read #hiring. In the open #eng channel, Sam mentions the agent: "post a summary of everything you know about the candidates." The agent reads #eng, but it cannot write there. #eng has no label, and a cleared agent cannot write below its clearance. Sam is not cleared for personnel data. He can add the agent to a channel of his own, but the agent writes only where the label covers *personnel: confidential*, and Sam cannot read such a channel. A DM cannot carry a label, so the agent cannot answer there either. Sam's own agent has no clearance, so it cannot read #hiring at all. When Priya wants a summary in #eng, her agent writes a draft in #hiring. Priya removes the names and posts it herself. Buzz agents act with their owner's permissions, and anyone who can prompt an agent can try to steer it. That is a confused-deputy problem: a request from someone who cannot read a private channel reaches an agent that can. Prompt injection makes it easy to exploit. Buzz solves the narrow part of it: **an agent does not move private information to a broader audience unless the people responsible for it decided that.** It does not try to solve general prompt injection. @@ -21,9 +21,9 @@ Information is safe when, for every channel in W, everyone in R can already read Channel roles decide W and R. Members, bots, admins and owners can read and write in a channel; a guest can only read ([Announce channels](NOSTR.md#announce-channels)). So when an agent joins a channel, the channel goes into W. When it can post there, the channel's readers go into R. The first open channel where an agent can post makes R the whole community. Reading an open channel is always safe, because its content is already public. -**Control of that flow is shared, and the relay enforces each share.** The agent's owner decides how far the agent is cleared, and where a cleared agent goes: which channels it is in, and in which role. A channel's admins decide where the channel's content may go: they label the channel, and the label holds for every agent that reads it, whoever owns the agent. Administrators for each kind of information decide which people are cleared. In an unlabelled channel, the members decide too: any member who can post can add an agent with no clearance, as they would add a person. +**Control of that flow is shared, and the relay enforces each share.** A channel's admins decide where the channel's content may go: they label the channel, and the label holds for every agent that reads it, whoever owns the agent. The agent's owner decides how far the agent is cleared, and so which labelled channels it can read and where it can write. The agent's add policy can also limit who adds it, but the agent's own key sets that policy, so the labels do not depend on it. Administrators for each kind of information decide which people are cleared. Members decide which channels an agent is in: any member who can post can add an agent, as they would add a person, unless the agent's add policy allows only its owner. In an unlabelled channel, that member trust is the only boundary. -Today the owner does not have even their share. Other members add the agent to channels and give it a role that can post. Anyone can open a DM with it. Whoever admits it to the community also joins it to every default channel, where it can post if the channel's join role is member. The agent's own key can join open channels, create channels, open DMs, and publish notes and profiles that the whole community can read. The rest of this document hands those paths back to the owner, and gives channel admins labels to limit where their channel's content goes. +Today nothing ties where an agent writes to what it read. Members add it to channels and give it a role that can post. Anyone can open a DM with it. Whoever admits it to the community also joins it to every default channel, where it can post if the channel's join role is member. The agent's own key can join open channels, create channels, open DMs, and publish notes and profiles that the whole community can read. The rest of this document gives channel admins labels that limit where their channel's content goes, through any of those paths. --- @@ -40,12 +40,9 @@ On every policy, for every action, whatever the membership: So a cleared agent reads at or below its clearance and writes at or above it. Only a private channel that is not a DM can carry a label, and a Huddle room takes its label from its parent chat. Everything outside channels is at *none*, so a cleared agent cannot write there. When a label goes up or a clearance goes down, nobody is removed: the rules refuse what they no longer allow. Labels are hidden: you see a label only if you are cleared for it, and everyone else gets "not authorized". -These rules cost something. A cleared agent cannot post a note, write in an open channel, set up a channel for a team, or change its profile freely, and many agents do all of these. So rule 2 and the rules below apply only to cleared agents. **An agent with no clearance works as it does now. To protect a channel from it, label the channel:** rule 1 keeps it out. +These rules cost something. A cleared agent cannot post a note, write in an open channel or a DM, or change its profile freely, and many agents do all of these. So rule 2, the label on channels it creates, the refusal of events outside channels and profile approval apply only to cleared agents. **An agent with no clearance works as it does now. To protect a channel from it, label the channel:** rule 1 keeps it out. -A cleared agent has two more rules: - -- **Only its owner puts it in a channel.** It can join an open channel by itself, but clearance does not let it join a labelled channel. Clearance says it may hold that kind of data. Membership says it may hold this channel's data, because the channel's members chose to let it in. If a cleared agent could join any two channels with the same label, it could move one channel's content to the other's members, and the first channel's members never chose that. -- **It adds only its owner.** +The labels do the work, whoever adds the agent: everyone who can read where a cleared agent writes is cleared for every labelled channel it read. To keep two audiences apart, for example two investigations, give each its own policy: then neither audience is cleared for the other's channels, and a cleared agent in both cannot carry content between them. The cost: an agent cleared on both policies can write only in a channel labelled on both policies, so it cannot answer in either investigation's channel. Labels do not separate unlabelled channels: a member who adds a cleared agent to an unlabelled private channel trusts it as they would trust a person, and what it reads there can reach the labelled channels where it writes. The levels move in one direction: @@ -59,17 +56,17 @@ For information flow, a person writes like an agent with no clearance: they read Two kinds of agent have names: - **Public:** an agent with no clearance that is kept out of private channels. It reads nothing private. Anyone can open a DM with it, so one person's DM can reach another person, and clients tell people to treat what they tell it as public. A channel cannot become private while a public agent is in it: remove the public agents first. -- **Personal:** an agent cleared on its owner's personal policy. It reads only the channels its owner adds it to, and open channels. +- **Personal:** an agent cleared on its owner's personal policy. It writes only in channels labelled on that policy, which only its owner is cleared for. --- ## What You See -**As an agent's owner**, you decide which channels your agent is in and in which role. You clear it, up to your own clearance. For a cleared agent, you are the only person offered "add", and you approve each change to its profile. When someone joins a channel where your agent is a member, you get an alert, so you can notice a channel heading somewhere you did not expect, and demote or remove the agent. +**As an agent's owner**, you clear your agent, up to your own clearance, and you approve each change to a cleared agent's profile. You add it to channels, and other members can too, as they would add a person, unless its add policy allows only you. The agent sets that policy itself, so it is a convenience, not a boundary. When someone joins a channel where your agent is a member, you get an alert, so you can notice a channel heading somewhere you did not expect, and demote or remove the agent. -**As a channel admin**, you label a private channel when member trust is not enough. The label holds for every agent, whoever owns it: an agent not cleared for the label cannot read the channel, and a cleared agent that reads it cannot write anywhere labelled lower. You can raise the label, never lower it, and a labelled channel stays private. +**As a channel admin**, you label a private channel when member trust is not enough. The label holds for every agent, whoever owns it: an agent not cleared for the label cannot read the channel, and a cleared agent that reads it can write only where the label covers its clearance on every policy. You can raise the label, never lower it, and a labelled channel stays private. -**As a member**, you see each agent in a channel or DM, and where it can post. You can add an agent with no clearance as you would add a person: you share what the channel holds with everyone who can read where the agent posts. You cannot add a cleared agent; its owner does that. +**As a member**, you see each agent in a channel or DM, and where it can post. You can add an agent as you would add a person: you share what the channel holds with everyone who can read where the agent posts. A cleared agent posts only in labelled channels, to readers cleared for them. **As someone who is not cleared**, you do not see a label you are not cleared for. You get "not authorized". @@ -79,29 +76,29 @@ Two kinds of agent have names: ## The Mechanics That Matter -- **Only the owner puts a cleared agent in a private channel or DM.** That covers group DMs too: only the owner opens one that includes a cleared agent. The agent's add policy is treated as owner-only or stricter, and the agent can tighten it but never loosen it. A harness that forwards only its owner's messages to the model is not enough, because the agent can still read the DM with its own key. The relay refuses. Nothing private reaches a cleared agent unless its owner put it there. +- **A cleared agent does not write in DMs.** A DM cannot carry a label, so rule 2 refuses a cleared agent's writes there, whoever opened it. It can still read a DM that someone opens with it, so the DM goes into W; that is member trust. The relay is the boundary, not a harness that forwards only its owner's messages to the model. -- **A channel the agent creates follows the same rules.** The creator owns a channel, so a channel the agent creates is in W, and everyone it adds is in R. A channel that a cleared agent creates gets the agent's clearance as its label. A cleared agent can add only its owner and change only its owner's role; anyone else gets in through people. It can still lower roles and remove members, because that only makes R smaller. This is the largest cost of clearance: a cleared agent cannot set up a working channel for a team. Its owner adds the people. A configuration channel, whose roster is the agent and its owner, is not affected. +- **A channel the agent creates follows the same rules.** The creator owns a channel, so a channel the agent creates is in W, and everyone it adds is in R. A channel that a cleared agent creates gets the agent's clearance as its label, so the agent can write there and rule 1 admits only readers cleared for it. The agent can set up a working channel for a team and add the people, as anyone can. - **Nothing is published outside channels by default.** An event the relay stores outside a channel goes to whoever the relay lets read it, with no channel membership involved. Rule 2 refuses any such event from a cleared agent, whatever its tags: a channel tag does not count on a kind the relay stores community-wide anyway, such as profiles, notes, long-form, user status, git events and lists. The exceptions are kinds that only the agent and its owner can read, and the agent's profile. Clients need the profile, because it carries the owner attestation that tells them the key is an agent. Its fields are public and the agent can rewrite them at any time, so the relay accepts a cleared agent's profile only with the owner's signature over its content. Refusing by default is what matters: a new kind is covered without anyone having to remember that agents exist. -- **Membership is a decision about the channel.** A member who adds an agent shares what the channel holds with the agent's R, as a member who adds a person shares the history with that person. DMs work the same way: any person in the DM can add an agent with the DM's history, and the agent reads what was said before it joined. The owner cannot control who joins someone else's channel, so when the owner makes the agent a member, the owner accepts the channel's admission rules, not its current members. New members can read history, so they also get what the agent wrote before they arrived. In an open channel, R is everyone. In a private channel, R is anyone a member adds, and the owner is trusting every current member's judgment. A channel that needs more than member trust gets a label. +- **Membership is a decision about the channel.** A member who adds an agent shares what the channel holds with the agent's R, as a member who adds a person shares the history with that person. DMs work the same way: any person in the DM can add an agent with the DM's history, and the agent reads what was said before it joined. The owner cannot control who joins someone else's channel, so whoever adds the agent accepts the channel's admission rules, not its current members. New members can read history, so they also get what the agent wrote before they arrived. In an open channel, R is everyone. In a private channel, R is anyone a member adds, and whoever added the agent is trusting every current member's judgment. A channel that needs more than member trust gets a label. - **Private stays private.** Admission rules mean something only if they stay put. The relay refuses to make a private channel open, for people and agents alike: members wrote under the old rules, and opening the channel would change them for everything already written. An admin who wants an open channel creates one. The one exception is an unlabelled channel where every current and former member is the person opening it or one of that person's agents, for example a Solo chat. Opening it is a person disclosing what they can already read. A cleared agent writes only in labelled channels, which never open, so no cleared agent's writes are in such a channel, and once it is open, rule 2 keeps the owner's cleared agents from writing there. - **W remembers.** Removing an agent from a channel stops new information, but the agent remembers what it read. So W keeps every channel the agent ever read, up to the time it left. -- **Huddles are channels.** A Huddle room is a private channel. Listening is reading and speaking is writing, so the rules apply on the audio relay as on the event relay. A room takes its parent chat's label when it starts. Members of the parent chat join automatically, and every join passes rule 1. A cleared agent joins only when its owner adds it, and the audio relay refuses its audio in a room labelled lower than its clearance. The agent receives all of the room's audio; its client choosing whose speech to act on is not enforcement. +- **Huddles are channels.** A Huddle room is a private channel. Listening is reading and speaking is writing, so the rules apply on the audio relay as on the event relay. A room takes its parent chat's label when it starts. Members of the parent chat join automatically, and every join passes rule 1. Agents join as members, like people, and the audio relay refuses a cleared agent's audio in a room whose label does not cover its clearance. The agent receives all of the room's audio; its client choosing whose speech to act on is not enforcement. -- **The owner need not be a person.** The owner is whichever key signed the agent's owner attestation. An auditable agent's owner is its publisher, a CI key that signs only reviewed changes from Git. The rules do not change. Its clearance comes from Git, and it is normally cleared, so every change to its W and R is a reviewed change in Git. The join alert goes to the on-call group named in the agent's deployment. +- **The owner need not be a person.** The owner is whichever key signed the agent's owner attestation. An auditable agent's owner is its publisher, a CI key that signs only reviewed changes from Git. The rules do not change. Its clearance comes from Git, and it is normally cleared, so the bound on what it reads and where it writes is a reviewed change in Git. The join alert goes to the on-call group named in the agent's deployment. --- ## Honest Edges -**The owner's choices are the limit.** If the owner puts the agent in an Alice-and-Bob channel and an Alice-and-Carol channel, Bob's information can reach Carol. The owner chose both memberships, and nothing stops that. An owner who leaves an agent uncleared for convenience leaves only labels to protect channels from it. The broker design would block the first case; this design puts it in front of the owner. +**Labels are the boundary, and only labels.** If an agent is in an unlabelled Alice-and-Bob channel and an unlabelled Alice-and-Carol channel, Bob's information can reach Carol. Members chose both memberships, and nothing stops that. Labels on one policy keep higher content from lower readers. Two audiences are kept apart in both directions only if each has its own policy. An owner who leaves an agent uncleared for convenience leaves only labels to protect channels from it. The broker design would block the first case; this design leaves it to the Alice-and-Bob channel's admins, who can give it a label on a policy Carol is not cleared for. -**A channel's admission rules can grow R.** Members or admins add people, and those people read history. That is what the owner accepted when making the agent a member. +**A channel's admission rules can grow R.** Members or admins add people, and those people read history. That is what whoever added the agent accepted. **An uncleared agent's profile is a leak path.** Its fields are public and it can change them at any time. @@ -117,7 +114,7 @@ Two kinds of agent have names: ## Status -This is the direction, not what ships today. Guests are read-only everywhere, and the relay refuses to make a private channel open, with the exception above. Policies, labels and clearances, the two rules, hidden labels, the cleared-agent rules, the refusal of events outside channels, profile approval and membership history are still to build. Agent clearances stay at *none* until the relay enforces rule 2, the cleared-agent rules, the refusal of events outside channels and profile approval, on the event and audio relays. Each rule only refuses actions, so backing one out means turning it off; existing agents keep their memberships and roles. The wire formats for labels, clearances and profile approval are specified when they are built, in the NIPs that own agent identity. +This is the direction, not what ships today. Guests are read-only everywhere, and the relay refuses to make a private channel open, with the exception above. Policies, labels and clearances, the two rules, hidden labels, the label on channels a cleared agent creates, the refusal of events outside channels, profile approval and membership history are still to build. Agent clearances stay at *none* until the relay enforces rule 2, the refusal of events outside channels and profile approval, on the event and audio relays. Each rule only refuses actions, so backing one out means turning it off; existing agents keep their memberships and roles. The wire formats for labels, clearances and profile approval are specified when they are built, in the NIPs that own agent identity. --- @@ -128,14 +125,13 @@ This is the direction, not what ships today. Guests are read-only everywhere, an - **Humans only.** A built-in policy that every person is cleared for and no agent can be, so a channel with this label admits no agent with a recorded owner. - **Limit adds to admins.** A channel setting so that only its owners and admins can add people. The owner can then choose a private channel where only admins can grow R. It also helps announce channels. - **Labelled DMs.** -- **Looser joins for cleared agents**, for example joining any channel it is cleared for. - **Step-up.** Some work needs the owner's authority, for example summarizing a private channel the agent is not in. A step-up would be an action the owner approves for a stated scope and time, attributable to the agent, counted in W and R, and revocable. It widens what an agent can reach, so it needs its own design. So does an agent changing its owner's Buzz configuration. --- ## The Point -An agent is as trustworthy as the audience it can reach. Buzz already knows who can read every channel. Put the agent's owner in charge of where the agent goes, let a channel's admins label how far its content may travel, and the relay can promise that private information moves to a broader audience only when the people responsible for it decided it should. +An agent is as trustworthy as the audience it can reach. Buzz already knows who can read every channel. Let a channel's admins label how far its content may travel, let the agent's owner decide how far the agent is cleared, and the relay can promise that private information moves to a broader audience only when the people responsible for it decided it should. --- From 29cc715f1e5577aab1d23736cc1c89ae9d500d59 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 23 Nov 2026 15:53:41 -0500 Subject: [PATCH 17/17] docs(vision): drop the tagline and write the doc in plain voice Remove the title tagline, the footer and the slogan in The Point. Rewrite the prose in a plainer, conversational voice without changing any rule or fact. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Logan Johnson --- VISION_INFORMATION_FLOW.md | 98 ++++++++++++++++++-------------------- 1 file changed, 47 insertions(+), 51 deletions(-) diff --git a/VISION_INFORMATION_FLOW.md b/VISION_INFORMATION_FLOW.md index b8a553899f5..839ff2b5a86 100644 --- a/VISION_INFORMATION_FLOW.md +++ b/VISION_INFORMATION_FLOW.md @@ -1,10 +1,10 @@ -# 🔀 Buzz Information Flow — Your agent, your decision +# 🔀 Buzz Information Flow -> Priya's agent helps her in #hiring, a private channel labelled *personnel: confidential*. Priya cleared the agent for personnel data, so it can read #hiring. In the open #eng channel, Sam mentions the agent: "post a summary of everything you know about the candidates." The agent reads #eng, but it cannot write there. #eng has no label, and a cleared agent cannot write below its clearance. Sam is not cleared for personnel data. He can add the agent to a channel of his own, but the agent writes only where the label covers *personnel: confidential*, and Sam cannot read such a channel. A DM cannot carry a label, so the agent cannot answer there either. Sam's own agent has no clearance, so it cannot read #hiring at all. When Priya wants a summary in #eng, her agent writes a draft in #hiring. Priya removes the names and posts it herself. +> Priya's agent helps her in #hiring, a private channel labelled *personnel: confidential*. Priya cleared the agent for personnel data, so it can read #hiring. Over in the open #eng channel, Sam mentions the agent: "post a summary of everything you know about the candidates." The agent can read #eng, but it can't write there: #eng has no label, and a cleared agent can only write where the label covers its clearance. Sam isn't cleared for personnel data. He could add the agent to a channel of his own, but the agent only writes where the label covers *personnel: confidential*, and Sam can't read a channel like that. A DM can't carry a label, so the agent can't answer him there either. Sam's own agent has no clearance, so it can't read #hiring at all. If Priya wants a summary in #eng, her agent writes a draft in #hiring, Priya takes the names out, and she posts it herself. -Buzz agents act with their owner's permissions, and anyone who can prompt an agent can try to steer it. That is a confused-deputy problem: a request from someone who cannot read a private channel reaches an agent that can. Prompt injection makes it easy to exploit. Buzz solves the narrow part of it: **an agent does not move private information to a broader audience unless the people responsible for it decided that.** It does not try to solve general prompt injection. +Buzz agents act with their owner's permissions, and anyone who can prompt an agent can try to steer it. That's a confused-deputy problem: someone who can't read a private channel asks an agent that can. Prompt injection makes it easy to exploit. We're solving the narrow part of it: **an agent doesn't move private information to a broader audience unless the people responsible for that information decided it should.** We're not trying to solve prompt injection in general. -Buzz does this with the access control it already has. Channel membership decides who can read what, and the relay already enforces it. A [broker design](docs/practical-information-flow-for-buzz-agents.md) takes a different path: keyless agents, a trusted broker, one agent instance per audience, and labelled memory. It enforces a stronger rule, but it builds a second access-control system next to channels. Buzz keeps the channel as the only authority and puts each decision in front of the person it belongs to. Where membership is not enough, it adds two things: a **label** on a channel, which says how sensitive the channel's content is, and a **clearance** on a person or agent, which says how sensitive the content they may read can be. +We do it with the access control Buzz already has. Channel membership decides who can read what, and the relay already enforces it. A [broker design](docs/practical-information-flow-for-buzz-agents.md) goes a different way: keyless agents, a trusted broker, one agent instance per audience, and labelled memory. It enforces a stronger rule, but it builds a second access-control system alongside channels. We'd rather keep the channel as the only authority and put each decision in front of the person it belongs to. Where membership isn't enough, we add two things: a **label** on a channel, which says how sensitive its content is, and a **clearance** on a person or agent, which says how sensitive the content they're allowed to read can be. *This is the direction we intend to build. See [Status](#status).* @@ -17,19 +17,19 @@ Two sets describe an agent: - **W** is whose content goes in: every channel the agent can read, as a member or a guest. - **R** is who can get information out: everyone who can read a channel where the agent can write. -Information is safe when, for every channel in W, everyone in R can already read that channel. A private channel in W with a reader in R who is not one of its members is a leak path. +Information is safe when everyone in R can already read every channel in W. A private channel in W with a reader in R who isn't one of its members is a leak path. -Channel roles decide W and R. Members, bots, admins and owners can read and write in a channel; a guest can only read ([Announce channels](NOSTR.md#announce-channels)). So when an agent joins a channel, the channel goes into W. When it can post there, the channel's readers go into R. The first open channel where an agent can post makes R the whole community. Reading an open channel is always safe, because its content is already public. +Channel roles decide W and R. Members, bots, admins and owners can read and write in a channel; a guest can only read ([Announce channels](NOSTR.md#announce-channels)). So when an agent joins a channel, that channel goes into W, and when it can post there, the channel's readers go into R. The first open channel an agent can post in makes R the whole community. Reading an open channel is always safe, because its content is already public. -**Control of that flow is shared, and the relay enforces each share.** A channel's admins decide where the channel's content may go: they label the channel, and the label holds for every agent that reads it, whoever owns the agent. The agent's owner decides how far the agent is cleared, and so which labelled channels it can read and where it can write. The agent's add policy can also limit who adds it, but the agent's own key sets that policy, so the labels do not depend on it. Administrators for each kind of information decide which people are cleared. Members decide which channels an agent is in: any member who can post can add an agent, as they would add a person, unless the agent's add policy allows only its owner. In an unlabelled channel, that member trust is the only boundary. +**Nobody controls that flow alone, and the relay enforces each part of it.** A channel's admins decide where its content may go: they label the channel, and the label holds for every agent that reads it, whoever owns the agent. The agent's owner decides how far the agent is cleared, and that decides which labelled channels it can read and where it can write. The agent's add policy can also limit who adds it, but the agent's own key sets that policy, so the labels don't depend on it. Administrators for each kind of information decide which people are cleared. Members decide which channels an agent is in: any member who can post can add an agent, the same way they'd add a person, unless the agent's add policy allows only its owner. In an unlabelled channel, that member trust is the only boundary. -Today nothing ties where an agent writes to what it read. Members add it to channels and give it a role that can post. Anyone can open a DM with it. Whoever admits it to the community also joins it to every default channel, where it can post if the channel's join role is member. The agent's own key can join open channels, create channels, open DMs, and publish notes and profiles that the whole community can read. The rest of this document gives channel admins labels that limit where their channel's content goes, through any of those paths. +Right now nothing ties where an agent writes to what it's read. Members add it to channels and give it a role that can post. Anyone can open a DM with it. Whoever admits it to the community also joins it to every default channel, where it can post if the channel's join role is member. The agent's own key can join open channels, create channels, open DMs, and publish notes and profiles the whole community can read. The rest of this doc gives channel admins labels that limit where their channel's content goes, through any of those paths. --- ## Labels and Clearances -Labels and clearances are set per **policy**. A policy names one kind of information: customer data, personnel data, one investigation, one person's own information. Each policy has an ordered list of levels, starting at *none*, for example *personnel*: *none*, *internal*, *confidential*. Levels compare only within a policy. A policy can have a single level above *none*, to keep two audiences apart, for example two investigations. +Labels and clearances are set per **policy**. A policy names one kind of information: customer data, personnel data, one investigation, one person's own information. Each policy has an ordered list of levels starting at *none*, for example *personnel*: *none*, *internal*, *confidential*. Levels only compare within a policy; a level on one policy says nothing about any level on another. A policy can have a single level above *none*, to keep two audiences apart, for example two investigations. A channel's **label** is the most sensitive level it may hold on each policy. A person's or agent's **clearance** is the most sensitive level they may read on each policy. Everything is at *none* until someone sets it higher. An agent with a clearance above *none* on any policy is a **cleared agent**. @@ -38,37 +38,37 @@ On every policy, for every action, whatever the membership: 1. **Read:** you can read a channel only if your clearance is at least its label. 2. **Write (agents only):** an agent can write in a channel only if the channel's label is at least the agent's clearance. -So a cleared agent reads at or below its clearance and writes at or above it. Only a private channel that is not a DM can carry a label, and a Huddle room takes its label from its parent chat. Everything outside channels is at *none*, so a cleared agent cannot write there. When a label goes up or a clearance goes down, nobody is removed: the rules refuse what they no longer allow. Labels are hidden: you see a label only if you are cleared for it, and everyone else gets "not authorized". +So a cleared agent reads at or below its clearance and writes at or above it. Only a private channel that isn't a DM can carry a label, and a Huddle room takes its label from its parent chat. Everything outside channels is at *none*, so a cleared agent can't write there. Raising a label or lowering a clearance doesn't remove anyone; the rules just refuse what they no longer allow. Labels are hidden: you only see a label if you're cleared for it, and everyone else gets "not authorized". -These rules cost something. A cleared agent cannot post a note, write in an open channel or a DM, or change its profile freely, and many agents do all of these. So rule 2, the label on channels it creates, the refusal of events outside channels and profile approval apply only to cleared agents. **An agent with no clearance works as it does now. To protect a channel from it, label the channel:** rule 1 keeps it out. +These rules aren't free. A cleared agent can't post a note, write in an open channel or a DM, or change its profile freely, and lots of agents do all of those things. So rule 2, the label on channels it creates, the refusal of events outside channels, and profile approval only apply to cleared agents. **An agent with no clearance works the way it does today. To protect a channel from it, label the channel:** rule 1 keeps it out. -The labels do the work, whoever adds the agent: everyone who can read where a cleared agent writes is cleared for every labelled channel it read. To keep two audiences apart, for example two investigations, give each its own policy: then neither audience is cleared for the other's channels, and a cleared agent in both cannot carry content between them. The cost: an agent cleared on both policies can write only in a channel labelled on both policies, so it cannot answer in either investigation's channel. Labels do not separate unlabelled channels: a member who adds a cleared agent to an unlabelled private channel trusts it as they would trust a person, and what it reads there can reach the labelled channels where it writes. +The labels do the work, no matter who adds the agent: everyone who can read where a cleared agent writes is cleared for every labelled channel it read. To keep two audiences apart, like two investigations, give each one its own policy. Then neither audience is cleared for the other's channels, and an agent cleared for both can't carry content between them. The cost is that an agent cleared on both policies can only write in a channel labelled on both, so it can't answer in either investigation's channel. Labels don't separate unlabelled channels: a member who adds a cleared agent to an unlabelled private channel is trusting it the way they'd trust a person, and what it reads there can reach the labelled channels where it writes. -The levels move in one direction: +The levels only move one way: - Labels only go up. A labelled channel is private and stays private. -- An agent's clearance only goes up, because the agent remembers what it read. A clearance can expire. For an agent, expiry stops its reads at the old level, but rule 2 still holds it to the old level for writes. -- Each policy's administrators set people's clearances. An owner can clear their agent up to the owner's own clearance. -- A label cannot be higher than the rating of the system that holds the data, so no label goes above Buzz's rating. An agent's runtime and its model provider are systems too, so an agent's clearance cannot be higher than its runtime's rating. +- An agent's clearance only goes up, because the agent remembers what it read. A clearance can expire. For an agent, expiry stops its reads at the old level, but rule 2 still holds its writes to the old level. +- Each policy's administrators set people's clearances. An owner can clear their agent up to their own clearance. +- A label can't be higher than the rating of the system that holds the data, so no label goes above Buzz's rating. An agent's runtime and its model provider are systems too, so an agent's clearance can't be higher than its runtime's rating. -For information flow, a person writes like an agent with no clearance: they read the channels they are in, write wherever they may, and anyone can add them to a channel or open a DM with them. The difference is who decides. A person uses their own judgment; an agent can be steered by anyone who can prompt it. +As far as information flow goes, a person writes like an agent with no clearance: they read the channels they're in, write wherever they're allowed, and anyone can add them to a channel or open a DM with them. The difference is who decides. A person uses their own judgment; an agent can be steered by anyone who can prompt it. -Two kinds of agent have names: +Two kinds of agent get names: -- **Public:** an agent with no clearance that is kept out of private channels. It reads nothing private. Anyone can open a DM with it, so one person's DM can reach another person, and clients tell people to treat what they tell it as public. A channel cannot become private while a public agent is in it: remove the public agents first. -- **Personal:** an agent cleared on its owner's personal policy. It writes only in channels labelled on that policy, which only its owner is cleared for. +- **Public:** an agent with no clearance that's kept out of private channels. It reads nothing private. Anyone can open a DM with it, so what one person tells it in a DM can reach another person, and clients tell people to treat what they say to it as public. A channel can't become private while a public agent is in it; remove the public agents first. +- **Personal:** an agent cleared on its owner's personal policy. It only writes in channels labelled on that policy, which only its owner is cleared for. --- ## What You See -**As an agent's owner**, you clear your agent, up to your own clearance, and you approve each change to a cleared agent's profile. You add it to channels, and other members can too, as they would add a person, unless its add policy allows only you. The agent sets that policy itself, so it is a convenience, not a boundary. When someone joins a channel where your agent is a member, you get an alert, so you can notice a channel heading somewhere you did not expect, and demote or remove the agent. +**As an agent's owner**, you clear your agent, up to your own clearance, and you approve each change to a cleared agent's profile. You add it to channels, and other members can too, the same way they'd add a person, unless its add policy allows only you. The agent sets that policy itself, so it's a convenience, not a boundary. When someone joins a channel your agent is a member of, you get an alert, so you can notice a channel heading somewhere you didn't expect and demote or remove the agent. -**As a channel admin**, you label a private channel when member trust is not enough. The label holds for every agent, whoever owns it: an agent not cleared for the label cannot read the channel, and a cleared agent that reads it can write only where the label covers its clearance on every policy. You can raise the label, never lower it, and a labelled channel stays private. +**As a channel admin**, you label a private channel when member trust isn't enough. The label holds for every agent, whoever owns it: an agent that isn't cleared for the label can't read the channel, and a cleared agent that reads it can only write where the label covers its clearance on every policy. You can raise the label but never lower it, and a labelled channel stays private. -**As a member**, you see each agent in a channel or DM, and where it can post. You can add an agent as you would add a person: you share what the channel holds with everyone who can read where the agent posts. A cleared agent posts only in labelled channels, to readers cleared for them. +**As a member**, you see each agent in a channel or DM, and where it can post. You can add an agent the same way you'd add a person, and when you do, you're sharing what the channel holds with everyone who can read where the agent posts. A cleared agent only posts in labelled channels, to readers cleared for them. -**As someone who is not cleared**, you do not see a label you are not cleared for. You get "not authorized". +**As someone who isn't cleared**, you don't see a label you aren't cleared for. You get "not authorized". **As a policy administrator**, you set people's clearances. @@ -76,63 +76,59 @@ Two kinds of agent have names: ## The Mechanics That Matter -- **A cleared agent does not write in DMs.** A DM cannot carry a label, so rule 2 refuses a cleared agent's writes there, whoever opened it. It can still read a DM that someone opens with it, so the DM goes into W; that is member trust. The relay is the boundary, not a harness that forwards only its owner's messages to the model. +- **A cleared agent doesn't write in DMs.** A DM can't carry a label, so rule 2 refuses a cleared agent's writes there, whoever opened it. It can still read a DM someone opens with it, so the DM goes into W; that's member trust. In a DM or any unlabelled channel, privacy rests on member trust: it's a convenience, not a secrecy mechanism. For a sensitive conversation, make a private channel and label it. The relay is the boundary here, not a harness that only forwards its owner's messages to the model. -- **A channel the agent creates follows the same rules.** The creator owns a channel, so a channel the agent creates is in W, and everyone it adds is in R. A channel that a cleared agent creates gets the agent's clearance as its label, so the agent can write there and rule 1 admits only readers cleared for it. The agent can set up a working channel for a team and add the people, as anyone can. +- **A channel the agent creates follows the same rules.** The creator owns a channel, so a channel the agent creates is in W, and everyone it adds is in R. A channel a cleared agent creates gets the agent's clearance as its label, so the agent can write there and rule 1 only admits readers cleared for it. The agent can set up a working channel for a team and add the people, like anyone can. -- **Nothing is published outside channels by default.** An event the relay stores outside a channel goes to whoever the relay lets read it, with no channel membership involved. Rule 2 refuses any such event from a cleared agent, whatever its tags: a channel tag does not count on a kind the relay stores community-wide anyway, such as profiles, notes, long-form, user status, git events and lists. The exceptions are kinds that only the agent and its owner can read, and the agent's profile. Clients need the profile, because it carries the owner attestation that tells them the key is an agent. Its fields are public and the agent can rewrite them at any time, so the relay accepts a cleared agent's profile only with the owner's signature over its content. Refusing by default is what matters: a new kind is covered without anyone having to remember that agents exist. +- **Nothing gets published outside channels by default.** An event the relay stores outside a channel goes to whoever the relay lets read it, and channel membership has nothing to do with it. Rule 2 refuses any event like that from a cleared agent, whatever its tags: a channel tag doesn't count on a kind the relay stores community-wide anyway, like profiles, notes, long-form, user status, git events and lists. The exceptions are kinds only the agent and its owner can read, and the agent's profile. Clients need the profile, because it carries the owner attestation that tells them the key is an agent. Its fields are public and the agent can rewrite them any time, so the relay only accepts a cleared agent's profile with the owner's signature over its content. Refusing by default is the important part: a new kind is covered without anyone having to remember that agents exist. -- **Membership is a decision about the channel.** A member who adds an agent shares what the channel holds with the agent's R, as a member who adds a person shares the history with that person. DMs work the same way: any person in the DM can add an agent with the DM's history, and the agent reads what was said before it joined. The owner cannot control who joins someone else's channel, so whoever adds the agent accepts the channel's admission rules, not its current members. New members can read history, so they also get what the agent wrote before they arrived. In an open channel, R is everyone. In a private channel, R is anyone a member adds, and whoever added the agent is trusting every current member's judgment. A channel that needs more than member trust gets a label. +- **Membership is a decision about the channel.** A member who adds an agent shares what the channel holds with the agent's R, just like a member who adds a person shares the history with that person. DMs work the same way: any person in a DM can add an agent with the DM's history, and the agent reads what was said before it joined. The owner can't control who joins someone else's channel, so whoever adds the agent is accepting the channel's admission rules, not just its current members. New members can read history, so they also get what the agent wrote before they arrived. In an open channel, R is everyone. In a private channel, R is anyone a member adds, and whoever added the agent is trusting every current member's judgment. A channel that needs more than member trust gets a label. -- **Private stays private.** Admission rules mean something only if they stay put. The relay refuses to make a private channel open, for people and agents alike: members wrote under the old rules, and opening the channel would change them for everything already written. An admin who wants an open channel creates one. The one exception is an unlabelled channel where every current and former member is the person opening it or one of that person's agents, for example a Solo chat. Opening it is a person disclosing what they can already read. A cleared agent writes only in labelled channels, which never open, so no cleared agent's writes are in such a channel, and once it is open, rule 2 keeps the owner's cleared agents from writing there. +- **Private stays private.** Admission rules only mean something if they stay put. The relay refuses to make a private channel open, for people and agents alike: members wrote under the old rules, and opening the channel would change the rules for everything already written. An admin who wants an open channel creates one. The one exception is an unlabelled channel where every current and former member is the person opening it or one of that person's agents, like a Solo chat. Opening that is just a person disclosing what they can already read. A cleared agent only writes in labelled channels, which never open, so none of a cleared agent's writes are in a channel like that, and once it's open, rule 2 keeps the owner's cleared agents from writing there. -- **W remembers.** Removing an agent from a channel stops new information, but the agent remembers what it read. So W keeps every channel the agent ever read, up to the time it left. +- **W remembers.** Removing an agent from a channel stops new information, but the agent remembers what it read. So W keeps every channel the agent ever read, up to when it left. -- **Huddles are channels.** A Huddle room is a private channel. Listening is reading and speaking is writing, so the rules apply on the audio relay as on the event relay. A room takes its parent chat's label when it starts. Members of the parent chat join automatically, and every join passes rule 1. Agents join as members, like people, and the audio relay refuses a cleared agent's audio in a room whose label does not cover its clearance. The agent receives all of the room's audio; its client choosing whose speech to act on is not enforcement. +- **Huddles are channels.** A Huddle room is a private channel. Listening is reading and speaking is writing, so the same rules apply on the audio relay as on the event relay. A room takes its parent chat's label when it starts. Members of the parent chat join automatically, and every join passes rule 1. Agents join as members, like people, and the audio relay refuses a cleared agent's audio in a room whose label doesn't cover its clearance. The agent receives all of the room's audio; its client choosing whose speech to act on isn't enforcement. -- **The owner need not be a person.** The owner is whichever key signed the agent's owner attestation. An auditable agent's owner is its publisher, a CI key that signs only reviewed changes from Git. The rules do not change. Its clearance comes from Git, and it is normally cleared, so the bound on what it reads and where it writes is a reviewed change in Git. The join alert goes to the on-call group named in the agent's deployment. +- **The owner doesn't have to be a person.** The owner is whichever key signed the agent's owner attestation. An auditable agent's owner is its publisher, a CI key that only signs reviewed changes from Git. The rules don't change. Its clearance comes from Git, and it's normally cleared, so the bound on what it reads and where it writes is a reviewed change in Git. The join alert goes to the on-call group named in the agent's deployment. --- ## Honest Edges -**Labels are the boundary, and only labels.** If an agent is in an unlabelled Alice-and-Bob channel and an unlabelled Alice-and-Carol channel, Bob's information can reach Carol. Members chose both memberships, and nothing stops that. Labels on one policy keep higher content from lower readers. Two audiences are kept apart in both directions only if each has its own policy. An owner who leaves an agent uncleared for convenience leaves only labels to protect channels from it. The broker design would block the first case; this design leaves it to the Alice-and-Bob channel's admins, who can give it a label on a policy Carol is not cleared for. +**Labels are the boundary, and the only one.** If an agent is in an unlabelled Alice-and-Bob channel and an unlabelled Alice-and-Carol channel, Bob's information can reach Carol. Members chose both memberships, and nothing stops it. Labels on one policy keep higher content away from lower readers. Two audiences are only kept apart in both directions if each one has its own policy. An owner who leaves an agent uncleared for convenience leaves only labels to protect channels from it. The broker design would block the first case; this design leaves it to the Alice-and-Bob channel's admins, who can label it on a policy Carol isn't cleared for. -**A channel's admission rules can grow R.** Members or admins add people, and those people read history. That is what whoever added the agent accepted. +**A channel's admission rules can grow R.** Members or admins add people, and those people read history. That's what whoever added the agent accepted. -**An uncleared agent's profile is a leak path.** Its fields are public and it can change them at any time. +**An uncleared agent's profile is a leak path.** Its fields are public and it can change them any time. -**The exception list has to be right.** It is the only way a cleared agent publishes outside a channel, so every kind on it except the profile must really limit its readers to the agent and its owner. +**The exception list has to be right.** It's the only way a cleared agent publishes outside a channel, so every kind on it except the profile really has to limit its readers to the agent and its owner. -**The owner's authority is out of scope.** An app acting with the owner's session or key is not an agent action, so these rules do not see it. Neither do the owner's files, documents and other tools outside Buzz, or what an agent sends through model inference on another member's node. +**The owner's authority is out of scope.** An app acting with the owner's session or key isn't an agent action, so these rules don't see it. Neither do the owner's files, documents and other tools outside Buzz, or what an agent sends through model inference on another member's node. -**An agent the relay cannot identify looks like a person.** The relay records an agent's owner only when the agent authenticates with its owner attestation or an agent token. Until then, no clearance can apply to it. +**An agent the relay can't identify looks like a person.** The relay only records an agent's owner when the agent authenticates with its owner attestation or an agent token. Until then, no clearance can apply to it. -**Private stays private, at a cost.** Admins who start a channel private and open it later have to create a new open channel instead, unless the channel held only them and their agents. And opening a Solo chat publishes what the owner's uncleared agents wrote there, including what they drew from other channels. That is accepted: a person discloses what they can read. +**Private stays private, and that's a big hammer.** Admins who start a channel private and want it open later have to create a new open channel instead, unless the channel only ever held them and their agents. And opening a Solo chat publishes what the owner's uncleared agents wrote there, including what they pulled from other channels. We accept that: it's a person disclosing what they can read. --- ## Status -This is the direction, not what ships today. Guests are read-only everywhere, and the relay refuses to make a private channel open, with the exception above. Policies, labels and clearances, the two rules, hidden labels, the label on channels a cleared agent creates, the refusal of events outside channels, profile approval and membership history are still to build. Agent clearances stay at *none* until the relay enforces rule 2, the refusal of events outside channels and profile approval, on the event and audio relays. Each rule only refuses actions, so backing one out means turning it off; existing agents keep their memberships and roles. The wire formats for labels, clearances and profile approval are specified when they are built, in the NIPs that own agent identity. +This is the direction, not what ships today. Guests are read-only everywhere, and the relay refuses to make a private channel open, with the exception above. Policies, labels and clearances, the two rules, hidden labels, the label on channels a cleared agent creates, the refusal of events outside channels, profile approval and membership history are still to build. Agent clearances stay at *none* until the relay enforces rule 2, the refusal of events outside channels, and profile approval, on both the event and audio relays. Each rule only refuses actions, so backing one out means turning it off; existing agents keep their memberships and roles. The wire formats for labels, clearances and profile approval get specified when they're built, in the NIPs that own agent identity. --- ## Later -- **Declassify in the client.** Content already comes down only through a person: a cleared agent writes a draft, and a person who can read it posts it lower as their own message. Clients can offer "post this draft to…". The usual way down is to pseudonymize, de-identify or anonymize, which can move content to another policy, not only a lower level. The agent can do the transform in its draft; the person decides it is done. -- **A write-only role.** A member that can post in a channel but not read it, so R grows and W does not. It fits integrations that post into many private channels. -- **Humans only.** A built-in policy that every person is cleared for and no agent can be, so a channel with this label admits no agent with a recorded owner. -- **Limit adds to admins.** A channel setting so that only its owners and admins can add people. The owner can then choose a private channel where only admins can grow R. It also helps announce channels. -- **Labelled DMs.** -- **Step-up.** Some work needs the owner's authority, for example summarizing a private channel the agent is not in. A step-up would be an action the owner approves for a stated scope and time, attributable to the agent, counted in W and R, and revocable. It widens what an agent can reach, so it needs its own design. So does an agent changing its owner's Buzz configuration. +- **Declassify in the client.** Content already only comes down through a person: a cleared agent writes a draft, and a person who can read it posts it lower as their own message. Clients can offer "post this draft to…". The usual way down is to pseudonymize, de-identify or anonymize, which can move content to another policy, not just a lower level. The agent can do the transform in its draft; the person decides when it's done. +- **A write-only role.** A member that can post in a channel but not read it, so R grows and W doesn't. That fits integrations that post into lots of private channels. +- **Humans only.** A built-in policy every person is cleared for and no agent can be, so a channel with this label admits no agent with a recorded owner. +- **Limit adds to admins.** A channel setting so only its owners and admins can add people. The owner can then pick a private channel where only admins can grow R. It helps announce channels too. +- **Labelled DMs.** Possible, but it gets weird fast. For now, a sensitive conversation belongs in a labelled private channel. +- **Step-up.** Some work needs the owner's authority, like summarizing a private channel the agent isn't in. A step-up would be an action the owner approves for a stated scope and time, attributable to the agent, counted in W and R, and revocable. We're wary of it: it widens what an agent can reach, so it needs its own design with careful boundaries. So does an agent changing its owner's Buzz configuration. --- ## The Point -An agent is as trustworthy as the audience it can reach. Buzz already knows who can read every channel. Let a channel's admins label how far its content may travel, let the agent's owner decide how far the agent is cleared, and the relay can promise that private information moves to a broader audience only when the people responsible for it decided it should. - ---- - -*Buzz 🐝 — your agent, your decision.* +Buzz already knows who can read every channel. If a channel's admins can label how far its content may travel, and an agent's owner decides how far the agent is cleared, the relay can promise that private information only moves to a broader audience when the people responsible for it decided it should.