The components¶
Xratu runs as three planes, and each plane is a small set of named parts. This page names each one and says what it does. The control plane and the data plane are currently written in Python, and the kernel is written in Rust.
Three images are published, one per plane:
| Image | Holds |
|---|---|
xratu-control-plane |
The API server, the scheduler, the controller manager, the assignment dispatcher and the store |
xratu-data-plane |
xratud, the node daemon, and its component set |
xratu/kernels/execd |
The kernel, used as the base of every project runtime |
How the planes connect¶
flowchart LR
OP["Operators and authors<br/>CLI, SDK, API"]
CP["Control plane<br/>decides and records"]
DP["Data plane node<br/>xratud"]
PR["Project runtime<br/>kernel"]
OP -->|"declare intent"| CP
DP -->|"pull work"| CP
DP -->|"report status and evidence"| CP
DP -->|"materialise and deploy"| PR
DP -->|"supervise and operate"| PR
PR -->|"heartbeat, receipts and logs"| DP
Every connection to the control plane is opened by something else. The control plane never dials a node, which is why a node needs outbound reachability only, and why a node keeps working while the control plane is unreachable.
Control plane¶
The control plane decides what should happen and records what did. It holds desired state, admits or refuses every request against policy, and hands work out to nodes that ask for it.
flowchart TB
API["API server"] --> ST["Store"]
ST --> SCH["Scheduler"]
SCH --> DS["Dispatch substrate"]
DS --> API
CMG["Controller manager"] --> ST
The API server¶
The request surface. Every CLI command, SDK call, and node report arrives here, is authenticated into an actor, and is checked against that actor's role bindings before anything is written.
Its routers are owned per capability rather than grouped by HTTP concern, so a domain's endpoints sit beside the rules that govern them and a change to one domain does not reach into another.
The scheduler¶
Selects the data-plane owner of each project runtime from scheduler capability records. Candidate health, drift state, tenant scope and approved runtime namespaces determine eligibility. Placement and ownership fences are recorded with the project deployment desired state. See Pools, tenant scope, and placement.
The controller manager¶
The reconcile loop. One elected leader runs a fixed sequence of controllers on every cycle, and each controller drives one kind of resource from the state it is in toward the state that was declared.
Each cycle validates persisted workflow definitions, recovers assignment leases, reconciles builds, project and model deployments, integration coverage, assignment convergence and model autoscale-to-zero state.
The dispatcher¶
Publishes assignments when an authenticated data-plane node pulls work. Each assignment family constructs its own payload; common admission applies target, tenant, quota, lease and immutable-envelope rules before the ledger records the claim.
The store¶
Persistence, owned per capability rather than shared as one schema. The control plane is the source of truth, and this is where that truth lives: desired state, tenancy, bindings, policy attachments, audit and evidence metadata.
Data plane¶
A data plane is a node that runs your work. There is one daemon per node, and everything else on the node is driven by it.
xratud, the node daemon¶
xratud is a daemon in the ordinary sense: a program that starts once, runs
continuously in the background, and never exits on its own. One runs on every
data plane node for the life of that node.
Four things define what it is:
It is the only part of a node that talks to the control plane. Adapters, actuators and runtimes on the node go through it, which keeps a single audited path in and out.
It pulls, and is never pushed to. Work is collected by asking, using a durable cursor that records how far the node has read. Nothing needs to reach into the node, so the node can sit behind a private network with no inbound route.
It owns no desired state. The node holds no opinion about what should be running. It reads the control plane's decisions, executes them, and reports what happened. Its configuration is itself derived from the control plane; the only thing stored locally to start it is enough to make first contact.
It converges rather than executes once. Every cycle re-reads the current state and does whatever is outstanding, so a node that was unreachable, was restarted, or missed a decision catches up by running its ordinary loop rather than by a repair procedure.
What the daemon does on every cycle¶
flowchart LR
P["Preparation"] --> H["Node heartbeat"] --> I["Assignment intake"] --> E["Build and deployment reconciliation"] --> C["Reports and kernel return drain"]
C -.->|"next cycle"| P
| Phase | What happens |
|---|---|
| Preparation | Refresh registration, runtime identity, lease recovery, capacity and observability state |
| Heartbeat | Report current capability and health before asking for anything new |
| Assignment intake | Pull admitted assignments into a bounded local queue, using the durable watch cursor |
| Build and deployment reconciliation | Apply admitted build, materialisation, project deployment, model and operator assignments |
| Reports and kernel return drain | Flush assignment reports, heartbeat and receipt-backed kernel evidence, then return the cycle summary |
Reporting comes before intake deliberately: the control plane knows the node's current capacity and health before it decides what else to give it.
Each assignment is routed to exactly one owner by kind. The routes cover project deployment, kernel operator controls, builds, runtime closure, package publication, model serving, model binding, secrets and observability. The lease and runtime handle are finalised on every route. After deployment, workflow and agent calls enter the kernel directly through the Application ABI.
The component set¶
Around the loop sit components with one job each. The ones an operator meets most often:
| Component | What it does |
|---|---|
| Control plane client | The single outbound transport, with retry and backoff |
| Runtime orchestrator | Sequences execution of an admitted assignment |
| Assignment lease manager | Holds and renews the lease that makes execution exclusive to this node |
| Status reporter outbox | Durable reporting that survives the control plane being unreachable |
| Telemetry batching mux | Batches telemetry and log egress |
| Project runtime actuator | Materialises project runtimes and drives their lifecycle |
| Resolver identity, XSRP client, XSRP gateway and delivery projection | Admit exact assignment grants, resolve through the XSRP gateway installed with the data plane and project metadata-only delivery |
| Policy and determinism enforcement adapters | Apply the compiled rules at execution time |
| Identity trust manager | Runtime identity and its refresh |
| Artifact manager and cache manager | Fetch, verify and cache artifact bytes |
| Probe server and health lifecycle manager | Liveness, readiness and drain |
Fabric, bridge, and the identity peer¶
Two fabric capabilities handle private connectivity between nodes. The private fabric carries routes between data planes; the binding fabric carries a project's calls to a model hosted on a different node. See Pools across regions and clouds.
The kernel bridge hands admitted launch and operator contracts to a kernel, supervises its heartbeat and drains receipt-backed evidence and logs. The kernel executes the deployed project independently between those operational interactions.
The SPIRE agent runs beside xratud as a peer process, supplying workload
identity. It is a separate process with its own lifecycle rather than a
subsystem of the daemon.
Kernel¶
The kernel executes your code. It runs with each project runtime rather than as a shared service, so there is one kernel per project runtime and its lifecycle is that runtime's.
flowchart TB
NC["Nucleus core<br/>authority state machine"] --> CM["Cell monitor<br/>trusted boundary"]
CM --> PC["Process cells<br/>one per block"]
Nucleus core¶
The authority state machine. Every action the runtime takes is admitted and sequenced here, which is what makes execution deterministic and what makes policy a gate rather than a filter: a call that policy refuses is never issued.
Nucleus host¶
The layer beneath the core that integrates with the operating system.
Cell monitor¶
The trusted boundary between the core and guest code. Guest code asks the monitor; the monitor asks the core.
Process cells¶
The isolation unit. Each reusable capability block executes in its own cell, a separate protection domain, so a block's code cannot reach another block's live resources. Data crosses between cells explicitly.
Runtime providers, control surface, and ABI¶
Runtime providers are the language runtimes the kernel admits, such as the CPython provider. Operator control is the kernel's control surface and the return lane is the path evidence returns on. The ABI layer is the typed protocol between all of them.
Reading the names in familiar terms¶
| Xratu | Closest equivalent |
|---|---|
| API server | kube-apiserver |
| Controller manager | kube-controller-manager |
| Scheduler | kube-scheduler |
| Store | etcd, in the sense of being the source of truth |
xratud |
kubelet |
| Process cell | A container, with a policy gate around every call |
The equivalences hold for role rather than for mechanism, and three differences are worth carrying forward: the control plane never dials a node, policy is enforced inside the kernel at fixed points rather than at admission, and every run produces signed evidence as a first-class output.
Where each component is described in full¶
- Component inventory for the complete lookup table.
- Control plane components for the API server, scheduler, controller manager, dispatcher and store.
- Data plane components
for
xratud, its cycle and its component set. - Kernel internals for the nucleus core, cells, providers and the ABI layer.
- What you are deploying for how these map onto what you install.