Contract versioning and hardcut rules¶
A cross-plane contract carries its version on the document, and both sides check it before reading anything else. This page is how a version changes and what that means when you upgrade, because the rule that keeps the planes consistent is also the rule that decides the order you deploy them in.
The version is on the document¶
Every cross-plane document names its own contract:
assignment_envelope.v1 control plane to data plane
kernel.grpc_control.v1 the operator lane
kernel.return_envelope.v1 the return lane
resolver_profile.v1 inside the assignment's resolver snapshot
repo_split_contract_matrix.v1 the matrix itself
The check is equality against the version the reader was built for, and the answer to a mismatch is a refusal:
A mismatch ends the exchange. On the operator lane it surfaces as
protocol_mismatch, and on a node's pull it fails closed rather than falling
back to an older assignment shape.
A change is a hardcut¶
When a contract gains a field, the field is required, and every producer, consumer and fixture changes with it in the same change.
| Property | Consequence |
|---|---|
| The new field is required | A document without it does not validate |
| No optional-with-default | A reader never substitutes a value the producer did not send |
| Producers and fixtures move together | The golden fixture is updated in the same change as the validator |
| No compatibility shim | An older shape is refused rather than translated |
The reason the default form is excluded is specific: a permissive default lets a strict configuration be served under permissive rules, and the document gives no sign that it happened. A refusal is visible at the boundary; a default is visible only in behaviour, later.
A renamed field is refused by name¶
A field that moved is not silently ignored. The validator keeps the old name as a refusal, so a stale producer gets an answer that names its replacement:
resolver_snapshot.execution_artifacts is retired: a package archive is
distribution, and what executes is the capsule; use distribution_artifacts
This is why an upgrade failure usually identifies its own fix. The boundary that refused the document names the field and the contract it belongs to.
Golden fixtures are the conformance oracle¶
Each cross-plane contract ships a golden fixture beside its validator, and the validator is exercised against it. A fixture is the shape both planes agree on, so a producer proves it emits the fixture and a consumer proves it accepts one.
Both halves are required. A producer can emit a self-consistent shape nothing accepts, and a validator can accept a shape no producer emits, so neither test alone establishes that a contract holds across the boundary.
Upgrades move the planes together¶
The matrix requires major version synchronisation and refuses unknown contracts. A contract change lands in its producers, consumers and fixtures together, the planes are released with their major versions in step, and a deployment moves both sides within the same contract version.
Where a mixed upgrade stops¶
flowchart LR
subgraph CPB["CONTROL PLANE, upgraded"]
direction TB
CPV[("Contract matrix<br/>major N+1")]
end
subgraph NA["NODE A, upgraded"]
direction TB
NAV["xratud<br/>major N+1"]
KA["Kernel<br/>major N+1"]
NAV -->|"handshake passes"| KA
end
subgraph NB["NODE B, not yet upgraded"]
direction TB
NBV["xratud<br/>major N"]
end
NAV -->|"registration and pull pass"| CPV
NBV -. "refused at registration or pull" .-> CPV
Every version check sits on an edge, at the receiving side, before any work crosses it. A node left on the old major is stopped at its first edge and holds no work from the new control plane, so a partial rollout shows up as refused nodes rather than as degraded runs.
For which contracts this applies to and who owns each, see Cross-plane contracts.