pub struct FleetState {
pub host_states: HashMap<(RolloutId, HostId), HostRolloutState>,
pub rollouts: HashMap<RolloutId, RolloutSummary>,
pub outstanding_failing_enforce_probes: HashMap<RolloutId, HashMap<HostId, usize>>,
}Expand description
Aggregated view of per-host state the planner consults. Built by the
CP runtime from host_rollout_records (Phase 4 schema).
Fields§
§host_states: HashMap<(RolloutId, HostId), HostRolloutState>Per-host state, keyed by (rollout_id, hostname). The reducer
state is the source of truth; this map is a flat view derived
from host_rollout_records via
db::HostRolloutRecords::all_for_rollout per active rollout.
rollouts: HashMap<RolloutId, RolloutSummary>§outstanding_failing_enforce_probes: HashMap<RolloutId, HashMap<HostId, usize>>Per-(rollout, host) outstanding enforce-mode probe failure count.
Populated from db::probe_failures::outstanding_failing_enforce_probes_by_rollout
at FleetState construction time (RFC-0007 §7.2). Read by the
compliance-wave gate; absent entries mean zero failing enforce
probes (RFC-0005 §6 — no fail-open fallback).
Auto Trait Implementations§
impl Freeze for FleetState
impl RefUnwindSafe for FleetState
impl Send for FleetState
impl Sync for FleetState
impl Unpin for FleetState
impl UnwindSafe for FleetState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more