Expand description
Stable host/kernel ABI types.
This module is the narrow contract SDKs should bind to over time. It wraps the existing loop state machine without changing behavior, giving FFI layers a versioned input/action/observation vocabulary before the larger runner refactor lands.
Structs§
- Governance
Config - K2: the governance sub-bundle of
RunConfig— the same five fields as theLoadGovernancePolicyevent, grouped so a run’s whole governance posture travels as one value. - Kernel
Input - Kernel
Runtime - Pure kernel runtime wrapper. SDKs should migrate toward feeding
KernelInputvalues here instead of directly drivingLoopStateMachine. - Kernel
Step - Policy
Rule - One permission rule for the governance ABI: glob
tool_pattern→ action. - Rate
Limit Spec - Per-tool rate limit for the governance ABI.
Maps to
crate::governance::rate_limit::RateLimit. - RunConfig
- K2: a bundle of run-setup configuration carried by the
KernelInputEvent::ConfigureRunevent. Each field maps 1:1 to a granularSet*/Load*event;None/absent leaves that aspect untouched. This is the host-side analogue of the SDK’sapplyKernelPolicies— one event for the whole setup.
Enums§
- Constraint
Spec - Parameter constraint for the governance ABI.
Maps to
crate::governance::constraint::ConstraintRule(structural rules only; pattern/predicate matching stays in the SDK viaVetoCheck). - Kernel
Action - Kernel
Input Event - Kernel
Observation - Kernel
Pressure Action - Policy
Action - Serializable permission action for the governance ABI.
Mirrors
crate::governance::permission::PermissionActionwithout coupling the wire format to the internal type. - Transaction
Observation - Transaction-boundary observations emitted by the kernel.