Resolved runtime closures¶
A resolved runtime closure is the exact thing a cell runs: one foundation, one execution capsule, one runtime provider, a binding for every dependency, and the two views the cell is built from. The kernel admits and executes closures. A capsule is the reusable capability block's own artifact; a closure is that capsule combined with one project's foundation and dependencies.
Every choice is made before the closure exists. Each dependency binding names the component it selected, so a cell starts fully resolved, and every package it imports was built and verified before it started.
What a closure binds¶
| Field | Binds |
|---|---|
foundation_digest |
The admitted foundation the cell runs on |
foundation_intent_digest |
The control plane's sealed foundation selection |
foundation_system_baseline_digest |
The exported baseline every cell receives |
python_abi, platform |
The foundation's ABI, copied from its manifest |
accelerator_foundation_profile |
Present only when the foundation carries one |
capsule_digest |
The execution capsule |
interface_hash, capsule_executable_surface_index, executable_surface_digest |
The block's interface and the entries it exports |
provider_digest |
The approved runtime provider artifact's opened-content identity |
provider_provenance_digest |
The provider build provenance binding its CPython ABI, headers, library and toolchain |
provider_runtime_layout_digest |
The sealed provider-relative executable, library, standard-library and module-root layout |
dependency_bindings |
One resolved dependency binding per requirement |
excluded_foundation_components |
Foundation components a binding replaced |
project_system_dependency_intent_digest |
The project's sealed apt intent |
project_system_binding_set_digest |
The project-wide bindings every closure in the project carries |
cell_environment_view_digest |
The filesystem and Python import view |
native_loader_view_digest |
The native library and executable view |
containment_profile, hardware_profile |
The process containment and hardware the cell runs under |
compatibility_requirements_digest |
The admitted compatibility requirements |
provenance_digest |
The resolver result and the two views it constructed |
closure_digest |
Every other field of the closure |
Admission checks each field against an independently supplied record: the
foundation digest against the sealed foundation intent, the bindings against the
resolver's candidate, the project-wide bindings against the admitted project
dependencies, and the provider against the closed provider set selected from
document.governance.build.approved_runtime_provider_artifacts in the control
plane's effective policy. The approved provider set and the selected process
containment profile are persisted with the project build, and the control plane
reads them from that record before reconciliation, independently of the data
plane's result. A closure that claims a baseline its foundation does not export is refused:
foundation_system_baseline_digest must match the exported baseline of the
selected foundation; a closure cannot promise a system surface the foundation
does not export
One capsule, one closure per project¶
A capsule is published once and reused by many projects. Each project that runs it gets its own closure, because the foundation, the project-wide bindings and the resolved dependencies belong to the project. Two projects running the same capsule on two foundations run two closures with two digests, and the capsule digest is the same in both.
The closure digest¶
closure_digest is the SHA-256 of the canonical closure document with every
other field included. Admission recomputes it, and a closure whose offered
digest differs is refused:
A change to any constituent therefore produces a new closure digest:
| Change | Field it reaches | Closures that change |
|---|---|---|
Block source or its @xratu declaration |
capsule_digest, interface_hash, the surface fields |
That block's closures |
runtime.xratu apt |
project_system_dependency_intent_digest, project_system_binding_set_digest |
Every closure in the project |
runtime.xratu requirements |
The bindings that select the prepared component | Closures that select it |
| The foundation selection | foundation_digest, and every binding and view resolved against it |
Every closure in the project |
| The runtime provider artifact, build inputs or sealed layout | provider_digest, provider_provenance_digest, provider_runtime_layout_digest |
Closures on that provider tuple |
| A different selected dependency component | dependency_bindings |
That closure |
| Containment or hardware profile | containment_profile, hardware_profile |
Closures under that profile |
| Resolver configuration | compatibility_requirements_digest, provenance_digest |
Every closure resolved under it |
Node placement and cache contents sit outside the closure, so one closure has
one digest on every node. A registry tag that moves after the foundation was
selected leaves foundation_digest as it was sealed. See
Foundation resolution and admission.
From resolved to running¶
flowchart TB
R["Resolved runtime closure<br/>data plane resolver, a candidate"]
R --> A["Admitted closure reference<br/>control plane"]
A --> M["Artifact set materialised<br/>data plane, signed evidence"]
M --> V["Verified closure view<br/>kernel opens the artifacts itself"]
V --> C["Cell"]
The resolver produces the closure as a candidate inside its signed resolution evidence. The control plane admits it and names the exact artifacts it needs. The data plane fetches and opens those artifacts, and the kernel opens them again before a provider may start. See Who resolves and who admits, Closure artifact sets and materialization and Verified closure view.
A closure is immutable. A change produces a new closure and new cells, and a running cell keeps its closure until it is drained, revoked or its epoch ends. See Closure reconciliation and upgrade.