Expand description
Registered Operations and the Agents posted to them.
A Roster comes from the operations and agents records of a configuration provider
(FileProvider reads them from a directory in any format) or from typed records built in
code (Roster::from_parts, Roster::builder). Either way, an Operation’s
.ai6/agents file is considered only after that Operation is found in the roster.
Structs§
- Agent
- A resolved Agent configuration.
- Agent
Query - What
Roster::select_agentlooks for. The default asks for any Agent of the global roster, whatever its handler or retirement date. - Agent
Role - A job an Agent can be qualified for: its purpose and the policy it works under.
- Agent
Route - One way an Agent reaches its model: a handler, the name this source knows the model by, and an
account source (
[[agent.<id>.route]]). Identity stays the Agent’s; routes of one Agent are meant to be one model, which AI6 does not check. - Cover
Identity - Git author identity configured by an Operation.
- Operation
- One globally registered project and its Operation policy.
- PinProblem
- An Agent a standing order, brief or Mission names that cannot take it, and why.
- Roster
- Loaded global Operation registry and Agent roster.
- Roster
Builder - Collects the typed records of a
Roster;RosterBuilder::buildchecks them. - Roster
Error - Configuration could not be read or resolved.
- Roster
Settings - Settings that apply to the whole roster: the
rosterrecord (a[roster]table in the globaloperationsfile). - Route
Ref - Which route of an Agent ran: its handler, model and pool.
- Usage
Settings - How long a reading of a pool account’s usage stands: the
usagetable of therosterrecord. A Station reads an account only when something asks (a person, an Agent, or an event such as a route about to choose an account), and never on a timer. - Workspace
- How an Operation’s Missions get their working directory (
workspace = { .. }).
Enums§
- OnLost
- What happens to a Mission whose Run is lost with its Station (
on_lost). - OnRetire
- What happens to an Agent on its
retire_ondate (on_retire). - Retirement
- Where an Agent stands against its
retire_ondate. - Roster
Error Kind - What kind of failure a
RosterErroris. - Route
Balance - How an Agent chooses among its routes (
balance): the words of a pool’sstrategy.
Constants§
- DEFAULT_
CHECKPOINT_ SECS - Seconds between safe-house checkpoints when an Operation does not say.
- DEFAULT_
MAX_ COMPARTMENT_ RULES - How many read-in and cover pairs one compartment may have by default.
- DEFAULT_
MAX_ OPERATION_ DEPTH - How deep an Operation may sit in the tree of Operations by default: 64 levels, a root being the first.
- DEFAULT_
RETIRE_ WARNING_ DAYS - Days before an Agent’s
retire_ondate that the Station warns of it, by default. - DEFAULT_
WAKES_ PER_ HOUR - The Cables that may wake an Agent’s Runs in an hour, by default.