41af2124A fleet directory contains a roster, role definitions and private instance state.
The loader rejects unknown fields, invalid names, unsafe paths and contradictory
settings. Definitions are trackable; .fleet/ and workareas are private state.
Directory#
This example tree combines files supplied by the fleet author with private state
created by fleetd. Create the roster and role instructions, not the .fleet/,
.codex/, .pi/ or .crossfire/ contents yourself:
research/
runtime.toml
execution.toml # optional fleet image/resource catalog
rooms.toml
.fleet/
agents/
analyst/
agent.toml
AGENTS.md
workarea/
analyst-east/
.codex/ or .pi/
.crossfire/
analyst-west/
.codex/ or .pi/
.crossfire/Workareas are distinct non-overlapping relative descendants of
agents/<definition>/workarea/. They own identity, cursors, histories and
receipts. Optional workspace changes native cwd, not state ownership.
Roster#
The fleet author saves the following configuration as research/runtime.toml.
It declares two instances of one analyst role. The server and owner values are
placeholders to replace before enrollment:
fleet = "research"
[coordination]
adapter = "crossfire"
server = "https://example.test"
owner = "@member:example.test"
[[instances]]
key = "analyst-east"
name = "analyst-east"
definition = "analyst"
workarea = "agents/analyst/workarea/analyst-east"
[instances.listener_options]
history_mode = "shared"
[[instances]]
key = "analyst-west"
name = "analyst-west"
definition = "analyst"
workarea = "agents/analyst/workarea/analyst-west"
[instances.runtime_options]
model_reasoning_effort = "high"
[instances.listener_options]
history_mode = "per-room"Fleet/definition/instance keys and registered names begin with a lowercase letter, then lowercase letters, digits or hyphens, maximum forty characters. Instance keys remain local identity selectors. Registered names are globally unique on the crossfire instance. A collision rejects the entire introduction; there is no automatic suffix or name-based takeover.
A definition supplies defaults. Each provided top-level native instance value replaces its default; nested tables replace whole values, not recursive fields. The adapter validates the same result during inspection, start/resume, recovery and reset. Changes apply at a stopped-to-running transition.
Execution selection#
Selective VM execution is unreleased and is absent from the published 0.1.26 archives. Source builds of managed C#, NativeAOT and Rust use the same selection for both Codex and Pi. Omitted execution selects the host.
The fleet author adds this table inside the chosen [[instances]] entry in
research/runtime.toml, before the next instance:
[instances.execution]
kind = "vm"
image = "research"
profile = "restricted"The image and profile belong to this fleet’s execution.toml. The operator
creates that file using an existing private image, its actual SHA256, a finite
fleet memory budget and approved mounts. The
complete VM guide
contains the catalog
format and prerequisites. An intentional host selection uses kind = "host"
without image/profile. Native sandbox and approval options are separate.
Stop the instance before changing placement. Keep its exact workarea and native histories; native sessions and approved data stay on host storage. Images must contain the selected harness and dependencies at their configured paths. Setup does not install them. A VM failure never changes execution to host.
Sleeping fleet restoration makes no model turn or VM boot. Explicit inspection and first approved native-history creation may boot without inference.
Collection output#
An operator can suppress automatic native-output mirroring for a noisy collector while keeping intentional messages, required owner decisions, activity and usage reporting. Use the matching fleet/fleetd distribution and update explicitly before configuring this setting.
For a collector instance, the fleet author adds this table to its roster entry
in research/runtime.toml:
[instances.listener_options]
history_mode = "shared"
mirror_output = falseThe default is true. A false value prevents newly observed text, tool results
and final output from being queued for the owner DM. It preserves native history,
telemetry, approvals, questions and explicit messaging-tool calls. A delivery
already journaled before the change keeps its recorded identity and completion
rules. Changes apply at the next stopped-to-running transition. Use the same
setting for Codex and Pi on managed C#, NativeAOT and Rust.
Keep exhaustive collection progress in the application’s run records. Agents can send a few deliberate final, blocker or requested-status messages without posting a message for every fetch. This setting does not change access permissions or make same-user files confidential from the owner.
Role#
Save this role definition as research/agents/analyst/agent.toml, beside the
role’s AGENTS.md instructions. fleetd reads it when validating and starting the
instances. Select a model actually available to the runtime account:
name = "Research analyst"
runtime = "codex"
[runtime_options]
model = "EXACT_AVAILABLE_MODEL_ID"
model_reasoning_effort = "high"
sandbox_mode = "danger-full-access"
approval_policy = "on-request"
[coordination_options]
wake_mode = "selected"
permissions = ["room.agent.invite"]
[[coordination_options.wake_senders]]
backend_user_id = "@member:example.test"
include_agents = truename is the role label, not an account override. AGENTS.md supplies native
role instructions; nested project instructions retain their native semantics.
Several instances reuse definitions, not mutable histories.
The theatre example’s stage manager separates its role settings and coordination defaults from its registered instance name:
name = "Stage manager"
runtime = "codex"
[runtime_options]
model_reasoning_effort = "medium"
sandbox_mode = "danger-full-access"
approval_policy = "on-request"
[coordination_options]
wake_mode = "selected"
permissions = ["room.agent.invite"]
[[coordination_options.wake_senders]]
backend_user_id = "@owner:example.test"
include_agents = true
fleet/agents/stage-manager/agent.toml
at 6fddca79.
Its other nine roles use high effort and no invitation capability. The working fleet generator fills every selected owner entry rather than asking the operator to edit ten files. See fleet-street’s roster and setup .
Native options#
Codex owns model, model_reasoning_effort, sandbox_mode,
approval_policy, dangerously_bypass_approvals_and_sandbox and supported
native feature options. Its admitted effort strings are none, minimal, low,
medium, high, xhigh, max and ultra, subject to actual selected-model support.
Omitted sandbox/approval selects danger-full-access/on-request.
An explicit true bypass selects danger-full-access/never; conflicting explicit
settings fail. Max is not an alias for xhigh or ultra.
Default-mode structured questions require the native
features.default_mode_request_user_input capability.
Unsupported options are rejected rather than adjusted silently.
Pi owns provider/model/thinking_level and rejects Codex permission fields. Its exact available model and level are checked natively.
Coordination defaults#
Modes are selected, humans and everyone.
Selected entries combine with OR. A human always includes themselves; true
include_agents also includes their currently active agents.
An individual agent entry requires false. Empty selected wakes nobody.
Everyone requires an empty list.
The only role admission capability is room.agent.invite, absent by default.
It grants no room membership, enrollment approval or process control.
It becomes a permission on each new room grant, tied to that grant’s generation.
Owner approval reviews the exact roster and defaults. Existing approved resume uses saved authority without overwriting management-edited wake/room rules. Use explicit stopped-fleet enrollment to propose new/renamed identities or changed coordination defaults. Controller proof cannot approve its own policy.
History and size#
Shared is the default. Per-room retains an exact history for each immutable room and a private control context. Changing mode does not copy/merge/replay histories. Neither mode isolates tools, files or credentials.
crossfire instance policy, not the roster, owns the inline byte limit and idle sleep timeout. Large complete input uses private files. Native output/patches do not inherit that incoming-message budget.
Room plan#
An operator can save the following grant plan as research/rooms.toml. It is
configuration for the room-plan operation, not a message sent in Matrix. Replace
the room ID with an existing authorized room and review the resulting grant
changes before applying them:
fleet = "research"
[[agents]]
instance = "analyst-east"
[[agents.grants]]
room = "!EXACT_ROOM_ID:example.test"
access = "reply"
muted = falseThe selected immutable fleet plus instance key resolves the agent.
Access is read, reply or custom; only custom includes integer level.
A plan replaces discretionary grants for listed instances only. Omitted grants
for those instances are removals; grants = [] removes all discretionary access.
It never creates rooms, enrolls identities or removes a protected owner DM.
Preview/apply checks exact input, revisions and current native authority.
Secrets and activation#
Tracked roster/role files contain the intended public crossfire server/owner and validated native options. Do not put tokens, passwords, private provider endpoints, native session IDs or credentials in them. Private directories use 0700 and state files 0600. The adapter refreshes current host provider login at actual native activation. It does not copy the setup assistant’s history, trust settings or bypass policy.
A missing/corrupt established history fails. Only explicit fresh-history reset authorizes replacement. Inspect effective settings and each instance outcome after an update.