Skip to main content

KernelEvent

Type Alias KernelEvent 

Source
pub type KernelEvent = AuditEvent;
Expand description

Public event stream for integrators (same shape as AuditEvent).

Aliased Type§

pub enum KernelEvent {
    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,
    },
}

Variants§

§

Step

Fields

§step: u64
§goal: String
§action: String
§avg_err: f64
§damping: f64
§

PatchAccepted

Fields

§step: u64
§patch_id: Uuid
§damping: f64
§description: String
§

PatchRejected

Fields

§step: u64
§reason: String
§

Checkpoint

Fields

§checkpoint_id: Uuid
§step: u64
§label: String
§

Rollback

Fields

§checkpoint_id: Uuid
§step_before: u64
§

TaskEpisode

Fields

§task: String
§reward: f64
§steps: u32
§

ToolAllowed

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

Fields

§tool: String
§

ToolDenied

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

Fields

§tool: String
§reason: String
§

FixedPointEntered

L2 entered the fixed-point regime.

Fields

§step: u64
§alignment_score: f64
§

FixedPointExited

L2 exited the fixed-point regime.

Fields

§step: u64
§alignment_score: f64
§dwell_steps: u64
§

L2ModulationProposed

Fields

§step: u64
§score: f64
§

L2ModulationCommitted

Fields

§step: u64
§score: f64
§gain: f64