Skip to content

Plane boundaries

Every decision class in Xratu has exactly one owning plane, and each boundary is held by a check on the receiving side. This page names the owner of each class and the point that enforces it, so a surprising behaviour can be attributed to the plane that decided it.

One owner per decision class

Decision class Owner Enforced at
Tenancy, RBAC, scope Control plane API admission, before a request reaches a service
Policy authorship and resolution Control plane Bundle compilation and signing; the node verifies a digest it cannot author
Placement Control plane The scheduler, against provider capability facts reported by nodes
Version pinning and lineage Control plane Immutable version records and admission gates
Artifact bytes Data plane The node holds registry and bucket credentials; the control plane holds references
Assignment reconciliation ordering Data plane The reconcile cycle, converging toward CP-authored desired state
Runtime ownership Data plane, granted by the control plane An ownership lease and fence epoch the kernel re-checks per request
Application execution ordering Kernel The Kernel Application ABI, task authority and the admitted sealed run-plan
Evidence emission Kernel The return lane's sequenced, digest-chained envelopes

Governance is authored in one plane and verified in another

The control plane resolves and signs the effective policy at build. The node receives it with its digest, seals it into the run-plan unchanged, and reports the digest at the pre and post stages of every run, which policy_decision_proof on the assignment requires. The kernel evaluates the policy's rules at its six hooks and records every decision as evidence.

A snapshot verifies only against the digest the control plane issued, so a decision attributed to policy is traceable to a published bundle.

Execution reaches the kernel through its own surface

run.* is a kernel-native syscall surface. The operator lane between a node and a kernel carries ten runtime.* commands, and a request in the run. namespace is answered unsupported_on_operator_lane. The refusal is a stated answer with its own reason code. A caller can distinguish this boundary refusal from a transport fault.

DP -> kernel     runtime.* operator commands       accepted
DP -> kernel     run.* execution syscalls          unsupported_on_operator_lane

The consequence for an operator is that a node's credentials on the operator lane grant supervision of a runtime, and grant nothing about what that runtime executes.

Application run observation follows the return lane

The kernel emits status, event, log, evidence, and fault envelopes on its sequenced return lane. The data plane node acknowledges and relays those envelopes, and the control plane admits them into the workspace's observable run record. The record is a read model of kernel execution, while application execution authority remains in the Kernel Application ABI.

The context-based CLI reads that record:

xratu obs get runs
RUN_ID=run-7f92
xratu obs get run $RUN_ID
xratu obs runs events $RUN_ID
xratu obs runs nodes $RUN_ID
xratu obs runs failed

xratu obs get runs reports whether each observed run is active or terminal, whether a fault envelope exists, the last observed return kind and category, and the associated assignment, node, and runtime instance identities. The optional project name and version after xratu obs get runs or xratu obs runs failed narrow the index to one project release. xratu obs runs events returns the admitted envelopes in emission order and accepts optional event type, kind prefix, sequence, and time bounds. xratu obs runs nodes returns the data plane nodes observed for the run.

The boundaries

flowchart LR
  subgraph CP["CONTROL PLANE"]
    direction TB
    CPG{{"Report admission<br/>fence, idempotency"}}
    CPS[("Metadata store")]
    CPG --> CPS
  end
  subgraph DP["DATA PLANE, xratud"]
    direction TB
    DPG{{"Envelope and snapshot<br/>digest verification,<br/>return-lane chain"}}
    DPS[("Cursors, leases,<br/>outbox")]
    DPG --> DPS
  end
  subgraph K["KERNEL"]
    direction TB
    KG{{"Lease and fence<br/>re-check per request"}}
    KS[("Evidence")]
    KG --> KS
  end
  CPS -->|"assignments"| DPG
  DPS -->|"reports, object references"| CPG
  DPS -->|"runtime.* commands"| KG
  KS -->|"evidence envelopes"| DPG

Each plane writes only its own store, and every edge between planes lands on a check before it reaches that store. Follow an edge backwards from a surprising record to find the check that admitted it. The kernel's only outward edge ends at the node.

A report from a node is idempotent and carries the fence it was produced under, so the receiver identifies and rejects a report from a displaced owner before applying it.

Contract changes cross boundaries explicitly

A behavioural change that crosses a plane boundary is versioned and conformance-tested on both sides. A version disagreement ends the exchange with protocol_mismatch. See Contract versioning and hardcut rules.

The model plane sits inside the control plane

Model revisions, bindings, traffic governance and autoscale-to-zero are control-plane owned. They form a logical plane: model work reaches nodes on the same assignment path as everything else, and no additional runtime layer is introduced.