pub struct L2Policy {
pub prior: [f64; 2],
pub beta: f64,
pub alpha: f64,
pub committed: bool,
pub expert: usize,
pub expert_probabilities: [f64; 4],
pub gate_state: L2GateState,
pub confidence: f64,
pub spectral_weighting: bool,
}Expand description
Current L2 policy parameters, expert mixture, gate state, and confidence.
Fields§
§prior: [f64; 2]Prior probabilities for the two bandit arms.
beta: f64Strength of KL regularization applied to the policy.
alpha: f64Current L2 adaptation rate.
committed: boolWhether this policy has been committed for use.
expert: usizeIndex of the selected L2 expert.
expert_probabilities: [f64; 4]Current mixture probabilities for the L2 experts.
gate_state: L2GateStateState of the L2 update gate.
confidence: f64Confidence assigned to the current policy estimate.
spectral_weighting: boolExperimental spectral KL weighting. Disabled for legacy controllers.
Implementations§
Source§impl L2Policy
impl L2Policy
Sourcepub fn effective(self) -> Self
pub fn effective(self) -> Self
The only value that may cross the L2 -> L0 commit boundary.
This is deliberately a second validation at the consumer as well as at the producer. A proposal, an L0 dwell/margin hold, a dormant controller, KEEP_L0, a veto, and a malformed snapshot all collapse to exactly the same zero policy. Keeping this check here prevents a future producer from accidentally turning a diagnostic field into an intervention.