pub struct Episode {
pub index: usize,
pub residual_norm_sq: f64,
pub drift: f64,
pub grammar: &'static str,
pub decision: &'static str,
}Expand description
A structured episode produced by the DSFB observer layer.
Advisory only. No upstream state is modified.
Fields§
§index: usizeSample index within the input slice.
residual_norm_sq: f64Squared residual norm (|x - nominal|²), avoiding sqrt for kernel compatibility.
drift: f64Rolling drift estimate (mean first-difference of absolute residuals over last 5 samples).
grammar: &'static strGrammar state: "Admissible", "Boundary", or "Violation".
decision: &'static strAdvisory decision: "Silent", "Review", or "Escalate".
Trait Implementations§
impl StructuralPartialEq for Episode
Auto Trait Implementations§
impl Freeze for Episode
impl RefUnwindSafe for Episode
impl Send for Episode
impl Sync for Episode
impl Unpin for Episode
impl UnsafeUnpin for Episode
impl UnwindSafe for Episode
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