Skip to main content

KernelEvent

Type Alias KernelEvent 

Source
pub type KernelEvent = AuditEvent;
Available on crate feature 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

§step: u64

Kernel step number associated with the event.

§goal: String

Goal submitted for the step.

§action: String

Action selected or produced by the kernel.

§avg_err: f64

Average prediction error reported for the step.

§damping: f64

Prediction-error damping factor used for the step.

§

PatchAccepted

A proposed patch passed validation and was accepted.

Fields

§step: u64

Kernel step number associated with the patch.

§patch_id: Uuid

Unique identifier assigned to the accepted patch.

§damping: f64

Prediction-error damping factor used for the step.

§description: String

Human-readable summary of the accepted change.

§

PatchRejected

A proposed patch was rejected and not applied.

Fields

§step: u64

Kernel step number associated with the proposal.

§reason: String

Explanation for rejecting the patch.

§

Checkpoint

A kernel snapshot was saved as a checkpoint.

Fields

§checkpoint_id: Uuid

Identifier for the checkpoint.

§step: u64

Kernel step captured by the checkpoint.

§label: String

Human-readable label for the checkpoint.

§

Rollback

Kernel state was restored from a checkpoint.

Fields

§checkpoint_id: Uuid

Identifier for the checkpoint.

§step_before: u64

Kernel step number before the restore.

§

TaskEpisode

A task episode completed and its reward was recorded.

Fields

§task: String

Name or description of the completed task.

§reward: f64

Reward observed for the episode.

§steps: u32

Number of steps used by the episode.

§

ToolAllowed

Tool-call gate: proposed tool was on allow-list and recorded.

Fields

§tool: String

Name of the tool admitted by the gate.

§

ToolDenied

Tool-call gate: proposed tool blocked (deny-list or not allowed).

Fields

§tool: String

Name of the tool rejected by the gate.

§reason: String

Explanation for denying the tool call.

§

FixedPointEntered

L2 entered the fixed-point regime.

Fields

§step: u64

Kernel step at which L2 entered the regime.

§alignment_score: f64

Alignment score measured at entry.

§

FixedPointExited

L2 exited the fixed-point regime.

Fields

§step: u64

Kernel step at which L2 exited the regime.

§alignment_score: f64

Alignment score measured at exit.

§dwell_steps: u64

Number of steps spent in the current regime or arm.

§

L2ModulationProposed

L2 proposed a policy modulation.

Fields

§step: u64

Kernel step associated with the proposal.

§score: f64

Score assigned to the proposal.

§

L2ModulationCommitted

L2 committed a proposed policy modulation.

Fields

§step: u64

Kernel step at which the modulation was committed.

§score: f64

Score assigned to the committed modulation.

§gain: f64

Gain applied when committing the modulation.

§

ExternalStep

Telemetry for a step executed by an external host was processed.

Fields

§step_id: u64

Identifier of the step represented by this value.

§prediction_error: f64

Prediction error measured for this step.

§observed_risk: f64

Risk observed while executing this step.

§l1_gate: String

L1 gate decision returned to the host.

§keep_steady: bool

Whether the host was instructed to keep its current policy.

§patch_id: Option<String>

Identifier of the patch proposed for this step, if any.

§

ExternalRollback

The host was instructed to restore a checkpoint after a degraded step.

Fields

§step_id: u64

Identifier of the step represented by this value.

§checkpoint_id: String

Identifier for the checkpoint.

§consecutive_rollbacks: u32

Number of consecutive rollbacks at this point.

§next_cooldown: u64

Remaining cooldown steps before another patch may be considered.

§

ExternalStepDuplicate

A duplicate or out-of-order external step identifier was ignored.

Fields

§step_id: u64

Identifier of the step represented by this value.

§last_step_id: u64

Most recent external step identifier already processed.