pub enum SupervisionTrigger {
TurnFailed,
DeadlineBreached,
ManualRestart,
}Expand description
What triggered a supervision decision (R0.7 wave 2), recorded on every
SupervisionAttempt so the escalation’s attempt history reads as
evidence, not just as a counter.
Variants§
TurnFailed
A mailbox turn settled as failed (the worker running the turn
classified the error into the shared ErrorClass taxonomy).
DeadlineBreached
The agent’s whole-activity deadline
(AgentBudget::deadline) passed: cancellation by clock one level
up from the task deadline.
ManualRestart
An operator restarted the agent deliberately
(POST /agents/{id}/restart). Manual restarts carry no failure
class and do not consume the restart budget.
Trait Implementations§
Source§impl Clone for SupervisionTrigger
impl Clone for SupervisionTrigger
impl Copy for SupervisionTrigger
Source§impl Debug for SupervisionTrigger
impl Debug for SupervisionTrigger
Source§impl<'de> Deserialize<'de> for SupervisionTrigger
impl<'de> Deserialize<'de> for SupervisionTrigger
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SupervisionTrigger
Source§impl Hash for SupervisionTrigger
impl Hash for SupervisionTrigger
Source§impl PartialEq for SupervisionTrigger
impl PartialEq for SupervisionTrigger
Source§impl Serialize for SupervisionTrigger
impl Serialize for SupervisionTrigger
impl StructuralPartialEq for SupervisionTrigger
Auto Trait Implementations§
impl Freeze for SupervisionTrigger
impl RefUnwindSafe for SupervisionTrigger
impl Send for SupervisionTrigger
impl Sync for SupervisionTrigger
impl Unpin for SupervisionTrigger
impl UnsafeUnpin for SupervisionTrigger
impl UnwindSafe for SupervisionTrigger
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