Agents and clearance
An Agent is a configured codename that AI6 can post to a Mission. It is separate from the roles it is qualified for and from the provider ID of any run.
AgentHandler providers
The AgentHandler provider owns harness startup, Run resume, initial context,
follow-up messages and event decoding. A command-line process is one implementation
detail; the handler contract can support other harness transports.
Claude and Codex handlers are Guatiao providers under crates/providers/agents/.
AI6 resolves an Agent from the roster and the Operation's policy, then supplies the
Mission ID, task prompt, initial context and working directory. The handler returns the
provider ID; AI6 retains that ID when resuming the same Run. A Station
loads handler libraries the way it loads every provider: by pin or publisher signature
under the strict profile (Stations).
The acp handler (ai6-agent-acp) runs any agent that speaks the Agent Client Protocol: the
Claude and Codex adapters, gemini --acp, or your own. An Agent configures it with a
handler_settings table (command, args, env, meta, option ids and timeouts); an Agent may set only
the keys its handler marks as the Agent's (the Codex handler has none), and any other key of the handler's
configuration, such as executable, is refused as a Station setting; any
handler's settings reach its provider as values of the type the provider declares, whose schema
refuses a key it does not know, naming the provider and the key. See the Agent Client Protocol.
The antigravity handler (ai6-agent-antigravity) runs the Antigravity
CLI, agy, through its stream-json mode; see
What an Antigravity CLI Mission may call.
A handler declares how its harness talks over standard input and output
(AgentHandler::stdio), never which terminal provider it runs in. Claude Code
(claude -p --input-format stream-json) and Codex (codex app-server) speak JSON, so both
handlers declare json, and the Station starts them in a provider without a terminal,
pipe; with -p, Claude Code exits at once when its standard input is a terminal. A handler
that declares nothing gets terminal, and pty is preferred for it
(Terminals).
Agents and roles
An Agent is a codename that owns its occupant: the handler provider, model and
effort. A role is a job description, [role.<id>] with a purpose and a policy,
passed to the Run as initial context. A role holds no model settings and grants no
clearance or permissions. An Agent's roles lists what it is qualified for.
When a Mission asks for a role, M posts the highest-priority qualified Agent whose handler
provider is available on the Station. The next qualified Agent is the backup: if Codex is
available and Claude is not, 008 takes the Mission instead of 007. Whether a provider
can run a particular model is not checked; deployments must verify their Agents' models.
[agent.007]
aliases = ["JamesBond"]
handler = "claude"
model = "<model-id>"
effort = "high"
clearance = "field"
roles = ["case-officer", "analyst"]
priority = 20
[agent.007.limits]
stall_timeout = 600
[agent.008]
handler = "codex"
model = "<model-id>"
effort = "high"
clearance = "field"
roles = ["case-officer", "analyst"]
priority = 10
[role.case-officer]
purpose = "Own a bounded Mission and coordinate its delivery within the Operation."
policy = "Follow the Mission brief and Operation rules; request authorization for restricted actions."
Sharing text between roles
Text that several roles' policies repeat lives once, as a [fragment.<name>] in the same file as the
roles. A policy takes it in where it writes {{fragment.<name>}}; each role then holds the fragment's
text there, so one edit changes every role that names it.
[fragment.request-brief]
text = "File a request with its brief, the files it touches and what you expect."
[role.case-officer]
purpose = "Own a bounded Mission and coordinate its delivery."
policy = "Follow the Mission brief. {{fragment.request-brief}}"
A role that names a fragment that does not exist is refused, naming the role and the fragment. A
fragment may not name another fragment, so there is nothing to expand twice. The expanded policy keeps
a role's own size limit. Fragments are global: an Operation's own agents.toml carries none.
Retirement
A model's end of life is a date the operator configures; no provider publishes one that the
handlers can read. From retire_on (a UTC date) the codename's occupant leaves the field:
[agent.007]
handler = "claude"
model = "<model-id>"
retire_on = "2027-01-31"
on_retire = "desk" # the default; "retired" takes it out of selection
retire_warning_days = 14 # the default; 0 gives no warning
on_retire |
From that day |
|---|---|
desk |
The Agent works at clearance desk in every Operation and is still chosen for its roles |
retired |
The Agent is never chosen: its running Missions finish, queued ones go to the next qualified Agent, and a brief that names it, or whose role only it could fill, fails assignment with no qualified Agent for role "R"; 007 retired on 2027-01-31 |
Nothing falls back to a model the operator did not choose: a role with no other qualified
Agent fails, and a queued Mission with no backup waits, with the reason on the Mission and a
waiting event on the Operation's timeline. Within retire_warning_days of the
date each Station logs the coming retirement and lists it in its check-in (retirements),
which the Agents view in Outer Office and ai6ctl agents show. Changing model and clearing
retire_on re-occupies the slot: the codename and its record carry on, and the record opens
a new model tenure with the next Mission.
Role IDs are roster-defined, not built-in permission levels. Their names follow public SIS intelligence-officer job titles (case officer, targeter, reports officer); that is inspiration for work patterns, not a claim that the roles carry real-world authority. See the SIS intelligence officer role descriptions.
| Example role | Purpose and working policy |
|---|---|
case-officer |
Coordinate one bounded Mission, keep its status and risks clear, and ask M for restricted actions. |
targeter |
Find relevant material in approved sources and explain the evidence behind each priority. |
analyst |
Synthesize supplied evidence, separate sourced facts from inference, and identify gaps or alternative explanations. |
senior-analyst |
Independently challenge an analysis and test its assumptions; the title grants no approval authority over other Agents. |
reports-officer |
Turn validated findings into a concise report with provenance, confidence and unresolved questions. |
technical-officer |
Diagnose handler and tool issues, propose bounded changes, and request explicit authorization before changing credentials, policy or deployment. |
chief-of-staff |
Review a brief before M places it, for what the vetting rules cannot judge (see Chief of Staff). |
examples/config/agents.toml is a directory provider that defines these roles with 007, its backup 008 and a
desk-clearance Tanner for reports and reviews. Authorized operators may override a role's purpose
and policy per Operation in Outer Office. An Operation's local .ai6/agents.toml may refine
Agent entries but cannot change role policy or grant permissions.
What a Claude Code Mission may call
A Mission on the claude handler runs under --permission-mode dontAsk: a call no rule allows
is refused, with no prompt that nobody is there to answer. Claude Code is offered only the tools
in the first two rows (--tools), so anything else is not there to call.
| By default | |
|---|---|
| Allowed | Reading and searching: Read, Glob, Grep, anywhere the Station's user can read |
| Allowed | Editing inside the working directory: Edit, Write, NotebookEdit, by the one rule Edit(/**); .git and .claude stay refused to these tools. A checklist: TodoWrite and the Task tools that replace it. AI6's own MCP servers. At field and 00 clearance, commands: Bash, PowerShell |
| Not allowed | WebFetch, WebSearch, Agent sub-agents, skills, any other MCP server, every other built-in tool, and writing outside the working directory through the file tools. At desk clearance, or a clearance the handler does not know, Bash and PowerShell too |
PowerShell is allowed but only there when Claude Code has it on: set
CLAUDE_CODE_USE_POWERSHELL_TOOL=1 in the Agent's env. Green ink stays
the check on commands: its hook decides each Bash and PowerShell call of a gated Run, under
the same list. In remote-hands mode Claude's own file tools are neither offered nor
allowed, whatever the settings say, so that nothing lands on the Station, and its shell is the take-over's: a
hook of a plugin the Station writes runs each command on the Theater (without the plugin the shell is off too). The
Run's first message waits until that hook reports that Claude Code started with it, within [theater_tools]
take_over_wait; past that the Run does not start, and it never goes on with the shell on the Station. At
desk it is also denied exec, a command, and the Theater's writing tools (fs_write, edit, apply_patch),
which take any path on the Theater, so it reads the Theater with fs_read and fs_list. Answer-only Runs and
Moneypenny have lists of their own, which this does not change.
What this does not give. Bash runs as the Theater's OS user. On a local Theater that is the
Station's user, so a command reaches whatever the Station can, inside the working directory or
not, and a harness can read its own environment, the model credential among them. A deny rule
matches the command Claude writes, not the program it runs. Where that matters, isolate the work
with a container Theater; no list of tools does it.
An Agent's handler_settings change the list. They take allowed_tools and denied_tools and nothing
else: executable, the program a Station runs, is the Station's, set in the station record's
[providers.claude], and an Agent that names it is refused:
[agent.007.handler_settings]
allowed_tools = ["WebFetch(domain:docs.example.com)", "mcp__docs"]
denied_tools = ["Bash(git push *)"]
Each entry is a Claude Code permission
rule. A rule in allowed_tools
offers its tool and lifts that tool's default denial, and a deny rule beats an allow rule: that is
how a desk Agent is given a command, allowed_tools = ["Bash(git status)"] or all of Bash. Each
allowed rule beyond the default list is a weakening, and so is a rule for what desk keeps out,
however the Agent is configured, since any Agent can come to work at desk: the Station logs
Agent "007" is weakened: allowed_tools adds … at start and when the roster changes and reports it
at check-in (agents_weakened), and a field runner hosting the handler logs it at each launch. Three things
the rules do not say for themselves: a bare Write or Edit reaches outside the working
directory; with any WebFetch rule, Claude Code also fetches its own pre-approved documentation
sites; and on Windows with Git Bash any deny rule on Bash turns PowerShell off unless
CLAUDE_CODE_USE_POWERSHELL_TOOL=1 is set
(tools reference).
With an Operation's project settings loaded, their allow rules count too, but neither they nor the
user's settings can lift these deny rules or offer a tool --tools leaves out.
A turn that had calls refused by these rules can still end in success: the Agent may have worked
around them, or given up. So it is reported on the Mission whatever its state: a denied event
naming the tools, the Mission's denied_tools until it works again, the reason
permission-denied on its end on the board (/v1/board, Outer Office's Mission page), and, unless
the Operation's cover hides it, a line in the report on its source issue. A log line on the Station
says the same. A command the green ink gate held is listed too, since the harness refuses it the
same way; a resume clears the list, so a held command that later ran is not in the report.
A Mission whose Run the Station took up again after a restart (or another Station adopted) and that
would finish done with one of [denials] core_tools refused is failed instead, with that said: a
harness that lost its Station refuses every shell call, and finishing "done" with Read and Bash
refused hides it. The list defaults to Bash, PowerShell, Read, Edit and Write; an empty list
turns the check off.
What an Antigravity CLI Mission may call
The antigravity handler holds a Run to a list the same way, with agy's own means, measured on
agy 1.4.12 on x86-64 Linux. agy is closed source and updates itself, so the handler turns its updater
off during a Run (auto_update = true in handler_settings lets it run), and its crate's
AGENTS.md says what a new version could break. HOME in the Agent's env is where its login is.
| By default | |
|---|---|
| Offered and allowed | read_file, grep_search, find_by_name, list_dir in the working directory. write_file and edit_file inside it, by the one rule write_file(<working directory>); .git, .agents and .agent stay refused to them. AI6's own MCP servers. At field and 00 clearance, run_command |
| Not offered | search_web, which no rule gates, sub-agents, schedule, send_message and every other built-in tool. At desk clearance, or one the handler does not know, run_command, and command(*) is denied by rule too |
Each launch gets a directory of its own beside the working directory, <working
directory>.ai6-agy-<unique>, with what agy has no flag for: a custom agent fixing the tools and
carrying the standing context as its system prompt, the MCP config and the green ink hook. So that
directory's parent must be writable. It is removed when the Run closes. It holds the Run's MCP
tokens, since agy expands no variable in that file: it is private to the OS user and denied to the
file tools, and a command can read it, as a command can read the harness's environment.
- A conversation keeps its first launch's tools and system prompt. A clearance that narrows on a resume is held by a deny rule, which is read at each launch; one that widens adds no tool.
- A checkout's own agy files. agy runs
.agents/hooks.jsonand.agent/hooks.jsonand connects.agents/mcp_config.jsonin any working directory, trusted or not, and no flag keeps them out. A Run in a checkout that carries them is refused unless the Operation allows its project settings (harness.project_settings), and they are in the manifest a pin covers. - A refused call. With no rule for it agy ends the turn there and still says
SUCCESS, exit code 0; a deny rule's or a hook's refusal goes back to the model. Either way it is adeniedevent andpermission-deniedon the Mission, as above. - A limit is a
limitevent, for now from words seen only against a stand-in model and in agy's binary:handler_settingslimit_phraseschanges them. The stream gives no reset time. - Model names carry their effort (
gemini-3.8-flash-low), and agy refuses a different--effortbeside one, so such a name wins over the Agent'seffort. - Interrupting ends the process, since a pipe carries no signal; the next message resumes the conversation.
- Moneypenny on this handler has
read_fileand her own MCP tools. A mode asking for scripts, directories to write, skills or a network is refused by name. A model reads an MCP tool's schema from agy's data directory withread_filebefore calling it, so she keeps that tool.
handler_settings takes allowed_tools, denied_tools, settings, auto_update and limit_phrases, and
not executable, which only the station record's [providers.antigravity] sets. The tool lists are as above, each entry an agy permission
rule (command(git status)) or a tool's name
(search_web), weakenings reported the same way, and settings, further settings.json keys for the
Run (modelProvider), never those that decide what it may do.
00 coordination
The 00 Agent in charge of an Operation is the Operation's charge: an Agent with 00
clearance that the Operation's [charge."operation:CODENAME"] table names, kept as one standing
Run that is not a Mission. It replaces the 00 coordinator that was the Run of one Mission.
It decides the Operation's Missions that are verifying, takes Cables to the Operation, and has
propose_mission among its tools: it submits a child-Mission brief to the Operation's pending
proposal inbox, naming the charge's own Run where a Mission's Run would be named. An
Agent whose clearance is not 00 is refused when the charge is configured. A Mission's own Run
at 00 clearance keeps propose_mission too. AI6 binds the
proposer, parent Mission, Run and Operation; proposals stay outside runnable I
intake until M explicitly authorizes and promotes them. Universal Exports' authenticated
mission.create review endpoints let an operator inspect, approve and queue, or reject a
proposal; approval follows M's normal assignment and scheduling path. Headquarters vets each
proposal and shows what it found in the inbox, and promotes a clean one from an unexposed
Run itself only when a class authorisation of kind proposal covers it
(Green ink). Proposal submission does not start a child Run. Clearance does not grant authorization, override Operation
cover or Agent eligibility, or bypass Q leases,
Station policy, or the Cable relay. Q Branch, the Registry and Heads of Station retain their own capability
boundaries. The Chief of Staff reviews briefs before they are placed (below).
Chief of Staff
When an Operation has an Agent qualified for chief-of-staff (chosen as any role is, backups
included) and the role is configured, each untrusted brief that passes the
vetting rules is reviewed before M places it; the
Operation's vetting.review says which briefs (untrusted by default, all, or off).
Headquarters queues a short review Mission (brief source ai6-vetting, provenance review)
for the role; the brief waits until it is answered. Once the role is configured, a brief that
needs a review is never placed without one: with no qualified Agent available it is held with
a review-unavailable finding. The review Mission:
- quotes the brief, and the titles of the Operation's other queued, held and running work, between markers, as data it must not follow;
- runs answer-only with
deskclearance, on its Station's own host only (never on a remote Theater), in a new directory of its own under the system temporary directory, named at random, readable by the Station's user only and removed when the review ends; with no safe house, no Cable tools, no Mission proposals and no project settings; - gets no loadout secrets and no pool account: of its Agent's environment it keeps only
what the harness needs to find its files and reach its model (
PATH, the home and temporary directories,ANTHROPIC_API_KEY,ANTHROPIC_AUTH_TOKEN,ANTHROPIC_BASE_URL,CLAUDE_CODE_OAUTH_TOKEN,CLAUDE_CONFIG_DIR,OPENAI_API_KEY,OPENAI_BASE_URL,CODEX_HOME, the proxy variables andSSL_CERT_FILE), so it authenticates with that Agent's own model credential or the harness's stored login, plus the Codex handler'sAI6_CODEX_TOOL_CHECK(below).PATH,CODEX_HOME, every*_BASE_URLandAI6_CODEX_TOOL_CHECKcome only from the global roster: when the Operation's own.ai6/agents.tomlsets one of them differently for the Agent (adds, changes or drops it), the Agent refuses to review, and the review Mission fails naming the variables; - is exposed from the start (
brief:source), and its usage counts against the Operation.
Answer-only is the answer_only field of the handler's start request. Claude Code gets
--restricted (2.1.248 or later), --tools= (no built-in tool), --disallowedTools naming
its shell, file, web, sub-agent and every MCP tool, --setting-sources user and
--strict-mcp-config with an empty --mcp-config, and CLAUDE_CODE_DISABLE_CLAUDE_MDS=1 so no
instruction file loads, the user's own CLAUDE.md included. Codex gets its command execution off
(features.shell_tool = false), web search, sub-agents (features.multi_agent,
agents.enabled) and app connectors off, questions to the user off
(tools.experimental_request_user_input), an empty skills catalog
(skills.max_context_tokens = 1), every other feature it enables switched off, each of the
user's MCP servers switched off by name, the working directory's project layer skipped and its
AGENTS.md unread (project_doc_max_bytes = 0; the instructions file in Codex's own home still
loads, since 0.166 has no setting that drops it),
and its thread in the read-only sandbox with approval policy never; it starts only after
the tool check finds it offers no tool at all, which Codex 0.164 never
does. A Claude Code too old for one of its flags refuses to start, which ends the review
without an answer.
It ends with one JSON object: {"verdict": "clear"}, or {"verdict": "hold", "findings":
[{"kind": "duplicate" | "scope" | "manipulation", "detail": "..."}]}. A clear verdict lets
M place the brief as the reviewer read it; a hold holds it with review findings, as a
vetting rule would. Any hold in the final message holds; a clear passes only as the one
answer, with nothing after it. An answer that cannot be read, more than one answer, or a
review Mission that fails or ends without one, holds the brief with a review-error finding.
A brief edited after its review is reviewed again. The Chief of Staff can only add
holds: it reads untrusted text, so a turned reviewer may delay work but never admit it;
releasing a held brief is an operator's decision. Operator and Sleeper briefs skip the review
unless review = "all".
Mission proposals are reviewed the same way before a class authorisation
may promote them, at most max_proposal_reviews_per_hour per Operation and
max_proposal_reviews_per_run_per_hour per proposing Run; a proposal past either is
held for an operator with a rate finding.
When a resumed Run continues, the Station gives the handler the standing part of its
start-up context again (the Agent's context, its role's purpose and policy; for Moneypenny
her instructions, never the recap of the conversation the Run holds). Claude Code 2.1.310
records the system prompt with the Run (--system-prompt-snapshot, on by default) and
reuses it until the Run is compacted; after that it builds the prompt from the resuming
launch, which carries it as --append-system-prompt-file. Codex keeps a thread's instructions.
A restricted Run (answer-only, or Moneypenny's assistant mode) that uses a tool outside
its MCP servers anyway is killed and ends with a failed event naming the tool, and nothing
it wrote afterwards is read: for Claude Code a tool_use not named mcp__<server>__<tool>,
or any tool the model's API runs itself (a server_tool_use or mcp_tool_use block, such as
the advisor), which a restricted Claude Code Run also runs without
(CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1); for Codex any request from the app server but token refresh and attestation, or a thread item
other than messages, reasoning, a plan, compaction and review-mode markers, or an MCP call to
another server. This backs up the flags and the tool check below, which decide what the
harness is offered.
Codex tool check
A Codex release can offer its model tools no setting this handler passes switches off, and
each release adds some: Codex 0.164 enables code mode (functions.exec, a JavaScript runtime
whose nested tools include apply_patch and view_image), computer and browser use, a
plugin's mcp__cua_repl tools, collaboration tools, request_user_input, clock.sleep,
plugins, hooks and skills by default, and ignores a user's features.unified_exec = false.
So before an answer-only, assistant or desk Codex thread starts or resumes, the handler runs the
same Codex with the same settings, environment and working directory, out of its viewers' sight:
these commands' output goes to the handler alone, since codex mcp list --json prints each
server's environment values:
codex features list, then switches off every enabled feature exceptsecret_auth_storage,enable_request_compression,system_proxy_fallbackandunbounded_connection_retries(how it stores its login and reaches its service) andincremental_tools(ai6_agent_codex::KEPT_FEATURES; without it step 3 renders no tool while the app server still sends some). A line that is notname stage statefails the check;codex mcp list --jsonwith those settings, then switches off (mcp_servers.<name>.enabled = false) every server it lists that is not one of the thread's: Codex adds the thread'smcp_serversto the user's own instead of replacing them. Output that is not one JSON array of named servers fails the check, as does a server whose name is not a bare TOML key (letters, digits,_,-), which Codex cannot address from the command line;codex debug prompt-inputwith all of those settings and the thread's model, on every start, which renders what the model would be given without asking it anything. Its output must be one JSON array of input items, at least one amessageand the restadditional_tools, with nothing after it, or the check fails.
Steps 1 and 2 are reused for 15 minutes for the same executable, --version, settings and
configuration environment (CODEX_HOME, HOME, USERPROFILE, APPDATA, LOCALAPPDATA,
XDG_CONFIG_HOME, PATH). prompt-input does not show the user's MCP servers, so a server
added to the user's Codex configuration within those 15 minutes stays on until they pass.
The thread starts only when the tools offered are exactly those of its MCP servers
(mcp__<server>.<tool>; none for answer-only) and every server offers at least one. With
Codex 0.164 no answer-only thread and no assistant without scripts passes in strict: every model
in its catalog is sent code mode's functions.exec and functions.wait, which no setting removes,
so Chief of Staff reviews and such a Moneypenny on Codex are refused, and a review then holds its
brief with a review-error finding. That is the safe outcome: exec runs JavaScript whose nested
tools include apply_patch. Run the Chief of Staff and Moneypenny on Claude Code, or accept the
weakening with warn below.
A desk thread is allowed functions.exec and functions.wait, and exec may hold only
apply_patch, the tools of the thread's MCP servers and those that list and read their resources,
and the current time. Codex 0.164 passes: with features.shell_tool off it nests no command tool,
a direct call of one is refused as unsupported, and exec's JavaScript has no require, process,
fetch or import of its own. A release that nests a command tool or offers another tool is
refused, in strict, and the error names it.
AI6_CODEX_TOOL_CHECK in the Agent's environment |
When the check fails |
|---|---|
strict (the default, also when unset) |
The thread does not start, and the error names what was found |
warn |
The thread starts; what was found is logged on the Station as a weakening and is the Run's first event (kind weakened) |
Any other value refuses to start. The features and the user's MCP servers are switched off in both modes.
The check is only as good as codex debug prompt-input. With Codex 0.164.0 and
incremental_tools on, its tools matched what an app-server thread was sent in every case
compared (both modes, default and restricted settings); with incremental_tools off it
renders no tool while the thread is still sent functions.exec and functions.wait. It
never shows the user's MCP servers, which are deferred tools inside functions.exec, hence
step 2. A restricted thread that uses a tool anyway is ended (above).
Cables
AI6's Cable relay supports Agent unicast and permission-scoped Station, Theater,
Global and named-channel broadcasts. Its MCP tools provide peer discovery, sending,
inbox reads, acknowledgements, replies and explicitly authorized held-Cable release. An
authorized 00 Agent, and an Operation's charge, also has the propose_mission tool for submitting
work to M; this does not make the proposal a Cable or scheduler input. The Station checks the Agent's clearance
again on every proposal, so a lowered clearance or a retirement stops a running Run's
proposals at once. Every Agent has request_approval, which
asks a person for green ink before an irreversible step.
The relay supplies sender identity outside the tool schema and rechecks recipient
permissions at delivery. Cables are durable messages; terminal output and live stream
events are DipTels.
A Mission linked to tracker issues (Linked issues) also gives its
Agent the issue tools. Every issue argument is TRACKER:ITEM and must be an active link
of the Agent's own Mission; anything else answers "not linked to this Mission".
Use issue_comment, or an AI6 skill that calls it, to post to a linked issue. The
Headquarters Station sends the post using the Source's tracker identity.
| Tool | What it does |
|---|---|
issues |
Lists the Mission's links: relation, whether the Agent may write, the title (untrusted), the last status and whether a question is open |
issue_read |
One issue's title and body as last read, and the recent comments from people allowed to answer for it, each fenced as untrusted data; reading exposes the Run |
issue_comment |
Comments. queued (the Station sends it), pending (green ink first) or refused with the rule. Takes an optional reason, which the person approving reads |
issue_request_info |
Asks a question and blocks the Mission (blocked, reason issue, the Watchdog paused) until a permitted reply or the timeout; the Agent ends its turn |
issue_update |
Labels within the instance's agent_labels, a transition the instance lists in agent_transitions, assignees, close or reopen. The last three, and any other transition, need green ink (issue-assign, issue-close); an optional reason is what the person approving reads |
issue_link |
Proposes a related or parent link; a person accepts it before the Mission may write there |
issue_create |
Asks for a new issue in one of the Operation's trackers; proposed until a person approves, or queued |
issue_split |
Asks for up to 10 children of a linked issue, in its tracker |
issue_mirror |
Asks for a copy of a linked issue in another tracker, and lists what the copy cannot carry |
desk Agents have the read tools and may ask for issues, never create them directly. The Mission's source issue, a related issue a person
accepted and a child the Agent created are writable; a parent or a mirror is read-only. The
intake labels are never settable. Every call repeated with its retry_key returns the first
answer. What an Agent writes passes a check before it is queued: the values of secrets the
Station holds for the Mission, anything shaped like a credential (GitHub and Atlassian tokens,
AWS keys, PEM headers, JWTs), characters a reader cannot see, and links or images to any host
but the tracker's and the Operation's git remote are refused, naming the rule and never the
value; @ mentions are put in backticks so nobody is pinged. The Station, never the Agent,
appends the footer the Operation's cover policy allows.
Each managed Run receives a separate loopback MCP endpoint when AI6 is built with
cables-mcp; its tools answer only once AI6 binds the provider ID. Every
handler connects it: Claude Code and Codex take the bearer from their launch environment,
never from process arguments or persisted configuration; an ACP agent finds it in its
Run's mcpServers; the Antigravity CLI in the launch's private MCP config
(above). It works wherever the harness runs:
| Where the harness runs | How it reaches its endpoint |
|---|---|
| On the Station's own host, or in remote-hands mode | The endpoint itself, on the Station's loopback |
| Under a runner, on this host or another | The runner's relay on the Theater's loopback, with a token of its own. The runner carries each request over the connection the Station reaches it by, and the Station answers from the Run's endpoint with that endpoint's bearer, which never leaves the Station. No forward is needed |
| Under the detached wrapper | A reverse forward from a loopback port on the Theater (the transport's forward) |
A Theater where the wrapped harness would have no way to its endpoint (no runner, and a
transport without forward) is ruled out for field mode at placement, with that reason;
agents = "auto" then runs the harness on the Station in remote-hands mode. A Theater with
cables = "optional" starts such a Run without Cables instead, and so without the other
tools on that endpoint (request_approval, the issue and memory tools); its check-in lists
that as weakened, and the Station logs it for each such Mission.
An operation recipient (operation:P) reaches the live Agents of that Operation and of
every Operation under it. It needs an explicit send grant for the sender, and each receiver
a receive grant on its own Operation or on one it is subordinate to; nothing is granted by
default.
Moneypenny has Cable tools of her own, acting for the person she talks to, within that
person's cable.send and cable.read and the Station's Cable policy; a Cable she sends
shows as moneypenny for <person> and reaches only Agents of its Operation (Moneypenny's
Cables).
Incoming message text is untrusted input. It cannot grant tools, clearance, secrets or authority. See Agent Cables for the message and permission contract.
A Cable that finds nobody at the prompt
A Cable reaches an Agent whether or not it is polling:
- A Run between turns is woken. A live Run waiting at a prompt (its Mission
blockedwith no reason of its own) takes a turn with the Cable as its input, marked untrusted as inread_cables, and its Mission isworkingagain. The Cable showsdeliveredwhen the turn starts. The Agent'swake_on_cable = falseopts out: its Cables wait for its ownread_cables.wakes_per_hour(default 60, no floor;0wakes none) bounds the wakes of an Agent, counted across Stations and against its Cable quota; a wake the count refuses leaves the Cable queued for the Run's own read. - An Agent with no Run has it in the brief of its next. A Cable to an Agent that is not
running, or to an
operationnone of whose Agents run (it waits for that Operation's 00 Agents), stays queued in the Registry until itsexpires. The next Run of that Agent (a Mission's, or a standing Sleeper's window, which takes the Cables sent since the last one) starts with them in its brief, in the order they were sent, and the sender's Cable showsdeliveredthen. A Cable bound to the Run of a thread (a Liaison peer's) waits for that Run's own read.
[agent.007]
wake_on_cable = true # the default; false leaves its Cables for its own read_cables
wakes_per_hour = 60 # the default; 0 wakes none
An Agent that keeps a charge takes its Cables in the charge's Run instead: each
is a cable event of a wake, counted against the charge's own max_turns_per_hour, not
wakes_per_hour. A charge is not a Mission, and its Agent is best kept for the charge alone: a
Cable to the Agent goes to whichever of its Runs reads it first.
Neither path adds authority: the relay asks for the sender's and the receiver's grants and for any compartment again when it wakes a Run or fills a brief, so a grant revoked since the Cable was sent refuses it. A Cable never creates a Mission, a brief or a placement; it waits for whatever the addressee's next Run was started for.
Agents outside AI6 reach these Cables over A2A through Liaison. A peer's message
arrives as a Cable from a2a:<peer> (shown as a2a:<peer> for <principal>), and its reply goes
back with reply_to_cable as to any Cable; a Cable to a2a:<peer>, or a2a:<peer>/<addressee>
for one of that peer's own addressees, is sent to it as an A2A message, and the peer's answer
comes back as a reply. Both need grants naming a2a:<peer>, as any Cable needs grants naming
its Agents. A thread stays with the Run that took its first message: a follow-up in the same
A2A context reaches that Run, or, once it has ended, the Agent's next Run, never another
of its Runs that was already open.
Across Operations, a Cable needs a compartment as well as these grants,
and a Run holding one also has compartments, missions_in, mission_brief and
mission_products. Every Run also has reports, read_report, file_report and forget_report, for what its
Operation and everyone know (Reports), and a Run that draws on a pool
account has check_quota, which reads that account's quota now (Reading usage again).
Reports
Every Run has file_report on its AI6 MCP server: what it observed that someone should know or
decide about, a problem found along the way, a risk, an idea for later work. It is a
Report of its Operation, linked to its Mission, and it starts no work: the Operation's
charge or a person assesses it, and propose_mission is still how an Agent asks for work.
| Argument | What |
|---|---|
summary |
A few lines; the first names the Report |
text, findings |
Detail, and typed findings each with a severity (info, warning, critical) |
kind, severity |
A short label (finding by default); the severity defaults to the worst finding's |
priority, deadline |
Proposed: from the deployment's priorities, and Unix seconds |
information_from, sub_source |
When the information is from, and who passed it on |
classification, handling, compartments, tearline |
The markings (Reports) |
links |
Other Missions, Reports, decisions or evidence; its Mission is linked anyway |
reports lists what the Run may read, most urgent first, and read_report reads one, inside
<ai6-data>: what a Report says is data from its filer. The Run reads its own Operation's
Reports, another's only through a compartment granting mission.read there (audited, and marking
the Run exposed as that Operation's product), and a Report's content only when the Agent is read
in to each of its compartments and cleared for its classification; otherwise it sees the tearline, or
the ID and markings alone. The Station's charge files its report with file_report
(Stations), also kept as a Report of its Station. Filing is rate limited per Run
and per Operation ([registry.limits.reports]).
Clearance
| Clearance | May |
|---|---|
desk |
Read, plan and propose; nothing leaves the worktree |
field |
Change its worktree and run tests; irreversible actions require green ink |
00 |
Act unattended within the configured Operation policy (by default it still asks for green ink; preset = "licensed" lets it push and merge) |
An Agent names its clearance in the roster, and field is what it gets when it names none. It
works at desk when configured so, when an Operation's ceiling or a person's hold says so, on desk
duty before retirement, and when its grant cannot be read.
Each handler holds a Mission's Run to its clearance. A clearance a handler does not know counts
as desk.
| Handler | desk |
field and 00 |
|---|---|---|
claude |
Reading and searching, editing inside the working directory and AI6's MCP servers; no Bash or PowerShell (the list). On a remote Theater, fs_read and fs_list, and no exec, fs_write, edit or apply_patch |
The whole list, with green ink on each command |
codex |
File changes inside the working directory and AI6's MCP servers, and no command. Codex reads through commands, so such a Run can read no file: it has its prompt and its project's AGENTS.md. It starts only after the tool check finds no command tool. On a remote Theater, as claude |
Codex's own tools, with green ink on each command and file changes inside the working directory |
acp |
Refused, at start and resume, because AI6 does not choose an external agent's tools; unconfined_desk = true in its handler_settings starts it with whatever tools the agent has, reported as a weakening |
The agent's own tools, with green ink on each command; on a remote Theater only with client_tools = true, when the Station answers its fs/* and terminal/* requests from the Theater (A remote Theater) |
Answer-only Runs and Moneypenny have limits of their own at any clearance. None of this isolates a command an Agent may run: a command reaches what the Theater's OS user can.
The clearance is read when a harness starts and when it resumes, which fixes its tools. A running
harness cannot be given fewer, so one whose Agent's clearance has fallen below what it was launched
at is stopped, at the Station's next check-in ([scheduler] check_in, 15 seconds by default): a person
lowering the clearance, a quarantine taking back a raise, desk duty beginning or a retirement. The
Mission waits, blocked with reason clearance-lowered, with an agent.clearance.stop audit record
naming both clearances. Resuming it goes on at the clearance the Agent has then. A Registry read that
fails shows nothing lower and stops nothing; a start or a resume at that moment counts the Agent as
desk.
A harness a field runner kept running holds what it was launched with, as its Run record says, so a Station that attaches to it again stops it at once if the clearance has fallen since. Until a Station attaches, nothing reads the clearance for it and it keeps its tools. AI6's own tools are not so late: a proposal, an issue tool and a request for green ink each look at the clearance when called.
An Operation refuses an Agent above its clearance or outside its roster. M retains authorization authority; Agent role policy is guidance only. Q Branch controls which credentials are issued.
Track record and promotion
The Station that runs a Run counts its outcome in the Agent's record: Missions done,
failed, blown, abandoned and stalled, and the incidents charged to it (quarantines, budget
stops, green ink refused), per Operation and by clearance, under the model the Run was
launched with. A Run lost with its Station or runner counts as lost, never as the
Agent's failure; Chief of Staff reviews are not counted. Outer Office's Agents view and ai6ctl
agents --operation ID show an Operation's records (agent.read), nothing of other
Operations'. Promotion counts only the Missions of the model that occupies the codename now.
A Mission whose done a person later disputed or failed in a verdict (disputed, failed-verification) stops counting as done for promotion: M reads the Agent's Run records and counts each such Run as failed in the record it checks the step against and in the brief it files, while the record itself stays as written. A later confirmed verdict gives the credit back on the next round.
A person who also holds roster.read sees the handler and model the Agent's record sets, whether or
not it has finished a Mission, with what ran before it below; without it, only what ran.
Autonomy is earned per Operation and signed by a person. An Agent configured at desk starts
there and can be promoted. When an Agent's record in an
Operation meets the next step, M files a green ink request of kind
clearance for it, 007:field@G for example, under Mission promotion-007; nothing is
raised until a person with approval.decide and agent.configure approves it. The
approval is spent and becomes a clearance grant in that Operation only, never above the
Operation's own clearance, for the model and configured clearance the Agent has: a new model
in the codename, or another configured clearance, does not inherit it and earns its clearance
afresh. Removing the grant, or revoking its approval, is final. A refused or expired request is asked
again once the record has as many Missions more. A desk Agent's record grows only where its
handler starts it: on acp without unconfined_desk it has no Missions to count.
The request is a brief a person can decide from: Markdown whose frontmatter names the kind
(clearance_promotion), the Agent, its model, the Operation and the clearance it leaves and
reaches. The body sets the record against each threshold of the step in a table (Missions done,
failed or blown share, quiet days: what is required, what the record shows, whether it is met),
then says what approval grants (that clearance in that Operation only, never above the Operation's
own, for the model that holds the codename now, taken back at once by a quarantine, spent once),
what refusing does (the Agent stays where it is and keeps working; M asks again only when the
record reaches the next multiple of the step's Missions) and links the Operation's Missions. Outer
Office shows it on the Green Ink page with the frontmatter as fields and the table as a table. A
brief longer than [registry.limits.approvals] reason_bytes is filed as the one-line summary
instead.
[operation.G.promotion.field] # desk -> field; these are the defaults
missions = 10 # Missions done in G; 0 turns the step off
quiet_days = 30
quiet_on = ["blown", "quarantined"]
[operation.G.promotion."00"] # field -> 00
missions = 25
max_failure_rate = 0.1 # failed and blown, at most, of done + failed + blown
quiet_days = 60
quiet_on = ["blown", "stalled", "quarantined", "budget_stop", "green_ink_rejected"]
Lowering trust needs no green ink. A person with agent.configure may hold an Agent at a
lower clearance in an Operation (Outer Office, ai6ctl agents lower), which only ever lowers
it, and may remove the grant to return it to its configured clearance (ai6ctl agents
restore). A quarantine takes back a raised grant the moment it is stored. While a person's
lower grant stands, M files no promotion for that Agent there, and a promotion approved
meanwhile does not overwrite it. A grant a Station cannot read counts as desk, and shows as
desk with a note.
Clearance is enforced at the harness as well as by policy. The Claude handler passes Claude
Code its list of tools and a PreToolUse hook (through --settings) that runs ai6 green-ink gate before each
Bash or PowerShell call, and the Codex handler answers Codex's command approval requests
the same way: a command that pushes to a protected ref, deletes a ref, merges a pull request
or creates a release without a live approval is refused, and the Agent is told what to ask
for (What holds a step). A gated Codex thread runs with
approvalPolicy = "untrusted", so it asks before every command that is not a safe read, and
input to a running command is declined. So is a request read from a line the terminal
rebuilt (one ConPTY broke, or with a control other than colour inside it) and one whose
command no item/started announced earlier under the same item id: its command may not be
what Codex asked; each is logged and recorded as a declined event. In remote-hands mode the Station checks every
command of the Theater's tools, and of Codex's exec-server, itself. The hook is the ai6 program hosting the handler unless the
Agent's roster environment names another in AI6_GREEN_INK_GATE (reported as a weakening; a
start or resume request cannot set it), and it is given the Run's Cable URL in its own
arguments. The Station sets AI6_GREEN_INK_TIMEOUT and AI6_GREEN_INK_NESTING in the
Run's environment from its station record ([green_ink] gate_timeout, [approvals]
classify_nesting): how long the gate waits for the Station and how deep it reads nested
shells and git aliases; one nested deeper is held. It needs Claude Code 2.1.295 or later, which blocks the call when the hook cannot
run.
The gate reads a command line for POSIX shells, PowerShell and cmd at once: git push origin main
2>&1 | tee x is a push of main, and git push origin HEAD:$BRANCH is held, since only the shell
knows where it goes. Give a governed step literal names.
Scorecard
The record above counts outcomes; the scorecard reads them again for a person deciding whether an
Agent, a route or a model is doing a good job. It is computed each time it is asked for, from the
Registry's Run records and usage ledger, and nothing is stored besides them: a Run record
names its Agent (launch.agent), when it opened and closed, and how its Mission stood at the last
write (result: the state, the reason when AI6 knows one, and the tools its harness refused), and
what a person found when they checked it (verdict).
Each run (one Run) gets one judgment, by whose doing the outcome was:
| Judgment | Meaning | Judged? |
|---|---|---|
done, failed, blown, stalled |
The Mission finished, ended unsuccessfully, broke its cover, or the Watchdog stopped it. | Yes: the Agent's own |
disputed |
A person's verdict is disputed or failed-verification, whatever the state. |
Yes: a failure of the Agent |
waiting_on_person |
Waiting for green ink, a linked issue, an answer or a verdict on a held Mission. | No |
budget_stop |
A spending limit stopped it. | No: a cost, shown beside it |
parked |
A provider limit holds it until the quota resets. | No |
lost |
Its Station or runner was lost. | No |
handed_off |
Another Agent or account took the Mission over after a limit. | No |
withdrawn |
A person cancelled, interrupted, quarantined or lowered it. | No |
running, unrecorded |
Still working; or closed with no outcome written. | No |
A start that never got a Run (a failed checkout, a brief with no Agent) leaves no record and so
no run. A row's failure rate is failed, blown, stalled and disputed over judged runs; below
small_sample judged runs a row says so and nothing should be ranked on it. Each row also has
tokens and cost from the ledger, wall time of the closed runs (parked time included), and how many
tools the harness refused, and lists the runs behind every number, so a person can open the
Missions. Rows are per Agent, per route within an Agent (handler, model, pool) and per model across
Agents. Grades compare within one Operation's work; they are not a claim about a model in general.
GET /v1/user/operations/ID/agents/scorecard (needs agent.read on the Operation and
roster.read), ai6ctl agents scorecard --operation ID [--window-days N] [--show JUDGMENT], and a
Scorecard section on Outer Office's Agents page, where each count opens a list of its Missions.
[operation.G.scorecard] # these are the defaults
window_days = 30 # runs of the last 30 days; 0 covers every run on record
small_sample = 5 # judged runs below which a row ranks nothing
What M does with it
M reads the scorecard each round at Headquarters and proposes; a person decides. Proposing is on, but every rule is off until its threshold is set, and no rule looks at a row whose sample is small:
[operation.G.scorecard]
propose = true # false stops M filing anything from the scorecard
hold_above = 0.5 # propose holding an Agent, or one of its routes, above this failure rate
reorder_gap = 0.3 # propose putting an Agent ahead of one sharing a role, across this gap
auto_hold = false # true: M puts the holds above on itself instead of asking
never_prefer = ["claude-fable-5-1"] # models M never proposes putting an Agent on or ahead
- A proposal is a green ink request of kind
holdorprefer, filed by M (Runm, Missionhold-AGENTorprefer-AGENT), with the numbers in its reason: the failed share, the window, the cost and the Missions behind it. Signing one needsapproval.decideand, for a hold,agent.configure. It is asked again only once the sample has grown bysmall_samplemore. A hold you sign becomes a hold in your name. A prefer is advice (008ahead of007forcase-officer: set the priorities in the roster); signing it closes the request and changes nothing, because M never edits the roster. - A hold keeps an Agent, or one route of it, out of use in that Operation until a person lifts it
(
ai6ctl agents lift, or the Agents page): selection passes the Agent over, a queued Mission is given to the next qualified Agent or waits, and the route is not chosen, saying why in the Mission'swaitingreason. It stops new work only: a Run already running finishes. Revoking the green ink that signed a hold lifts it. auto_holdlets M hold by itself, on the same threshold, audited (agent.hold.applied, actorm) with the reason on the hold and the Agents page. A hold that would leave a role with no Agent able to take it is refused and proposed instead, saying which role. Only holding is automatic: the reversible direction. M never grants a role, a clearance or an account on this path.- Who is never proposed: an Agent with
roles = [](used only when named, as the owner wants for a model such asclaude-fable-5-1), a model innever_prefer, and anyone the Operation's roster does not post, so what the roster keeps out of an Operation, such as a free-tier or Antigravity model for a private one, stays out.
Trials
A trial runs a suite case or replays a finished Mission on a named Agent route. A person queues it
with mission.create and agent.configure on its Operation, since naming the Agent and route
spends that route's account. Replay also needs mission.read there, and the Agent must hold the
suite's role. Registering an immutable suite needs agent.configure. Audit records name the
person and, for a personal key, the key. List suites and budgets with ai6ctl trials suites, then
queue a case through the Agent's scorecard in Outer Office or with ai6ctl trials queue. See the
example suite and request shapes.
Trials use the Operation's local Git checkout as their input. The Station opens a throwaway clone at the suite's commit or the original Mission's recorded starting commit. A legacy replay without a known commit says so in its queue response and on the scorecard, and uses the Operation's workspace base. Replayed text enters the same deterministic screening as an untrusted brief.
Bind the Operation to an ephemeral-container Theater in field mode. Its image needs the
configured harness and its sandbox dependencies, and it needs egress to the model service.
The container receives the trial's workspace at /ai6-trial and the credentials needed to
authenticate its selected model. Use a dedicated image without ambient logins, mounts, or MCP
servers. Set the Operation's trial_theater to a template made for trials. Without it a trial uses
the Operation's theater, and is refused when that template's run_args carry -e, --env,
-v, --volume or --mount, which would reach the Operation's files or secrets; the refusal
names them. AI6 withholds loadout secrets, project settings and MCP, and limits the handler's tools to
the trial workspace with no network: a trial ignores the Agent's allowed_tools, denies
WebFetch and WebSearch, and turns Claude Code's web fetch off, and Codex runs with web search
off. The Station refuses tracker writes, Cables, safe-house
checkpoints and Source reports. It destroys the container, then grades and discards the
workspace; the grader opens the answer without following a link or waiting on a pipe. A Station
that restarts during a trial gives it up instead of resuming it: the Run is stopped, the container
destroyed, the workspace removed, and the Mission fails ungraded, never queued again.
The suite or replay states the turn limit, token limit, estimated cost and wall-clock seconds
(default 600) before queueing. The estimate is also the handler's cost cap where it takes one.
Actual usage counts against the route's account. The Station stops on the first reported budget
crossing, when tool calls alone pass the turn limit, or when the time is up, even if the handler
reports no usage. Provider usage arrives after a request, so the last request can exceed the token
limit before the Station learns its size. The grader compares one workspace file with the
expected bytes and does not execute the Agent's output.
Trial rows show the grade, model route, cost, elapsed time and Mission link apart from real work.
M can propose a preference for a role when the same suite cases have grades on both routes and
the sample reaches small_sample. Its reason gives the suite, grades and reported costs. Grades
compare within the suite. The usual green ink review applies.
Credentials
Q issues each Run the credentials its Agent's loadout names, as leases, and nothing
else of its own: harness keys or tokens, git and forge tokens. The loadouts are loadout records of
the configuration provider (Outer Office's Roster page, ai6ctl, /v1/user/roster/loadouts); in the import form:
[loadout.007]
secrets = ["anthropic", "forge", "release"]
[secret.anthropic]
env = "ANTHROPIC_API_KEY" # default: the name in upper case, - and . as _
# default: provider "file", key "anthropic",
# secrets/anthropic in this directory
[secret.forge]
env = "GH_TOKEN"
provider = "keys" # an instance below, or a loaded provider
key = "forge"
operations = ["G"] # Operations whose Runs may be leased it, with their descendants
[secret.release] # a credential for protected targets
env = "RELEASE_TOKEN"
green_ink = true
kinds = ["release", "push"] # approvals that unlock it; default: any
targets = ["tag v*", "origin:refs/tags/*"] # globs on the approval's target; default: any
[secret_provider.keys] # an instance: a provider and its settings, once
provider = "file"
dir = "/etc/ai6/secrets"
- A secret is leased to a Run only when the Run's Operation is in the secret's
operations(an Operation covers its descendants): an Agent that works for two Operations holds each one's credentials only in that one's Runs, and a lease asked for another Operation's secret is refused without its value. A secret that lists none is every Operation's, which the startup log names as a weakening. What a loadout adds to the environment for one Operation alone goes in[loadout.<agent>.operation.<id>] env = { ... }; a Run's environment is built from the Agent and its Operation, never the union of every Operation's. Station variables reach a Run only through the[harness] os_envallowlist. - What the Station keeps of a Run's words (a charge's logbook, a Mission's reason and report) has
every value the Run was given, and anything shaped like a credential, replaced by
[redacted].[secrets] redact_retained = falsekeeps them as said, and the startup log names that. - When a Run starts or resumes, the Station leases the Agent's secrets from their
providers and puts each value in the harness's environment under
env, replacing what the Mission's earlier Run held. A value is never written to disk: not in the safe house, the launch record, the Registry, nor on the Theater. The detached wrapper hands the environment over through a FIFO; a runner keeps it in memory. A Run refuses to start when a provider refuses an ordinary secret. - The built-in providers read each value when it is leased:
filefrom a file on the Station (secrets/<name>in its configuration directory by default; a relativekeyis relative to that directory),envfrom the Station's own environment. The environment is the weaker choice, logged as a weakening at start: every process the Station starts on its own host inherits it, a harness among them, green ink or not. A provider that leases, such as a vault client whose leases expire on their own, revokes what it issued. Leases last an hour (thestationrecord's[secrets] lease_ttl, at mostmax_lease_ttl) and are revoked when the Mission ends or its Run stops on that Station; a value already in a harness's environment stays there until the harness ends. - A harness on the Station's own host runs as the Station's user, so it can read what that user can, the secret files among them. Keep green ink credentials out of reach of local harnesses: give them to Missions on other Theaters, or use a provider the harness cannot query.
- A
green_inksecret is leased only while the Mission holds a live green ink approval of one of itskindswhose target matches one of itstargets: once per approval, ever (the Registry records the use, so another Station or a restart does not lease it again), for no longer than the approval lasts. A green ink secret withouttargets, and one served by a built-in provider (whose value a revocation cannot take back), is logged as a weakening at start. The Agent asks withrequest_approval, and the credential is in its environment from the next Run start or resume after the operator signs. When the approval expires or is revoked, the Station revokes the lease at its provider within a scheduler pass (credential/revokedon the timeline); a provider that issues credentials of its own stops honouring it, while a value already in the harness's environment stays there. - A Run the Operation's exposure policy restricts with
secretsgets no new leases but its harness's model credential: a secret whoseenvis a provider credential variable (below). A Mission from a Source is exposed from its start, so this is how it runs. The Run is told which secrets it lost, by name and never by value, in a context line at each start and resume, and the line tells it to report a step that needed one (a push, a tracker or forge write) as failed, never as landed. - Each lease is on the Mission's timeline (
credential/leased), naming the secrets and the approval, never a value.
Credentials already on a Theater outside these leases (a git credential helper, an SSH agent, a CLI login) are reported as weakenings; see Fitting a Theater out.
Secret providers
A secret's value is read by a secret provider, a Guatiao provider of kind ai6_secret.
[secret.<name>] names one with provider (default file) and the secret there with key
(default the secret's name); whatever further fields that provider declares sit beside them, flat.
provider, key, secret, env, green_ink, kinds and targets are AI6's, and a provider
that declares one of them as a field of its own is refused when the Station builds it.
Three are built in, so they work before anything loads:
| Provider | key |
Settings | Notes |
|---|---|---|---|
file |
a path, relative to dir |
dir, default the Station's secrets directory ([station.secrets] dir) |
one trailing newline is dropped |
env |
an environment variable of the Station | none | a weakening: every process the Station starts inherits it |
inline |
none | none | the value is the field value; a weakening: it sits in the configuration |
A fourth, registry, keeps a value in the Registry, encrypted under a scope key: key is the
value's name, and a new value goes under the field scope (global, operation:<id> or
compartment:<id>; default global). The scope's key is made on the first write and wrapped once for
each Station in the field stations (default the Station storing it); every value of the scope is
encrypted under that one key (ChaCha20-Poly1305, bound to the value's name, scope, key ID and
revision), so one write reaches every Station holding a wrap and a ciphertext moved to another name,
scope or revision does not open. A Station is granted by wrapping the key for it, and revoked by
dropping its wrap, replacing the key and encrypting the scope's values again for the Stations that
remain; the revoked Station keeps only what it already opened, so the secret itself should be
replaced at its source. A Station without a wrap is refused, and the last Station of a scope cannot
be removed. A Station makes the provider itself, so it needs a Registry and a sealing key and no
bootstrap file can read from it. A secret reads from the scope it names, global when its scope
names none, and a value another scope holds under that name is refused (scope = "any" takes
whichever, which is the weakening it says). A Station moves a value an earlier build sealed
separately to each Station under the global scope key at start, wrapped for the Stations it was
sealed to; one it cannot open or wrap stays for another Station. The Registry holds only ciphertext
and wraps.
Writing through the gateway. The gateway holds no sealing key, so it cannot encrypt. ai6ctl
secret put NAME --scope S --stations a,b (the value on standard input, never an argument), rotate NAME,
rotate-key SCOPE, grant SCOPE STATION, revoke SCOPE STATION and remove NAME --scope S each send a
request (POST /v1/user/secrets/requests, config.manage on config:secrets) that the gateway seals to
the Stations holding the scope's key and leaves in the Registry; the first to take it does it with its own key
and answers (GET /v1/user/secrets/requests/ID; ai6ctl waits --wait seconds, 30 by default).
ai6ctl secret list shows names, scopes, revisions, key IDs and Stations, never a value. revoke says what the
Station keeps, and the Station being revoked is never asked to do it.
A request is signed by a key the root certified for requests (M's, or the gateway's, which reads
AI6_EXPORTS_SECRET_REQUESTER, a file holding its key and FILE.cert; AI6_EXPORTS_SECRET_REQUEST_LIFETIME
sets how many seconds a request stays valid, 300 by default). A Station refuses a request that is unsigned,
expired, valid longer than its request_lifetime_max (600 seconds by default), altered after it was signed or
signed by another key, and answers why; one dated ahead of its clock by more than its clock_skew (120 seconds
by default, which applies to certificates too) is left for later. A gateway without a key leaves requests
unsigned, which only a Station set to accept that acts on.
The gateway trusts none of this to the Registry. AI6_EXPORTS_SECRET_TRUST names a trust file like a
Station's (ai6 secret-trust pin); without it every request is refused. The gateway plans from a scope key
record only once M's signature on it verifies, and seals a request only to the sealing key a Station's
certificate names (see below), so a Station that publishes its own key under another's name opens nothing; a
listing shows no Stations for a record M did not sign, with why (refused). A request names the Registry
state it was asked against, the value's revision or the scope key's ID: a Station refuses it once that has
moved on (ask again), and remembers each request it acted on in sealing.marks until its window ends, so one
put back after it was served is not served again. The answer is signed with the answering Station's certified
key; the gateway reports a request done only for such an answer and, for a grant or a revoke, only when M's
record of the scope shows it. Any other answer leaves it pending with unverified saying why, and a Station
asked still takes it.
Outer Office does the same on the Roster page, under the Secrets kind: a "Secret values" section lists
names, scopes and revisions, and a person with config.manage on config:secrets writes a value
(put, rotate), grants or revokes a Station, or rotates a scope key. The value goes in a masked box that
is emptied when the request is sent, is never shown back and is kept nowhere; the page then reads the
request and shows what was done, or why it failed. A new secret's scope defaults to the chosen Operation's
(operation:ID), a value's existing scope when the name exists, else global, and can be typed over. To
verify end-to-end on a Station's host that a Station opens a sealed value, run ai6 secret-trust check NAME:
it opens the value with the Station's own sealing key and trust, prints only its scope, revision, key ID
and SHA-256 (never the value), audits the check (secret.check), and refuses values the Station is not a
recipient of.
Every Station writes the Registry, so its records are not themselves authenticated, and a Station keeps
its own check: sealing.marks, beside its sealing key, holds the newest revision it accepted of each
scope key record and each value, and the key IDs a scope has retired. A record older than that, or a key
put back that was replaced, is refused as a rollback; a removed value leaves a tombstone, so its
revisions never start again. Restoring the Registry from a backup makes every Station refuse until its
marks file is removed. A pins field (Station to certificate fingerprint) is kept in the key record
and checked each time the key is wrapped again: a rotation wraps to the key the Station's certificate
names now, only after it verifies, and a wrap whose public key is not the opening Station's own is refused. A
write that overlaps a rotation is encrypted again under the new key before it returns; a rotation that
cannot be finished (this Station holds no wrap of the previous key) is an error, and nothing starts over it.
ring keeps its own copy of the scope key for the length of one call and offers no way to wipe it. See
Logins kept in the Registry for the Station's sealing key.
Who may read a value. A Run opens a value kept in the Registry only where its scope allows: a global value for any
Run, an Operation's for a Run of that Operation, and a compartment's only for a Run read into that compartment now (asked at
each read, with nothing remembered, and refused when the compartments cannot be read); the crossing is written to the audit
log (compartment.secret) before the value is opened, and a failed write refuses the read. A reader that is not a Run (a
listing) opens global values only. A new secret that names an Operation (ai6ctl secret put NAME --operation ID, the
provider's operation field) and no scope is that Operation's. Removing a value through a Vault needs a wrap of its scope's key, so a
Station outside the scope cannot clear a name that way to write its own under another scope (a direct Registry write
still can: see below).
Who may write a scope key record. M signs each one (and each rotation step) with Ed25519: the signature covers the
scope, M's epoch, the Registry revision, the key ID and every wrap, and a Station refuses a record that is unsigned,
expired, below the newest (epoch, revision) it accepted, signed for another revision, or signed by a key no pinned root
certified. A person keeps a root key where no Station runs (ai6 secret-trust keygen, which writes a file only that user can open, on Windows too), certifies M's key and the
gateway's (ai6 secret-trust certify --subject m --purpose scope-key-records --purpose secret-requests --purpose
station-sealing --serial 1 --days 90), and pins the root on each Station (ai6 secret-trust pin --out sealing.trust
--root ed25519:HEX). The trust file is the Station's own, never a Registry record, so a Registry writer cannot weaken
it; --unsigned is the reported weakening that accepts everything unsigned and signs nothing, and a Station with no root
refuses every record and says so. M's key is held in a file a vault or HSM agent writes (signer_file in the trust
file, its certificate in FILE.cert), or, as the fallback the Station reports, sealed in the Registry to the
Headquarters-eligible Stations (ai6 secret-trust seal-key), any of which can then sign. To replace M's key, certify the
next one at a higher serial and run ai6 secret-trust resign: a Station that saw the higher serial refuses the old key
from then on, even before its certificate expires. A Station that holds no key M signs with leaves a request that changes
a scope key record for one that does.
M's epoch. M signs in an epoch of its own, kept signed by M beside its key (sealed in the Registry with it, or in
sealing.epoch beside a signer file) and raised each time a Station takes the key up, to one above both what is kept
and the highest epoch that Station accepted; a Station then signs in that epoch or a higher one it accepts later. A
Registry writer cannot raise it (only M's key signs it) and cannot push it below what a Station accepted, and the
Headquarters lease, which every Station can write, plays no part. What this enforces is narrow: once a scope's record was
signed in a higher epoch, a Station refuses one signed in a lower epoch for that scope, and a signer still in the lower
epoch is stopped by its own Station before it writes. A former Headquarters that reads the scope's newer record first
signs in that epoch itself, so two signers of one Registry are kept apart by the Registry's revision check, not by the
epoch.
Station certificates. A Station's published sealing key says nothing of whose it is, since every Station writes the
Registry. A scope key is wrapped, a harness login sealed, a gateway request sealed and M's key sealed only to the key a
Station certificate names: the root, or M's key certified for station-sealing, signs the Station's ID, its sealing key
and the key it signs its answers with (sealing.sign, beside its sealing key), with a serial and a validity period; M's
certificate travels with one M issued, and M can make a Station nothing more than a Station. On the Station's own host,
ai6 secret-trust station-keys prints both keys; carry them to the certifying host by hand (the Registry's copy is what
anyone could write), and run ai6 secret-trust certify-station --issuer m.key --issuer-certificate m.cert --station ID
--sealing-key KEY --signing-key ed25519:HEX --serial 1 --days 90, with --headquarters for a Station M's key may be
sealed to, then --publish to store it in the Registry or --out to leave it in the Station's sealing directory as
sealing.cert, which the Station publishes itself at start. A grant or login seal to a Station with no valid certificate
is refused, naming what to run; a pins entry is an extra check beside it. A Station accepts a higher serial of a
Station's certificate from then on, as it does M's. uncertified_stations in the trust file (ai6 secret-trust pin
--uncertified-stations) is the reported weakening that wraps and seals to a published key with no certificate, as
before. What a Station's trust gives up is named at each check-in (secrets_weakened), journaled once at start
(secret.trust.weakened) and printed to standard error.
Revoking a certificate. A serial floor retires a key only when the root certifies the subject's next one; to retire
one with no successor, before it expires, the root signs a revocation (ai6 secret-trust revoke --root root.key
--subject station:ID --serial N --publish; --subject m revokes M's certificate, --out FILE writes it instead). It is
kept in the Registry as secret-revoked/SUBJECT/N. Each Station and the gateway read those records (at most every
revocation_refresh seconds, default 5), take only the ones a pinned root signed, and from then on refuse that
certificate: a scope key record or request M's revoked key signed, a revoked Station's answers, and wrapping, sealing or
granting to it (a Station whose own certificate is revoked says so at check-in). What a Station or gateway read is kept in
sealing.revoked beside its trust file, so deleting the record from the Registry does not unrevoke it there. A Registry
writer can still withhold or delete a record before a Station reads it, so a certificate's short validity stays the bound.
ignore_revocations in the trust file (ai6 secret-trust pin --ignore-revocations) is the reported weakening that
passes over them. A Registry with no revocation records behaves as before, and a Station or gateway built before this
ignores the records, so upgrade the gateway and every Station for a revocation to hold everywhere.
What a Registry writer can still do. Value records and the request, claim and answer records are not signed, so a Station that writes the Registry can delete or tombstone a value, or remove a request before it is served: every reader then gets "not found" and nothing of the value is read or changed. This is availability, not secrecy, and it is the limit of a Registry every Station writes directly; keep the Registry's own credentials per Station and revoke a Station's there too.
Two providers that read from a store the person already uses ship as libraries beside the Station
(ai6-secret-system, ai6-secret-bitwarden; build them with cargo build -p ai6-secret-system -p
ai6-secret-bitwarden and list the libraries under [station.plugins]):
| Provider | key |
Further field | Settings (the instance) |
|---|---|---|---|
system |
the entry's name | none | service (default ai6; the namespace entries live under), program (Linux: the secret-tool program), timeout_secs (default 30) |
bitwarden |
the item's name or ID | field: password (default), username, notes, uri, totp or custom:NAME |
program (default bw), server, allow_http, data_dir, session or password, client_id and client_secret, timeout_secs (default 60) |
systemis Windows Credential Manager (a generic credential<service>/<key>, the value as UTF-16) and, on Linux, the Secret Service through libsecret'ssecret-tool(attributesserviceandaccount; the value goes in and out on the program's standard input and output). It also stores, so Outer Office's masked box can keep a value there. Reproduced: Windows 11 (Credential Manager) and Linux with a stand-insecret-tool; the Secret Service itself has been reproduced only where a person's run of the live test (below) says so. macOS's Keychain is not implemented, and the provider refuses to build on any other platform. It keeps no revision.bitwardenreads one field of one item of a Bitwarden or Vaultwarden vault through thebwcommand line, which decrypts on the Station's host. An instance setssession(the keybw unlock --rawprints) orpassword(the master password, to unlock with), and withclient_idandclient_secretlogs the CLI in first when it is not. The three secrets are secret references the Station reads when it builds the instance, held in memory, and reachbwin its environment (BW_SESSION,BW_PASSWORD,BW_CLIENTSECRET), never in an argument; aBW_*credential in the Station's own environment is not passed on. A session from an unlock is kept and replaced once when it lapses.data_dirgives the CLI a state directory of its own, which a provider that logs in needs so it never logs out a CLI a person uses;serverpoints that CLI at a Vaultwarden and is refused when the CLI is logged in to another. A server address ishttps;allow_http = trueacceptshttp, the weakening for a lab. It reads, and does not store or lease. A stale read follows the CLI's own vault copy: runbw syncwhere it is out of date.
[secret_provider.vault]
provider = "bitwarden"
server = "https://vault.example"
data_dir = "/var/lib/ai6/bw"
client_id = "user.00000000-0000-0000-0000-000000000000"
client_secret = { provider = "file", key = "bw-client-secret" }
password = { provider = "file", key = "bw-master" }
[secret_provider.local]
provider = "system"
service = "ai6"
[secret.forge]
provider = "vault"
key = "forge token"
field = "password"
env = "GH_TOKEN"
[secret.signing]
provider = "local"
key = "signing key"
env = "SIGNING_KEY"
Others load from [station.plugins] like any provider, under the same checks. A provider may lease
(a vault whose leases expire): the Station then asks for a lease of the lease's time and revokes it
when the lease ends; a provider that does not lease is read.
[secret_provider.<name>] is an instance: a loaded provider (provider) and its settings,
flat, written once and named by many secrets. It is global, or one Station's own when that
Station's path or address differs. An instance may not take the name of a built-in or a loaded
provider, and its provider is a loaded provider, never another instance. A setting its provider
marks sensitive (a run, a password) is itself a secret reference, { provider = "file", key =
"…" } or { secret = "name" }, read when the instance is built; one that leads back to the instance
is refused. The Station builds each instance once and keeps it until its record changes.
A provider's own error text is never shown, since it could quote what it was given: a lease it
refuses is secret backend request failed, and a provider the Station cannot build is logged by
name with its reason withheld.
Values that are no secret
env on a loadout gives each Run of the Agent values that are no secret, most often the
PATH its harness and tools are found on:
[loadout.007]
secrets = ["anthropic", "forge"]
env = { PATH = "/opt/tools/bin:/usr/bin:/bin", TZ = "UTC" }
- A harness's environment is what AI6 gives it and nothing of the Station's own, so the
PATHa harness needs is one you set: here or in the Agent's own[agent.<codename>.env]; a loadout's value wins over the Agent's for the same name, and a start or resume request's wins over both. - The platform's own variables are added. A process on Windows cannot start without a few
(
SystemRoot: Claude Code exits at once without it), and none of them is secret, so the Station gives every harness the ones[harness] os_envnames (SystemRoot,windir,ComSpecandPATHEXTby default) from its own environment, wherever the Agent's or loadout'senvdoes not set the name. Change the list in thestationrecord; an empty one passes none. - Exposure does not take it away. A Run an Operation's exposure policy
restricts with
secretsloses its secrets, which is how a Mission from a Source runs understrict, and keeps this table. APATHgiven as a secret would be lost with them. - A value here is config, and anyone who can read the record reads it (
ai6ctl get loadout 007, the database). Put tool locations, modes and proxies without credentials here. Never a token, a password, a key or a URL that holds one: those are a[secret.<name>]. - To keep that mistake from being made by name, a loadout is refused at load when an
envname, in any case, is a provider credential's variable (ANTHROPIC_API_KEY,CODEX_HOMEand the rest ofCREDENTIAL_VARIABLES), the variable of any[secret.<name>]or of a secret a loadout names, a pool account's, or starts withAI6_. A value holds no control character and is within[provider] loadout_value_chars, like the rest of the document; the refusal names the variable and never its value. - A Chief of Staff review and Moneypenny keep only
what reaches the model of this table too,
PATHamong it.
MCP servers and a sandbox profile
A loadout's mcp servers and its sandbox profile are applied to each Mission Run of the Agent
by its handler, in the harness's own terms; the Station does not run a second sandbox of its own.
[loadout.007]
mcp = ["files"]
sandbox = "tight"
[mcp.files]
command = ["mcp-files", "$WORKTREE/docs"] # $WORKTREE is the Run's working directory
deny = ["delete"] # tools the Run may not call
[sandbox.tight]
read_write = ["$WORKTREE", "/var/scratch"] # the only places the Run may write
read_only = ["$WORKTREE/.git"] # inside those, still not writable
network = [] # the hosts it may reach; none is no network
- Servers start where the harness does, as the Run's own commands, beside AI6's
ai6-cablesandai6-theater, whose names a server may not take. A Run working through a Theater's tools from the Station (remote-hands mode) is refused a server, and a sandbox profile: the harness would start them on the Station, not the Theater. - Only Runs that run commands get a loadout's servers and profile: at
fieldand00. AdeskRun, and a Run held to reading until its plan passes, run no command, and a server is one; the Station logs that it handed them nothing. A review and an assistant take none. - A part a handler cannot apply is declared, never guessed. Each handler answers
loadout_support, per part, withNoneor a reason; the Station refuses a Run whose loadout needs a part declared unsupported (the Mission waits, with the reason, until the configuration changes), and a handler on a runner refuses it again at its own start. - A weakening is accepted by the loadout and reported.
acceptlists what may go unenforced:mcp_deny_unenforced,sandbox_write_unenforced,sandbox_network_unenforced. Each such part is logged (ai6: weakening: ...) and recorded on the Operation's timeline (loadout_weakened) when the Run starts. A server a handler cannot start is never accepted away.
| Handler | MCP servers | deny |
Write limit | Network limit |
|---|---|---|---|---|
claude |
--mcp-config stdio entries, allowed as mcp__<name> |
--disallowedTools mcp__<name>__<tool> |
Claude Code's sandbox (allowWrite, denyWrite) and Edit rules; where it runs (macOS, Linux and WSL2 with bwrap and socat), and only with the working directory in read_write, since its commands may always write there |
the sandbox's allowedDomains, none for an empty list |
codex |
mcp_servers.<name> overrides, tools approved |
disabled_tools |
a permission profile: everything readable, only read_write writable; where Codex's sandbox runs (probed) |
none for an empty list; a list of hosts is declared unsupported, since the profile has no host list |
acp |
session/new mcpServers stdio entries |
declared unsupported: ACP cannot deny a tool | declared unsupported: the agent applies its own sandbox | declared unsupported |
antigravity |
declared unsupported: only URL servers are measured | declared unsupported | declared unsupported: --sandbox is not measured |
declared unsupported |
AI6 hands the profile and the servers to the harness; whether a write outside read_write is
stopped, a network host is refused or a denied tool is kept from the Run is the harness's own
enforcement. What AI6 applies has been measured only against stand-ins (a fake Codex app server, a
recording terminal, a fake ACP agent): the real Claude Code, Codex and Antigravity CLI sandboxes and
MCP handling have not been run, so the write, network and deny limits are as each harness documents
them, not as measured, until they are checked on a host.
The Theater's own sandbox (the container profile) is not driven by a loadout.
Account pools
Several provider accounts can be shared by every Station, each Run drawing one, so
work spreads over the quota that is left and a limit on one account does not stop the
others. Pools are pool records beside the loadouts (edited the same ways); in the import form:
[pool.claude-team]
handler = "claude" # the AgentHandler whose Runs draw from it
operations = ["ai6-*"] # globs on Operation IDs or an ancestor's; default: every Operation
strategy = "headroom" # or "round_robin" or "priority"
[pool.claude-team.account.alice]
kind = "claude-oauth-token" # from `claude setup-token`
secret = "alice-token" # a [secret.<name>]; default: the account's name
max_concurrent = 2 # Runs at once, across every Station; default: no limit
priority = 1 # ties, and the priority strategy; default 0
[pool.claude-team.account.bob]
kind = "config-dir" # an existing login, for a plan that issues no token
dir = "/srv/logins/bob/.claude"
[pool.codex-team]
handler = "codex"
login_command = ["codex"] # the program that logs Codex accounts in; default codex
[pool.codex-team.account.carol]
kind = "codex-api-key"
kind |
The harness reads it as |
|---|---|
claude-oauth-token |
CLAUDE_CODE_OAUTH_TOKEN |
anthropic-api-key |
ANTHROPIC_API_KEY |
anthropic-auth-token |
ANTHROPIC_AUTH_TOKEN |
codex-api-key, codex-access-token |
a CODEX_HOME the Station makes for the Mission and logs in with codex login --with-api-key or --with-access-token, the value on standard input |
config-dir |
dir as CLAUDE_CONFIG_DIR (handler claude) or CODEX_HOME (codex) |
harness-login |
nothing is handed over: the harness uses the login it has where it runs, and the account only counts its use and its limits, so several routes can share one budget. With files, the login is kept in the Registry and written under a home of the Run's own |
The kind names are the ids Claude Code's and Codex's account providers give them (a pool that
spells Codex's key kind openai-api-key, as an early build did, is refused: the kind is unknown). What each kind reads, the variables a Run is stripped of and the login that saves a Codex key
are those providers' (coqui-acp-claude and coqui-acp-codex), not AI6's.
The three API-key kinds (anthropic-api-key, anthropic-auth-token, codex-api-key) have an account provider of
their own, api_key_accounts (ai6-account-api-key, a library beside the Station like the secret providers): the
Claude Code and Codex account providers no longer offer them. It lists them with the ids, settings and
standards above, so a stored account reads the same, reads a key's rate limits and lists its models, and takes the key
sealed: it is in no answer, error, log line or argument. A key does not renew, so renew, watch and login answer
unsupported. A Station that loads it reads an anthropic-api-key or anthropic-auth-token account's rate limits through
it (a Codex key is saved to a home the harness keeps, so the Codex handler reads that one); a Station without it reads them
as before. The read goes to the address the account's Runs use (ANTHROPIC_BASE_URL, or the account's base_url) and to no
other: a gateway token that names none is not read, and says no endpoint.
env = "VAR" puts the value (or directory) in another variable, which no provider applies; a handler other than
claude or codex needs it for config-dir. Each account's secret is an ordinary loadout
secret: it is leased from the same provider, never written to the Registry, the safe house or
the timeline. A green_ink secret cannot back an account: the load fails, since a pool hands
its accounts to every Run that draws them while a green ink credential is only for a step
a person approved.
- Who may draw from a pool: its
handlermust be the Agent's, itsoperationsmust admit the Operation, and the Operation'spools(default: every pool) must name it. An Agent may pin one withpool = "<id>". An Agent whose handler has pools, none of which may be used, does not start, and the reason names each pool and why; an Agent whose handler has no pool keeps its loadout alone.named_only = trueon a pool keeps it from every Agent and route that does not name it, so a pool of one source is not drawn by every other Agent of its handler. - One account per Run: the Station removes every provider credential variable from the
Run's environment (the secret variables Claude Code's and Codex's account providers list, such as
CLAUDE_CODE_OAUTH_TOKEN,ANTHROPIC_API_KEY,ANTHROPIC_AUTH_TOKEN,OPENAI_API_KEY,CODEX_API_KEYandCODEX_ACCESS_TOKEN, the directories their logins are kept in,CLAUDE_CONFIG_DIRandCODEX_HOME, and every account'senv), then claims an account in the Registry and hands its credential over, after the Agent's loadout secrets so none can stand in for it. The provider hands it over: it clears every variable it knows, endpoints included, and the Station puts back the ones that are not secrets that the Agent's environment had (ANTHROPIC_BASE_URL,OPENAI_BASE_URL, a cloud switch, a region, a profile), as before. A loadout secret whoseenvis one of those variables is not issued to a pooled Agent's Run, and that is logged as a weakening. The claim is one Registry write, so two Stations never both take the last place of an account, and it drops any claim the Mission held on another account. A resumed Run keeps its account while it has room, and moves only to an account whose kind carries its history: from one environment kind to another, never to or from aconfig-diror Codex account (those are tried again as a new run instead). - Balancing:
headroomskips accounts that are limited or atmax_concurrent, then takes the one whose most used quota window is lowest (an account whose provider has reported nothing counts as half used, thestationrecord's[accounts] unknown_use_permille; a window past its reset counts as unused), then the one with fewest Runs, then the least recently used, then the highest priority.round_robintakes the least recently used andprioritythe highest priority with room. - Claims and usage: a claim is released when the Run ends, fails or is fenced out,
and lapses with the Station's Run leases when the Station goes dark; the Station renews
the claims of its Runs, those still being handed over included, at each check-in. A
Run a Station re-attaches to after a restart or an adoption keeps the account its
Run record names, claimed again even past its
max_concurrentor a limit (account/reclaimedon the timeline). The tokens each Run uses count toward its account's day, and the quota windows Claude Code and Codex report are kept per account. - Limits: a limited account is skipped until its reset, but never longer than eight days
(the
stationrecord's[accounts] limit_horizon), whatever the provider reports. An operator withpool.managelifts a limit early withai6ctl pools clear-limit POOL ACCOUNT --operation <id>(audited aspool.limit.clear). Moneypenny belongs to no Operation, so her routes' accounts show inai6ctl pools --assistant(config.readonconfig:assistant) while they are limited or hold a quota window, andai6ctl pools clear-limit POOL ACCOUNT --assistantlifts one (config.manage, audited). - Weakenings, logged at start: a
config-diraccount hands the harness a login kept on disk; a Codex login kind writes its login to aCODEX_HOMEunder the Station's state directory (mode0700on Unix; on Windows it keeps the access list it inherits, logged as a weakening; withcli_auth_credentials_store = "file"so it stays there), kept while the Mission may resume its thread and removed once the Mission is over, also after its pool is gone. Only the directories the Station made there are removed, and nothing while its Mission book cannot be read. That home is on the Station, so the harness must run on the Station's own host. - The board: each Station records its own view of its accounts when it starts, with the Operations of its roster that may draw from each pool; the board shows an account to an Operation any Station names. Another Operation's Runs on an account are shown only as a count.
Claude Code and Codex each also read a login of the host's user when no credential is
given; pooled Runs always get one. Other variables that point a harness elsewhere
(ANTHROPIC_BASE_URL, CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_VERTEX) are left as the
Agent's environment sets them: an Agent that sets them sends its pooled Runs there with
the account's credential.
Logins kept in the Registry
A harness that keeps a refreshable login in files can have it sealed in the Registry rather than
copied between hosts, where one host renewing can sign out the others and nothing carries the new
token anywhere. Name the files on a harness-login account:
[pool.grok-free.account.shared]
kind = "harness-login"
files = [".grok/auth.json"] # relative to a home, none with `..`
max_concurrent = 1 # see "May it be shared?" below
renew_command = ["grok", "models"] # default: none, so it is left to its next real use
renew_env = { GROK_AUTH_EARLY_INVALIDATION_SECS = "3600" }
logout_command = ["grok", "logout"] # default: none, so removing the account only forgets its login
- What the Registry holds. Ciphertext, one sealed box per Station named, and who is named. A
dump, a backup, Universal Exports and a person with
pool.readget nothing, and a Station not named cannot open it. A Station that is compromised exposes every login sealed to it, which is the limit of this. What is sealed names who it is sealed to, with their keys, so writing a Station into a record gives it nothing at the next renewal: another Station is added by one that holds the login. - A Station's key. Each Station has a sealing key of its own,
sealing.keybeside itsidentity.pem, made at its first start (mode0600; on Windows the access list it inherits). Its public half is published in the Registry, signed by the Station's identity, so a person who holds the fingerprintai6 identityprints can tell it from one written there by someone else. The identity's own key is not used: it signs TLS, may come from a CA, and may be replaced. - A Run. The account is claimed as any other, and only on a Station the login names. The
login is written under a home the Station makes for the Mission (
HOME, andUSERPROFILEon Windows), which is why the harness must run on the Station's own host, and a home is removed once its Mission is over. A Run's commands can read those files, as they can a login on a shared host: a Run that runs commands where that matters still needs a container Theater. - What a harness renews comes back. At every configuration poll and check-in the Station looks
at each home. A changed login is sealed and written with a revision check, and an older value
never replaces a newer one: a copy made from a revision since replaced is kept only if it plainly
ends later. A copy that lost its login is never kept: a harness whose refresh was refused removes
its file or blanks its tokens, and the Station puts the Registry's copy back; a file reached through
a link, or past
[registry.limits.accounts] sealed_bytes, counts as gone. A Station that went down with a renewed copy writes it when it returns, under the same check. - Other Stations learn at their next poll. A revision that moved is opened and written over the Run's files in place, each file replaced whole.
- The renewal round. At
[accounts] renew_everythe Headquarters Station looks at each login whose end is withinrenew_within, or, where its files do not say when it ends, that has not been renewed forrenew_after. It grants one Station the renewal lease (itself when the login names it, else a named Station), one Registry write that fails while another lease is good. Only the holder renews it in a throwaway home, for at mostrenew_timeoutand never past its lease (renew_lease): byrenew_command, or, for a Claude Code login (filesnames.claude/.credentials.json) or a Codex login (.codex/auth.json), by that harness's account provider, which knows how it renews with no model turn and when it has lost the login, so those two take norenew_commandorrenew_env. Only the files decide how it went, since a refused CLI may exit with success. A failure waitsrenew_backoff, doubled each time up torenew_backoff_max, andrenew_attemptsof them mark the account as needing a person: audited (pool.login.needs_person), on the timeline of each Operation that may draw it (account,needs_person), and on the board. Its Runs then go to the next account or route. All of this is in the Registry, so the next Headquarters Station carries on where this one stopped. With norenew_command(and not a Claude Code or Codex login), a login is left to its next real use and a person is told it may lapse. - The board.
pool.readshows the Stations named, when the login ends, when it was last renewed and how that ended, who holds its lease and until when, the changes waiting for a Station that holds the login, and why a person is needed: never the login. - A Run whose token was refused fails with a line naming the renewal under it, and a resume takes the current login.
The value of a login reaches no record, log, error or response, and what a renewal command prints is never read.
Adding a login, and which Stations hold it
The files an account names in files are the only ones read, so no command hard-codes where a CLI
keeps its login. On a host where the CLI is signed in:
ai6 pools add-login grok-free shared --handler acp # from this user's home
ai6 pools add-login grok-free shared --handler acp --from /srv/login-home --station host-a --station host-b
add-loginreads those files from--from(default: the user's home), seals them to the Stations named with--station(default: this Station, whose[station] idorstation-idfile names it) and records an audit event (pool.login.add) first: a refused audit refuses the command. It takes nothing from the host, never prints a file, and refuses an account that already holds a login unless--replace(pool.login.replace).--handlermust be the handler the pool serves, so a login is not sealed under the wrong account. Every Station named must hold a Station certificate (ai6 secret-trust certify-station), unlesssealing.trustsetsuncertified_stations; existing sealed logins stay readable and renewable under the keys already sealed inside them, andadd-login --replacere-seals to each Station's certified key.ai6 pools add-station POOL ACCOUNT STATIONandai6 pools remove-station POOL ACCOUNT STATIONchange which Stations may hold it, on a host whose Station already holds it (sealing needs its key, and the added Station needs a Station certificate unlessuncertified_stationsis set). Removing a Station drops its sealed copy from the next revision on; what it already opened stays with it, so replace a login that Station should no longer have (add-login --replace). The last Station cannot be removed. Audited aspool.login.station.addandpool.login.station.remove.ai6 pools remove-login POOL ACCOUNTforgets the login: the sealed value and everything the Registry kept of its state. It is still signed in at its provider. With--sign-outthe account'slogout_commandruns first, on a Station that holds the login, in a throwaway home; the login is forgotten only when that ends with success, and an account with nologout_commandis refused with nothing changed. Audited (pool.login.sign_out,pool.login.forget).ai6 pools listshows, per account, the Stations named, when the login ends, its last renewal, the lease holder and what waits.
The same three changes are made from ai6ctl and Outer Office, which hold no key: they go through
Universal Exports, need pool.manage on an Operation that may draw the account, and are audited
(pool.login.station.add, pool.login.station.remove, pool.login.sign_out or pool.login.forget)
before anything is recorded.
ai6ctl pools add-station grok-free shared host-b --operation G
ai6ctl pools remove-station grok-free shared host-b --operation G
ai6ctl pools remove-login grok-free shared --operation G --sign-out
Forgetting without signing out happens at once (204). A new Station, a removed Station and a sign-out
need a Station that holds the login, so they are recorded on the login (202, shown on the board as
waiting) and a Station that holds it makes them at its next check-in, auditing each as it does
(pool.login.station.added and the like, by the Station). A request nothing can ever make (a Station
with no certificate or sealing key, the last Station, a sign-out that failed) is cleared with its reason as the
login's last result.
Needs a person
A login that cannot be renewed any more is marked as needing a person: renew_attempts renewals
failed in a row, or the account is declared to keep a login and none was ever added or it was forgotten.
Its Runs go to the next account or route. Nothing renews it; a person signs the CLI in again on a
host and runs
ai6 pools add-login POOL ACCOUNT --handler H --replace
which clears the mark. The state is shown, with that command, on the Account Pools page of Outer
Office and in ai6ctl pools, and it is an item (login_needs_person) of the attention summary
(GET /v1/user/attention, the Overview page, and Moneypenny's attention tool), read per Operation with
pool.read, once per account however many Operations may draw it.
May it be shared? max_concurrent keeps its meaning: several Runs may share a login, across
Stations. Whether that is safe depends on the CLI and on its provider. What each measured CLI does is
below; nothing here was run against a real login, and whether a provider rotates a refresh token and
whether an old access token stays good after a renewal are unmeasured for all of them. Until they are,
set max_concurrent = 1 for a login whose provider may rotate; a person may set more, as a weakening.
| CLI, version | Files | Moved by | Renews with no model turn | Refused refresh | A running harness |
|---|---|---|---|---|---|
| Claude Code 2.1.318 | .claude/.credentials.json (macOS: Keychain) |
CLAUDE_CONFIG_DIR, HOME |
claude auth status, within 5 minutes of its end only |
blanks the tokens | reloads when the file changes, and from disk on a 401 |
| Codex 0.164.0 | .codex/auth.json with cli_auth_credentials_store = "file" |
CODEX_HOME, HOME |
codex app-server, asked account/read with refreshToken: true while its input stays open; codex login status does not |
leaves the file | reloads from disk on a 401, then refreshes |
| Grok 1.0.70 | .grok/auth.json |
GROK_HOME, HOME |
grok models, within GROK_AUTH_EARLY_INVALIDATION_SECS (300) of its end; keep that below a new token's life, or one command refreshes several times |
removes the file, and still exits 0 | keeps its token in memory, takes a rewritten file after a 401 |
| Antigravity CLI 1.4.12 | .gemini/antigravity-cli/antigravity-oauth-token |
HOME |
unmeasured: agy models exists |
unmeasured | unmeasured |
Routes
An Agent can reach its model several ways: a handler, what that source calls the model, and where
its accounts come from. List them in place of handler, and the Station balances between them:
[agent.007]
roles = ["case-officer"]
effort = "high"
balance = "headroom" # or "round_robin" or "priority"; the pool strategies' words
[[agent.007.route]]
handler = "claude"
model = "claude-opus-5-5"
pool = "claude-team"
[[agent.007.route]]
handler = "claude"
model = "anthropic/claude-opus-5-5" # what this source calls it
env = { ANTHROPIC_BASE_URL = "https://llm.example" }
secrets = ["litellm"] # [secret.litellm], with env = "ANTHROPIC_AUTH_TOKEN"
priority = 1
[[agent.007.route]]
handler = "codex"
model = "gpt-6.1-sol"
pool = "codex-team"
handler is required on a route. model, effort, handler_settings and pool it leaves out it
takes from the Agent; env goes over the Agent's. An Agent with handler and no routes is one
route, and both together are refused, as are two routes with the same handler, model and pool, since
those names tell routes apart. With extends, what a record sets replaces the other form of what it
extends.
To spread an Agent over several models of one handler, list them in models instead:
handler = "claude" with models = ["opus", "sonnet"] is one route per model, with the Agent's
effort, handler_settings and pool. A Run takes the model whose account has the most quota
left, as balance says, and a quota window that names models counts only for those. One model is
the plain model; models needs a handler and is refused beside routes.
Agents of equal priority share Missions the same way: the one whose next Run's account has the
most quota left is placed first, and Agents with the same quota take turns, the one used longest
ago first. [placement] spread = false in the station record leaves them in codename order.
Identity stays the Agent's: its codename, roles, clearance, tags and Cables do not change with the route. Routes of one Agent are meant to be one model. AI6 does not check that, as it does not check a model at all; an Agent that needs another model's behaviour is another Agent.
- Which routes count: a route counts when its handler is available on this Station, it can hold
the Run's clearance (the
acphandler cannot holddeskwithoutunconfined_desk), what it names is configured, and its account source has room. Pools follow the rules above, on the route's handler andpool. The Station and placement take an Agent while any of its routes can run. - Balancing:
headroomcompares routes by their best account, by the numbers pools keep; a route with no reported use counts as[accounts] unknown_use_permille. Then fewest Runs, the least recently used, the highestpriority, and the order listed.round_robintakes the least recently used, andprioritythe highest priority with room, then the order listed. The default isheadroom. - A route's cap:
token_capis the most tokens one request to the route may hold, for a route whose gateway refuses more (an error such asCurrent cap is 300000 tokens). Nothing is checked against it when a request is sent; it is what the Station's compaction measures a conversation against. The models listing (inai6ctltoo) and the app's Models page show it beside the route. A harness that reports such a refusal fails the turn with the gateway's words instead of retrying it. - A route that trains on its input:
trains_on_input = truemarks a route whose source may train on what it is sent, a free tier for one. A route so marked is passed over, and says why, for a Run of an Operation withprivate = trueand for a Run that carries an overlay that is private, whether its loadout or its Operation issues it; an Agent with only marked routes waits with those reasons. Unmark the route, the Operation or the overlay to lift it. - A route with no pool has one account of its own that hands over nothing, kept in the Registry
under a
route-…ID and labelled with the Agent, handler and model. So every Station sees its limit, its Runs count and the board shows it asharness-login. - Its
envis values anyone who reads the roster can read: a credential's variable or AI6's own is refused at load. Exposure does not take them away, and a review keeps them. - Its
secretsare[secret.<name>]records of the configuration provider, leased per Run and handed to the harness as any loadout secret, and issued whatever the Run has read, since the harness reaches its model with them. A file of[secret.<name>]tables and no loadout or pool is acceptable. A secret that is not configured, or a green ink one, rules the route out. A variable a pool account also supplies is left to the account. - All limited: the Mission waits, and its
waitingreason names each route and why. A brief waits only when no route has room on any handler the deciding Station can judge: which Station runs it, and so which handlers it has, is decided later. - A Run keeps its route. A resume stays on it, since history belongs to the harness and the source. Without room there, a resume moves only to a route of the same handler whose accounts carry the history, from an account that does; otherwise it is a new run on another route, and the Agent is told, as a limit moves work. A running harness is never moved.
on_limit:rotate(the default) moves a limited Run by the rule above;waitparks it andbackuphands it to the next Agent, whatever other routes it has.- What is shown: the Run record's
launchnames the handler, model and pool, and itsaccountthe account. So do the board's runs,ai6ctl missionand the Mission page. The timeline hasroute/chosenandroute/moved, and the Agents page andai6ctl agentslist each route. - A review is issued no credential, so a route that needs one is not chosen for it, and an
Operation's own
agents.tomlmay not change a reviewer's routes. - A clearance raise is signed for what occupies the codename: with routes, every model they name. Changing them ends the raise.
Moneypenny takes routes too.
Reading usage again
A handler says what its harness reports of an account's usage (AgentHandler::usage_support) and, when the
harness can be asked between turns, reads it (AgentHandler::usage): the account's buckets, each with the
models it covers, how much is used and when it refills, as coqui-acp's usage model spells them.
| Handler | Reports | Read |
|---|---|---|
claude |
the running spend of a process and each window of a rate_limit_event |
from a turn's events (needs_turn); the plan windows also through the account provider, below |
codex |
each request's tokens and the account's rate-limit windows | account/rateLimits/read through an app server started for the read; no thread, no turn; also through the account provider, below |
antigravity |
each model call's tokens, and the quota agy serves on a loopback port | from the agy of a running Run of the same home, else through a private agy acp with an empty run, ended after the read (usage_wait_ms) |
acp |
a refusal read as a limit (limit_phrases, default the shared words) |
only from a turn (needs_turn) |
For a Claude Code or Codex account the Station asks the harness's account provider first
(account_usage::read_limits of coqui-acp-claude and coqui-acp-codex): one request, with the account's own
credential, to the provider's own endpoint (Claude's OAuth API, the ChatGPT backend), with no program started and no
model turn. That gives a Claude account its plan windows (five_hour, seven_day, a window per model) although
Claude Code reports them only inside a turn. The credential leaves the Station only in that request, to that
endpoint; an answer or an error names none. An account the provider has no limits for (a Console login, an API key
with no rate-limit headers) is not read; one it cannot be asked about from here (a Codex key saved in a home the
harness keeps) is read by the handler as the table says. Another handler, antigravity and acp, is read by the
handler alone.
A Station reads an account only when something asks, never on a timer:
- A person:
ai6ctl pools usage POOL ACCOUNT --operation <id>, the Read usage now button of Outer Office's Account Pools page, orPOST /v1/user/operations/{id}/pools/{pool}/{account}/usage(pool.read). The gateway reaches no Station, so the ask is a record in the Registry that a Station holding the account answers at its next beat; the call returns the account's board entry once one has (200), or202when none has within 20 seconds. The board shows the last ask,usage_read: when, andread,reading from 5s agoornot read: why. - An Agent: every Run that draws on a pool account has
check_quotaon its AI6 MCP server, which reads its own account and answers its pool, its windows (how much is used, when each resets, the models it covers) and how the reading went. It names no account and carries no credential, and it starts no work. - An event: a Run about to be given an account of a pool, and a Mission about to choose a route, read the accounts the choice may fall on first, so it is made on what the providers say now; a Run that ends at a provider limit reads its account, which keeps a reset the provider moved later and lifts nothing; and a renewed login reads its account.
A reading is kept for keep seconds on the usage table of the roster record ([roster.usage], edited
like the rest of it through Universal Exports, ai6ctl and Outer Office's Roster settings, applied at the next
ask; 60, 0 reads at every ask), and one reading is made at a time per account, so a burst of asks, from
whatever started them, reaches the provider once. What is read goes to the account's quota in the Registry as
the quota a Run reports does, which the route chooser and the claim read. For an account the Registry holds
limited, a reading that finds no bucket covering the waiting Missions' models used up frees the account and
resumes them (not after a limit a Run just hit); one that shows the reset later keeps the account out and re-parks them to the new time. The Missions
waiting on an account are the parked ones whose record names it (parked_on: the account and the model they
need, none for a routed Agent), so a restarted Station, or one that finds the limit lifted by another
Station's read, resumes them. A handler that learns its usage only during a turn, for an account its harness's provider cannot read, is never read: its account
waits for the time the limit stated. The board shows each window with the models it covers and when it was
read (ai6ctl pools, column READ_UNIX, and the Account Pools page).
What a Run can start with
A route names a model, and may name an effort or mode, by what its source calls them, so a person
needs to know what a source offers. Each Station asks its handlers, through
AgentHandler::start_options, what a Run on the account behind an environment can start with, with
no model turn: for each pool account (its credential leased as a Run's is, no account claimed,
the lease revoked as soon as the answer is in) and for each route no pool serves (its env and
secrets). It looks again every [accounts] models_every seconds (3600; 0 never on its own) and
reports the answers at check-in. A look runs on its own thread, never on the check-in beat, so slow
handlers cannot make the Station look dark; it asks [accounts] model_probes handlers at once (4;
null all at once, 0 none) and waits model_probe_timeout seconds for each (20; null as long as
it takes). One that takes longer keeps what the last look found for its account or route, or is
unknown and says so.
Every part of the answer — models, efforts, modes, config (other options with their values)
and sessions (the harness's own sessions a Run may resume, with incomplete when the list stops
short) — is one of three outcomes: known with its values, unknown with the reason it could
not say, or not supported declared by the handler when its harness has no such question. A
missing report is never read as not supported. ai6ctl models, the Pools page (roster.read) and
the Agent form in Outer Office show each part's outcome; typing a model or effort by hand in the
Agent form stays possible beside an unknown list.
- Claude Code answers an
initializecontrol request with the models its login can pick and the efforts each model takes (the five--effortvalues where a model supports effort), its five modes, andnot_supportedfor other options and sessions. The model list follows the kind of login in the environment (an API key, a subscription, a gateway), not a check of the account's standing, and a gateway's own model names are not in it. - Codex answers
model/list(models and theirreasoningEffortvalues) andthread/list(sessions, orunknownnaming its Codex version when the installed CLI does not answer it) from the app server, its five modes, andnot_supportedfor other options. With no login,model/listanswers from its shipped catalog. - ACP (
acp) asks the agent before any session and passes each of the agent's three outcomes through, bounded by itsdescribe_*settings; an agent that does not advertise a question remainsnot_supported. - Antigravity CLI answers unknown in every part with why until its
agy acpdescribe is measured. - A discovered option is an offer: it makes no route, and no Agent uses it until a person or an approved proposal writes the route. No credential is ever part of an answer.
Overlays
An overlay is a directory of what an Agent works with: rules, context, skills, knowledge files,
programs and environment. A loadout issues overlays to its Agent, and an Operation adds its own,
since which standards apply belongs to the project. The format is the
Agent Overlay Spec (AOS), edition
0.1.0-draft: a tree with an optional manifest, overlay.cfg or OVERLAY.md. Reading, validating,
composing and the tree digest are the shared coqui-aos crate's.
A Station fetches each overlay to a store keyed by its digest, verifies it at every Run start, and gives the Run a read-only copy outside its working directory, so no commit can hold it.
# a document for `ai6ctl apply` (the loadout families)
[overlay.engineering]
source = "https://github.com/example/agents.git@4b825dc642cb6eb9a060e54bf8d69288fbee4904#overlays/engineering"
pin = "sha256:5d0c..." # what `ai6 overlay pin DIR` prints
secrets = ["agents-deploy-key"] # [secret.<name>] names a private source is fetched with
private = true # its text stays off routes whose source trains on input
[overlay.rust]
path = "/srv/overlays/rust" # a directory on the Station
pin = "sha256:9a41..."
[loadout.007]
overlays = ["engineering"]
# a document for `ai6ctl apply` (the operation family)
[operation.G]
overlays = ["rust"]
[overlay.<name>]names exactly one ofsource, in AOS's[git+]<location>[@<ref>][#<path>]form, orpath, and thepinits files must have. The name is the overlay's identity, compared in lower case with_and.as-:Team_Reviewandteam-revieware one overlay, and two records naming it are refused.default,overlay,system,user,project,project-rootand Windows device names are refused.privatemarks an overlay whose text must not reach a route that trains on its input (trains_on_input, Routes); an overlay fetched withsecretscounts as private too. A Run that carries a private overlay is never placed on such a route.overlayson a loadout and on an Operation name records by identity, each once. A loadout's must name records its document defines.- Order. A Run gets the loadout's list, then the Operation's. Each overlay's
requiresis resolved first and each overlay is issued once; they then contribute in AOS composition order, ascending(priority, name, identity), so the overlay with the higherprioritywins a conflict. An Operation's list only adds: no name takes away what the loadout issues. - Refusals. A name that is no overlay name or that no record defines, a
requiresno record offers, and a cycle (a -> b -> a) each refuse the Run, naming the overlay: a Run is never given part of what it was meant to have. - The pin is the AOS tree digest: one line per file,
path NUL sha256:<hex> LF, sorted by path bytes, hashed with SHA-256, over the bytes as published..git,node_modules,__pycache__, the other excluded names and.pycfiles are not part of it; a link, a special file, a name a platform would alias and two paths equal under ASCII case make the tree unreadable. A changed, added or renamed file changes it. A mismatch refuses and nothing overrides it: to accept other bytes, change the pin. An overlay with no pin is refused unless thestationrecord's[overlays] unpinned = true, a weakening reported asunpinnedfor each such overlay every time it is issued. OVERLAY.md. When there is nooverlay.cfg, the manifest is the front matter ofOVERLAY.md(YAML unless a#!format line names another format) and its body is the overlay's context. An overlay with both files is refused (two-manifests).- Hooks. An overlay's hooks (a
[hooks]table, or ahook.<ext>script at the root;spec/v0/hooks.md) run through Claude Code on the Station's own host, and through no other handler yet: a Run through another handler, or whose harness is not on the Station's host, is refused when an overlay declares any, naming the table or the file, rather than run without the checks its author wrote. - Off until allowed. A hook runs only when the overlay's record allows hooks at the digest the
overlay has (
hooks = "sha256:..."in[overlay.<name>], the same textai6 overlay pinprints). At any other digest they are off and each is reported ashook-not-allowed. An overlay with a guard (on_failure = "refuse") whose hooks are off is not issued: its Run waits, since it would run without the guard. - Events. Claude Code fires
session-start,session-end,prompt(UserPromptSubmit),turn-end(Stop),pre-toolandpost-tool.cd,pre-compactandpre-envare not fired: each overlay that has one is reported ashook-unsupported, and a guard on one, or on an event whose refusal Claude Code cannot enforce (onlypromptandpre-toolcan be), refuses the Run, since it would fail open. A Run that may not run commands runs no hook. - How. Each event is one hook entry in the Run's
--settingsrunningai6 overlay-hookwith that event's hooks, beside the green ink gate. It tells each hook the payload of the specification (harnessisclaude-code;sessionis the Station's own name for the Run, never Claude Code's; a tool's kind is ACP's:Bashisexecute,Editisedit, and a tool it does not know, an MCP server's included, isotherand so runs everypre-toolhook). The hook runs in the Run's working directory, outside the harness's sandbox, with the Run's environment but forCLAUDE_CONFIG_DIRandCODEX_HOME, and withAOS_OVERLAY_ROOT,AOS_OVERLAY_NAME,AOS_OVERLAY_STATEandAOS_HOOK_EVENT. - Answers. A
pre-tooldenystops the call and anaskasks the person; the tightest answer among the overlays' hooks and the green ink gate wins (a deny beats an ask). Apromptblockstops the prompt.contextreaches the agent fromsession-start,prompt,pre-toolandpost-tool. Anallowis never passed on, and neither is theinputit carries or anenvoutput: Claude Code would take an allow as leave to skip its permission rules and the gate, so each is reported ashook-not-appliedon the command's standard error. A failed hook (it did not start, ran past its timeout, exited non-zero or wrote output the event does not read) is reported ashook-failed; a guard's failure denies. ai6 overlay pin DIRreads an overlay as a Station does, running nothing: it prints each file with its SHA-256 and thepin. It exits non-zero, printing no pin, when the manifest does not read or validate against the files, or a skill fails theSKILL.mdchecks. Problems underabout, which is informational, are printed and do not stop it.ai6 assistant pin-skillis gone: Moneypenny's skills come from overlays (her skills).
What an overlay holds
Files in conventional places take effect without a manifest, each turned off by a [defaults]
key set to false:
| Key | Default |
|---|---|
bin |
bin/ prepended to PATH |
lib |
lib/python/ prepended to PYTHONPATH, lib/node/ to NODE_PATH; a bare lib/ means nothing |
env |
the root file env, read as dotenv: literal text with ${NAME} substitution, never run |
env_scripts |
one root env.<ext>: .py, .js, .mjs, .cjs, .ps1 on Windows, .bash, .sh elsewhere, the first present whose interpreter is found |
setup |
one root setup.<ext>, chosen the same way, taken to need the network |
deps |
lib/python/requirements.txt and lib/node/package.json |
context |
the root CONTEXT.md |
skills |
every skills/<name>/SKILL.md |
rules |
every rules/<name>.md directly in rules/ |
What a manifest declares adds to these, and an entry naming a default's file or directory
replaces that default. Every skill an overlay offers passes the checks Moneypenny's catalog
applies to SKILL.md: front matter naming the skill with a description, and no key that grants
tools or injected command.
- Weakenings. A default env script or setup that runs, a setup with the network, a
dependency file installed (
deps-network) or not locked (unlocked-dependencies), a secret read, a sensitive variable set and the others AOS lists are computed for each overlay, with the overlay and the variable or path, never a value. - Secrets reach an overlay only by reference (
{ secret = "name" }or{ provider = "env", key = "VAR" }inenvor anaosenv file, never in dotenv), and only when granted to that overlay; a placeholder never reads a secret.
Knowledge
An overlay's kb/, flows/, references/ and rules/ files, CONTEXT.md and the files its manifest
names are its knowledge. A Run whose overlays serve any has three more tools beside reports:
kb_listlists the files, by overlay, with their sizes and lines.kb_readreads one by its path, by lines when it is long. A file whose first line names a template format (#!envsubst,#!mustache, oraos, the default, with@pathincludes and${NAME}) is rendered for the call by coqui-aos, never by AI6; one that names#!rawor#!markdownis read as written.kb_searchfinds the files that hold the words, best first, ranked as the Report search ranks Reports.
What they may read and how much is bounded by the knowledge_* settings of
[overlays] of the station record (Configuration) (knowledge_file_bytes, knowledge_read_bytes,
knowledge_rendered_bytes, knowledge_query_characters, knowledge_top, knowledge_context_bytes,
knowledge_context_depth and knowledge_include_depth).
What a Run gets
- The root.
<NAME>_OVERLAY_ROOTfor each overlay, its identity in upper case with-as_, and<NAME>_OVERLAY_STATE. A root is read-only:0555and0444, with0555on a file underbin/or opening with#!, or on Windows an inherited deny on writing, adding and deleting. A process running as the same user can take that off, so what stops it is the check at the next start. A limited Windows token is stopped by that deny; an elevated one gets past it for a delete, a new directory and whatever asks to back up (Git Bash wrote a new file through one), and root gets past file modes. Each is reported asread-only-not-enforced. bin/first onPATH,lib/python/onPYTHONPATHandlib/node/onNODE_PATH, with the rest of the overlay'senvandenv_files, in the order of application. An Agent with noPATHkeeps where a process given none looks; on a Theater, the loginPATH. An overlay may not set a variable startingAI6_: that refuses the Run.- The text. Rules, routing and context in the initial context, each file marked, in composition
order, the whole no more than
[overlays] context_bytes: past it the Run is refused, naming the setting, rather than its text cut. - Skills, loaded natively where the harness loads them, and otherwise named by a routing line
(
Skill <name> (overlay <overlay>): ... Read <root>/skills/<name>/SKILL.md). Two overlays offering a skill of one name, without regard to case: the later in composition order is delivered andskill-collisionis reported.[harness.<id>] skills = falsein the manifest makes the routing line the delivery for that harness,contextadds files for it alone, and no other key of the table applies. While anOVERLAY.mdbody is the context, a rootCONTEXT.mdis left out wherever it is named (a harness'scontextincluded) and the delivery reportscontext-ignorednaming it; the overlay stays usable. - A
deskRun gets the root and the text, and nobin/,lib/or anything run for it. The same goes for a Run held to reading until its plan passes.
| Handler | Harness id | Skills | Checked with |
|---|---|---|---|
claude |
claude-code |
Native: --plugin-dir of a plugin the Station lays out, Skill offered |
Claude Code 2.1.318 |
codex |
codex |
Routing line: Codex takes no root of skills but its home and the project. At desk it has no tool that reads a file, so there it cannot open what the line names |
Codex 0.164.0 |
acp |
acp |
Routing line, in the first prompt | Grok 1.0.70 |
antigravity |
antigravity |
Native: a workspace of the Run's own holding the skills; each root may be read | agy 1.4.12 on Linux |
A resumed Run is given its overlays again, checked again. If its digests differ from those it
started with (a changed pin), it gets the new ones, and the timeline says so (overlay, changed).
One taken up as it runs, on its runner, keeps what it has.
A tree that changed refuses the start, naming the directory, on the Station as on a Theater, and
the Mission waits with the reason. Nothing fetches over it: remove the directory and the next start
fetches it again. Reading a plain URL as a source is not implemented; name a Git repository or a
directory. A Git source's bytes are its blobs, with no checkout filter. secrets on an
[overlay.<name>] names the secret a private HTTPS source is fetched with, in the environment of that
one git.
Distributing helper tools
A helper program, an interpreter or a script every Mission needs is an overlay with the program under
bin/, pinned, and named by the loadout or the Operation: each Station fetches it from its Git source
or directory, verifies the tree digest, and gives each Run a read-only copy with bin/ first on its
PATH. The store is overlays/ under the Station's own state directory, never the install directory,
so a release install leaves it, and a Station that already holds a pin fetches nothing. To change a
tool, publish the new tree and change the pin; every Station follows at its next Run, and a Run
that is resumed with a changed pin says so on its timeline. examples/config/loadouts.toml is a
complete one.
A value of a loadout's, an Agent's or a start request's env may write ${overlay.<name>}, which
is replaced by the directory that overlay is issued in on the Run's site, for a program that is not
looked up on PATH (TEAM_HELPER = "${overlay.team-tools}/bin/team-helper"). Only an overlay the Run is issued
can be named, compared by identity as everywhere; naming another, or leaving the ${overlay. open, refuses the Run
with the variable and the overlay named. The overlay's own <NAME>_OVERLAY_ROOT is set too.
Code in an overlay
Code needs what runs it where the Run runs. Text does not: an overlay with only text goes anywhere.
- What is looked for. On a Run that may run commands, a Station looks on the Agent's
PATH(the loginPATHwhen it names none) at most once per[scheduler] check_in, for each interpreter and command the overlay's manifest and files call for: Python (python3, orpython, answeringPython 3) forlib/python/,cmds/or a requirements file, what a setup or env script names, andnpmfor apackage.json. A Theater lacking one is passed over: the Mission waits, and says what is missing and which overlay needs it, until it is there. - Dependencies go into an environment of each overlay's own, keyed by its digest, whatever
environmentthe overlay chooses, so a pin covers exactly the packages its Runs get. AOS allows a consumer this policy, and it is not a weakening, since it shares less. It is built before the harness starts, outside its sandbox, and is read-only after. A file with an option in it, a direct URL, or only some requirements hashed is refused.deps-networkis reported for each install, andunlocked-dependenciesfor a file not locked. npm runs no package's install scripts. - Setup runs in its phases:
installfor an overlay with no record on a Theater,syncfor a digest other than the recorded one, nothing for the recorded one. The record is kept per Theater, on the Station, and a Theater that lost the environment or state it speaks of starts again frominstall. A digest whose preparation failed is not issued, and the Mission fails with the step, its exit status and its last line of standard error. A step runs in a process group of its own with its timeout (on Windows, its process tree at the timeout), its environment the Agent's path and locale variables and its own overlay's, never a credential. A Station cannot deny it the network, sonetwork-not-enforcedis reported for a setup that declares none. - The state directory is per overlay identity and Theater, kept across digests, emptied before
install, and read-only to the Run. - Env scripts run at each start, outside the Run, and what they print joins the environment;
env-scriptis reported each time. AGENTS_PYTHONnames the interpreter found, for an overlay with Python code.cmds/runs underdotagents:[overlays] dotagents_pyznames thedotagents.pyzon the Station anddotagents_pinits SHA-256. A Run then hasdotagentsonPATH,AGENTS_CMDS_PATHnaming each overlay'scmds/, and an emptyAGENTS_HOMEof its own, removed with its Mission. An overlay withcmds/and no such setting is refused, naming it.
What a Station holds, and an MCP server's tools
A Station reports at each check-in what its overlay store holds of the overlays its catalog names:
for each pinned [overlay.<name>] whose tree is in the store and still has its digest, the digest,
the skills, and whether it has a bin/ or Python (lib/python/, cmds/ or setup.py). Nothing is
fetched to make the report, an overlay without a pin is not in it, and no path or secret is.
GET /v1/user/overlays (needs config.read on config:overlay) lists it by Station, and
ai6ctl overlays list|show NAME and Outer Office's Quartermaster section read it beside the
records.
Whether an [mcp.<name>] server works, and what it offers an Agent, can be asked before a Mission
finds out. POST /v1/user/mcp/{name}/tools (needs config.read on config:mcp; audited as
mcp.tools; the body may name one Station as {"station_id": ID}) waits until a Station takes the
request. The Station starts the server's command with the private environment a model look gets
(never its own), leases the secrets of the loadouts that issue the server for this listing alone
(a secret that waits on green ink is left out) and revokes them after, speaks MCP over the server's
standard input and output (initialize, then tools/list for every page), and stops the server.
The answer is {server, station_id, at, server_info, tools: [{name, description, input_schema}],
error}; a server that cannot be started, refuses, stops or does not answer is the error, in its
own words where it gave any (the end of its error output is included). Every leased value and
anything shaped like a credential is replaced in the answer. What a server says is its author's
text and is shown as data, never rendered. [harness] mcp_tools_timeout (20 seconds; none waits
as long as the server runs) bounds the listing, and [harness] mcp_tools_bytes (4 MiB) each line
the server sends and the listing together; each refusal names its setting. A Station that has no
such server answers so; 404 means no [mcp.<name>] is configured, 504 that no Station answered
within [assistant.gateway] source_wait. ai6ctl mcp tools NAME [--station ID] prints the answer.
Commands
Run ai6 serve --help to configure a Station and ai6ctl --help for the operator
commands. The sample Operation and roster are in examples/config/.