pub struct Calibration { /* private fields */ }Expand description
Count-based false-positive calibration for differential failures.
Every interaction failure must be adjudicated before the target has a verdict. The operational D23 target is exact rational arithmetic: spurious failures / evaluated merges must be strictly below 1/1000. This reports the observed rate. The frozen confidence rule is a sufficient zero-spurious test and remains indeterminate until its minimum sample is reached.
Implementations§
Source§impl Calibration
impl Calibration
Sourcepub fn record(
&mut self,
report: &DifferentialReport,
real_interaction: Option<bool>,
) -> Result<(), String>
pub fn record( &mut self, report: &DifferentialReport, real_interaction: Option<bool>, ) -> Result<(), String>
Records one report. Interaction failures require a ground-truth
adjudication (true = real interaction, false = spurious).
Clean and inconclusive reports must not carry an adjudication.
§Errors
An interaction is unadjudicated, or an adjudication is attached to a report that did not flag an interaction.
Sourcepub fn record_pending(
&mut self,
report: &DifferentialReport,
) -> Result<(), String>
pub fn record_pending( &mut self, report: &DifferentialReport, ) -> Result<(), String>
Records an interaction flag whose ground truth has not been decided.
It enters the observed denominator, but suppresses the target verdict
until an adjudication-led replay replaces it with Self::record.
§Errors
The report is not an interaction failure.
Sourcepub fn target_met(&self) -> Option<bool>
pub fn target_met(&self) -> Option<bool>
Whether the observed spurious-failure rate is strictly below 0.1%.
None means no merge has produced a conclusive three-revision result.
Trait Implementations§
Source§impl Clone for Calibration
impl Clone for Calibration
Source§fn clone(&self) -> Calibration
fn clone(&self) -> Calibration
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 Calibration
impl Debug for Calibration
Source§impl Default for Calibration
impl Default for Calibration
Source§fn default() -> Calibration
fn default() -> Calibration
Source§impl PartialEq for Calibration
impl PartialEq for Calibration
Source§fn eq(&self, other: &Calibration) -> bool
fn eq(&self, other: &Calibration) -> bool
self and other values to be equal, and is used by ==.