pub struct FirstDivergence {
pub baseline_turn: usize,
pub candidate_turn: usize,
pub kind: DivergenceKind,
pub primary_axis: Axis,
pub explanation: String,
pub confidence: f64,
}Expand description
First meaningful divergence between two traces.
Fields§
§baseline_turn: usize0-based index in the baseline’s chat_response sequence. For an insertion on the candidate side, this is the baseline index where the insertion appeared (effectively a “between” marker).
candidate_turn: usizeSame for the candidate side. May differ from baseline_turn when gaps are present on the alignment path.
kind: DivergenceKindClassification (Style / Decision / Structural).
primary_axis: AxisPrimary axis the divergence surfaces on (semantic, trajectory, safety, conformance). Provides a machine-readable hint for grouping regressions by root cause.
explanation: StringOne-line human-readable explanation. Designed to be embeddable in a PR comment without additional context.
confidence: f64Confidence in 0..1. Higher means “the signal exceeds the noise floor by a wide margin”. Callers can gate display on >= 0.5.
Trait Implementations§
Source§impl Clone for FirstDivergence
impl Clone for FirstDivergence
Source§fn clone(&self) -> FirstDivergence
fn clone(&self) -> FirstDivergence
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FirstDivergence
impl Debug for FirstDivergence
Source§impl<'de> Deserialize<'de> for FirstDivergence
impl<'de> Deserialize<'de> for FirstDivergence
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>,
Source§impl PartialEq for FirstDivergence
impl PartialEq for FirstDivergence
Source§fn eq(&self, other: &FirstDivergence) -> bool
fn eq(&self, other: &FirstDivergence) -> bool
self and other values to be equal, and is used by ==.