pub struct ShadowRun;Expand description
Shadow-run comparison harness.
Runs the same model and event sequence through two independent LabSession instances and compares their frame outputs.
Implementations§
Source§impl ShadowRun
impl ShadowRun
Sourcepub fn compare<M, MF, SF>(
config: ShadowRunConfig,
model_factory: MF,
scenario_fn: SF,
) -> ShadowRunResult
pub fn compare<M, MF, SF>( config: ShadowRunConfig, model_factory: MF, scenario_fn: SF, ) -> ShadowRunResult
Run a shadow comparison between baseline and candidate lanes.
Both lanes execute the same scenario_fn with the same seed and
configuration. Frame checksums are compared after both runs complete.
The model_factory is called twice (once per lane) to produce
independent model instances.
§Evidence
Emits structured JSONL to stderr with events:
shadow.start: comparison parametersshadow.lane.done: per-lane summaryshadow.frame.diverged: each divergent frameshadow.verdict: final pass/fail with statistics
Sourcepub fn assert_match<M, MF, SF>(
config: ShadowRunConfig,
model_factory: MF,
scenario_fn: SF,
) -> ShadowRunResult
pub fn assert_match<M, MF, SF>( config: ShadowRunConfig, model_factory: MF, scenario_fn: SF, ) -> ShadowRunResult
Auto Trait Implementations§
impl Freeze for ShadowRun
impl RefUnwindSafe for ShadowRun
impl Send for ShadowRun
impl Sync for ShadowRun
impl Unpin for ShadowRun
impl UnsafeUnpin for ShadowRun
impl UnwindSafe for ShadowRun
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