Skip to content

Tenant artifact runtime

Every artifact operation needs to know which registry and which bucket belong to this tenant. That answer comes from the tenant's active data plane bootstrap contract, resolved by the control plane and shipped in the assignment, so a node never chooses its own destination.

Where the answer comes from

flowchart LR
  IT["Your infrastructure team<br/>at install"]
  subgraph CP["CONTROL PLANE"]
    direction TB
    BC[("Active bootstrap contract<br/>dataplane.bootstrap.xratu")]
    AR{{"Tenant artifact runtime<br/>resolved per build"}}
    BA[("Build or publish assignment<br/>carries the destination")]
    BC --> AR --> BA
  end
  subgraph YI["YOUR INFRASTRUCTURE"]
    direction TB
    N["xratud<br/>holds the credentials"]
    REG[("Registry")]
    BK[("Bucket")]
    N ==> REG
    N ==> BK
  end
  IT -->|"declares"| BC
  BA -->|"pulled"| N

The destination enters on the left, from what your team declared, and the credential is inside your infrastructure box. The node pushes where the assignment names, with credentials it already holds, so the answer to "where did this build publish" is in the assignment record.

The bootstrap contract is what the tenant's infrastructure team declared when the data plane was installed. Resolving the artifact runtime from it means the registry a build pushes to is the one declared at install time, under the tenant's own governance.

The three refusals

Reason Condition
build_tenant_artifact_runtime_active_contract_missing No active bootstrap contract exists for the tenant
build_tenant_artifact_runtime_active_document_invalid The active contract document does not validate
build_tenant_artifact_runtime_invalid The contract validates and its artifact runtime section does not

The three separate reasons narrow the problem: no contract, a bad contract, or a good contract with a bad artifact runtime. A build that cannot name its destination reports which.

Why it is resolved per tenant, per build

A build assignment carries the resolved runtime rather than a reference for the node to look up. Two consequences follow:

The destination is recorded with the build. What a build was told to publish to is part of the assignment, so it is answerable afterwards from the control plane's records.

A node cannot substitute a destination. The node holds the credentials and performs the push, and the target it pushes to came from the control plane. The two halves are split deliberately: authority over where, on one side; possession of the credential, on the other.

The nested contract keeps its own version

The artifact runtime section carries its own contract version inside the build-level contract, so the tenant-facing shape and the build-facing wrapper version independently. A change to how builds consume it does not force a change to what tenants declared.

What it resolves to

The resolved runtime names where artifacts are published and pulled for this tenant. The bytes stay there, and what the control plane records is the reference and the digest reported back.

See The tenant byte rule and Publish and pull contracts.