Verified closure view¶
The verified closure view is the kernel's record of a closure it opened itself. The data plane attests what it materialised. The kernel then opens the same artifacts, compares what it finds with four other independent records, and admits the closure only when all five agree. A provider is prepared only for a closure with a verified view.
The view identifies each artifact by an opened handle and a content digest, and every fact in it traces back to the control plane's admission.
Five records, one view¶
The kernel builds VerifiedRuntimeClosureViewV1 from:
- The assignment handoff, which carries the assignment id, the fence, and the admission, closure and materialization digests.
- The admitted closure reference from the control plane.
- The materialization evidence the data plane signed.
- The resolved runtime closure from the resolver.
- The artifacts the kernel opened, observed by the kernel itself.
Each field in the view must equal the same field in every record that carries it:
| View fields | Checked against |
|---|---|
assignment_id, fence, admission_digest, materialization_evidence_digest |
The handoff and the materialization evidence |
project_uuid |
The admitted reference and the materialization evidence |
closure_digest |
The handoff, the resolved closure, and the materialization evidence |
foundation_digest, capsule_digest, provider_digest, provider_provenance_digest, provider_runtime_layout_digest, cell_environment_view_digest, native_loader_view_digest, compatibility_requirements_digest |
The admitted reference, the resolved closure, and the materialization evidence |
capsule_executable_surface_index, executable_surface_digest |
The handoff, the admitted reference, the resolved closure, and the materialization evidence |
interface_hash, containment_profile, hardware_profile, python_abi, platform |
The resolved closure |
accelerator_foundation_profile |
The resolved closure, present only when it carries one |
opened_artifacts |
The kernel's own opened handles, and the artifacts the data plane materialised |
A disagreement refuses the view and names the field:
provider_provenance_digest must match its independent admitted authority
opened_artifacts must equal the kernel's independent opened-handle observations
Opened artifacts¶
Each entry in opened_artifacts holds artifact_role, content_digest,
opened_content_digest and opened_handle_id. The opened content digest equals
the content digest, and each handle id is distinct. The set of role and digest
pairs equals the set the data plane materialised.
The provider's fingerprint¶
Before a provider reports ready, it returns an environment fingerprint: the
closure, foundation, capsule and provider digests, the provider provenance and
runtime-layout digests, the Python ABI, and the two view digests it was prepared
with. The cell monitor compares it with the admitted closure. A disagreement is
the provider preparation fault EnvironmentViewMismatch, and the cell stays
unready.
Reading it from a running kernel¶
The kernel's startup evidence lists every closure it verified. Read it with the kernel status snapshot:
Trimmed to the closure fields, with digests shortened, the result reads:
{
"op": "runtime.status.snapshot",
"status": "accepted",
"startup": {
"ready": true,
"status": "ready",
"phase_evidence": {
"runtime_closure_views_verified": {"ready": true, "closure_count": 1}
},
"verified_runtime_closures": [
{
"runtime_closure_digest": "sha256:cccc…",
"verified_view_digest": "sha256:3303…",
"view": {
"contract_version": "xck.verified_runtime_closure_view.v1",
"produced_by": "kernel_runtime_closure_admission",
"closure_digest": "sha256:cccc…",
"foundation_digest": "sha256:dddd…",
"capsule_digest": "sha256:eeee…",
"provider_digest": "sha256:ffff…",
"provider_provenance_digest": "sha256:aaaa…",
"provider_runtime_layout_digest": "sha256:bbbb…",
"containment_profile": "ProductionProcessCell",
"hardware_profile": "cpu-standard",
"python_abi": "cp311",
"platform": "linux-x86_64",
"verified_view_digest": "sha256:3303…",
"opened_artifacts": [
{
"artifact_role": "execution_capsule",
"content_digest": "sha256:eeee…",
"opened_content_digest": "sha256:eeee…",
"opened_handle_id": "fd:17"
}
]
}
}
]
}
}
Check three things:
runtime_closure_views_verified.closure_countequals the number of entries inverified_runtime_closures.- Each entry's
runtime_closure_digestequals itsview.closure_digest. - The foundation digest, the capsule digest and the provider's digest, provenance digest and runtime-layout digest are the identities you expect this project to run.
runtime_closure_views_verified.ready is true only when the list holds at
least one closure. Startup evidence is refused when an entry's
verified_view_digest does not digest its view, or when two entries name the
same closure.
Related: Closure artifact sets and materialization covers the data plane's half, and Closure reconciliation and upgrade covers how a new closure replaces a running one.