Skip to content

Establishing the control plane to data plane link

Before a node can pull work it must have an identity the control plane issued, a registration it can present, and agreement on four contract versions. This page is that sequence, because a node that never receives an assignment has usually stopped at one of these steps rather than at dispatch.

The sequence

flowchart TB
  A["Join<br/>invitation, install and instance identifiers"]
  B["Seed persisted<br/>durable identity state on the node"]
  C["Register<br/>the node presents its identity"]
  D["Version agreement<br/>four contracts checked"]
  E["Heartbeat, then pull"]
  A --> B --> C --> D --> E

Where each step happens

flowchart LR
  subgraph POD["THE NODE'S POD"]
    direction TB
    INIT["Init container<br/>join"]
    XD["xratud"]
    SEED[("Seed<br/>/var/lib/xratu")]
    INIT --> SEED
    SEED --> XD
  end
  subgraph CP["CONTROL PLANE"]
    direction TB
    INV{{"Invitation scope"}}
    REG{{"Registration<br/>four contract versions"}}
    PULL["Heartbeat and pull"]
    REG --> PULL
  end
  INIT -->|"code, install and instance ids"| INV
  XD -->|"presents identity"| REG

The join and the registration are two different containers talking to two different checks. A node that never pulls has stopped at one of the two hexagons, and the container that made the call says which.

Joining is a distinct step from running. An init container performs the join, presenting an invitation code together with the installation and instance identifiers and the node's label; the control plane validates the invitation's scope and returns a seed.

Durable identity turns a restart into a continuation

The seed is persisted with the node's identity state under /var/lib/xratu/identity. A restarted node reads that state and resumes as the same node, rather than joining again as a new one.

This is why enrollment is performed once per data plane identity and never per workspace: the identity is the node's, and the work it receives is scoped separately.

The two things a node is configured with

spec:
  control_plane:
    base_url: https://control-plane.example.internal
    trust_bundle_ref: bootstrap-trust://default/v1

An endpoint and a trust bundle reference. Everything else about the relationship is negotiated or issued, and nothing is discovered.

Four versions must agree

Every registration and watch carries the versions both sides were built for, and a pull carries the assignment schema version:

transport_protocol_version   dataplane.v1
assignment_schema_version    assignment.v1
trust_contract_version       bootstrap.trust.xratu/v1
credential_issuer_version    system.runtime_identity_issuer.contract.v1

A mismatch fails closed. The node marks the link degraded and reports the condition with its own reason code rather than falling back to an older shape:

suppressed: true
reason: incompatible_protocol
reason_code: PROTOCOL_VERSION_INCOMPATIBLE

A suppressed watch returns no items and leaves the node's revision exactly where it was, so an incompatible node stops taking work rather than taking it and misreading it.

The window is one minor version either side, within the same version family. See Protocol handshake and compatibility gating.

The node binds to one control plane

A node's registration carries the cp_instance_uuid it enrolled against. A control plane answering at the same endpoint with a different identity is not the one this node joined, and the node does not silently attach to it.

What establishment produces

A registered node holds a registration identifier, a runtime credential it refreshes, and a watch revision starting at zero. From that point the link is established and the node begins its cycle.

See Liveness on the control plane link for what keeps it alive, and Reconciliation and pull-based execution for the cycle itself.