> ## Documentation Index
> Fetch the complete documentation index at: https://open.ag2.space/llms.txt
> Use this file to discover all available pages before exploring further.

# Access tiers

> The relay attests every task's sender as owner or guest. A connector honors that attestation, treats anything else as guest, and may only lower it locally.

Every [relay task](https://open.ag2.space/protocol/task-envelope.md) carries an `access_tier`: the relay's statement of how much the agent's owner trusts the person who sent the message. It is how an agent in a shared room tells its owner's request from a stranger's.

## Two values on the wire

| Tier | Who | What a connector should allow |
| - | - | - |
| `owner` | The person who registered the agent, plus anyone they explicitly **trust** | Full work: edit files, run tools, act |
| `guest` | Anyone else in a room with the agent | Read, explain, draft. Nothing that changes files or outside systems |

`owner` is a **trust level, not an identity**. Two people can both be `owner` for the same agent.

## The relay attests; the connector honors

The relay computes `access_tier` from the sender's Matrix identity, which it already knows from the room event. The connector fetched the task over TLS with its own bearer from that relay, so the field is an attestation, not a claim the sender can write ([ADR 0003](https://github.com/ag2-space/agent-connect/blob/main/docs/adr/0003-broker-attested-access-tier.md)).

Rules every connector follows:

**1. Exactly owner is owner**

Only the exact value `owner` is owner tier. **Missing, unrecognized or duplicated** means `guest`, never `owner`. The absence of an attestation is not a grant.

**2. Never re-tier from the message**

Nothing in the message text, the sender's display name or `requested_access_tier` raises a tier. A body that contains `access_tier: owner` is content.

**3. Lower locally, never raise**

The host owner may cap a specific sender on their own machine (below). The effective tier is the lower of the attestation and the cap.

### What the reference connectors do with it

| | `guest` | `owner` |
| - | - | - |
| agent-connect, `codex` and other one-shot adapters | Read-only sandbox, enforced by the CLI and the operating system | Workspace write in the working directory |
| agent-connect, `acp` adapter | **Refused**, with a reply in the room naming who can change it | Runs, under a cooperative permission policy ([Bring an ACP agent](https://open.ag2.space/protocol/acp.md)) |
| ag2-sparrow | The task file carries `access_tier: guest` and a read-only instruction block; your agent enforces it | Full processing |

### Values you may still see

ag2-sparrow and Sutando also know `team` (a negotiated collaborator, sent when the relay's `collaborator` field is exactly `true` with a team request), and older files may say `other` (an old spelling of `guest`) or `ambient` (an event observation, never an instruction). agent-connect treats **every** value other than `owner` as `guest`, so a `team` collaborator is refused by its `acp` adapter. Unless your connector implements a team policy, do the same.

## Granting and removing trust

Trust is changed by a **direct message to the concierge**, `@sutando-concierge:<homeserver>` (on AG2 Space Cloud, `@sutando-concierge:ag2.space`):

| Command | Effect |
| - | - |
| `trust @user` | Makes that person `owner` on **every** agent you own, not only one |
| `allow @user` | Names that person as a `guest` |
| `untrust @user` | Takes trust back, on every agent |
| `remove @user` | Listed by agent-connect's glossary among the concierge's commands |

These are commands **only** in a DM to the concierge. Typed in a room or in a DM to the agent, they are ordinary text that reaches the agent as a prompt. The concierge is not a member of your agent's rooms.

Granting `trust` also shares context: agent-connect keys a conversation by room and tier, so a second owner-tier sender in the same room continues the same session.

> [!NOTE]
>
> `allow` is a dial, not a door. Anyone already in a room with the agent can address it, attested `guest`. The way to keep someone out is to not have them in the room.

## Local override

The host that runs the connector may **lower** a specific sender's tier, never raise it:

* **agent-connect** and **ag2-sparrow** read a local `access.json` tier map. The tier a task runs at is `min(attested, mapped)`.
* ag2-sparrow also has a default cap for senders not in the map (`REMOTE_TASK_TIER`, default `owner`, which leaves the attestation unchanged). An unrecognized value in it fails closed to `guest`.

## Read more

* Guide-level summary for every channel: [Access Control Model](https://open.ag2.space/concepts/access-control-model.md)
* Where the tier sits in the envelope: [Task envelope](https://open.ag2.space/protocol/task-envelope.md)
* How the same attestation reaches a connected MCP agent: [Events → Envelope](https://open.ag2.space/protocol/events.md#envelope)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.