pub struct Gatekeeper {
pub config: GatekeeperConfig,
}Expand description
The gatekeeper evaluates a challenger scorecard against the champion.
Fields§
§config: GatekeeperConfigImplementations§
Source§impl Gatekeeper
impl Gatekeeper
pub fn new(config: GatekeeperConfig) -> Self
Sourcepub fn evaluate(
&self,
run_id: Uuid,
agent_id: Uuid,
champion_scorecard: Option<&Scorecard>,
challenger_scorecard: &Scorecard,
champion_passing_scenario_ids: &[Uuid],
challenger_traces: &[Trace],
challenger_seed_scores: &[f64],
) -> Result<PromotionDecision>
pub fn evaluate( &self, run_id: Uuid, agent_id: Uuid, champion_scorecard: Option<&Scorecard>, challenger_scorecard: &Scorecard, champion_passing_scenario_ids: &[Uuid], challenger_traces: &[Trace], challenger_seed_scores: &[f64], ) -> Result<PromotionDecision>
Evaluate all gates and return a promotion decision.
champion_scorecard: None if no champion exists yet (first promotion is auto-approved).
challenger_scorecard: The scorecard from the candidate run.
champion_passing_scenario_ids: The set of scenario IDs the champion passed.
challenger_traces: The challenger’s traces (for regression analysis).
challenger_seed_scores: Aggregate scores from each seed run (for stability).
Auto Trait Implementations§
impl Freeze for Gatekeeper
impl RefUnwindSafe for Gatekeeper
impl Send for Gatekeeper
impl Sync for Gatekeeper
impl Unpin for Gatekeeper
impl UnsafeUnpin for Gatekeeper
impl UnwindSafe for Gatekeeper
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