pub struct NamedFleetConfigToml {
pub operator: String,
pub default_trust_level: String,
pub require_identity_verification: bool,
pub max_trust_level: String,
pub roles: BTreeMap<String, FleetRolePreset>,
pub profiles: BTreeMap<String, FleetProfile>,
pub exec: FleetExecConfig,
}Expand description
On-disk schema for a single named Fleet entry under [fleets.<name>] (#5039).
A named Fleet is a superset of FleetConfigToml: it carries a mandatory
operator identity and independently configured trust, roles, profiles, and
exec policy. Multiple named Fleets may coexist; each is uniquely addressed by
its TOML key. The existing [fleet] table remains the backward-compatible
default and is always accessible without a name.
§TOML example
[fleets.alice-team]
operator = "alice"
default_trust_level = "local"
max_trust_level = "operator"
[fleets.alice-team.exec]
max_turns = 200
[fleets.alice-team.profiles.fast-verifier]
slot = "verifier"
loadout = "fast"Fields§
§operator: StringThe operator/leader identity for this Fleet.
Used to scope fleet selection: config.resolve_fleet_for_operator("alice")
returns the fleet whose operator field matches. Must be non-empty.
default_trust_level: StringDefault trust level for fleet workers ("sandbox", "local",
"remote-verified", or "operator"). Defaults to "sandbox".
require_identity_verification: boolRequire identity verification for remote (SSH) workers before
granting them remote-verified trust. Defaults to true.
max_trust_level: StringMaximum trust level any worker may have. Defaults to "operator".
roles: BTreeMap<String, FleetRolePreset>User-defined and built-in role presets for this fleet.
profiles: BTreeMap<String, FleetProfile>Fleet profile vocabulary for this fleet.
exec: FleetExecConfigHeadless worker execution constraints for this fleet.
Implementations§
Source§impl NamedFleetConfigToml
impl NamedFleetConfigToml
Sourcepub fn resolve_role(&self, name: &str) -> Option<FleetRolePreset>
pub fn resolve_role(&self, name: &str) -> Option<FleetRolePreset>
Resolve a role preset by name. Checks user-defined roles first, then falls back to built-in role defaults.
Sourcepub fn as_fleet_config(&self) -> FleetConfigToml
pub fn as_fleet_config(&self) -> FleetConfigToml
Borrow this named Fleet’s settings as a FleetConfigToml view.
Useful when callers need a unified type regardless of whether the fleet
was selected by name or the legacy [fleet] default was used.
Trait Implementations§
Source§impl Clone for NamedFleetConfigToml
impl Clone for NamedFleetConfigToml
Source§fn clone(&self) -> NamedFleetConfigToml
fn clone(&self) -> NamedFleetConfigToml
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more