pub struct ShadowSignal {
pub would_serve_rung: Option<u32>,
pub would_pass: bool,
pub projected_cost_usd: f64,
pub actual_cost_usd: f64,
pub skipped: Option<String>,
}Expand description
The rollout arm this request landed in (ADR 0009 D1), recorded so an auditor can re-derive arm membership from the receipt alone. Absent when the route has no rollout — byte-identical What Firstpass would have done for an observed request (ADR 0009 D2).
This describes a counterfactual that was never served, so it must never enter the conformal calibration set for served failures — it is a separate estimate with its own sample size. Pooling it with served outcomes would let a projection contaminate the published bound.
Fields§
§would_serve_rung: Option<u32>Rung that would have been served, if any gate passed.
would_pass: boolWhether the ladder would have produced a servable answer at all.
projected_cost_usd: f64What the shadow evaluation cost to run.
actual_cost_usd: f64What the request actually cost upstream, for comparison.
skipped: Option<String>Present when shadow did not run, saying why — a skipped measurement is recorded rather than silently absent, so a projection that has stopped tracking is visible in the record.
Trait Implementations§
Source§impl Clone for ShadowSignal
impl Clone for ShadowSignal
Source§fn clone(&self) -> ShadowSignal
fn clone(&self) -> ShadowSignal
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more