Component inventory¶
Every process and subsystem Xratu runs, the plane it belongs to, and the decision it owns. Use it to turn a symptom into the component that produced it: a placement that never happened is the scheduler, an assignment that arrived but never applied is the node's reconcile cycle, a call the kernel refused is the operator lane.
For how these components reach each other, see Component topology.
The whole system¶
flowchart TB
subgraph CP["CONTROL PLANE, one deployment"]
direction LR
API["API server"]
CTL["Controller manager<br/>scheduler, dispatcher"]
STORE[("Metadata store")]
API --- STORE
CTL --- STORE
end
subgraph YOURS["YOUR INFRASTRUCTURE"]
direction LR
NODE["xratud<br/>one per node"]
SPIRE["SPIRE agent<br/>peer daemon"]
RUNTIME["Project runtime<br/>kernel and cells"]
REG[("Registry")]
BUCKET[("Bucket")]
NODE --- SPIRE
NODE --> RUNTIME
NODE --- REG
NODE --- BUCKET
end
NODE -->|"pulls assignments, reports back"| API
Read the diagram for three things. The two halves touch at exactly one place, and the node initiates it. Everything that holds bytes sits in the lower half. And a kernel is reached only through the node that deployed it, never from the control plane and never from a client.
Control plane¶
The control plane is one deployment. Its components are separable by service role, and the loops that must run once are each held by their own named lease. A replica takes one of five roles:
all every component in one process
api the request surface
scheduler placement
controller the leader-elected reconcile loop
event-ingestor telemetry intake
| Component | Owns |
|---|---|
| API server | The request surface. Admission, scope resolution, RBAC evaluation, and the node-facing registration, pull, watch and report routes |
| Scheduler | Selects and refreshes project runtime ownership from scheduler capability records |
| Controller manager | The leader-elected reconcile loop for definitions, assignment leases, builds, deployments, integration coverage and model lifecycle |
| Dispatcher | Publishes claimed assignment envelopes when an authenticated data-plane node pulls work |
| Store | Persistence, owned per capability. One store boundary per service domain |
| Policy authority | Authoring, domain taxonomy, merge across the attachment hierarchy, and the effective snapshot and its digest |
| Bootstrap authority | The control-plane identity latch, trust bundle lifecycle, and install specs |
| Observability ingest | Audit, events, logs and metrics as a metadata system of record |
| Secret authority | Integration and binding revisions, exact project-auth admission, use-policy compilation, assignment-derived grants, coverage and resolution evidence |
| Model plane orchestrator | Model revisions, bindings, traffic governance and autoscale-to-zero |
The controller manager hosts the loops that move state forward without a request. Each is named, and each failure surfaces against its own name:
flow definition validation authored definition drift
assignment lease recovery and convergence assignment ownership
build operator project and model builds
project and model deployment reconciliation runtime desired state
integration coverage reconciliation secret readiness
model autoscale to zero model runtime capacity
Data plane¶
One xratud per node. It is a single process whose components are ordered by
the reconcile cycle rather than run as separate daemons.
| Component | Owns |
|---|---|
xratud |
The node daemon runtime, and the five-phase cycle it runs: preparation, heartbeat, intake, build and deployment reconciliation, completion and kernel return drain |
| Control plane client | The only outbound path to the control plane, including transport backoff and degraded-mode classification |
| Assignment lease manager | Claim, renew and release of the local lease on an assignment |
| Artifact manager | Digest and provenance verification, and localisation of artifact bytes |
| Build executor and kernel image resolver | Kubernetes-native image builds and resolution of the system kernel image by profile, version or digest |
| Project runtime actuator | Rendering and applying the project Deployment and Service, and resolving ready replicas |
| Kernel bridge | The runtime.* operator lane and the return-lane cursor, acknowledgement and replay |
| Status reporter outbox and telemetry mux | Process-scoped spooling of status, events and logs, and their adaptive transport |
| Identity and trust manager | The node's own SVID, SPIRE registration entries, and trust bundle agreement |
| Resolver identity, XSRP client and delivery projection | Exact grant admission, bounded XSRP exchange and metadata-only resolved delivery |
| Policy and determinism adapters | Sealing the resolved policy into the run-plan and relaying the kernel's policy decisions; checking the determinism contract before invocation |
| Model runtime adapter and traffic quota producer | Model serve reconciliation and the quota and rate-limit signals it reports |
| Private fabric | The mTLS tunnel between nodes when a project and its model sit on different nodes |
The SPIRE agent runs beside xratud on the node as a peer daemon. xratud
consumes the Workload API as an ordinary workload to obtain its own SVID.
Kernel¶
One kernel per project runtime replica, sharing that pod's lifecycle. Its components divide into four kinds of authority, and the division is enforced by what each is allowed to depend on.
Runtime authority. The parts that decide.
| Component | Owns |
|---|---|
| Nucleus core | The authority model, and every grant and lifetime in it: cell registry, channel, handle, resource, stream and buffer authority, task state, scheduling, resource accounting, secret authority, evidence effects, warm cell lifecycle and revocation |
| Nucleus host | Command dispatch, process and timer ingress, effect execution, the evidence sink bridge, and the restart epoch |
| Cell monitor | Guest supervision, the provider session and its frame validation, handle import and export, the owner-local resource slot table, and deadline and cancellation forwarding |
| Process cell | The process a block runs in: lifecycle, containment profile, cell epoch, filesystem view, resource limits and file descriptor hygiene |
| CPython provider | The provider binary and protocol server: interpreter preparation, module import, object construction, call invocation, exception adaptation, result classification, cooperative cancellation and quiesce |
| Secret handler | Broker supervision and invocation, credential delivery by file descriptor, and secret operation evidence |
| Kernel store | Durable and shared kernel state |
Nucleus core reaches no transport, no store and no OS API. The host calls into it and executes the effects it returns, which is what keeps the deciding part testable without a machine under it.
Protocol. Pure contracts and normalisation, with no state and no decisions.
| Component | Owns |
|---|---|
| Capability interface | Compiled interface admission, the interface model, conformance and evolution |
| Capability ABI | The value plane that crosses a cell boundary: value, resource, stream and buffer codecs, buffer descriptors and formats, tensor layout, attachment contract, result taxonomy, fault projection and bounded decode |
| Runtime provider protocol | The provider handshake, capabilities, and the prepare, dispatch, interrupt, release, health, quiesce and terminate contracts |
Surfaces. Two, and a caller reaches one or the other. Operator control
admits and dispatches a runtime.* command, checking identity, protocol
compatibility, trust bundle agreement and ownership per request. The syscall
surface is application-facing and carries run.*.
Transport. Bytes, channels and framing, owning no runtime decision.
| Component | Owns |
|---|---|
| Operator transport | The inbound control service and its workload identity |
| Return lane | The outbound sequenced envelope stream and its continuity store |
| Cell control channel | The bootstrap control lane, the reference call lane, its bounded queue and file descriptor handoff |
| Cell shared-memory channel | The call completion ring, the bulk attachment lane, credit backpressure, the memory model, ring reset and attachment reclamation |
What each plane depends on¶
None of these are discovered. Each is a configured endpoint or a declared identity, and a component that cannot resolve its dependency fails closed.
| System | Used by | For |
|---|---|---|
| PostgreSQL | Control plane | Metadata, lineage and index records |
| Object bucket | Data plane writes, control plane references | Telemetry, event, log and evidence payload bodies |
| OCI registry | Data plane | Package, image and artifact bytes |
| SPIRE server and agent | Data plane, kernel | Short-lived X.509-SVIDs over the Workload API |
| Kubernetes | Data plane | Project runtime namespaces, Deployments, Services and build jobs |