pub type KernelEvent = AuditEvent;std only.Expand description
Public event stream for integrators (same shape as AuditEvent).
Aliased Type§
pub enum KernelEvent {
Show 15 variants
Step {
step: u64,
goal: String,
action: String,
avg_err: f64,
damping: f64,
},
PatchAccepted {
step: u64,
patch_id: Uuid,
damping: f64,
description: String,
},
PatchRejected {
step: u64,
reason: String,
},
Checkpoint {
checkpoint_id: Uuid,
step: u64,
label: String,
},
Rollback {
checkpoint_id: Uuid,
step_before: u64,
},
TaskEpisode {
task: String,
reward: f64,
steps: u32,
},
ToolAllowed {
tool: String,
},
ToolDenied {
tool: String,
reason: String,
},
FixedPointEntered {
step: u64,
alignment_score: f64,
},
FixedPointExited {
step: u64,
alignment_score: f64,
dwell_steps: u64,
},
L2ModulationProposed {
step: u64,
score: f64,
},
L2ModulationCommitted {
step: u64,
score: f64,
gain: f64,
},
ExternalStep {
step_id: u64,
prediction_error: f64,
observed_risk: f64,
l1_gate: String,
keep_steady: bool,
patch_id: Option<String>,
},
ExternalRollback {
step_id: u64,
checkpoint_id: String,
consecutive_rollbacks: u32,
next_cooldown: u64,
},
ExternalStepDuplicate {
step_id: u64,
last_step_id: u64,
},
}Variants§
Step
A kernel step completed.
Fields
PatchAccepted
A proposed patch passed validation and was accepted.
Fields
PatchRejected
A proposed patch was rejected and not applied.
Fields
Checkpoint
A kernel snapshot was saved as a checkpoint.
Fields
Rollback
Kernel state was restored from a checkpoint.
Fields
TaskEpisode
A task episode completed and its reward was recorded.
Fields
ToolAllowed
Tool-call gate: proposed tool was on allow-list and recorded.
ToolDenied
Tool-call gate: proposed tool blocked (deny-list or not allowed).
Fields
FixedPointEntered
L2 entered the fixed-point regime.
Fields
FixedPointExited
L2 exited the fixed-point regime.
Fields
L2ModulationProposed
L2 proposed a policy modulation.
Fields
L2ModulationCommitted
L2 committed a proposed policy modulation.
Fields
ExternalStep
Telemetry for a step executed by an external host was processed.
Fields
ExternalRollback
The host was instructed to restore a checkpoint after a degraded step.
Fields
ExternalStepDuplicate
A duplicate or out-of-order external step identifier was ignored.