Skip to main content

Module api

Module api 

Source
Available on crate feature std only.
Expand description

Public product API (S2 + S3 hardening + adapter injection + config).

Structs§

ClosedLoopSession
Stateful coordinator for running the kernel with internal or external telemetry.
ControlDirective
Control decisions returned to an external closed-loop host.
Kernel
Product-facing kernel. Generic over world I/O and decision maker so callers can inject adapters.
KernelMetricsSnapshot
Read-only, in-memory operational metrics for export to monitoring systems.
KernelStatus
Snapshot of the kernel’s current operational status and L0/L2 metrics.
L2PriorPayload
L2 policy and stability data supplied to the control plane.
LoopMatrixBenchmarkReport
Report of loop matrix benchmark.
LoopPresetBenchmarkRow
Data structure representing loop preset benchmark row.
ParamPatch
Single named policy-parameter update.
RulePatchPayload
Serialized payload describing a proposed rule update.
RunReport
Summary of the steps, accepted patches, and prediction-error change from a run.
StepTelemetry
External measurements supplied for one closed-loop step.
TrajectoryReplayRow
One parsed trajectory row with the fields shown in replay summaries.
TrajectoryReplaySummary
Offline summary of a trajectory.jsonl file (no world re-execution).

Enums§

ExternalOutcome
Outcome reported for an externally executed step.
LoopBenchmarkScenario
Identifies a supported loop benchmark scenario.

Constants§

DEFAULT_MAX_TRAJECTORY_BYTES
Default maximum size for a trajectory JSONL file (64 MiB).

Traits§

ClosedLoopKernel
Interface for a kernel that accepts internal steps or external telemetry.

Functions§

l2_step_damping
Compute a bounded [0.25, 1.0] step-size damping factor from L2 stability metrics (lyapunov_potential and alpha). Higher potential dampens multi-parameter L1 steps to prevent overshoot; returns 1.0 when L2 is off.
replay_trajectory_file
Read and summarize a trajectory.jsonl without running the kernel loop.
resolve_l1_gate
Resolves the effective value from the supplied inputs.
run_closed_loop_matrix_benchmark
Runs run closed loop matrix benchmark and returns its result.

Type Aliases§

BanditKernel
Kernel using standard UCB decision maker for bandit tasks.
DefaultKernel
Default concrete kernel type (simulation observer + sandboxed executor).
EventHook
In-process event callback (after audit append).