pub struct SchedulerState {Show 17 fields
pub run_spec: Option<LogicalAgentSpec>,
pub advertised_tool_ids: Option<Vec<String>>,
pub turn: u32,
pub total_tokens: WireU64,
pub rounds_completed: u32,
pub subagents_spawned: u32,
pub started_at_ms: Option<WireU64>,
pub wall_budget_ms: Option<WireU64>,
pub tasks: Vec<TaskControlState>,
pub attempts: Vec<TaskAttemptState>,
pub workflow: Option<WorkflowGraphState>,
pub queued_signals: Vec<QueuedSignalState>,
pub signal_dedupe_keys: Vec<String>,
pub milestone: Option<MilestoneState>,
pub entropy: EntropyState,
pub channels: Vec<LocalChannelState>,
pub objects: Vec<ObjectDescriptor>,
}Expand description
§12.1 · the P2 plane: task control blocks and their attempts, budgets and waits, the workflow graph, queued signals plus dedupe memory, and the milestone cascade.
Fields§
§run_spec: Option<LogicalAgentSpec>The active agent’s logical run contract. Required even when absent so checkpoints from the retired shape cannot be mistaken for current state.
advertised_tool_ids: Option<Vec<String>>Exact task-tool surface advertised by the most recent provider call. None means no
provider call has been emitted yet and is fail-closed, not permissive.
turn: u32§total_tokens: WireU64§rounds_completed: u32§subagents_spawned: u32§started_at_ms: Option<WireU64>First observed clock of the run, the anchor the wall-budget axis measures against.
wall_budget_ms: Option<WireU64>§13.2 · the wall-clock budget an UpdateDeadline command last projected onto the axis.
Not derivable from the configuration — the command sets a duration measured from
Self::started_at_ms — so a restore that dropped it would un-bound the run.
tasks: Vec<TaskControlState>The task table. The home of task lifecycle and, with Self::attempts, of task
identity.
attempts: Vec<TaskAttemptState>§10.4 · the attempt the kernel minted for each live task. A completion naming an attempt that is not here has no authority, which is why the mapping is checkpointed rather than re-derived from task ids.
workflow: Option<WorkflowGraphState>§queued_signals: Vec<QueuedSignalState>§signal_dedupe_keys: Vec<String>Router dedupe keys in eviction order, including keys for already-dispatched signals.
milestone: Option<MilestoneState>§entropy: EntropyStateSession-disorder measurement and alert-gate state. These values intentionally survive a canonical crash restore even though they do not participate in a same-process turn rollback: otherwise the first post-restore sample forgets prior failures and rollbacks.
channels: Vec<LocalChannelState>Durable local fan-out channels, including per-consumer cursors and dedupe memory.
objects: Vec<ObjectDescriptor>Handle-only local object registry; bodies remain in context/payload storage.
Trait Implementations§
Source§impl Clone for SchedulerState
impl Clone for SchedulerState
Source§fn clone(&self) -> SchedulerState
fn clone(&self) -> SchedulerState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more