Skip to main content

Module roster

Module roster 

Source
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.
AgentQuery
What Roster::select_agent looks for. The default asks for any Agent of the global roster, whatever its handler or retirement date.
AgentRole
A job an Agent can be qualified for: its purpose and the policy it works under.
AgentRoute
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.
CoverIdentity
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.
RosterBuilder
Collects the typed records of a Roster; RosterBuilder::build checks them.
RosterError
Configuration could not be read or resolved.
RosterSettings
Settings that apply to the whole roster: the roster record (a [roster] table in the global operations file).
RouteRef
Which route of an Agent ran: its handler, model and pool.
UsageSettings
How long a reading of a pool account’s usage stands: the usage table of the roster record. 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_on date (on_retire).
Retirement
Where an Agent stands against its retire_on date.
RosterErrorKind
What kind of failure a RosterError is.
RouteBalance
How an Agent chooses among its routes (balance): the words of a pool’s strategy.

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_on date 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.