pub struct L2MetaLayer {Show 35 fields
pub monitor: MetaMonitor,
pub detector: EmergenceDetector,
pub fixed_point: OmegaDayanFixedPoint,
pub modulator: MetaModulator,
pub enabled: bool,
pub in_fixed_point: bool,
pub dwell_steps: u64,
pub last_alignment_score: f64,
pub commit_threshold: f64,
pub commit_cooldown_steps: u64,
pub commit_cooldown_remaining: u64,
pub last_consequence_score: f64,
pub defensive_mode: bool,
pub negative_consequence_streak: u32,
pub rollback_effect: Option<RuleEffect>,
pub external_attention: bool,
pub stable_consequence_steps: u32,
pub reward_change_score: f64,
pub error_change_score: f64,
pub awaiting_consequence: bool,
pub negative_reward_streak: u32,
pub negative_reward_required: u32,
pub controller: ResidentController,
pub pending_l1_rollback: bool,
pub last_rejection_reason: Option<String>,
pub pending_policy: L2Policy,
pub applied_policy: L2Policy,
pub last_error: Option<f64>,
pub last_reward: f64,
pub consecutive_l1_rollbacks: u32,
pub current_cycle_recoveries: u32,
pub spectral_reflector: L1SpectralReflector,
pub spectral_gate: L2CognitiveGate,
pub spectral_history: Vec<f64>,
pub spectral_control_enabled: bool,
}Expand description
Data structure representing L2 meta layer.
Fields§
§monitor: MetaMonitorMonitor for this value.
detector: EmergenceDetectorDetector for this value.
fixed_point: OmegaDayanFixedPointFixed point for this value.
modulator: MetaModulatorModulator for this value.
enabled: boolWhether L2 is allowed to change biases, constraints, or RuleEffect. The monitor still runs when disabled so benchmark baselines retain comparable observability without receiving L2 interventions.
New kernels enable bounded interventions by default. Use
Kernel::set_l2_enabled(false) for an observational baseline.
in_fixed_point: boolWhether L2 is currently in a fixed-point regime.
dwell_steps: u64How many consecutive steps we have been inside the fixed point.
last_alignment_score: f64Most recent L2 alignment score.
commit_threshold: f64Commit threshold for this value.
commit_cooldown_steps: u64Number of commit cooldown.
commit_cooldown_remaining: u64Commit cooldown remaining for this value.
last_consequence_score: f64Most recent consequence score.
defensive_mode: boolWhether defensive mode is enabled or active.
negative_consequence_streak: u32Negative consequence streak for this value.
rollback_effect: Option<RuleEffect>Optional rollback effect.
external_attention: boolWhether external attention is enabled or active.
stable_consequence_steps: u32Number of stable consequence.
reward_change_score: f64Reward change score for this value.
error_change_score: f64Error change score for this value.
awaiting_consequence: boolWhether awaiting consequence is enabled or active.
negative_reward_streak: u32Negative reward streak for this value.
negative_reward_required: u32Negative reward required for this value.
controller: ResidentControllerController for this value.
pending_l1_rollback: boolWhether pending L1 rollback is enabled or active.
last_rejection_reason: Option<String>Most recent rejection reason.
pending_policy: L2PolicyPending policy for this value.
applied_policy: L2PolicyValidated policy used by the current L0 decision and its outcome.
last_error: Option<f64>Most recent error.
last_reward: f64Most recent reward.
consecutive_l1_rollbacks: u32Consecutive l1 rollbacks for this value.
current_cycle_recoveries: u32Current cycle recoveries for this value.
spectral_reflector: L1SpectralReflectorSpectral reflector for this value.
spectral_gate: L2CognitiveGateSpectral gate for this value.
spectral_history: Vec<f64>Collection of spectral history.
spectral_control_enabled: boolWhether spectral control enabled.
Implementations§
Source§impl L2MetaLayer
impl L2MetaLayer
Sourcepub fn blocks_l1_write(&self) -> bool
pub fn blocks_l1_write(&self) -> bool
Returns true when L2 holds exclusive write priority over RuleEffect
(active gate intervention, defensive mode, committed policy, or cooldown).
Sourcepub fn step(
&mut self,
state: &SystemState,
biases: BTreeMap<String, f64>,
constraints: BTreeMap<String, f64>,
_current_effect: &RuleEffect,
) -> Result<L2Result>
pub fn step( &mut self, state: &SystemState, biases: BTreeMap<String, f64>, constraints: BTreeMap<String, f64>, _current_effect: &RuleEffect, ) -> Result<L2Result>
Performs step for this type.
Sourcepub fn configure_spectral_control(&mut self, enabled: bool)
pub fn configure_spectral_control(&mut self, enabled: bool)
Performs configure spectral control for this type.
Sourcepub fn observe_consequence(
&mut self,
reward_delta: f64,
error_delta: f64,
risk_delta: f64,
)
pub fn observe_consequence( &mut self, reward_delta: f64, error_delta: f64, risk_delta: f64, )
Feed back the short-term consequence of the last committed modulation. Negative outcomes extend the commit cooldown and leave fixed-point mode.
Sourcepub fn take_rollback_effect(&mut self) -> Option<RuleEffect>
pub fn take_rollback_effect(&mut self) -> Option<RuleEffect>
Performs take rollback effect for this type.