Skip to content

Operations

An Operation is a registered project or workspace and its policy. Operations are global: no Station owns one, and any Station whose labels match the Operation's station_labels (and that has its checkout) can run its Missions. The configuration owns the checkout, Agent roster, clearance ceiling, concurrency budget, workspace and placement. Each Operation is an operation record of the configuration provider, edited in Outer Office, with ai6ctl or through the gateway, read from the provider the bootstrap names (Where configuration comes from). Only registered Operations may contribute a local .ai6/agents.toml override.

[operation.G]
name = "guatiao"
path = "~/projects/guatiao"
roster = ["007", "006"]
clearance = "field"
max_concurrent = 3
workspace = { provider = "git", settings = { base = "origin/main", branch = "agent/{id}-{slug}", isolate = true } }
station_labels = { gpu = "yes", os = "linux" }
stations = ["lab-gpu", "hq-1"]
cover = "covert"
on_blown = "flag"
sources = { jira = "GUA" }

The Operation ID (G) and project name (guatiao) both resolve to the same registered Operation. path is the local checkout. theater binds the Operation to one Theater by ID; when it is bound to a remote Theater, path is read on that Theater. roster limits which Agents may be assigned; when omitted or empty, every configured Agent is eligible. clearance sets the highest authority available to its Missions. station_labels is matched against the labels of an execution Station and its Theater. stations optionally lists the Stations allowed to run the Operation's Missions; empty or absent allows every Station. A Mission can narrow that list but never widen it. See Placement for the full set of checks.

One Operation record serves Stations whose file systems differ when its path is relative and each Station says where it keeps Operations: [ops] base = "D:/ai6/ops" in that Station's own station record. The Station reads the Operation's relative path, config and workspace.source from there (path = "guatiao" is D:/ai6/ops/guatiao); an absolute path is kept as written, and a Station with no base reads a relative path from its working directory.

Workspace

workspace says where a Mission's Agent works. A safe-house provider makes the workspace: git cuts a worktree on a new branch under the AI6 state directory. An untouched safe house is removed when the Mission ends; one with changes is retained and recorded in the Mission report.

Key Default Meaning
provider git when the path is a Git checkout, else none The safe-house provider ID. With none, Missions work in path directly and cover is not checked
source the Operation's path Where the work comes from (a local path)
settings {} The chosen safe house's own settings for this Operation, drawn in Outer Office from the provider's schema (the fields it marks operation). A safe house that cuts copies takes the keys below
settings.base HEAD Revision a safe house starts from
settings.branch {id}-{slug} Branch name template; {id}, {slug} and {operation} are filled in
settings.isolate true false works in source itself instead of a separate copy
settings.checkpoint_remote none A Git remote (name or URL) each running Mission's safe house is checkpointed to, on its own branch, so a later run on another Station starts from its work. Unset pushes nothing
settings.checkpoint_secs 300 Seconds between checkpoints while a Run runs. Must be above zero

Two providers ship: git (a worktree on its own branch; commits are audited) and copy (a plain copy of the directory, always kept, no history).

Providers are loaded by the Station that runs the Run (ai6 serve --plugin-path). A provider that keeps no history makes the Mission's cover report say it was not checkable instead of passing.

Cover

Operations can set a cover policy and author identity for commits:

[operation.G]
cover = "partial" # covert, partial, overt or a configured policy
cover_identity = { name = "Field Office", email = "field@example.invalid" }
on_blown = "fail" # or "flag"

The identity is applied as the Git author and committer. AI6 checks Mission commits against the configured cover policy and records any violations in the Mission report.

Provider limits

When a provider refuses work until a quota resets (a usage or rate limit), the Operation decides what happens to the Mission:

[operation.G]
on_limit = "rotate"        # or "wait" or "backup"
limit_fallback_secs = 1800 # how long to park when the provider gives no reset time
pools = ["claude-team"]    # the account pools its Missions may draw from; default: every pool
Key Default Meaning
on_limit rotate rotate moves the Run to another account of its pools that has headroom: a Claude Run on an environment credential resumes the same Run there; a Codex or config-dir Run, whose history stays with its account, is tried again as a new run with a hand-off. Without a pooled account to move to it waits. wait parks the Mission and resumes the same Run when the quota resets. backup posts the next qualified Agent whose handler is different, as a new run in the same safe house, and parks only when there is none
pools every pool The account pools whose own operations admit this Operation that its Missions may use; an empty list uses none
limit_fallback_secs 1800 Seconds to park when the provider reports no reset time (or one already past). Must be above zero

Both are overridable per Operation and an unknown on_limit value fails the load. See Recovery.

Lost Runs

A Run is lost when its Station goes dark and no other Station can re-attach to it (its harness ran on that Station's own host), or when its Station lives but the Theater's runner, or a wrapped harness, stays out of reach:

[operation.G]
on_lost = "retry" # or "fail"
lost_after_secs = 45
Key Default Meaning
on_lost retry retry queues the brief again as a new run on an eligible Station, starting from the last checkpoint (see workspace.checkpoint_remote) with a hand-off about the lost run, up to three runs in all. fail files the brief as lost
lost_after_secs 45 Seconds a Run's runner or wrapped harness may stay out of reach (three Station check-ins) before its Station probes it once more through the Theater's transport and, if it is still gone, marks the Run lost. Must be above zero

An unknown value fails the load. See Station loss and Runner loss.

Spreading or packing work

Among the Stations and Theaters that pass placement's checks, an Operation's Missions go to the least-loaded place by default, or fill the busiest place that still has room:

[operation.G]
placement = "pack" # or "spread"
Key Default Meaning
placement spread spread takes the lowest load score first, sharing work out; pack takes the highest, keeping other Stations and Theaters free. See Placement for the score

An unknown value fails the load.

Budgets, exposure and quarantine

Three optional tables set how Medical treats the Operation's Agents. None sets a spending limit unless you write one.

[operation.G.budget]
mission_cost_usd = 5.0
operation_cost_usd_per_day = 40.0
# preset = "strict" sets conservative limits for every key you leave out

[operation.G.exposure]
preset = "strict"   # or "observe" (record exposure, restrict nothing) or "strict-except-secrets"
tools = ["WebFetch", "WebSearch"]

[operation.G.quarantine]
stalls = 3          # 0 turns a trigger off
budget_stops = 2
blown = true
window_hours = 24

The same [agent.<id>.budget] table sets limits for one Agent. Every key, its default and what it does is on the Medical page; an invalid value fails the load with an error naming the key.

Sources

sources lists the tracker instances an Operation uses. Each key names an instance and holds its settings; provider names the provider that serves it (default: the key), so two GitHub repositories are two instances. The Station holding the Headquarters lease polls each instance and reports what it finds to the Operation's charge, unless intake = false keeps it for linking and creating only. An item becomes a Mission only when the charge, or a person, decides it; the Operation's own intake = "direct" queues each item as a brief at once instead (default charge). See Sources.

Keep Source credentials in the Station process. AI6 reserves tracker credential variables across Operations and leaves them out of Run environments and secret leases. Keep personal tracker login stores outside the accounts and filesystems a Run can read.

An item's first run takes the Agent role its mission assessment names (--role on ai6ctl reports assess, role on the route and on the charge's assess_report), else the role a brief already queued for the item has, else the Operation's intake_role, else none. intake_role is a role of the roster and is checked when the roster loads; so is the role of an assessment, which is refused with the roles there are. A role goes only with a mission assessment. It is how role policy and deliverables bind to a first run from intake, instead of being pasted into amendment text.

[operation.G.sources.github]
repo = "jose-pr/ai6"
labels = ["ai6:ready"]
interval_secs = 120

[operation.G.sources.jira]
site = "https://example.atlassian.net"
project = "GUA"
email_env = "JIRA_EMAIL"

[operation.G.sources.gitlab]
project = "group/project"                       # token in GITLAB_TOKEN
# api_url = "https://gitlab.example.com/api/v4" # a self-managed instance
[operation.G.sources.board]
provider = "github"
repo = "jose-pr/ai6"
status_labels = { done = "ai6:done", failed = "ai6:failed" }   # written when a Mission ends

[operation.G.sources.tracker]
provider = "jira"
site = "https://example.atlassian.net"
project = "GUA"
email_env = "JIRA_EMAIL"
intake = false                                              # never polled for work
status_transitions = { done = "In Review" }

A company's own certificate authority goes in the instance's ca_file, by absolute path, for any of the three providers, as a Source and as a tracker: a PEM file added to the public roots, as [unex] ca_file is. A file that cannot be read or holds no certificate is refused when the instance is built, with the path in the reason, and a set ca_file is reported as a weakening at start and at check-in.

Keys the Station reads of a tracker instance; it passes the rest to the provider, whose page lists its own (reply_authors and labels on all three, reply_min_access on GitLab, issue_type, subtask_type and link_type on Jira):

Key Default Meaning
agent_labels none Labels Agents may touch. The only labels an Agent may add or remove on a linked issue.
agent_transitions none Transitions Agents may make. The workflow transitions an Agent may make without green ink.
priority_map none Priority map. The priority a mirrored issue takes here, by the priority it has where it comes from.
reopen label Reopen a settled item on. What queues an item whose Mission settled again, as the Mission's next run.
retakes 1 Retakes of a failed Mission. How many times an item whose Mission failed is queued again while it is still labeled for work; 0 leaves a failed Mission failed. Past the count the item stays failed.
comments none Status comments. Which comments AI6 writes on this instance's issues; unset, the Operation's updates decides.
allowed_hidden none Hidden comments to allow. Regular expressions for hidden HTML comments in this instance's issues that vetting does not hold, beside the ones its issue templates carry. A pattern matches the comment's text as written.

status_labels and status_transitions name a label or a workflow transition for working, waiting, paused, done and failed.

comments chooses which of its own comments AI6 writes on the instance's issues: off, claim-only (the progress status: working, waiting, paused), settle-only (the report when the Mission ends, and the final status on a linked issue other than the source) or both. Left out, the Operation's updates decides, as it always has. When it is set, updates only says which links get the status comments (the source alone, or every linked issue), and outcome reads as milestones. No Run ID or provider session ID is ever written in a comment on a tracker; a report under full disclosure names the Mission, its branch and its Agent.

decisions = { approvers = ["ACCOUNT-ID"] } lets those accounts decide a Mission's green ink with a /approve or /reject REASON comment on its linked item; it is off without approvers (Missions).

retakes (default 1; 0 turns it off; no upper limit) bounds how many times an item whose Mission failed is queued again, as the same Mission's next run, while the item still reads as labeled for work. A retake needs no new label. Past the count the item stays failed and one line is journaled; a Mission that ended done is never retaken this way, and a label added since still reopens a settled item as reopen says. Each retake is audited as mission.reopened and on the timeline with the reason "its Mission failed".

Credentials are never configured: a source names the environment variable that holds its token (token_env), and the Station reads it when it polls. A bare string is shorthand for the provider's main target, as in sources = { jira = "GUA" }.

Issues

[operation.ID.issues] says what AI6 writes on the issues a Mission is linked to, and how much (Linked issues). Strict unless configured; every value looser than the default is printed when a Station starts and listed on the Operation's page.

[operation.G.issues]
updates = "milestones"        # outcome | milestones | all
posts_per_hour = 6
Key Default Meaning
preset strict Preset. strict, or licensed, which lets 00 Agents close and reopen without green ink.
updates milestones Automatic updates. outcome: only the report when the Mission ends; milestones: one status comment kept current on the source issue (working, waiting, paused) plus the report; all: also on every other linked issue.
writes final When an Agent writes. final: an Agent comments once per Mission, as its closing note; any: whenever, within the post limits; none: never.
max_body_bytes 8 KiB Size of a post. Bytes of one posted comment.
posts_per_hour 6 Posts an hour, per Mission. Agent and person posts per hour per Mission (the bucket's refill).
post_burst 3 Burst of posts. Posts a Mission may make in a burst.
posts_per_mission 40 Posts per Mission. Posts one Mission may make in all.
operation_posts_per_hour 60 Posts an hour, per Operation. Agent and person posts per hour for the whole Operation.
tracker_posts_per_hour 300 Writes an hour, per tracker. Writes per hour to one tracker instance, every kind counted.
status_interval_secs 60 Between status writes. Seconds at least between two status writes to one issue.
reply_ttl_secs 259,200 (3 days) A question waits. Seconds a question waits for an answer.
on_timeout resume When nobody answers. resume tells the Agent nobody answered; fail fails the Mission; wait keeps waiting.
on_secret refuse When a post holds a secret. refuse refuses a post holding a secret; redact replaces it and posts the rest.
links tracker Links in Agent text. tracker: links and images in Agent text only to the tracker's host and the Operation's git remote host; any: every host.
create propose Creating issues. propose: a person approves each creation, or a class authorisation issue-create one from an unexposed Run with no findings; direct: the Agent creates at once; off: Agents cannot ask.
max_created 10 Issues per Mission. Issues one Mission may create, those waiting for a person included.
max_created_per_day 50 Issues a day, per Operation. Issues an Operation's Agents may create per day.
max_split_depth 2 Depth of a split. How deep a split may go (a child of a child is depth 2).
max_split_children 10 Children of a split. Children one split may ask for.
duplicate_window_secs 2,592,000 (30 days) A title stays a duplicate for. Seconds a title stays a duplicate of an issue AI6 created, and a comment stays a duplicate of an identical one on the same issue. Shorter is looser; 0 allows repeats.
creation_approval_secs 3,600 A creation's approval lasts. Seconds the approval a class authorisation gives an issue creation lasts. Longer is looser.

These tables are generated from the settings' own declaration, and a test fails when they differ. Any count may be "none". posts_per_hour = 600 or create = "direct" is a weakening.

Set publisher on the Operation's issue policy to have an Agent review comments and questions before they go to the tracker.

[operation.G.issues.publisher]
role = "publisher"
tone = "Concise and factual"
formatting = "Lead with the result. Remove internal identifiers and paths."
Key Default Meaning
role publisher Publisher role. The Agent role that reviews drafts.
tone `` Tone. The tone to use in the tracker.
formatting `` Formatting and redaction. Formatting and redaction instructions.

Register the role and assign it to an Agent. Configure model authentication in the Agent's environment, as for other answer-only reviews. The publisher gets the draft and the Operation's cover_identity and returns replacement text or a reason to refuse. The Station checks the replacement, adds the cover footer, and keeps the draft and reviewed text in the outbox with an audit event on the Mission. A post waits when the publisher is unavailable, and any required green ink covers the reviewed text. Omit publisher to send directly through the same outbox.

Green ink

green_ink says which irreversible steps an Agent must ask a person to sign (Green ink). The default, strict, asks for every governed step at every clearance and lets no desk Agent ask; licensed also lets 00 Agents push and merge without asking. Every key overrides the preset:

[operation.G.green_ink]
preset = "licensed"
kinds = ["deploy"]                       # added to push, merge, release, delete, clearance, safe-house-delete, issue-close, issue-assign, issue-comment
requesters = ["field", "00"]             # clearances that may ask
unattended = { "00" = ["push", "merge"], field = [] }   # per clearance named
protected = ["refs/heads/main", "refs/heads/release/*", "refs/tags/*"]
request_ttl_secs = 86400                 # an undecided request then expires as refused
approval_ttl_secs = 3600                 # an approval covers its step this long unless the signer chooses
coalesce = "incident"                   # one open green ink decision per Mission
pause_lane = true                       # pause that Mission's next attempt while a person decides
deny = ["release refs/tags/v0.*"]        # KIND PATTERN: refused before anything is filed
park = ["merge PR 7"]                    # KIND PATTERN: always waits for a person
Key Default Meaning
preset strict Starting point for the keys left out
kinds none Step kinds the Operation governs besides the built-ins; an Agent may not ask for an ungoverned kind
requesters ["field", "00"] Clearances whose Agents may ask
unattended none (licensed: 00 = ["push", "merge", "issue-close"]) Kinds a clearance takes without asking; each clearance named replaces its list
protected refs/heads/main, refs/heads/master, refs/heads/release/*, refs/tags/* Ref globs a push needs green ink for; a push elsewhere does not
request_ttl_secs 86400 How long a request waits for a decision
approval_ttl_secs 3600 How long an approval covers its step when the signer does not choose
coalesce incident One open green ink decision per Mission. step groups requests by the exact step
pause_lane true Holds further attempts on the same Mission while a green ink request waits for a person
deny none Steps refused outright, each KIND PATTERN (a glob on the target; a pushed or released ref is matched by its full name). No request is filed for one
park none Steps that always wait for a person, whatever the clearance, unattended list or class authorisation says

A request is refused when it is filed if its target names nothing a person can decide on, so no one signs blind: a merge target is PR N, PR OWNER/REPO#N or the URL of a pull or merge request; a release, push or delete target is a ref or tag name with no whitespace (not just tag); an issue-close, issue-assign or issue-comment target is TRACKER:ITEM. The check is of the shape only: whether the pull request exists is not asked of the tracker. [approvals] validate_targets = false on the Station lifts it, and a Station then logs the weakening.

A signer's --note (and a rejection's --reason) is bounded twice. The gateway allows up to [unex.text] green_ink_note_chars characters (1,024 by default; raise or lift it there), and the Registry stores at most [registry.limits.approvals] note_bytes bytes (1 KiB by default), so a note of many multi-byte characters can pass the first and fail the second. Control characters other than newlines are refused. A refused note answers 400 with the bound that failed, and ai6ctl prints it.

An invalid value fails the load with an error naming the key. A Station prints each setting looser than strict when it starts, including coalesce = "step" and pause_lane = false.

Private Operations

private = true keeps an Operation's Missions off every route whose source may train on what it is sent (a route marked trains_on_input, Agents). Such a route is passed over for its Runs, with the reason in the Mission's record; an Agent whose routes are all marked waits. It is off by default, and a subordinate Operation that sets private = false, or inherit = false, lifts it from its parent. A watch (charge) of an Operation follows its mark; Moneypenny's conversations name no Operation, so they are not held back. An Operation that is not marked uses those routes; a private overlay does the same for the Runs that carry it.

Harness project settings

harness says whether an Agent's harness may load the configuration its working directory carries. Claude Code reads settings, hooks, permissions, skills, subagents, commands and project CLAUDE.md through its project and local setting sources (.claude/, CLAUDE.md) and MCP servers from .mcp.json; Codex reads its .codex/ layer (config, hooks, rules); the Antigravity CLI hooks, plugins and MCP servers from .agents/ and .agent/. Hooks and MCP servers run commands, often scripts kept elsewhere in the checkout, with the Agent's environment, and in an issue-driven Mission whoever wrote the branch could have written all of it (Hooks).

[operation.G.harness]
project_settings = "pinned"       # ignore (default) | pinned | load
pin = "sha256:..."                # what `ai6 harness pin DIR` prints
project_settings The harness loads
ignore (default) only the user's configuration and AI6's own: Claude Code runs with --setting-sources user --strict-mcp-config, so no project settings, hooks, skills, subagents, commands, project CLAUDE.md or .mcp.json servers; Codex runs with the working directory marked an untrusted project; the Antigravity CLI has no such switch, so its handler refuses a working directory that carries them
pinned the project's configuration while its manifest (below) has the digest pin; otherwise it starts as ignore
load whatever is there; a Station prints it as a weakening when it starts

The manifest of a working directory is every regular file under .claude/, .codex/, .agents/plugins/ and .agent/plugins/ (at any depth), .mcp.json, hooks.json and mcp_config.json in .agents/ and .agent/, and every file inside the working directory that a command or args entry of a hook or MCP server names: in JSON and TOML settings, and on a command: line of a skill's or subagent's front matter; $CLAUDE_PROJECT_DIR stands for the working directory. pin is the digest of the manifest's lines, PATH NUL sha256:HEX LF in path order. A symbolic link, a device, a pipe, a file over 1 MiB, more than 16 MiB or more than 4096 files in all (the Station's [harness] limits) make the manifest unreadable, and the harness starts as ignore. Under pinned, Claude Code keeps --strict-mcp-config unless the manifest holds .mcp.json, and the Antigravity CLI's handler refuses mcp_config.json unless the manifest holds it.

Each pinned start and resume reads the manifest on the Station and records its digest on the Operation's timeline (harness): project-settings-pinned when it matches, project-settings-ignored with the reason when it does not or cannot be read. A pinned Operation whose harness runs on another host than its Station starts as ignore, since the Station cannot read the files there.

What pinned does not cover: a command that names no path inside the working directory (a program found on PATH, a script fetched at run time), anything a pinned script itself reads, and changes made after the check, including by the Agent during the Run (Claude Code reloads a changed settings file). A SHA-1 pin is accepted and reported as a weakening. AI6's own settings, the green ink hook (--settings) and the Station's MCP servers (--mcp-config), apply in every mode.

Vetting

vetting sets the checks M runs on each brief before it is placed (Vetting). Every check is on by default; each key overrides one, and vetting = "off" turns them all off.

[operation.G.vetting]
max_brief_bytes = 65536
max_per_hour = 20             # 0 is no limit
max_per_source_per_hour = 10  # 0 is no limit
duplicates = true
budget = true
screening = "untrusted"       # or "all", "off"
phrases = ["deploy to production now"]
html_comments = true
rate_hold_hours = 24          # 0 keeps rate holds until an operator decides
review = "untrusted"          # or "all", "off"
max_proposal_reviews_per_hour = 20             # 0 is no limit
max_proposal_reviews_per_run_per_hour = 5  # 0 is no limit
Key Default Meaning
max_brief_bytes 65536 Largest brief text: a Source brief's quoted item, otherwise title and body. A larger brief is refused
max_per_hour 20 Untrusted briefs passed per rolling hour; the next is held
max_per_source_per_hour 10 The same, per Source
duplicates true Hold a brief with the same URL or title as queued, held or running work
budget true Hold briefs while the Operation's day spend is at operation_cost_usd_per_day
screening untrusted Which briefs are screened for invisible Unicode, forged fence lines and manipulation phrases
phrases none Phrases screened for beside the built-in patterns, matched ignoring case, punctuation and spacing
html_comments true Screening also holds a brief whose text outside its quoted item carries HTML comments, which render as nothing. A comment the Source's own issue templates carry (GitHub .github/ISSUE_TEMPLATE/*.md and ISSUE_TEMPLATE.md, GitLab .gitlab/issue_templates/*.md, read through the Source and remembered for the Station's [vetting] template_age) or one that matches the instance's allowed_hidden (a list of regular expressions under [operation.ID.sources.NAME]) passes; any other comment still holds the brief
rate_hold_hours 24 How long a brief held only for a rate limit stays held before it returns to the queue to be vetted again
review untrusted Which briefs a qualified chief-of-staff Agent reviews before they are placed
max_proposal_reviews_per_hour 20 Mission proposal reviews queued per rolling hour; the next proposal is held
max_proposal_reviews_per_run_per_hour 5 The same, for the proposals of one Agent Run

Untrusted briefs are a Source's items, Agents' Mission proposals, and any brief without a valid provenance (one dropped into the Registry queue by hand, or changed after it was accepted); an operator's or a Sleeper's brief is trusted. An invalid value fails the load with an error naming the key. A Station prints each setting looser than the default when it starts and when the configuration changes.

Sleepers

sleepers holds standing orders that queue a brief on a cron schedule, once an operator authorizes them with ai6 sleeper authorize or from Outer Office's Sleepers page. See Sleepers.

[operation.G.sleepers.nightly-deps]
schedule = "0 3 * * *"
title = "Update dependencies"
prompt = "Update the lockfile and run the tests."
standing = true   # optional: one Mission, each window a run of it
resume = true     # optional, needs standing: resume the last run's Run

A failed run leaves a standing order standing; a stalled one is superseded by the next window; one late firing follows a missed window, within [registry.limits.sleepers] catch_up; and every window that passes unfired is on the timeline, with why. See Sleepers.

Subordinate Operations

An Operation can sit under another: parent names the parent Operation's ID, and an Operation without one is a root. There is one kind of Operation at every level, so a parent passes its policy, its access and its pools to the Operations under it without a second set of keys, and the tree can be as deep as the work is.

[operation.BODYGUARD]            # groups the others: no path, theater or workspace.source
roster = ["007", "006"]
clearance = "field"
green_ink = { preset = "strict" }

[operation.FORTITUDE]
parent = "BODYGUARD"
path = "~/projects/fortitude"
green_ink = { kinds = ["push"] }   # keeps BODYGUARD's preset

[operation.FORTITUDE_SOUTH]
parent = "FORTITUDE"
path = "~/projects/fortitude-south"
  • A grouping Operation is an ordinary Operation with no path, theater or workspace.source. A brief for it is refused: Operation BODYGUARD has nowhere to work.
  • Policy is layered, the ancestors' keys first and the Operation's own last. Tables merge key by key at any depth (station_labels, green_ink, budget, vetting, workspace); scalars and arrays replace (roster, stations, pools, clearance, cover, on_limit, and cover_identity as a whole). The nearest Operation wins. Presets and defaults apply once to the layered result, so a key a parent wrote counts as written.
  • Never inherited, because they name a checkout or create work: name, description, path, theater, config, workspace.source, sources, sleepers, and the Operation's own parent and inherit. A child does not read its parent's .ai6/agents.toml either.
  • inherit = false takes no policy from above, and nothing under it takes policy from above it either. The Operation stays in the tree for access, pools and Cables. A child cannot return a parent's key to unset in any other way.
  • Counters stay per Operation: max_concurrent, budget.operation_cost_usd_per_day and the vetting rates are not shared down the tree.
  • A parent that is not registered, or a cycle, refuses the roster; the message names the chain (A -> C -> B -> A). Removing an Operation that still has subordinates is refused the same way; moving one is an edit of parent.
  • Depth is an option: the [roster] table of the global operations file takes max_operation_depth, a number of levels counting a root as the first, default 64, or "none" for no bound. Looser than the default is logged as a weakening.

Universal Exports serves the resolved record and the Operation that wrote each key (GET /v1/user/roster/operation/{id}/effective); ai6ctl operations show G --effective prints it, and Outer Office marks each inherited key "from P".

An Operation's page in Outer Office

Outer Office opens an Operation as a page of its own, at #/operations?operation_id=ID, beside the list of Operations on a wide window. The header names it and copies its ID. Each tab has an address (tab=): overview, missions, reports, agents, charge, access, memory, timeline and configuration. A tab shows only to a person who may read what it holds (Access needs access.read there, Configuration roster.read). Configuration lists each key the Operation resolves with and marks one a parent wrote "from" that parent, as GET /v1/user/roster/operation/{id}/effective serves it.

Where configuration comes from

A Station's configuration (Operations, Agents, roles, covers, Moneypenny's settings and its Theaters) is a set of records of a configuration provider: the shared database in a deployment. It is edited in Outer Office's Roster page, with ai6ctl (ai6ctl edit operation G, ai6ctl apply -f) or through the gateway's /v1/user/roster/{kind} routes, never by changing a file on a host; TOML, JSON and YAML are the form ai6ctl apply and ai6ctl get read and write. A program that embeds the Station can keep the records anywhere else (a database, an HTTP API, its own code): it builds the roster from typed records with Roster::builder() (or Roster::from_parts), where Operation::new, Agent::new, AgentRole::new and Cover::new start from the same defaults a document gives, and passes a ConfigProvider (such as MemoryProvider) to ServeConfig::with_config_provider. Records built this way get the same checks as the stored ones; an invalid configuration stops the Station rather than half-loading.

ai6.cfg's [provider] location (or ai6 serve --provider LOCATION) is the one thing the bootstrap says about them: where the provider is.

  • sqlite:PATH or a postgres:// URL, for Stations that share one configuration without a shared filesystem. Each family is a table, ai6_config_<family> (ai6_config_operation, ai6_config_agent, ai6_config_role, ai6_config_assistant, ai6_config_cover, ai6_config_theater), each row a record's scope ('' for every Station, station:<id> for one), key and a JSON object with the keys its table has in a document, so [operation.G] with roster = ["007"] is the row ('', 'G', '{"roster": ["007"]}'). The rows get the documents' checks, extends included; an Operation's own .ai6/agents.toml still applies. Moneypenny's [assistant] settings are the one row of ai6_config_assistant, keyed settings (her workspace); without it the roster has the defaults. put and remove change one record and refuse a change that would leave any Station's configuration invalid. Each change moves the configuration to its next revision (the config row of ai6_clock); a tool that edits the tables directly advances that row in the same transaction.
  • A directory, read-only, for a single host or a checkout under version control: one file per family, operations, agents (Agents, roles and [assistant]), covers and theaters, each with the extension .toml, .json, .yaml, .yml or .cfg (TOML). Two files for one family (agents.toml beside agents.yaml) are refused. A Station's own records go in stations/<id>/ beside them, for the families that take them (Theaters); a Station reads its own over the global ones, key by key. Its records are changed by editing the files, not through Outer Office.

Each Station reads its loadouts and Cable settings from the same provider, as the loadout families and cables record (Configuration).

Changing the configuration of running Stations

A Station asks its configuration provider for its revision every 5 seconds (ai6.cfg's [provider] poll, 0 to stop) and applies a new one without a restart: new requests, the scheduler and new Runs use it, while a Run already running keeps the roster it started with. Every Station sharing a SQL provider therefore takes up an edit within one poll. A new revision is checked as a document is checked, every Agent resolved; one that fails is refused once: the Station logs why, records a config.refused audit event under its own station:<id>, reports the reason at check-in (Outer Office shows it beside the roster), and keeps running the last good roster. A source it cannot reach is logged, not audited, and changes nothing.

The loadout families are read again when they change, with the same refusal rule (unless the loadouts were set in code); the Station then declares its pool accounts again and withdraws the ones it no longer has. A secret's value is read from its source each time it is leased, so it never needs a reload.

Almost every family applies live. What waits for a restart, and why, is listed in Configuration; the bootstrap file ai6.cfg (listen address, Registry and provider locations, Station ID, plugin paths, the Headquarters lease) is read at start only.

Universal Exports edits the roster for operators when it is started with the same location (ai6.cfg's [provider] location, or --provider): roster.read and roster.manage on the scope config:roster (for example scope = "config:roster" in access.toml) let a person list and change Operations, Agents, roles and covers from Outer Office's Roster page, and Operations and Agents from their own pages too, each in a form drawn from the record's own type: the same words, defaults and choices the roster reads it with. What a field holds is declared once, on its struct. The source checks the whole roster before it keeps an edit; an accepted edit is audited as roster.update or roster.remove, a refused one answers with the reason and is audited as roster.refused. A configuration directory is listed read-only: its files are edited by hand, and every Station using it takes up the change at its next poll.

Missions and Runs are visible in Outer Office and through ai6ctl. The Mission ID identifies the work; the provider ID identifies one resumable agent run. See Missions and intake and Agents and clearance.