pub struct TokenTrace {
pub t: usize,
pub token_id: u32,
pub confidence: f32,
pub active_skill: Option<String>,
pub recon: Option<f32>,
pub switched: bool,
}Expand description
One row of the structured telemetry trace (B4): the model’s internal routing state at the moment a token was emitted. Every field is a quantity the runtime already computes — nothing is inferred or estimated (anti-principle: only measured bytes).
Fields§
§t: usize0-based index within the generated slice.
token_id: u32The emitted token id.
confidence: f32Born mass on the emitted token (softmax prob) — how sure the model was.
active_skill: Option<String>Skill in force while this token was generated (None = backbone).
recon: Option<f32>Recon error E = ‖r−BBᵀr‖²/‖φ‖² at the last routing eval — coherence with the active skill’s subspace (low = coherent). None = no router or not yet evaluated.
switched: boolThe router changed the active skill right after this token (a domain boundary crossed under the hysteresis barrier).
Trait Implementations§
Source§impl Clone for TokenTrace
impl Clone for TokenTrace
Source§fn clone(&self) -> TokenTrace
fn clone(&self) -> TokenTrace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TokenTrace
impl RefUnwindSafe for TokenTrace
impl Send for TokenTrace
impl Sync for TokenTrace
impl Unpin for TokenTrace
impl UnsafeUnpin for TokenTrace
impl UnwindSafe for TokenTrace
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