Runtime closure and foundation build¶
The control plane decides what a project runs on; a node works out the exact bytes and puts them in place. Every step here runs on the node because it needs your registry, your dependency sources or the node's own identity, and every step ends in a signed document the control plane admits before the next one is issued. This section covers the three reconciliation stages a node runs for a project's runtime closure, the two builders those stages use, the image builds a node runs for models and projects, and how the result is assembled into the one document the kernel receives.
What the node runs, and for whom¶
flowchart TB
CP["CONTROL PLANE<br/>issues each stage, admits each answer"]
subgraph NODE["NODE, xratud"]
direction TB
subgraph REC["CLOSURE RECONCILIATION, one stage per assignment"]
direction LR
S1["foundation_resolution<br/>reference to digest"]
S2["closure_resolution<br/>deterministic solve"]
S3["materialization<br/>fetch, verify, open"]
end
subgraph BLD["BUILDERS"]
direction LR
DCB["Dependency component builder"]
RFB["Runtime foundation builder"]
end
EXE["Executor runtime<br/>model and project image builds"]
SIG[("Evidence signing key<br/>process lifetime")]
HO[("Assignment handoff<br/>xck.assignment_handoff.v2")]
S2 --> DCB
S3 --> HO
end
subgraph YI["YOUR INFRASTRUCTURE"]
direction LR
REG[("Registry")]
SRC[("Approved dependency sources")]
K8S["Build namespace<br/>Kaniko jobs"]
end
K["Project kernel"]
CP -->|"stage assignments"| REC
CP -->|"build.model.v1, build.project.v1"| EXE
REC -->|"signed evidence"| CP
REC --- SIG
S1 --> REG
DCB --> SRC
DCB --> REG
S3 --> REG
EXE --> K8S
HO --> K
Each stage is a separate assignment, so a node that fails midway leaves only the stages it finished, and the control plane issues the next stage only after it admits the last one's evidence. Everything that touches bytes or credentials stays inside your infrastructure; what reaches the control plane is signed evidence carrying digests.
In this section¶
- Foundation reference resolution: the first stage, turning a foundation reference into a signed digest.
- Runtime foundation builder: how a foundation manifest, inventory, SBOM and provenance are produced and signed.
- Closure dependency resolution: the second stage, the deterministic solve and its evidence.
- Dependency component builder: how a missing dependency is built into an immutable component.
- Runtime closure materialization and reconciliation: the stage task, the third stage, and how stage outcomes are reported.
- Executor runtime and control tasks: model and project image builds on Kaniko.
- The DP bundle: assembling the sealed run-plan the kernel receives.
- Tenant-side materialization: what each step needs from your side of the boundary, and what crosses it.