Skip to content

Artifact identity strategy

What a produced artifact is called is decided by the control plane before the build runs, not by the builder afterwards. The strategy resolves a registry host, a repository path and the tags an image may carry, from the workspace, the build target and the tenant's artifact runtime.

What identity is resolved from

workspace_uuid         the scope the artifact belongs to
build target kind      model or project
build_id               the build it came from
tenant artifact runtime the registry the tenant publishes to

A build target outside model and project is refused, so the kinds of thing that can be produced are a closed set rather than a naming convention.

The four refusals

Reason Condition
artifact_identity_workspace_uuid_required No workspace scope was supplied
artifact_identity_build_target_kind_invalid The target kind is outside model and project
artifact_identity_build_id_required No build id was supplied
artifact_identity_tenant_artifact_runtime_invalid The tenant's artifact runtime does not resolve

Each names the input that was missing, so a build that cannot be named says which of the four inputs to supply.

Names are normalised, not passed through

Values that become part of a repository path are lowercased and reduced to their token characters, so a display name with spaces or capitals produces a usable path deterministically. The registry host is validated against a host pattern, with an optional port.

Normalisation happens once, centrally. A node building the same target twice resolves the same name both times, because the name was computed by the control plane and shipped in the assignment.

Tags are recognised by shape

Two tag shapes are recognised, and recognising them is what allows a tag to carry meaning rather than being an opaque string:

semantic version   v1.2.3, with optional prerelease or build metadata
git commit         7 to 64 hexadecimal characters

A package tag is separately validated as a semantic version by the package admission gate, so a tag that reaches the catalog satisfies that shape. See Admission gates.

The digest is the identity

Tags are how people refer to an artifact; the digest is what the platform pins. A build's accepted report carries the digest, and the control plane pins that value into the release tuple. Every later reference resolves through the pinned digest, so a tag that is later moved does not change what a pinned release runs.

See Publish and pull contracts for the rules around promoting a tag, and The CP recipe for where the pinned identity ends up.