pub enum EnvelopeRule {
Auto(AutoPromotion),
Approval,
Canary {
fraction: f64,
auto: AutoPromotion,
},
}Expand description
What the envelope declares for one candidate kind. Closed enum — the gate matches exhaustively.
Variants§
Auto(AutoPromotion)
May auto-promote when the evaluation clears the declared evidence thresholds. Inside the envelope, the envelope itself is the standing approval — versioned and declared, not a silent default.
Approval
Always requires a human ApprovalToken scoped to
promotion_effect_id, whatever the evidence says. The token’s
approved_by is the promotion’s attribution.
Canary
Auto-promotes into a canary: the candidate binds to the declared
fraction of new runs (admission picks by seeded draw —
canary_admits — so a recorded run reproduces its assignment),
the static version serving the rest. The evidence thresholds gate
entry into the canary, exactly as for EnvelopeRule::Auto.
Fields
auto: AutoPromotionThe evidence thresholds gating canary entry.
Trait Implementations§
Source§impl Clone for EnvelopeRule
impl Clone for EnvelopeRule
Source§fn clone(&self) -> EnvelopeRule
fn clone(&self) -> EnvelopeRule
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more