Skip to content

Control-plane identity latch

The latch is the control plane's own identity, fixed at finalization. It is what a restart is checked against and what a node's registration is bound to. This page is the capability that owns it; for what the latched values mean across the planes, see Control plane as source of truth.

Three operations

Operation Does
Resolve Reads the latch currently in force
Activate from bootstrap Sets the latch at finalization, from the bootstrap contract
Ensure runtime latch Checks a running control plane against the latched values

Activation happens once, from the bootstrap contract, rather than from a request. The identity a deployment takes is derived from what it was declared to be.

What is latched

cp_instance_uuid       this control plane's identity
cp_identity_revision   the revision of that identity
locked_db_backend      sqlite or postgres
locked_store_profile   lightweight, standard or durable

Both the backend and the profile are validated against their closed sets at activation, so an unrecognised value cannot be latched and then discovered later.

Three reason codes

Reason Condition
CONTROL_PLANE_IDENTITY_LATCH_NOT_ACTIVATED The deployment has not been finalized
CONTROL_PLANE_IDENTITY_LATCH_INVALID The presented identity does not satisfy the contract
CONTROL_PLANE_IDENTITY_LATCH_IMMUTABLE A change to a latched value was attempted

The third is the one that gives the latch its name. A latched value is not editable; changing the backend or the store profile is a new finalization.

Runtime continuity is checked, not assumed

flowchart LR
  subgraph LT["IDENTITY LATCH, in the store"]
    direction TB
    L1["cp_instance_uuid"]
    L2["cp_identity_revision"]
    L3["locked_db_backend"]
    L4["locked_store_profile"]
  end
  subgraph BOUND["BOUND TO THE LATCH"]
    direction TB
    RC["Runtime credentials<br/>latch claims"]
    NI["Node credentials<br/>CP identity binding"]
  end
  RT["Starting runtime<br/>observed backend, profile"]
  CMP{{"Continuity check"}}
  LT --> BOUND
  L3 --> CMP
  L4 --> CMP
  RT --> CMP
  CMP -->|"match"| SV["Serve"]
  CMP -.->|"drift"| RF["Refuse to serve"]

The latch is the root of two things: the credentials bound to its claims, and the continuity check every runtime passes before serving. Changing a latched value would orphan both, which is why a change is a new finalization.

A running control plane carries the identity revision it is operating under, and runtime credentials are bound to the latch claims. Identity drift is rejected rather than tolerated, so a runtime cannot come up against a store it was not finalized for.

What it means for a node

A node's registration carries the cp_instance_uuid it enrolled against. A different control plane answering at the same endpoint is not the one the node joined, and the node does not silently attach to it.

The latch is therefore the anchor at both ends: the control plane checks itself against it on startup, and nodes check the control plane against it on every exchange. See Establishing the control plane to data plane link.

Why it is immutable

A deployment's records were written under a backend and a store profile. Moving either without a new identity would produce a control plane whose records claim continuity it does not have. The latch makes that state unreachable rather than discouraged.