Skip to content

Foundation resolution and admission

A project names a foundation by reference. Resolution turns that reference into one exact digest, policy decides whether the project may select it, and every closure of the project is resolved against the sealed selection.

flowchart TB
  RX["runtime.xratu<br/>reference and profile"]
  subgraph CP["CONTROL PLANE"]
    direction TB
    POL[("Foundation resolution policy")]
    A1["Issues a fenced<br/>reference-resolution assignment"]
    A2["Admits the resolution,<br/>issues a foundation build assignment"]
    A3{{"Admits manifest, inventory,<br/>SBOM and provenance"}}
    REC[("Foundation-build record")]
    INT[("Foundation resolution intent<br/>sealed selection")]
    POL --> A1
    A3 --> REC --> INT
  end
  subgraph DP["DATA PLANE NODE"]
    direction TB
    RES["Build resolver<br/>credentialed registry lookup"]
    BLD["Builder<br/>opens and inventories the rootfs"]
  end
  CLO["Every closure for this project"]
  RX --> A1
  A1 --> RES
  RES -->|"signed evidence:<br/>digest-pinned OCI reference"| A2
  A2 --> BLD
  BLD -->|"signed documents"| A3
  INT --> CLO

Resolving a mutable reference

document:
  foundation:
    reference: "registry.example/xratu/foundation:stable"
    profile: "standard"

The reference may be mutable; the foundation manifest requires a digest-pinned rootfs. Resolving one into the other is a credentialed registry lookup, and the hosted control plane performs no such lookup.

Owner Does
Control plane Chooses the policy and the resolver identity, and issues a fenced assignment
Data plane build resolver Performs the credentialed lookup and returns factual evidence
Control plane Admits the evidence against policy and seals the selection

The assignment carries no registry credentials and no artifact bytes, and it selects no digest itself. Keys such as credential, password and artifact_bytes are refused on it.

The policy

The following is an abbreviated view; the stored contract is closed and carries the complete build profile, including platform, ABI, scanner, SBOM and exported system-baseline fields.

{
  "contract_version": "xck.foundation_resolution_policy.v1",
  "produced_by": "control_plane",
  "policy_id": "foundations-default",
  "policy_revision": "7",
  "default_profile": "standard",
  "allowed_profiles": [
    {
      "profile": "standard",
      "allowed_repositories": ["registry.example/xratu/project-foundation"],
      "registry_profile": {
        "profile_id": "project-foundation-registry",
        "registry_identity": "registry.example"
      },
      "resolver": {
        "resolver_identity": "xck-dp-foundation-reference-resolver",
        "resolver_version": "1.0.0",
        "resolver_configuration_digest": "sha256:1111..."
      },
      "build_profile": "<sealed platform, ABI, scanner and baseline profile>",
      "expected_resolver_workload_identity": "spiffe://xratu/dp/build-resolver",
      "expected_builder_workload_identity": "spiffe://xratu/dp/build/foundation"
    }
  ],
  "policy_digest": "sha256:1d55..."
}
Rule Detail
allowed_profiles is non-empty A project selects from a stated set of resolution and build authorities
Each profile appears once One closed authority set per profile
default_profile names an allowed profile The default is itself allowed
The requested repository is allowed A mutable tag resolves only within an approved registry repository
Resolver and builder identities are sealed Only the assigned workloads may attest their respective stages

A profile seals where the selected image may come from, how its mutable reference is resolved, how its rootfs is built and inventoried, and which resolver and builder identities may sign the two stages. The foundation digest is a fact produced by the assigned data-plane resolver.

At project-build creation, the control plane persists the selected Runtime Spec reference, the profile and the complete resolution policy, then issues a fenced reference-resolution assignment. After admitting that signed result, it issues a separate foundation build assignment. The data-plane builder opens the digest-pinned OCI image, constructs the rootfs observations, and returns signed manifest, inventory, SBOM and provenance documents. The control plane admits those documents independently and persists one immutable foundation-build record.

That admitted record is the foundation authority for closure assembly. Both stages run for every foundation, and the manifest and the policy are always the ones the control plane persisted.

The sealed selection

{
  "contract_version": "xck.foundation_resolution_intent.v1",
  "produced_by": "control_plane",
  "project_uuid": "0f3a...",
  "requested_foundation_reference": "registry.example/xratu/foundation:stable",
  "foundation_profile": "standard",
  "foundation_digest": "sha256:4b91...",
  "policy_id": "foundations-default",
  "policy_revision": "7",
  "policy_digest": "sha256:1d55...",
  "intent_digest": "sha256:88ca..."
}

The intent is validated against independent facts:

Checked against Refusal
The policy's allowed profile and repository The profile or rootfs repository is not permitted
The independently verified foundation manifest foundation_digest must match the independently verified foundation
The policy's own identity fields policy_revision must match the CP foundation policy
Its own contents intent_digest must digest the complete sealed foundation selection

The requested reference is recorded beside the admitted foundation digest, and the admitted manifest records the digest-pinned OCI rootfs reference. The mutable name that was requested, the registry bytes that were opened, and the immutable substrate produced from them stay linked in the record.

What the selection reaches

One project selects one foundation, and every closure that project produces is resolved against it. Changing the selection produces new closures, and running cells keep theirs. See Closure reconciliation and upgrade.

A tag that moves in the registry changes nothing on its own: the sealed intent holds the digest resolved when the selection was made, and a new resolution picks the new bytes up.