pub struct GateConfig {
pub enabled: bool,
pub rate: f32,
pub shock: f32,
pub threshold: f32,
pub floor: f32,
pub min_samples: u32,
}Expand description
Tuning for a ConfidenceGate. The default is DISABLED, which
makes every gated sidecar reproduce the ungated behavior
exactly - enabling the gate is an explicit, per-spawn choice.
Fields§
§enabled: boolMaster switch. false = pass every recommendation through
untouched (today’s semantics).
rate: f32Logistic growth rate per agreeing scan. At the default 0.9 a recommendation must hold for 5 consecutive scans to carry conviction from the floor across the threshold.
shock: f32Multiplier applied to conviction on a recommendation change or an external regime-shift signal.
threshold: f32Conviction level at which a held recommendation fires.
floor: f32Lower clamp and post-fire reset for conviction. Nonzero because the logistic map’s fixed point at 0 is absorbing - conviction parked at exactly 0 never grows again.
min_samples: u32Minimum consecutive agreeing scans before a decision is
eligible regardless of conviction. 0 disables the sample
gate. min_samples_for_arity derives the recommended
floor from the decision’s arity.
Implementations§
Source§impl GateConfig
impl GateConfig
Sourcepub fn enabled_with_arity(k: u32) -> Self
pub fn enabled_with_arity(k: u32) -> Self
An enabled gate with the sample floor derived from the
decision’s arity via min_samples_for_arity.
Trait Implementations§
Source§impl Clone for GateConfig
impl Clone for GateConfig
Source§fn clone(&self) -> GateConfig
fn clone(&self) -> GateConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more