Kernel internals¶
The kernel, XCK, is the operating system a project's agents and workflows run on. It is a Rust user-space kernel over Linux process cells, one per project runtime. It runs every reusable capability block in a cell of its own, holds all runtime authority as grants and handles, enforces policy before each action, and records, scores and returns evidence of every step. Once a project is deployed, its runs belong to the kernel: the control plane and the data plane deliver sealed assignments and supervise its lifecycle, and what returns to them is evidence. This section covers how each of those functions works.
The model¶
- Execution model and invariants covers what the kernel is, the invariant every part holds to, and what reaches it already decided.
The kernel's parts¶
- Nucleus core: the authority state machine covers the deterministic core that admits every grant, handle, task and effect.
- Nucleus host: OS integration covers the trusted shell that runs processes, timers and effects for the core.
- Cell monitor: the trusted guest boundary covers the trusted process in front of each untrusted runtime.
- Cells, containment, and placement covers what a cell is, the containment applied before block code runs, and how cells are placed.
What runs in a cell¶
- Runtime composition covers the foundation, the capsule and the resolved runtime closure a cell starts from.
- Language and framework neutrality covers how any library runs under the kernel without the kernel knowing it.
- Runtime providers covers the provider protocol and the CPython provider that runs block code.
- Secret handling in the kernel covers how a credential reaches a block while the nucleus holds none.
How cells communicate¶
- Protocol and ABI layer covers the typed interfaces, values and codecs every call is made of.
- Transport covers the channels between cells, the operator lane and the return lane.
Running a project¶
- The Application Run Boundary covers Runs, the Kernel Application ABI and how kernel-local callers control them.
- Primitive execution and the flow IR covers how each primitive of a compiled workflow executes.
- State channel and data-class taint covers shared run state and the labels carried with its values.
- Suspend, approval, and resume covers how a run stops for a signal or an approval and resumes where it stopped.
Enforcement, telemetry and scoring¶
- Policy enforcement covers the six hooks, the evaluator and the effects that make policy a hard gate.
- Native telemetry covers the typed facts the kernel records as a run executes.
- The execution evidence graph covers the append-only, hash-chained record of a run and how it returns.
- Native scoring covers the six headline scores computed from a run's sealed telemetry.
State, change and failure¶
- Store and durable state covers what the kernel keeps and what outlives a nucleus epoch.
- Lifecycle, drain, and upgrade covers ownership, fencing, two-phase drain and upgrading a running runtime.
- Resource handoff covers moving a live resource to a new owner safely.
- Faults and failure containment covers the closed fault taxonomy and how far a failure reaches.
- Restart, epochs, and stale handles covers what happens to cells and handles when the nucleus restarts.
Assurance¶
- Threat model and assurance covers what each component is trusted with and what the kernel assures.