The component set¶
Everything xratud does, grouped by the job it does. xratud is one process
with one log stream, so use this to turn a symptom in that stream into the part
of the daemon that owns it.
The node¶
flowchart TB
subgraph PROC["xratud, one process"]
direction LR
T["Transport"]
O["Orchestration"]
Q["Leases and queue"]
X["Outbox and telemetry"]
A["Adapters"]
end
subgraph DUR["On the node's volume, kept across restarts"]
direction LR
ID[("Identity state")]
CU[("Assignment cursor")]
end
subgraph TMP["Process-scoped, discarded with the process"]
direction LR
LE[("Lease state")]
SP[("Outbox and audit spools")]
end
T --- ID
T --- CU
Q --- LE
X --- SP
The process box is rebuilt at every start. Of what it holds, the identity state and the assignment cursor are on the node's volume and are read back, which is why a restart is a continuation rather than a new node. The lease state and the spools belong to one process: they carry work and reports through that process's life, including while the control plane is unreachable, and a new process starts them empty. The leases that decide ownership are on the control plane's ledger, and the evidence the spools were delivering is still in the kernel's continuity store.
Transport¶
| Component | Owns |
|---|---|
| Control-plane client | Every outbound call to the control plane, with per-operation backoff and degraded-mode classification |
| Protocol handshake | Version agreement, and refusing to proceed on a mismatch |
| Identity and trust | The node's own credential, its SPIRE registration entries, and trust bundle agreement |
| Kernel bridge | The dialled operator lane and the return lane's cursor and acknowledgement |
| Private fabric | The mTLS route to another node when a project and its model are apart |
Orchestration¶
| Component | Owns |
|---|---|
| Runtime orchestrator | Sequencing what a cycle does with the assignments it holds |
| Project runtime actuator | Rendering and applying the project Deployment and Service, and resolving ready replicas |
| Build executor | Running the Kubernetes-native build the control plane assigned |
| Kernel image resolver | Resolving the system kernel image by profile, version or digest |
| Model runtime adapter | Reconciling model serve runtimes and observing them |
| Performance governor | The limits a cycle's worker budget is computed against |
Leases and queue¶
| Component | Owns |
|---|---|
| Assignment lease manager | Claiming, renewing and releasing the local lease on an assignment |
| Local queue | Assignments admitted and not yet worked, with a bounded depth |
| Cache manager | Artifact, environment and model metadata lookups |
Outbox and telemetry¶
| Component | Owns |
|---|---|
| Status reporter outbox | Spooling of status, events and logs for the life of the process |
| Telemetry mux | Selecting a transport mode per channel and flushing within a budget |
| Trace and audit serializer | Stamping the correlation tuple onto what the node reports |
| Audit attestation writer | The attestation records a run produces |
Adapters¶
Adapters apply on the node what the control plane decided, and carry the resolved policy to the kernel, which enforces it:
| Adapter | Role |
|---|---|
| Policy enforcement | Seals the resolved policy into the run-plan for the kernel's six hooks, and relays the kernel's policy decisions |
| Determinism enforcement | The assignment's determinism contract |
| Idempotency contract | Replay-safe reprocessing of an assignment |
| Resolver identity, XSRP client and delivery projection | Admitting exact assignment grants, performing bounded XSRP exchange and projecting metadata-only resolved delivery |
| Traffic quota producer | The quota and rate-limit signals the node reports upward |
The distinction matters when reading a refusal. An adapter refusing something is the node applying a control-plane decision, so the explanation is in the assignment rather than in the node's configuration.
What runs beside it rather than inside it¶
The SPIRE agent is a peer process on the node. xratud consumes its Workload
API as an ordinary workload to obtain its own identity. See
The SPIRE agent.