pub struct SupervisionAttempt {
pub ordinal: u32,
pub trigger: SupervisionTrigger,
pub error_class: Option<ErrorClass>,
pub message: String,
pub task_id: Option<String>,
pub at: DateTime<Utc>,
}Expand description
One entry in a supervised agent’s attempt history (R0.7 wave 2): the failure (or operator action) a supervision decision was made about.
The history is the evidence an escalation carries — the design’s “escalation with its attempt history intact” — so every entry records the trigger, the classification, and the turn task it came from, not merely a count.
Fields§
§ordinal: u321-based position in the agent’s full supervision history. When the
decision was a restart, this is the restart ordinal the journaled
SupervisionEvent names.
trigger: SupervisionTriggerWhat the runtime observed.
error_class: Option<ErrorClass>The failed turn’s classification (core’s closed ErrorClass
taxonomy). None for SupervisionTrigger::ManualRestart — an
operator action has no failure class.
message: StringThe human-readable failure message (or the operator’s reason).
task_id: Option<String>The mailbox turn task this attempt came from, when there is one.
at: DateTime<Utc>When the attempt was recorded.