#[non_exhaustive]pub struct KernelStatus {Show 35 fields
pub schema_version: u32,
pub total_steps: u64,
pub avg_prediction_error: f64,
pub adaptation_score: f64,
pub error_damping: f64,
pub explore_bonus: f64,
pub risk_tolerance: f64,
pub active_modules: usize,
pub strategy_count: usize,
pub case_count: usize,
pub state_path: String,
pub checkpoint_count: usize,
pub in_fixed_point: bool,
pub dwell_steps: u64,
pub last_alignment_score: f64,
pub max_risk: f64,
pub self_modify_enabled: bool,
pub l2_enabled: bool,
pub l2_commit_cooldown: u64,
pub last_l2_consequence_score: f64,
pub l2_defensive_mode: bool,
pub l2_negative_consequence_streak: u32,
pub last_l2_decision: Option<L2DecisionRecord>,
pub l2_gate_state: L2GateState,
pub l2_alpha: f64,
pub l2_expert_weights: BTreeMap<String, f64>,
pub l2_beta: f64,
pub l2_lyapunov_potential: f64,
pub l2_lyapunov_veto: bool,
pub l2_meta_cache_hit: bool,
pub l2_dayan_residual: f64,
pub l2_applied_policy: L2Policy,
pub l2_pending_policy: L2Policy,
pub l2_meta_cache_entries: usize,
pub l2_last_rejection_reason: Option<String>,
}std only.Expand description
Snapshot of the kernel’s current operational status and L0/L2 metrics.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schema_version: u32Version of the serialized kernel-state schema.
total_steps: u64Total number of kernel steps completed.
avg_prediction_error: f64Average prediction error recorded by the kernel.
adaptation_score: f64Current score summarizing the kernel’s adaptation.
error_damping: f64Factor applied to reduce prediction error.
explore_bonus: f64Score adjustment that favors exploration over exploitation.
risk_tolerance: f64Risk threshold used when choosing actions.
active_modules: usizeNumber of active cognitive modules.
strategy_count: usizeNumber of stored strategies.
case_count: usizeNumber of remembered cases.
state_path: StringPath to the persisted kernel state.
checkpoint_count: usizeNumber of available checkpoints.
in_fixed_point: boolWhether L2 is currently in a fixed-point regime.
dwell_steps: u64Number of steps spent in the current regime or arm.
last_alignment_score: f64Most recent L2 alignment score.
max_risk: f64Maximum risk permitted by the active policy.
self_modify_enabled: boolWhether L1 self-modification is enabled.
l2_enabled: boolWhether the L2 meta-controller is enabled.
l2_commit_cooldown: u64Steps remaining before another L2 policy commit is allowed.
last_l2_consequence_score: f64Most recent consequence score observed by L2.
l2_defensive_mode: boolWhether L2 is operating in defensive mode.
l2_negative_consequence_streak: u32Number of consecutive negative consequences observed by L2.
last_l2_decision: Option<L2DecisionRecord>Most recent L2 decision, if one has been recorded.
l2_gate_state: L2GateStateCurrent L2 gate state.
l2_alpha: f64L2 policy learning-rate parameter.
l2_expert_weights: BTreeMap<String, f64>Current weights assigned to L2 experts.
l2_beta: f64L2 policy regularization parameter.
l2_lyapunov_potential: f64Current Lyapunov stability potential.
l2_lyapunov_veto: boolWhether the stability monitor vetoed an L2 change.
l2_meta_cache_hit: boolWhether the most recent L2 lookup hit the meta-cache.
l2_dayan_residual: f64Residual used by the L2 Dayan stability calculation.
l2_applied_policy: L2PolicyL2 policy currently applied at the control boundary.
l2_pending_policy: L2PolicyL2 policy proposed but not yet applied.
l2_meta_cache_entries: usizeNumber of entries currently held by the L2 meta-cache.
l2_last_rejection_reason: Option<String>Reason the most recent L2 policy proposal was rejected, if any.