Skip to content

Architecture at a glance

Xratu is three planes with one responsibility each.

Plane Runs where Owns
Control plane One cluster you or Xratu operates Desired state: tenancy, versions, policy, assignments, trust material, governance
Data plane Each node you run, inside your own infrastructure Reconciling desired state into running workloads, and materialising the bytes that execution needs
Kernel With every project, as the system that project runs on Running the project: its agents, workflows and blocks, under enforcement, with evidence

No plane holds another plane's responsibility, and the contracts between them are narrow enough to enumerate. Architecture covers each plane in the depth needed to size, operate and debug it.

flowchart TB
  subgraph CP["CONTROL PLANE"]
    CPA["Tenancy<br/>actors, roles"]
    CPB["Catalog<br/>digests, releases"]
    CPC["Policy authority<br/>compile, merge, sign"]
    CPD["Build<br/>signed recipe"]
    CPE["Model plane"]
    CPF["Trust bundles"]
  end

  subgraph DP["DATA PLANE NODE"]
    DPA["Reconcile loop"]
    DPB["Materialise<br/>and verify"]
    DPC["Closure<br/>and image"]
    DPD["Secret binding"]
    DPE["Continuity<br/>cursors, acks"]
  end

  subgraph RT["KERNEL"]
    K["Authority, enforcement,<br/>evidence, scoring"]
    C1["Cell"]
    C2["Cell"]
    C3["Cell"]
    K --- C1
    K --- C2
    K --- C3
  end

  TEN[("Your registry,<br/>secret manager and gateway,<br/>object storage")]

  CP -- "assignment<br/>envelope, pulled" --> DPA
  DP -- "sealed run-plan" --> K
  DPB -. "artifact bytes" .- TEN
  DPD -. "secret values" .- TEN
  DPE -. "payload bodies" .- TEN

The control plane sits at the top because it is the source of truth: authority flows downwards from it. Desired state is resolved and signed there, a node pulls and materialises it, and the kernel runs it. The dotted edges are the tenant boundary. Bytes, secret values and telemetry payloads live on them, and none of the three crosses into the control plane.

Evidence travels back up the same path, which the next diagram follows.

The control plane is the source of truth

The control plane holds what should be true. Organisations and workspaces, actors and role bindings, published artifacts and their digests, compiled policy bundles and their attachments, project definitions and releases, trust material, and the assignments that tell a node what to build, deploy and reconcile.

It is also where resolution happens. When a project is built, the control plane pins artifact digests, compiles the workflow, merges the policy hierarchy into a frozen effective policy per step, and signs the result. That output is symbolic: identifiers, digests, versions and a signed manifest, with no artifact bytes in it. The design calls this the recipe, and the fact that it is byte-free is what allows the same control plane to govern workloads whose code it never sees. See Control plane as source of truth and CP recipe and DP bundle.

The model plane lives inside the control plane rather than beside it. Model revisions, bindings, traffic governance, scale-to-zero behaviour and lifecycle observability are control-plane concerns; the model plane is a logical plane, not a fourth runtime layer. See Model plane.

The control plane does not push work. It publishes desired state and waits to be asked.

The data plane reconciles and materialises

A data plane node pulls. It asks the control plane what it should be running, compares that against what it is running, and closes the gap. Nothing reaches a node because the control plane decided to send it; a node converges because it read its assignment and reconciled. See Reconciliation and pull-based execution.

The other half of the node's job is materialisation. The node fetches artifact bytes from the tenant's own registry, verifies every digest against the signed recipe, resolves and caches the dependency closure, composes the project runtime image on top of the kernel base image, resolves the secrets the project declares through the tenant's own XSRP gateway, and assembles the sealed run-plan the kernel will execute. See Materialization.

This is the boundary that matters commercially and for security review. Tenant artifact bytes, registry contents and credentials are handled on the data plane, inside the tenant's infrastructure, and a hosted control plane never receives them. Hosted, self-hosted and air-gapped deployments are the same architecture with the same contracts, not three product variants. See The tenant byte rule and The hosted and self-hosted split.

The node also owns the link to the kernels it manages, including their readiness, their ownership and the continuity of evidence coming back from them.

The kernel runs the project

The kernel is what your project runs on, in the sense that an operating system is what an application runs on. It admits the work, isolates it, gives it the authority it is allowed to hold, schedules it, enforces the rules on every action it takes, and records what happened. Agents, workflows and blocks are the applications; the kernel is the system underneath them.

One kernel runs with each project, not one shared kernel serving many, so a project gets its own system rather than a slice of somebody else's. Its lifecycle is bound to the project runtime, which is why rollout, scale-down and drain all operate at that boundary.

It is a Rust user-space capability kernel over process cells. A deterministic authority core owns grants, admission, cells, handles, tasks, streams and leases, and holds no sockets, no interpreter and no clock of its own. A host layer around it owns operating system integration and feeds it explicit commands. Trusted monitor processes supervise guests, and untrusted provider processes hold the interpreter, the native extensions, the third-party libraries and the live objects. Guest-native code never runs in the authority core. See Kernel internals.

What the kernel does with a sealed run-plan is narrow and fixed. It validates the signature chain and the digests before anything runs. It executes the compiled workflow over the closed primitive set. It calls the policy evaluator at six fixed points and enacts the returned effect mechanically. It propagates data-class labels on values without knowing what they mean. And it emits an ordered, append-only evidence stream stamped with the run fingerprint.

It does not infer orchestration, merge policy, resolve version pins, host inline user code, understand what any particular block or rule means, or invent business policy.

What crosses each boundary

Three contracts define the system, and each is deliberately narrow.

Control plane to data plane is the assignment envelope, the single contract for delivering work to a node. It carries desired state and the signed recipe for what to build, deploy and reconcile, and it is pulled rather than pushed. Its top level is fixed:

assignment_id            trust_chain
assignment_key           workload_identity
run_id                   secret_resolution_grants
node_id                  determinism_contract
attempt                  llm_runtime_pinning
deadline_epoch_ms        generation_controls
session_id               llm_cache_contract
effective_policy_digest  idempotency
policy_decision_proof    assignment
resolver_snapshot        invocation

The envelope is self-checking: policy_decision_proof.snapshot_digest must equal effective_policy_digest, and its required_stages must be exactly [pre, post], or the envelope is rejected. See Assignments and envelopes.

Data plane to kernel is a private control channel, not a pull mechanism: a gRPC channel over HTTP/2 with mandatory mutual TLS, generated from a checked-in protocol definition. It carries three distinct lanes. A command lane, on which the node sends authenticated non-execution operator commands only, opened per call because a command is a discrete authenticated act. A continuity lane, held open because the kernel pushes evidence and heartbeats as they occur rather than waiting to be polled. And a return lane on which the kernel pushes sequenced status, log, audit and evidence envelopes under cursor, acknowledgement and replay rules. Only the node that currently owns a runtime instance may send operator commands or advance its acknowledgement cursor. See Kernel bridge and Two lanes.

flowchart LR
  subgraph N["DATA PLANE NODE"]
    OP["Operator<br/>client"]
    CE["Continuity<br/>engine"]
  end

  KK["KERNEL"]
  CPI["Control plane<br/>ingest"]
  OBJ[("Your object<br/>storage")]

  OP -- "command lane<br/>channel per call" --> KK
  CE == "continuity lane<br/>held open" ==> KK
  KK == "return lane<br/>sequenced envelopes" ==> CE
  KK -. "run operations<br/>refused here" .-> OP
  CE -- "metadata and<br/>object references" --> CPI
  CE -. "payload bodies" .- OBJ

Evidence originates with the kernel, is sequenced and acknowledged by the node, and reaches the control plane as metadata and references. The payload bodies themselves never leave your infrastructure.

The application surface is the third, and it does not belong to either of the other two. Application-facing run operations are a kernel-native syscall surface, owned by the kernel and reached by code running inside a cell. They are not a control-plane API and not part of the operator lane, which actively refuses them.

This is the boundary that most often gets misread. The first two contracts carry build, deployment, supervision and evidence; they do not carry runs. Once a project runtime is deployed and ready, its kernel executes that project's agents and workflows without any of it traversing the control plane or the node. See The Application Run Boundary.

Identity across the boundaries composes two roots, and both must hold. SPIFFE issues each workload a short-lived certificate through the node's identity agent, so the control plane never holds a private key. The control plane issues the trust bundle revision, and a kernel refuses a caller whose bundle digest is outside its accepted set. One root proves who a caller cryptographically is; the other proves it is operating under the trust revision the control plane provisioned. See The two roots.

Evidence flows the other way under a matching rule. Heavy payload bodies are written to the tenant's own object storage on the execution side, and the control plane ingests metadata, integrity envelopes and object references. The same byte boundary that governs artifacts governs observability. See Metadata-only control plane ingest and Payload offload.

Every record crossing any of these boundaries carries the correlation tuple, which is what makes a run traceable from an API call to a kernel decision. See The correlation tuple.

The operating model, in familiar terms

The three planes map onto a vocabulary most operators already have.

Xratu Behaves like
Control plane The cluster
Data plane A node in that cluster
Workspace A namespace
Organisation The administrative tenancy boundary above the cluster

The mapping has consequences at enrolment and at authorisation. A node enrols once against its own identity, not once per workspace, and re-enrolment for the same installation is idempotent. Workspace isolation is enforced at routing, dispatch and reporting authorisation rather than at enrolment. And tenancy has to exist before any node does, which is why the deployment path establishes an organisation and a workspace before the first node is installed. See Workspaces and Tenancy before nodes.

A further convention runs through every surface: you work in names, and the system stores and transports UUIDs, resolving one to the other at a single boundary before any call is made. See The name and UUID boundary.

What this shape buys

A hosted control plane that cannot read your code. Governance is centralised while bytes and credentials stay tenant-side, because resolution is symbolic and materialisation is local.

Nodes that survive the control plane being unreachable. A node that has its assignment and its materialised inputs keeps running, and reconciles when the control plane returns. Pull-based convergence is what makes that true by default rather than by special case. See The failure model.

One deployment story for hosted, self-hosted and air-gapped. The same three contracts hold in all three, so the difference is where the planes run, not how they work. See Deployment topologies.

Evidence whose integrity does not depend on trusting the middle. The kernel signs and chains what it emits, the node forwards it under cursor and replay rules, and the control plane stores metadata and references. Nothing in the path can quietly rewrite a decision record.