@ours.network/fleet
v2.4.2
Published
Harness-agnostic fleet of persistent, identity-bound AI agents. Declarative fleet.yaml, managed native/ACP sessions, supervision, and ours.network messaging.
Readme
ours-fleet
Run a fleet of persistent, securely isolated, identity-bound AI agents — across different agent harnesses — from one declarative file.
For the experiment that enrolls a human-operated terminal in Fleet, see Native terminal participation.
What is this?
An AI coding agent in a terminal dies when you close the laptop. ours-fleet
turns such sessions into roles: long-lived agents that
- run through structured managed sessions behind one provider-neutral agent-session interface, which you can inspect or prompt,
- are supervised — one Fleet systemd service (Linux) or LaunchAgent (macOS) runs their existing agent runners, restarts them on crash, and restores the desired running roster at boot or login,
- resume their context across restarts (when the harness supports it),
- bind an ours.network identity, so you — and every other agent — can message them by name over an end-to-end-encrypted channel (ours.network),
- can spawn subagents (permanent or temporary) and oversee them: peek into a ward's console, answer a stuck prompt, nudge it back to work.
The fleet uses a v2 manifest plus typed documents: ~/fleet.yaml holds
fleet-wide operational policy and automation, while ~/fleet/agents,
~/fleet/roles, and ~/fleet/brains hold bare Agent, Role, and Brain documents.
ours-fleet up makes reality match that trusted split source set.
Harness-agnostic by design. The core never assumes a specific agent CLI; each harness is a small adapter (how to launch, how to resume, how to wire config). Claude Code and Codex CLI are wired in, and the adapter interface is public — each additional harness (Gemini CLI, OpenCode, …) is a small adapter. A single fleet can mix harnesses per role:
# ~/fleet/agents/Reviewer.yaml
role: { ref: reviewer }
brain: { inline: { harness: claude-code, session: acp } }
# ~/fleet/agents/Prototyper.yaml
role: { inline: { mission: Build prototypes } }
brain: { inline: { harness: codex, session: codex-app-server } }How it works
~/fleet.yaml + ~/fleet/{agents,agent_templates,roles,brains,room_templates}/*.yaml your declaration
│ ours-fleet init, then up
▼
one Fleet OS service ──► private member catalog + existing agent runners
│
briefing.md per member ──► session adapter ──► native app-server or ACP transportEach role gets a state dir (~/.ours-fleet/agents/<Name>/) holding its briefing,
logs, routines, and session markers. Before boot, the supervisor binds the assigned identity and prepares its room.
The agent then reads its briefing and starts work — while the
supervisor delivers its mail wakes as [fleet-monitor] console lines (see
Mail monitor). Managed ours sessions use supervisor-owned mail wakes. On crash the supervisor relaunches it and the
harness resumes the same session.
The state dir contract:
| File | Owner | Lifecycle |
|---|---|---|
| briefing.md | generated | rewritten on every up/restart; never hand-edit; the agent reads it once per model session, not per turn or wake |
| WORKLOG.md | the agent | seeded empty, agent-appended; survives restarts; read back once only when a new conversation starts after a restart and it records previous work |
| ROUTINES.md | operator / agent | optional recurring-work instructions; read once per session for concrete work, hot-editable without a restart — tell the agent it changed so it rereads; absence means "no routines" |
| .identity, .cwd, .session-id, .booted, .exit-status, .config-path | supervisor | dot-marker state — session resume and boot bookkeeping |
| .monitor-state.json, .monitor-status | supervisor monitor | atomic body-free cursor/pending state and health |
| .owner-channel-state.json | owner-channel bridge | bounded wire-ID dedupe only; never message/reply plaintext |
| .owner-channel-message-recovery.json | owner-channel bridge | mode-0600 body-free message claim journal: wire ID, history sequence, and claim time only |
| .owner-channel-attachment-recovery.json | owner-channel bridge | mode-0600 attachment route journal; never filenames, paths, transcript text, or bytes |
| .owner-channel-binder.lock/, .owner-channel-binder.json | owner-channel supervisor | mode-0600 role/identity + PID/start-marker ownership and release metadata; never mail plaintext or credentials |
| .session-events.jsonl, .control.sock, .control-token | managed session backend | bounded typed console projection and private attachment control |
Prerequisites
| What | Why | Install |
|---|---|---|
| Node ≥ 22 | runs ours-fleet and its maintained adapters | nodejs.org, apt, or brew |
| a harness CLI, logged in | the agent itself | e.g. Claude Code (claude) or Codex CLI (codex) |
| ours CLI + shared daemon | identity + agent-to-agent messaging | ours-install client --config /absolute/private/profile.json --integrations fleet --fleet-settings /absolute/fleet-settings.json |
Linux only: ours-fleet init enables linger so Fleet runs without a login session
and restores running members after reboot. On macOS the Fleet LaunchAgent starts
at login (no linger equivalent). Member logs live in each member's state
directory; use ours-fleet logs <Name> to read them.
Install
npm i -g @ours.network/fleet
ours-fleet init # interactive reviewed defaults + host setup
ours-fleet doctor # verifies everything above, with actionable messagesNative Codex roles use the logged-in Codex CLI's app-server command directly.
The maintained Codex and Claude ACP adapters remain bundled optional dependencies
and are resolved internally; users do not install adapter commands or add them to
PATH. Explicit session_options.codex_app_server.command and
session_options.acp.command overrides remain available. ours-fleet and its
maintained adapters require a patched Node.js 22.23.4+, 24.22.1+ or 26.12.1+
release (see Security version requirements).
Each OS user manages their own fleet — to host roles under a sandboxed account, become that account and repeat.
When upgrading from per-agent services, coordinate package installation with
explicit ours-fleet init. Preserve operator readiness hooks on the common
parent before migration; new task/temporary creation requires that parent.
See the migration and rollback runbook
for changed stop/restart behaviour and legacy task transfer limits.
Quickstart
ours-fleet init # interactive; adds missing defaults and preserves existing files
ours-fleet config # validates Agents, Roles, Brains, and Room templates
$EDITOR ~/fleet/agents/*.yaml # compose Role + Brain and operational settings
ours-fleet up # boot the fleet (staggered)
ours-fleet ls # running consoles
ours-fleet attach Alice # watch one live (Ctrl-b d to leave)
ours-fleet peek Alice # or just glanceSpawning agents
From the shell:
ours-fleet spawn Worker --mission "own the worker repo" \
--bio-file bio.md --persona-file persona.md --coordinator FleetCoordinator
ours-fleet spawn --temp Scout --mission "one-off research" # gone on exit/reboot
# Codex role: ours-codex is preferred automatically; plain codex is the fallback
ours-fleet spawn Coder --brain codex-fleet --role developer \
--approval ask --filesystem workspace --coordinator FleetCoordinatorInside a managed role, ours-fleet spawn is transparently routed through
that role's live supervisor. ours-fleet spawn DeveloperX --temp is the
minimal form: omitted Brain/Role selections, cwd, coordinator, neutral permissions,
and fleet monitor policy inherit from the caller. Identity, environment, owner routing,
room startup, and sensitive inline Brain values do not. Explicit flags win. After
creation succeeds, fleet can deterministically notify
the caller's owner channel with the caller and spawned-role details. This is an
honest-actor convenience and attribution path, not a security boundary; host
shells and deliberately bypassed absolute binaries retain direct behavior.
Local HTTP service
Fleet is an HTTP backend. It serves no pages, bundles no frontend and opens no
browser: every screen belongs to the App, which calls this API with a device
credential. Any address outside /api/ answers JSON 404.
ours-fleet setup-tunnel <encoded-v2-grant> # App command; prints QR and connection code
ours-fleet link-device # connect another browser or device
# choose a free port for an isolated test:
ours-fleet web serve --port 0
# nginx/TLS terminates at the declared origin; fleet remains loopback-bound
ours-fleet web install --public-origin https://fleet.example.com --password-file /secure/fleet-passwordours-fleet web installs or updates an owner-level native service and starts
it on stable 127.0.0.1:49271. Linux uses a systemd user unit and macOS uses a
LaunchAgent; both restart after process failures and send logs to the native
supervisor. Service management is explicit through
ours-fleet web install|start|stop|restart|status|uninstall. Use
ours-fleet web serve for a foreground development process. --no-open is
still accepted because installed service units pass it; it has no effect. Linux
login persistence requires linger; the installer reports when it is missing but
never enables it or requests root privileges.
Use ours-fleet web revoke-all to revoke every linked device and active
session. Only a domain-separated SHA-256 device-secret hash and bounded
timestamps are stored in the owner-private fleet state directory (0700
directory, 0600 atomic file). App browser links use 5-minute access
credentials and rotating refresh credentials; see
workspace onboarding. The link and revoke controls use an
owner-private Unix socket; local processes running as the same OS user are
therefore inside the trust boundary.
The read-only conversation event stream documents authentication deadlines, replay coverage, bounded framing and filesystem support.
On first setup, the CLI requires an explicit access choice: --password-file
or --pairing for protected access, or --no-password for intentional
unprotected access. --password-file stores only a salted scrypt verifier in
the owner-private web state; the source file remains operator-managed.
--no-password is deliberately named and prints a warning: anyone who can
reach that origin can control the fleet.
For nginx on a VPS, keep the default loopback bind and set the exact external
--public-origin (scheme, hostname, optional port). nginx should proxy HTTP and
WebSocket upgrades to 127.0.0.1:49271 and provide TLS; rewriting the upstream
Host is not required because the declared Origin remains authoritative. To listen beyond
loopback, add an explicit --bind; fleet refuses a non-loopback bind without a
public origin. Host and Origin validation use that declaration rather than
trusting forwarded headers. localhost and 127.0.0.1 both work in normal
local mode; an unconfigured hostname is refused with a JSON error.
The API provides evidence-separated inventory and status, ACP activity and permission controls, redacted logs, typed text send, confirmed lifecycle actions, and transactional permanent/temporary creation. Identity is fixed to the role name. Creation uses the authenticated daemon inventory and reports verified, missing, or unknown evidence. A missing permanent role identity is created deterministically before launch with local discovery and auto-accept enabled, then the provisioning lease is released so the harness only has to bind it. Fleet never silently replaces or force-adopts an existing identity.
ACP tool diffs are normalized before they enter the durable conversation
ledger. Small diffs retain their existing before/after representation. When an
adapter reports an oversized whole-file snapshot, fleet stores only the changed
region with path, operation, original byte counts, digest, and boundedness
metadata. Each retained changed side is capped at 64 KiB as a UTF-8-safe,
newest-content tail. The tail advances to a line boundary when a complete line
fits. If one logical line alone exceeds the cap, fleet retains its newest
UTF-8-safe suffix and records that it starts mid-line, together with omitted-byte
count and digest. Paths retain at most a 4 KiB suffix with the same explicit
size/digest/omission provenance, and a 320 KiB cap covers the complete normalized
update. An append therefore cannot replay a large historical file while hiding
the current appended text. The live web-console transcript projects only events
from the current runner generation and excludes adapter session/load replay;
those replay events remain in the durable ledger with agent_replay provenance
for diagnosis and recovery rather than appearing as current work.
The Fleet supervisor creates and binds the assigned identity before the harness starts. Temporary identities survive harness reconnects and are released only when the logical run ends. Permanent identities remain available after the supervisor releases ownership. Agents receive ready tools; no model-owned identity bootstrap or onboarding skill is required.
The web console uses structured ACP activity rather than exposing a raw agent terminal.
Security boundaries:
- configured
HostandOrigin, CSRF, one-time WebSocket tickets, and explicit bind/origin policy are enforced server-side; - cwd values must resolve beneath configured local roots;
- normal logs are bounded and redacted;
- tests use temporary fleet homes and fake supervisors/identity providers—never active role state.
Permanent spawns write a bare Agent document to
~/fleet/agents/<Name>.yaml; generated-source ownership is recorded so removal
never deletes an unproven hand-written neighbor. ours-fleet rm <Name> unspawns.
The web editor reads and writes the split document model explicitly as
{manifest, agents}. Role and Brain presets are visible through Agent refs but
remain read-only. Saves use one aggregate revision over the manifest and all
Agent/Role/Brain sources, validate an exact-stem private staging tree, show a
deterministic redacted diff per document, and hold one manifest-root lock.
Changed/deleted files are backed up together; any partial failure restores every
document or reports the private recovery directory. An unchanged save is a
byte-for-byte no-op and creates no backup. Nested environment, authentication,
invite, and isolation secrets never leave the host.
From inside Claude Code, Codex, or Hermes with the core ours plugin installed,
say "spawn an ours agent …". The core skill checks for ours-fleet, installs
and initializes it when absent, then consults ours-fleet docs for the exact
version-matched workflow. The older fleet-specific harness packages remain
published for compatibility but are no longer required or installed by default.
Oversight ("keep an eye")
Spawned agents are subagents; their spawner (or any assigned overseer) checks on them and unsticks them:
ours-fleet peek Worker # what is it doing?
ours-fleet send Worker "continue with the tests, then report"Declare standing assignments in the overseer's bare Agent document (rendered into its
briefing) — or just write "keep an eye on Alice and Bob every 5 minutes" in a
persona; the bundled oversee-agents skill defines what that means operationally:
role: { ref: coordinator }
brain: { ref: claude-default }
oversee:
- { agent: Alice, interval: 5m }
- { agent: Bob, interval: 5m }Command reference
ours-fleet docs | man AI-friendly complete reference
ours-fleet up|down|restart|force-restart [-c FILE] [Name...]
ours-fleet config [-c FILE] validate + print merged plan
ours-fleet ls | attach | peek | logs [-f] | status <Name>
ours-fleet send <Name> "text"
ours-fleet spawn [--temp] [<Name> | --name <Name>] --brain <ID|inline:{...}> --role <ID|inline:{...}> [--approval ...]
ours-fleet loops validate|list|status
ours-fleet loops reload <Role>
ours-fleet loops run-now|disable|enable <Role> <Loop>
ours-fleet rm <Name>
ours-fleet doctor [--harness H]
ours-fleet service check|refresh [--json] service definitions vs this release (refresh never starts or restarts)
ours-fleet managed-cli setup [--enable <Agent>]... | status [--json] native harness policy for the task workflow
ours-fleet version [--json] build identity, capabilities, installs on PATH
ours-fleet initFleet task commands from a harness command sandbox
A Codex or Claude command sandbox refuses the supervisor socket, so a managed
ours-fleet call fails with connect EPERM before it parses anything. Fleet
prepares the native harness policy for the packaged Coordinator task workflow;
you do not write Codex rules or Claude sandbox settings by hand:
ours-fleet managed-cli setup --enable FleetCoordinator # adds managed_cli: [task-workflow] to that Agent
ours-fleet managed-cli status # static setup, session policy, observed commandsThe opt-in is an explicit Agent key and changes no permission. Setup starts no
session or model, is repeated at every agent start, and ours-install runs it
for you. It prepares task create|start|finish|block|unblock|review|list|show,
room show|members and template/plan/help inspection for one pinned
configuration, and nothing else; task start/task finish are real authority.
Qualified end to end on Linux with Codex (native and ACP) and Claude ACP; macOS
is prepared the same way but not yet qualified. Scope, boundaries, unsupported
combinations and the evidence are in
docs/validation/managed-cli-permissions.md.
Service definitions after an update
ours-fleet init, web install and the watchdog installer write user service
definitions (systemd units on Linux, LaunchAgents on macOS) that start the exact
release tree they were written from. An update installs a new tree, but a running
service keeps its code, and an unrefreshed definition starts the previous release
again after the next reboot while agents and the CLI use the new one.
ours-fleet service check # read-only; exit 1 when a definition or running service uses another release
ours-fleet service refresh # re-point existing definitions at this releaserefresh changes only the release paths in definitions Fleet generated. It keeps
environment, profile, ports and drop-ins, runs daemon-reload, and never creates,
enables, starts, stops or restarts a service. Definitions that Fleet did not
generate, or whose ExecStart a drop-in overrides, are reported and left alone.
A running supervisor still uses its old code until you restart it
(systemctl --user restart ours-fleet.service); its agents resume through it.
ours-install runs refresh after updating Fleet, and doctor shows the same
rows as check.
Which build am I running?
--version prints a semver, and a semver does not identify an artifact: version
bumps land in their own release commit, so a build cut between two releases
carries the previous version while already containing new behaviour. Two installs
on one host once both reported 0.16.0 while disagreeing about whether
monitor.interrupt: after_tool was valid.
Every build therefore stamps dist/build-info.json with a content-derived build
id, its commit, and the capability tokens the shipped code declares.
ours-fleet version prints that identity plus every ours-fleet it can see on
PATH; ours-fleet doctor fails when two of them share a semver but are
different builds, or when the executable on PATH is a different artifact from
the one running. Two prefixes holding identical content are not a conflict.
Installs predating the stamp are compared by hashing their dist/, so two of
those are still told apart.
A permanent role brought up via -c custom.yaml remembers that file (.config-path
in its state dir and its private member registration) across supervisor-triggered
restarts. Its runner resolves that original configuration instead of falling back
to the default ~/fleet.yaml.
split configuration field reference
The following is a schematic field inventory, not a single YAML document. Host
settings belong in ~/fleet.yaml; reusable behavior and harness settings belong
in ~/fleet/roles/<id>.yaml and ~/fleet/brains/<id>.yaml; operational fields
belong in ~/fleet/agents/<id>.yaml.
vars: { work_root: /home/me/work } # ${var} substitution anywhere below
api_version: ours.network/fleet/v2
start_stagger_ms: 0 # delay between agent LAUNCHES (host-wide, ms); 0 = no stagger
defaults:
permissions: # common intent, translated by each harness/backend
approval: ask # ask | auto | allow (`deny` is a deprecated alias)
filesystem: workspace # read-only | workspace | unrestricted
unattended: deny # deny | wait
monitor:
mode: fleet # fleet (default) | native
worklog: # built-ins shown; set false to opt out
max_kb: 1024 # rotate only above this active-log size
keep_tail_kb: 256 # UTF-8 tail; line-aligned when one fits
max_archives: 12 # recent beside log; older preserved coldAgent Template document (`~/fleet/agent_templates/Worker.yaml`) is inert and reusable:
role: { ref: developer }
brain: { ref: claude-default }
permissions: { approval: ask, filesystem: workspace, unattended: deny }
monitor: { mode: fleet, interrupt: after_tool }
loops: # optional; temporary launches only
progress:
interval: 10m # required; 1m..30d
initial_delay: 10m # default: interval; 0s..30d
jitter: 30s # default: 0s; < interval and <=1h
enabled: true # default true
prompt: Continue the assigned work and report only material progress.Agent Template-local loops are limited to 64 entries, implicitly scoped to the temporary agent, and
reuse Fleet's scheduled-turn semantics: a busy occurrence is skipped, ordinary
missed occurrences are not backlogged or replayed, and restart recovery may
preserve at most one recent late occurrence. The trusted authoring file and
private sealed role snapshot retain exact prompt text; resolved launch, task,
room, provenance, and audit presentation surfaces show only bytes and SHA-256.
Every packaged Developer, Engineer, Critic, and LocalCoordinator Agent Template uses
monitor.mode: fleet with monitor.interrupt: after_tool. Consequently every
member of the standard single, pair, team, and engineering Room Templates resolves to
that policy. A custom Agent Template or explicit per-member override remains
authoritative and is merged key by key without rewriting unrelated values.
Direct temporary spawn can set the same whole block from an owner-only regular
file containing exactly a top-level loops: mapping, or explicitly disable it:
ours-fleet spawn --temp Scout --role 'inline:{mission: inspect}' --brain 'inline:{harness: codex}' --loops-file ./scout-loops.yaml
ours-fleet spawn --temp Scout --role 'inline:{mission: inspect}' --brain 'inline:{harness: codex}' --no-loops
ours-fleet task start TASK --member developer --loops-file ./developer-loops.yaml
ours-fleet task start TASK --member critic --no-loops--loops-file and --no-loops are mutually exclusive and temporary-only.
For room members they override the selected Agent Template as a whole; the
Agent Template overrides legacy omission. Omission preserves the historical
no-loop temporary behavior and never inherits manifest roles: ["*"] loops.
The file must be owned by the current user, mode 0600, non-symlink, no larger
than 1 MB, and contain a non-empty map. Validation completes before identity,
Cowork, snapshot, or supervisor side effects. Recovery and replacement reuse
the private sealed normalized definition even if mutable templates later change.
Persistent Agent instance (`~/fleet/agents/Name.yaml`) either remains a canonical Role/Brain composition or explicitly reuses a template:
template: Worker
overrides:
cwd: /work/name
permissions: { approval: allow }Templates never create identities, supervisors, sessions, or lifecycle/status rows. Map overrides merge recursively; scalars and arrays replace; null deletion is rejected.
Canonical Agent document (`~/fleet/agents/Name.yaml`):
role: { ref: RoleID }
brain: { ref: BrainID } # Brain owns harness/model/session/reasoning
identity: "Display Name" # ours identity to bind (default: Name)
cwd: ${work_root}/repo # where the harness process runs
coordinator: FleetCoordinator # announce target on bootAdditional operational field inventory (schematic, not one YAML document):
identity: "Display Name" # ours identity to bind (default: Name)
cwd: ${work_root}/repo # where the harness process runs
coordinator: FleetCoordinator # announce target on boot
monitor:
mode: fleet # fleet = ours-fleet supervisor; native = harness monitor
interrupt: false # false queues; true cancels; after_tool steers at an ACP tool boundary
wake_sources: # which daemon events wake the console (default:
- message_received # message_received, file_received,
- file_received # local_contact_request, pending_message)
batch_ms: 2000 # coalesce a burst into one line (default 2000)
inject: notification # notification (default) | full (bodies inline; roadmap)
owner_channel: # optional trusted owner ingress; requires a managed session
identity: "Name Owner Channel" # dedicated identity; fleet creates it with safe local defaults
owners: [owner-contact-cid] # authenticated ours contact IDs, never display names
agent: managed-agent-cid # exact role CID allowed to relay messages/files outward
interrupt: false # false queues; true cancels current work first
comments: true # relay live "🟡 Live update:" structured commentary (default true);
# restart baseline for /comments on|off
attachments: # secure inbound documents, images, and voice
enabled: true
max_files_per_request: 4 # 1..32; rejected from metadata before retrieval
max_file_bytes: 10485760 # 10 MiB
max_request_bytes: 20971520 # 20 MiB total, and >= max_file_bytes
retention_ms: 86400000 # stale crash cleanup; 1 minute..30 days
model: claude-fable-5 # launch on a specific model (pass-through id; default: launcher default)
mission: one line
persona: | # operating contract (published as persona)
bio: | # public card (published as bio)
briefing_file: curated.md # replaces the generated narrative
env: { KEY: value } # extra session env
oversee: [{ agent: X, interval: 5m }]
harness_options: # adapter-owned, adapter-validated
plugins: { "name@marketplace": false } # claude-code: plugin overrides
# mem_palace: false # claude-code: disable memory plugin
# permission_mode: dontAsk # claude-code: launch permission mode —
# one of default | acceptEdits | plan | dontAsk | bypassPermissions
# Codex ACP compatibility only: native codex-app-server rejects Codex
# permission overrides here; use the common permissions block above.
# launcher: auto # codex: auto | ours-codex | codex
# profile: fleet # codex ACP only: $CODEX_HOME/fleet.config.toml
# search: true # codex: enable --search (live web search)
# add_dirs: [/data/shared] # codex: repeat --add-dir
# monitor: true # explicit persistent consent to arm mail wake
# config: # codex: repeat --config key=<TOML value>
# model_reasoning_effort: high
isolation: # OS-level sandbox (additive; omit = today's behavior)
backend: auto # auto | bubblewrap | podman | none (default auto)
on_unavailable: warn # warn (un-isolated + marker) | strict (refuse) (default warn)
network: broker # broker | deny | allow | allowlist (default broker)
fs: { read: [/opt/toolchains], write: [] } # extra binds (state dir + cwd always included)
resources: { mem: 2G, cpu: "1.5", pids: 512 }
secrets: ["/host/tok:/run/secrets/tok"] # host:container, mounted read-only
loops: # trusted local scheduled ACP turns
coordinator_pass:
roles: [FleetCoordinator] # or ["*"] for permanent roles only
interval: 10m # 1m..30d
initial_delay: 10m # default: one full interval; explicit 0s is immediate
jitter: 30s # default 0; less than interval and at most 1h
enabled: true
prompt: |
Review current fleet state once. Unstick only actionable work.
If nothing material changed, complete silently without an owner report.The v2 loader reads the manifest, then sorted bare Role, Brain, and Agent
documents from its exact stem directory. Duplicate filename-derived IDs are a
hard error. Identities and Agents are decoupled—removing an Agent never deletes
an identity. Role, Brain, and operational ownership are composed explicitly;
there is no generic cross-kind merge. Manifest operational defaults such as
monitor and permissions merge only within their owning Agent fields.
Every supervised role is a client of the operator-configured ours daemon. Fleet strips the
obsolete, presence-sensitive OURS_AUTOSTART variable from ACP harness
processes. ours-mcp proxy is client-only and never starts a daemon; operators and explicit
installer/setup flows remain responsible for starting it.
Fleet selects explicit OURS_CONFIG first, otherwise the managed
~/.ours-client/profile.json when present. With a managed profile, ordinary
ours-fleet doctor and ours-fleet up need no environment override. Invalid or
unreadable managed profiles fail rather than select another daemon. If neither
selection exists, the existing unmanaged behavior remains.
The private profile names the daemon endpoint, retained instance UUID and host credential path; Fleet does not need the daemon state directory. An explicit override selects a new invocation without rewriting already installed service definitions. To select another profile explicitly:
export OURS_CONFIG=/absolute/private/ours/client.json
ours-fleet doctor
ours-fleet upRooms and tasks
Init installs editable single, pair, team, and engineering definitions under
~/fleet/room_templates/, plus every exact-cased Agent, Role, and Brain they
reference. Inspect them with ours-fleet template list and
ours-fleet template show team. After configuring the authenticated owner below:
ours-fleet task create --title "Solo task" --template single
ours-fleet task create --title "Reviewed change" --template pair
ours-fleet task create --title "Phased delivery" --template team
ours-fleet task create --title "Gated feature build" --template engineeringengineering pairs a gate-pipeline Engineer with the standard Critic. The
Engineer works every non-trivial task through ordered gates — scope and a numbered
Definition of Done before code, an over-engineering check, spec before
implementation, test-first, review, a sized security pass, docs, and evidence-backed
DoD verification — invoking an installed gate-pipeline skill when one is present and
walking the same gates by hand otherwise. The seat is labelled Engineer, so a
gated seat is never mistaken for a plain Developer. To make it the default for
development tasks, set tasks: { default_room_template: engineering } in
fleet.yaml.
The engineering starter expresses a prompt-level workflow mandate; Fleet does not enforce
the gates at runtime or install pipeline skills. The Engineer label identifies that mandate,
not a completed review. When migrating an existing install, a newly added Engineer uses
the existing Developer template's brain selection and keeps the packaged restrictive permissions.
Existing customized Engineer files are preserved.
The default team gives only its LocalCoordinator Agent Template a 15-minute
continuity loop. Each idle-only pass uses authenticated assigned-room evidence,
posts at most one missing interval update or status request, and reports STALLED
only after concrete stopped/blocked evidence or the role's documented request/ETA
window. Stable history/checkpoint fingerprints suppress duplicates; single and
pair remain loop-free. This preset does not widen permissions: task planning and
launch still fail closed when the selected harness cannot supply the configured
unattended messaging and checkpoint capabilities.
ours-fleet init -c /path/custom.yaml reviews the literal resolved manifest and
/path/custom/ split directory before doing anything. It requires a TTY and two
default-No confirmations. You select Codex, Claude, or both; then either one explicit
model for every job or explicit development/review/coordination models; then one
Quick/Balanced/Thorough reasoning level (low/medium/high). Catalog entries are
supported IDs, not recommendations or entitlement claims: use ours-fleet doctor for
local Codex availability, while Claude entitlement is validated at launch. No
model_chain is generated and Fleet never silently substitutes another model.
A successful rerun adds any missing packaged defaults while preserving every existing
manifest, Role, Agent Template, and Room Template byte. Explicit adoption of newer defaults
is a separate reviewable migration. At either confirmation,
N, Enter, Escape, Ctrl-C, Ctrl-D, or EOF cancels. In a picker, Escape, Ctrl-C, Ctrl-D,
or EOF cancels; Enter records the highlighted choice (or continues a non-empty multi-select),
N is ignored, and an empty subscription selection remains blocked. Every cancellation
before the final Yes performs no host setup or config publication. Non-TTY use stops with
the same zero-mutation guarantee unless --settings PATH supplies complete JSON answers.
Prepared settings run without questions and use this strict shape (catalog model capabilities
must match exactly):
{
"subscriptions": ["codex"],
"assignmentStrategy": "one-model",
"models": {
"development": { "harness": "codex", "session": "acp", "model": "gpt-5.6-sol", "efforts": ["low", "medium", "high", "xhigh", "max", "ultra"] },
"review": { "harness": "codex", "session": "acp", "model": "gpt-5.6-sol", "efforts": ["low", "medium", "high", "xhigh", "max", "ultra"] },
"coordination": { "harness": "codex", "session": "acp", "model": "gpt-5.6-sol", "efforts": ["low", "medium", "high", "xhigh", "max", "ultra"] }
},
"reasoning": "balanced"
}Run ours-fleet init --settings settings.json -c /path/custom.yaml. Unreadable,
malformed, incomplete, extra, or unsupported values fail before host setup and publication;
Fleet never falls back to questions. After the final Yes or validated settings, host integration runs before locked
publication; a hard kill, power loss, or host crash can therefore leave host integration
or private stage/recovery evidence to inspect.
Existing targets and their tree must be owner-private regular files/directories on the
configuration parent's filesystem; symlinks, foreign ownership, unsafe modes, and a
non-owner-controlled parent fail closed before host setup and are rechecked under the
per-setup init lock before publication.
The generated task experiences are fixed consequences, not extra questions: single
uses Developer; pair uses Developer with an independent Critic; team uses
task-local LocalCoordinator, Developer, and Critic; and engineering uses the
gate-pipeline Engineer with an independent Critic. The persistent
FleetCoordinator uses the separate packaged Coordinator contract and coordination
model.
Exact known revision-3 through revision-5 role and Agent Template defaults have an
explicit fail-closed adoption command: first run
ours-fleet migrate-role-defaults -c FILE for a zero-write plan, review every removal,
replacement, addition, preserved custom file, staging path, and recovery path, then rerun
with --write. Only exact semantic matches for packaged-bootstrap and generated
revision-3/4/5 forms are changed; same-named customized files remain byte-identical, and a
dangling custom reference refuses publication. Rerunning the migration is a no-op.
For manual adoption of a single newer packaged file, copy the reported source beside the
target as .new-default, inspect diff -u TARGET TARGET.new-default, then replace the
target yourself. Rerunning init is not an update. Users with the still older exact generated
six-worker starter Agent set must first run ours-fleet migrate-agent-templates -c FILE
for its zero-write plan, review every move/addition/recovery path, and rerun with --write.
Customized or ambiguous known starters are refused without mutation; unrelated custom
persistent Agents are preserved.
Rooms always use ours-cowork; there is no room-provider selector. Configure
the cowork daemon connection and the room owner directly:
rooms:
cowork:
config: /home/me/.ours-cowork/config.json
owner:
expected_cid: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
public_invite_file: /home/me/.ours-fleet/owner-room-invite.txt
defaults:
template: team
attach_owner: true
close_when_task_done: true
tasks:
default_room_template: team
create_mode: start
close_room_on_done: trueOwner-attached rooms require ours-cowork 1.3.0 or newer. Fleet sets the
configured Owner role's command policy to ["*"] before accepting the Owner
invite, and reapplies it during Owner-seat recovery. Cowork stores the wildcard
verbatim, authorizing current and future room runtime commands (including command
grants and room close/delete) for active seats with that exact role. Other roles'
grants are unchanged; host/global APIs remain outside this authorization.
Older Cowork versions reject the wildcard. Fleet leaves provisioning at
waiting_owner_authorization with upgrade guidance, without accepting the Owner
invite or falling back to an enumerated grant list. Upgrade Cowork and retry the
originating task. Existing active rooms are not retroactively migrated, and rooms
with Owner attachment disabled receive no Owner grant.
Fleet launches each template member with a dedicated one-time Cowork invite. The supervisor accepts the startup invite and verifies the provisioned identity CID in the authenticated room seat before starting the model. The generated briefing contains the assigned identity, room, role and task, without invite material. A room is ready only after the Cowork room (and its task, when task-bound) is durably active, every configured member seat is authenticated and active with its matching live Fleet launch, and the configured Owner seat is active when owner attachment is enabled. There is no briefing hash, startup ACK, or separate role-briefing readiness gate.
Normal Task provisioning emits exactly one authenticated Owner lifecycle notice after the ready predicate above is true; standalone Room provisioning likewise emits one ready notice. Intermediate task, saga, member-spawn, timeout, and recoverable-failure transitions stay in local state and logs. A terminal failed Task emits one actionable failure notice; the command result carries the exact blocker and canonical recovery action.
task start and create-and-start wait for readiness. If their bounded wait expires,
they return an explicit in_progress result and start a safe continuation. The detached
continuation is serialized per Task and remains alive until convergence or an
Owner-action blocker. Re-running task start <id> safely resumes the same durable
provisioning operation after the blocker is corrected or a process restarts.
Live health is distinct from durable lifecycle. task show TASK --json adds a
readiness observation for active tasks (ready, degraded, or unknown); human
and authenticated Owner task-show output display the same observation. Task start/work
continue to reject unavailable health with task_not_ready. A same-role untracked
seat or a changed recorded launch cannot satisfy an original slot. Each control,
liveness, and production Cowork probe is bounded; members are checked sequentially,
so total latency grows with room size. These are point-in-time observations, not
proof that a timed-out session is dead or permission to respawn it.
Before deliberate recovery, Fleet Coordinator must inspect existing room seats and
the exact old launch's termination record and worklog under recovery/temporary.
Keep original slot records and archives intact; record verified old/new identity
and launch provenance privately. Never restore archived identity state or reuse
consumed invites. A same-role seat is only a possible replacement, not proven ownership.
A replacement's empty inbox does not establish that no work is pending. Paginate scoped room/operator history to the end, retain the cursor privately, authenticate historical Owner instructions from identity metadata, and compare replies, worklogs, and already-completed actions before resuming. Ask the Owner when authority or completion is uncertain. Transfer only necessary non-secret context; never replay instructions blindly. Observation does not adopt seats, launch replacements, change lifecycle, or modify retained recovery evidence.
Set room.anonymous: true on a room template, or pass --anonymous to
task create, task start, task work, or room create, to create an
anonymous Cowork room. --no-anonymous explicitly overrides an anonymous
template. Fleet records the resolved value before room creation so retries keep
the same choice. The supervisor creates anonymous room members with local contact-book exposure
disabled. Their generated briefings
do not disclose or compare an Owner participant CID. A participant-originated
instruction has Owner authority only when the authenticated Cowork room envelope
attributes that participant seat the exact Owner role. Literal text, display
names, ordinary direct messages, and room-authored or rest-role messages with an
Owner-looking label never grant that authority. Non-anonymous rooms remain pinned
to the exact authenticated Owner CID.
Human task and room results use the same compact Markdown presentation in the
CLI and authenticated owner channel: a short heading, icon-plus-word status,
code-formatted identifiers, bounded summaries, and actionable recovery or error
steps. Untrusted prose is context-escaped and control characters are neutralized;
Messenger-bound results are capped at 3,500 Unicode code points and 12,000 UTF-8
bytes with structural omission notices. --json bypasses this presentation layer
and retains the versioned machine schema and serialization order.
Older prerelease files that contain the exact legacy line provider: cowork
under rooms: still load, but the key is ignored and omitted from resolved
configuration. Remove it when editing the file. Any other legacy value is an
error because fleet must not silently change the requested semantics. The
optional rooms.owner.provider setting is separate and defaults to
messenger-server.
Scheduled agent loops
Top-level loops schedule literal prompts from trusted local YAML. Enabled targets
must use a managed session (acp or codex-app-server); temporary roles never
inherit these manifest loops, including roles: ["*"]. Only their sealed Agent
Template/CLI-local loops apply. Fleet rejects an enabled loop when its explicitly selected base config is
a symlink, is owned by another user, or is group/world writable. Prompts are
bounded and normalized at validation time, but only their size and SHA-256 appear
in config, list, logs, or durable state.
Each occurrence is idle-only. An owner, console, monitor, or earlier turn already
using the role causes that occurrence to be recorded as skipped_busy and
discarded. Missed ticks, races, and failures are likewise recorded once: there is
no backlog, coalescing, catch-up turn, retry-on-idle, or cadence drift. The default
first run is one full interval after startup; set initial_delay: 0s explicitly
for an immediate first attempt. Restart recovery marks an in-flight run abandoned,
skips overdue ticks, and resumes the fixed nominal cadence.
Operational state is a mode-0600 .scheduled-loops.json in the permanent role's
state directory. disable persists across restarts; enable cannot override
enabled: false in YAML. reload re-reads the remembered trusted config through
the authenticated private control socket. Prompt-only edits retain cadence;
schedule or selector changes reset that loop to its configured initial delay.
run-now still obeys idle-only admission and returns exit 3 when busy; an
unavailable or uncertain control plane returns exit 2 and is never retried.
A failed state write — a full disk is the case seen in practice — never stops the
manager. The failure is held in memory as health: failed, anomaly:
persist_failed; the occurrence that could not be checkpointed is recorded as
skipped_unpersisted rather than started, since a run that is not on disk is one
a restart would submit twice; and the manager keeps a bounded retry armed (1s
doubling to 60s) so it resumes on its own once writes land. Because that health
flip is itself unwritable, readers do not trust a stored file that has stopped
advancing: status, loops status, and doctor report stale — never the
recorded health — once the checkpoint of a role that still has a loop to run is
more than 5 minutes old. A role whose loops are all disabled stops checkpointing
by design and is never called stale. status asks the live control socket
whenever it is there, including when the first checkpoint never got written, and
doctor fails a running role that has no stored loop state at all.
A scheduled turn has typed internal provenance and no owner authority. It cannot cancel owner work and its ordinary completion is local only. Material proactive owner reporting remains possible solely through an already-open authenticated owner-channel task route; a no-op Coordinator pass should complete silently.
Never-prompt failure
An unattended role has no console, so a permission request has nobody to answer
it and is refused inside the harness — no prompt, no error, no log line. The
agent does less than its briefing told it to, reports success, and nothing
distinguishes that from having done the work. It is caused by a permission mode
that suppresses the prompt without granting the action (Claude dontAsk), or by
unattended: deny.
Automatic decisions are now recorded rather than invisible. Every permission
decided without a human is written to
~/.ours-fleet/agents/<Name>/.session-events.jsonl with the decision, whether
policy or a person made it, which policy produced it, the reason, and the option
chosen — and ours-fleet peek/attach render them. Automatic denial always
asks for a one-shot rejection, never a standing one, so one unattended refusal
cannot disable a tool for the rest of the session. A role that can auto-deny
says so once at startup.
To catch this before a role runs, see the capability floor below —
ours-fleet doctor fails an under-permissioned unattended role rather than
letting it discover the problem silently.
The unattended capability floor
A fleet role runs with no console attached, so a permission request has nobody to answer it and is refused inside the harness — silently. The agent then does less than its briefing told it to and reports no error at all.
ours-fleet config and ours-fleet doctor therefore resolve each role's
neutral permissions: through its harness adapter and check what the resulting
native settings actually grant, against a fixed floor:
| capability | what the role must be able to do |
| --- | --- |
| read-state | read its briefing, ROUTINES.md, and WORKLOG.md |
| write-state | append its WORKLOG.md and its own state files |
| messaging | bind its identity, send and receive ours mail |
| monitor | arm and observe its mail monitor |
| workspace-edit | edit and test files in its working directory |
| status-commands | run the inspection commands its briefing prescribes |
doctor reports this per role as unattended floor: <Role>. A role configured
unattended: deny that cannot meet the floor fails doctor — it would deny
those requests with nobody to see it. With unattended: wait it warns,
since a human can still attach a console and answer.
Security meaning. For native Codex, Fleet translates ask → untrusted,
auto → on-request, and allow → never; users configure only the Fleet
names. permissions.filesystem independently maps read-only → read-only,
workspace → workspace-write, and unrestricted → danger-full-access.
Claude maps ask to default, auto to acceptEdits, and allow to
bypassPermissions. Codex ACP retains its adapter-specific coupled modes:
auto selects agent, while allow selects agent-full-access.
dontAsk suppresses only the prompt, not the denial, which is why an
allow role previously ran unable to do its job. Legacy deny is accepted
only for compatibility and retains its conservative Codex on-request /
Claude plan translation. allow is a real grant — give it deliberately, and keep per-role
isolation: as the outer boundary, which no permission
mode can cross.
ACP exposes agent-specific session mode IDs and session/set_mode, but no
portable permission-policy capability. Fleet uses that primitive where an
adapter has a corresponding mode and otherwise translates at the adapter. The
bundled Codex ACP adapter couples approval and sandboxing in its advertised
mode IDs. Consequently, neutral allow selects agent-full-access and widens
filesystem: workspace or read-only to danger-full-access; neutral auto
selects agent and uses workspace-write even when the neutral filesystem
value differs. An explicit harness_options.sandbox still wins and selects its
corresponding ACP preset; explicit native approval overrides also win. Fleet
reports a coupled-mode mismatch as approximate in config/doctor, and
per-role isolation: remains the boundary for an allow ACP role. Live session
metadata reports the normalized policy and the exact native mode selected.
Isolation at creation time
ours-fleet spawn Sec --isolation-file policy.yaml
ours-fleet spawn --temp Scout --isolation-file policy.yaml--isolation-file supplies the role's sandbox policy when it is created, so its
first launch is already confined. Without it a role gains isolation: only when
you edit fleet.yaml and run up, and everything before that ran unsandboxed.
The file contains exactly the isolation: mapping — the same schema,
validated by the same code, so it cannot mean something different from the identical block
in fleet.yaml:
network: deny
fs:
read: [/opt/reference]
resources:
mem: 2GAn invalid file is rejected before anything is created — no config, no state directory, no identity reservation.
Sandboxed credentials and configuration
A sandboxed role gets a per-role writable harness home under its own state directory
(<state>/harness/<harness>/), so its sessions, history and caches are its own and are
invisible to every other role. The shared credentials, global instructions and
configuration are layered back read-only:
| Harness | Read-only (shared) | Per-role writable |
| --- | --- | --- |
| claude-code | ~/.claude.json, ~/.claude/CLAUDE.md, settings.json, plugins/ | everything else under ~/.claude |
| codex | ~/.codex/auth.json, config.toml, AGENTS.md, plugins/, ~/.agents | everything else under ~/.codex |
An agent can read the credentials it needs and cannot rewrite them, cannot edit the instructions every role shares, and cannot alter a peer's configuration. Claude pre-trust stays a host-side step performed by the fleet.
The forbidden-path list is enforced, not advisory: a role that asks for ~/.ssh, the ours
key store, a sibling's state directory — or a parent directory that would expose one, or a
symlink to one — is refused by ours-fleet config before it can launch.
Start staggering
start_stagger_ms (top-level, host-wide, default 0) spaces out agent launches
so a burst of boots doesn't hit the harness/API rate limit (429) all at once. When
set, each launch is held until at least start_stagger_ms after the previous one
across the whole host. It is enforced at the harness-launch point inside the runner,
so — unlike a delay in the up/restart command loop — it also covers systemd
host boot, where every agent's unit starts concurrently. The gate is time-based:
a lone start or a solo crash-restart waits zero; only genuinely concurrent
launches are spread out. Example: start_stagger_ms: 4000 on a 7-agent fleet spaces
their boots ~4 s apart instead of firing all seven at once.
Migration (v0.9+): this replaces the old
FLEET_START_STAGGERenvironment variable, which only staggered theours-fleet up/restartcommand loop (not host boot) and defaulted to 5 s.FLEET_START_STAGGERis retired — setstart_stagger_msinfleet.yamlinstead (note: milliseconds, and the default is now0, so add it explicitly if you relied on the old implicit 5 s spacing).
Mail monitor
With monitor.mode: fleet (the default), the ours-fleet supervisor delivers
a role's mail wakes: the per-role runner long-polls the ours daemon's notification API and
submits a single [fleet-monitor] N new messages from … — run get_messages prompt
through the shared agent session. ACP uses live steering when its adapter supports it
and falls back to structured session/prompt.
Set monitor.interrupt: true on roles where every configured wake should cancel
the active turn before the notification is delivered. This is intentionally
content-blind: the supervisor cannot inspect encrypted message bodies, so all
events selected by wake_sources receive the same interrupt policy.
Set monitor.interrupt: after_tool when a wake must preserve an in-flight ACP
tool result or pending permission. Fleet waits for terminal ACP tool/update
evidence, then steers the wake without calling session.cancel. If the tool is
still active after 120 seconds, or the adapter cannot expose authenticated tool
boundaries/steering, fleet visibly degrades to non-cancelling steering or queued
delivery. Explicit human and control interrupts remain immediate.
The default is false: a role that must begin a post-readiness mission
immediately, including second-and-later mail received while it is working, must
set monitor.mode: fleet and monitor.interrupt: true explicitly. Readiness and
mission delivery still use ordinary ours mail: the role announces readiness,
waits for a body-free [fleet-monitor] wake, then calls get_messages; fleet
does not inject the mission body through ACP.
It primes the notification cursor before the session launches
(no missed arrivals), cannot be orphaned or left deaf-but-armed, and writes its
health to <agentDir>/.monitor-status (armed | degraded | failed), surfaced in
ours-fleet status/doctor. Injection is held while the pane shows a modal dialog,
so an injected wake can never answer a trust/permission prompt; if the dialog is
still up after 2 minutes the monitor gives up on that wake and records
degraded: modal wedge … instead of waiting silently forever (the mail stays
queued and its cursor is not committed until a later delivery is accepted). The
agent's briefing tells it not to arm a native harness Monitor.
Managed ACP sessions can opt into bounded stall recovery independently of mail delivery:
monitor:
mode: fleet
stall_recovery: true # omitted/false preserves existing behavior
stall_timeout_ms: 900000 # 15 minutes; integer 60000–86400000The ACP session measures silence from its last live reasoning, output, plan, or tool update, excluding replay and retry/status chatter. It requires observable progress before detecting a stall. Repeated structured Codex response-stream retry errors can confirm a stall after one window; generic silence requires two windows (30 minutes by default). Fleet’s Codex ACP transport exposes no native-turn mapping, so strong retry evidence is used only on the first fresh, unsteered managed turn. Later and resumed turns use the generic path. Assistant text and stderr never authenticate a retry.
Active tools, pending permissions, modal/unknown adapter status, unknown tool
boundaries, in-flight steering, human cancellation, and shutdown prevent automatic
interruption. Tool IDs are stored as a bounded set of hashes before the watchdog relies on their
boundaries. Reuse across any ordinary or diagnostic turn, including after resume,
makes the boundary uncertain; delayed terminal events cannot authorize cancellation.
Missing, damaged, or exhausted history disables automatic cancellation and reports
blocked_evidence after the conservative silence window.
An untracked steering-started turn is left alone. A tracked turn with no meaningful
event reports blocked_evidence after two windows from admission; turn age alone
never authorizes cancellation.
Native monitoring and non-ACP backends do not run this watchdog.
Recovery sends one explicit ACP cancel, waits at most 15 seconds for settlement, and submits a diagnostic continuation in the same session and queue slot. Startup and queued prompts remain behind that continuation. It instructs the agent to check recorded terminal events and never replay ambiguous or completed side effects. The watchdog never kills, restarts, or respawns the adapter. Error/refusal settlement of cancellation reports a blocker without failing startup. A refused/failed or re-stalled continuation emits an actionable blocker without another cancellation; startup remains supervised when diagnostic recovery reports a blocker.
The durable claim is deliberately stricter than one attempt per turn: at most one
automatic recovery per ACP session ID, including after a supervisor restart. No
claim is automatically cleared, even if incomplete. Its queue-only monitor policy
is restored before admission on supervisor restart. During and after that attempt,
mail wakes use queued delivery for all monitor.interrupt policies; explicit human
interrupts retain their existing authority and supersede pending recovery. The
after_tool timeout alone never authorizes watchdog cancellation. The feature must
be enabled explicitly even when mail uses interrupt: true or after_tool.
Body-free claim and audit records live under <agentDir>/.stall-recovery/; typed
stall_recovery events and fixed supervisor log messages expose outcomes. Session
and turn identifiers are hashed; prompt bodies, tool outputs, credentials, and
workspace paths are excluded. On blocked_*, inspect the structured session events,
verify completed actions, then continue manually if safe or report the remaining
blocker. Do not clear a claim to retry an uncertain interruption. No room integration
or identity binding is needed.
With monitor.mode: native, ours-fleet does not start its supervisor monitor;
the generated briefing instead instructs the harness to arm its own wake
mechanism (the structured ours api watch-notifications JSONL stream for Claude Code,
or the Codex
arm_monitor/foreground_monitor flow). The old monitor.enabled: true|false
form remains accepted as a compatibility alias for fleet|native, respectively,
but new configuration should use mode.
inject: full (pushing message bodies
inline) is on the roadmap and needs two new daemon endpoints; today all
roles deliver notification lines and drain via get_messages.
ACP stdio remains private to the persistent runner. send, peek, and the basic
ACP attach console use a private, authenticated per-role control socket with
typed replayable events. This is also the stable extension boundary for a richer
console later; no terminal UI is part of the monitor or session backend.
Trusted owner channel
owner_channel adds a second ours identity to a role without changing the
role's normal identity. Fleet creates that dedicated permanent identity when it
is missing, with local exposure and local auto-accept disabled, and releases the
provisioning lease before the supervisor binds it. Connect it to each
owner/controller identity and the managed role identity, put the owners'
immutable contact CIDs in owners, and put the managed role identity's exact CID
in agent. The channel identity must not be any role identity or another role's
channel identity. Add it to the control plane just like another contact, then
message it directly.
The running supervisor remains the only process which binds that identity.
Rapid supervised restart uses a role-scoped single-binder lease. The old
supervisor closes its MCP proxy and authenticated control socket before
releasing the lease; the replacement waits a bounded five seconds and retries a
daemon bind only when the lease proves that holder was the same role and channel
identity. A foreign, live, or unverifiable holder remains fail-closed and is
never evicted with force=true.
If the matching predecessor does not release within that bound, the replacement
asks the predecessor's still-authenticated control socket to emit one fixed
recovery notice. The predecessor uses only its existing latest-owner route (or
the sole configured owner), deduplicates the notice durably by digest, and stores
no notice plaintext. When no unambiguous authenticated owner route exists, no
recipient is guessed: the failure remains in the web console and role logs. The
remote recovery action is /restart; repeated failures should be inspected with
ours-fleet logs <Role> or the web console.
Operators manage it, and an active agent turn emits bounded updates, through the role's authenticated Unix control socket:
ours-fleet owner-channel contact list Coordinator
ours-fleet owner-channel contact invite Coordinator --name Mobile
ours-fleet owner-channel contact add Coordinator --invite-file ./invite.txt --name Mobile
# Or keep invite material out of both argv and a file:
ours-fleet owner-channel contact add Coordinator --invite-stdin
ours-fleet owner-channel owner list Coordinator
ours-fleet owner-channel owner authorize Coordinator <exact-64-hex-contact-cid>
ours-fleet owner-channel owner revoke Coordinator <exact-64-hex-contact-cid>Pairing is deliberately two-step. contact add accepts an invite and reports a
pending contact handshake; it never grants authority. After peer verification,
use contact list to obtain the immutable CID, then explicitly owner authorize
that exact CID. Invite generation prints the invite only to stdout. Acceptance
reads it from stdin or a file, never a process argument.
Configured owners are the declared baseline. Authorize/revoke operations add
a bounded dynamic overlay stored beside the role state in mode 0600 and applied
immediately by the already-bound channel. owner list shows each CID's
baseline/dynamic source and whether it is effective. The overlay survives
session/supervisor restart; it stores only CIDs and a bounded action audit—never
invites, message bodies, credentials, or keys. A corrupt overlay fails closed
(no effective owners and no mutation), and the last effective owner cannot be
revoked.
These commands require a running role with owner_channel enabled. Missing,
stopped, disabled, draining, and unavailable-MCP targets fail without
starting a second client, binding an identity, or opening a network listener.
The managed agent can use its ordinary ours send_message or send_file tool to
message the channel identity. Fleet checks that the authenticated sender CID
