Skip to content

Runtime closure admission and reconciliation

A runtime closure is the complete, pinned set of things a project runs against. Resolving one is node work over many inputs; admitting one is control-plane work over a closed set of documents. This page is that closed set, the stages a reconciliation moves through, and the refusals at each end.

Inputs are admitted by owner, and the set is closed

Six input owners exist, and each owns a named group of documents:

Owner Admits
Foundation input Resolution policy, resolution intent, foundation manifest, foundation inventory
Dependency input Runtime dependency intent, admitted dependencies, approved sources, candidate snapshot, component inventories
Capsule input Interface seed, capsule manifest, executable surface index, declared interfaces, interface hash
Execution input Approved runtime provider artifacts, containment profile, hardware profile
Resolver input Resolver configuration and its digest
Artifact catalog The published runtime artifact catalog

A document outside this set is not an input to a closure. Because the set is closed, everything a closure digest covers is named, so two closures with the same digest were resolved from the same inputs.

The cycle

flowchart LR
  subgraph CP["CONTROL PLANE"]
    direction TB
    subgraph IN["ADMITTED INPUTS, six owners"]
      direction TB
      I1[("Foundation")]
      I2[("Dependency")]
      I3[("Capsule")]
      I4[("Execution")]
      I5[("Resolver")]
      I6[("Artifact catalog")]
    end
    ST["Reconciliation stage<br/>started, dispatched, completed"]
    ADM{{"Admission"}}
    CL[("Runtime closure<br/>one digest over the inputs")]
    IN --> ST
    ADM --> CL
  end
  subgraph YI["YOUR INFRASTRUCTURE"]
    direction TB
    N["xratud<br/>resolves"]
    SRC[("Admitted sources")]
    N -.->|"reads"| SRC
  end
  ST -->|"resolution assignment"| N
  N -->|"signed evidence"| ADM

The closure's digest covers the six boxes on the left and nothing else, and the resolution between them happens in your infrastructure against sources those inputs admitted. A stage wraps each round trip, so a long resolution shows its progress as stages rather than as one opaque call.

Reconciliation is staged rather than a single call. A stage is started, assignments are dispatched for it, and the stage is completed, so a long resolution reports progress instead of being opaque until it ends.

The refusals

Error Condition
RUNTIME_CLOSURE_ASSIGNMENT_REFUSED The resolution assignment was not accepted
RUNTIME_CLOSURE_ASSIGNMENT_IDENTITY_CONFLICT Two assignments claim the same closure identity
RUNTIME_CLOSURE_EVIDENCE_REFUSED The returned evidence was not accepted
RUNTIME_CLOSURE_EVIDENCE_SIGNATURE_INVALID The evidence signature does not verify
RUNTIME_CLOSURE_REFERENCE_REFUSED The resulting closure reference was not admitted
RUNTIME_CLOSURE_RECONCILIATION_REFUSED The reconciliation request itself was refused
RUNTIME_CLOSURE_RECONCILIATION_RESULT_INVALID The reconciliation returned a result that does not validate
RUNTIME_CLOSURE_RECONCILIATION_STAGE_INVALID A stage was completed out of order or is not recognised

The identity conflict is the one worth naming separately. Two assignments resolving the same closure would produce two answers for one identity, so the second is refused rather than allowed to overwrite.

Evidence carries a signature

Closure evidence is produced on the node, about components the control plane never fetched. The signature is what allows the control plane to record the result as authoritative without having resolved it. An unsigned or unverifiable evidence document is refused, not downgraded to a lower-confidence record.

What an admitted closure gives a project

An admitted closure is a pinned logical artifact set. It identifies the foundation, capsule and selected components, their roles and their verified content. It does not prescribe host paths or mount policy. The kernel derives those local mechanics when it creates the process cell. A project bound to the closure runs against exactly those components until it is reconciled onto a new one, which is why changing a shared dependency is a reconciliation rather than an image rebuild.

See Closure reconciliation and upgrade for that lifecycle, and Foundation resolution admission for the input the closure starts from.