Skip to content

The name/UUID boundary across planes

Names exist at one surface and UUIDs at every other. This page is where the conversion happens, what decides the scope it resolves in, and why a resolution failure is usually about context rather than about the value you typed.

For the boundary as an authoring rule, see The name/UUID boundary in Concepts.

One conversion point

flowchart LR
  subgraph NM["NAMES"]
    direction TB
    ARG["CLI arguments"]
    CTX[("Active context")]
  end
  R{{"Scope resolver"}}
  subgraph ID["UUIDS ONLY"]
    direction TB
    API["API requests and responses"]
    ENV["Assignment envelopes"]
    RET["Kernel return envelopes"]
    OBJ[("Payload storage prefixes")]
  end
  NM --> R --> ID

The names you supply are on the left, and everything a plane carries is on the right. The resolver is one shared function and the single edge between them, so a name that fails to resolve fails there, before any request leaves the client. A command handler never reads workspace_uuid from the raw arguments.

What decides the scope

A workspace name is unique within an organization, so resolving one requires an organization first. The resolver takes the value in this order:

  1. The value passed on the command line.
  2. workspace_uuid from the effective context.
  3. workspace from the effective context, as a name.

A value that already looks like a UUID passes through. Anything else is resolved against the workspace catalog, scoped by the effective organization, which is itself resolved from organization_uuid in the context or from organization as a name.

That chain is why the same command can resolve on one machine and fail on another: the name is identical and the active context is not.

Matching is exact

A candidate matches when the value equals the recorded UUID or equals the recorded name, as recorded. Two outcomes are refusals rather than guesses. A value matching no record is refused with workspace not found by name or uuid: <value>, and a value matching more than one is refused with:

workspace name is ambiguous: <value> (set organization first or use uuid)

The ambiguity message names its own fix, because both resolutions are available to the caller: narrow the scope, or address the object by UUID.

Which form each plane carries

Surface Form
CLI arguments and active context Name or UUID
Authored YAML you edit Name
API request and response bodies UUID
Assignment envelopes UUID
Kernel return envelopes and evidence UUID
Object storage prefixes for payload bodies UUID

A kernel evidence record and a control-plane audit record are joinable because both carry workspace_uuid, and neither depends on a display name that could be read differently in two places. See The correlation tuple.

Names that are fixed by what was keyed to them

Some names are permanent because other records were keyed by them when they were created. An organization name is permanent for the life of the deployment, and a node label is fixed by the installation that produced it: registration entries, scheduler capabilities and fabric peer lists all name it.

Where a name is permanent, the UUID is still what travels. The permanence is a property of the record's own identity rather than of the transport.