authorization

An authorization guide for software agents. It explains how an agent's groups and the owner of a conversation determine which data it can use and which actions it can request.

In plain words
What is it for?
Use it when defining agent groups, checking who may run an agent, or determining which objects, telemetry, and actions an agent can reach.
Why use it?
It makes agent access follow the same permission rules as other users and prevents instructions from granting access that the agent's permissions do not allow.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/sixb-ai/sixb/authorization
Clone the repo
git clone --depth 1 https://github.com/sixb-ai/sixb
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 498 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00498
Opus 5 $0.00000 $0.00249
Sonnet 5 $0.00000 $0.00100
Haiku 4.5 $0.00000 $0.00050

Measured yesterday against content hash 7efb1768d639, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

authorization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/agents/authorization.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Authorization

Agents touch the same data and actions as everyone else, so the same authorization model governs them. Two things decide what an agent can do: the groups on its definition and the owner of each thread.

When authentication is disabled for the runtime, requests through the Agent API gateway follow the same unrestricted authorization behavior as normal API requests. The group restrictions below apply when authentication is enabled.

Groups gate use and reach

An agent's groups (set on defineAgent) do two things:

  • Who can use it. A principal can list and run an agent only if their grants cover it (run:agent). GET /api/agents returns only agents the caller may run; running one without the grant is rejected.
  • What it can reach. A run acts under its own identity whose memberships mirror the agent's groups — so it can query the objects, read the telemetry, and request the actions its groups allow, and nothing else. Its instructions can ask for anything; only its permissions get through.
import { defineAgent, defineGroup } from "@sixb/core"
import { gateway } from "ai"

const financeAdmins = defineGroup("finance-admins")

export const invoiceAssistant = defineAgent("invoice-assistant", {
  name: "Invoice Assistant",
  model: gateway("openai/gpt-5.5"),
  instructions: "...",
  groups: [financeAdmins], // only finance admins can run it; it acts with their reach
})

Every referenced group must exist in your security registry (security/groups/ or createSixb({ groups })), or startup fails.

Threads are owner-scoped

A thread records the principal that created it. Reading it, posting to it, and subscribing to its stream all require that owner (plus the run:agent grant). Anyone else sees it as not-found.

The run API exposes requestedBy, resolved from its immutable execution record. The Agent's managed service account is the execution authority; it is stored once in that execution record rather than copied onto the run.

Read the full file on GitHub · 50 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 50 lines · 0 tokens per session scan A 7efb1768d639

Subscribe to this mod's changes

authorization is an agent published in the GitHub repository sixb-ai/sixb (53 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 498 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.