Runtime foundation builder¶
A project's cells run on a runtime foundation, and the resolver can select a component from that foundation only if the foundation's contents are recorded exactly. The runtime foundation builder produces that record. It takes what the node's build and artifact steps observed about an immutable root filesystem and component store, derives the foundation's identity from it, and signs four digest-bound documents: the manifest, the inventory, the SBOM and the provenance. This page covers the request it admits, the documents it produces, how they are bound together, and its refusals.
For what those documents mean to a project, see Runtime foundation and Foundation inventory, provenance and SBOM.
What is derived from what¶
flowchart TB
subgraph REQ["BUILD REQUEST, already observed"]
direction LR
RF["rootfs_reference,<br/>rootfs_digest"]
INV[("inventory<br/>scanner observation")]
SB[("sbom_observation")]
MAT["build_recipe_digest,<br/>material_digests,<br/>builder_identity"]
end
subgraph OUT["SIGNED FOUNDATION"]
direction TB
subgraph ID["IDENTITY"]
direction LR
FD["foundation_digest<br/>over the executable substrate"]
BL["exported system baseline"]
end
subgraph EVD["EVIDENCE, each with its own digest"]
direction LR
I2[("Inventory")]
S2[("SBOM")]
P2[("Provenance")]
end
SG["Ed25519 attestation<br/>over foundation, inventory,<br/>SBOM and provenance digests"]
end
ATT["Node attestor<br/>sign, then verify"]
RF --> FD
INV --> FD
INV --> BL
INV --> I2
SB --> S2
MAT --> P2
FD --> SG
I2 --> SG
S2 --> SG
P2 --> SG
SG <--> ATT
The foundation digest is derived from the substrate itself: the rootfs identity, the platform and ABI facts, provider compatibility, the component store inventory, the native and executable surface, and the accelerator profile when there is one. The inventory, SBOM and provenance stay outside that digest and carry their own, and one signature covers all four. A change to the substrate changes the foundation digest; a change to the evidence about it changes only the evidence digests and the signature.
The build request¶
The builder works only from observations already made. Every one of these fields is required and non-blank:
foundation_id rootfs_reference rootfs_digest
platform os_release libc_abi
python_abi component_store_digest build_recipe_digest
builder_identity build_invocation_id
The request also carries provider_compatibility (a list), inventory (the
scanner's observation), sbom_observation, material_digests (a list), and
optional_accelerator_profile, which is an object or null. The builder
performs no registry request and holds no credential.
The steps¶
- Admit the request against the fields in the build request.
- Admit the inventory. Every distributable Python component, native bundle and executable bundle must be listed with its assets. A missing component asset, an incomplete SONAME closure, an incomplete scan dimension, an unpinned distribution, an unknown owner or an unsafe executable path refuses the foundation.
- Admit the accelerator profile, when present, against the inventory.
- Derive the exported system baseline, the subset of the inventory every
cell receives. It must be named by a
baseline_id, and each native object it exports must be one the scanner observed. - Derive the foundation identity and its
foundation_digest. - Admit the SBOM. It identifies a complete SPDX or CycloneDX document by digest and must name the foundation, rootfs, component store and inventory digests of this foundation.
- Project the provenance, binding the recipe, the materials, the builder workload identity and the build invocation.
- Sign. The attestation digest over the four digests goes to the node's attestor, which signs it; the builder then asks the attestor to verify the signature it returned. Only the digest crosses to the attestor, and only the signer identity and key id come back with the signature.
- Assemble the manifest and check the evidence chain once more across the finished documents.
The build starts from the base-image intent in the project's declaration: the builder inventories, signs and content-addresses that substrate, and the result is the manifest, inventory, SBOM and provenance. The control plane admits one exact foundation digest from them under the project's policy, and the foundation stage later resolves the project's reference to it. See Foundation reference resolution.
When a build is refused¶
| Code | Step |
|---|---|
runtime_foundation_build_request_invalid |
A required field is missing or has the wrong type |
runtime_foundation_inventory_refused |
The inventory is incomplete or unsafe |
accelerator_foundation_profile_refused |
The accelerator profile disagrees with the inventory |
runtime_foundation_system_baseline_refused |
The baseline is unnamed, exports an unobserved object, or has blank or duplicate entries |
runtime_foundation_identity_refused |
The foundation identity cannot be derived |
runtime_foundation_sbom_refused |
The SBOM is incomplete or names a different foundation |
runtime_foundation_provenance_refused |
The provenance cannot bind the recipe and materials |
runtime_foundation_attestation_refused |
Signing failed, or the attestor did not verify its own signature |
runtime_foundation_manifest_refused |
The assembled documents disagree with one another |
The message names the field or object at fault:
exported_system_baseline.baseline_id is required; an exported surface is named so evidence can say which one a cell received
exported_native_object_digests were not observed by the scanner: [...]
foundation attestor did not verify the emitted signature
SBOM inventory_digest must match the assembled foundation