Immutability and version pinning¶
Everything a run depends on is versioned and pinned before the run starts. A reusable capability block's code is content-addressed and immutable once published, a project's dependencies are pinned at publish time, and policy is resolved at build rather than at runtime.
What is pinned, and when¶
| Pinned | At | Recorded as |
|---|---|---|
| Reusable capability block code | Publish | A content address; the artifact is immutable |
| The versions a project uses | Workflow publish | Exact hashes in the run-plan |
| The workflow itself | Build | A compiled form lowered to the closed primitive set |
| Policy | Build | A resolved effective envelope and its digest |
| The runtime image | Build report | An image digest the control plane pins |
| Storage and identity decisions | Control-plane finalization | An immutable latch |
The sealed run-plan¶
The unit of build, deploy and execution carries all of it together:
sealed run-plan
the compiled workflow, lowered to the fifteen kernel primitives
pinned block artifact hashes
the resolved effective policy envelope
a manifest of the above
signatures over the manifest
The kernel consumes a sealed run-plan and executes it. Compilation, policy merging and version resolution have all happened before it arrives.
Default behaviour is fully pinned¶
A block upgrade from payment.refund v3 to v4 requires rebuilding the project
bundle. The running deployment continues on v3 until a new bundle is built,
deployed and released.
Auto-track is available where a project opts into it:
Under auto-track the run-plan still records the exact version resolved at run time, so a run remains attributable to the code it actually used.
Policy holds still for the length of a run¶
Policy is resolved at build. An edit to a policy bundle produces a new project bundle version, and runs already in flight continue under the envelope they started with.
flowchart LR
A["Policy edited"] --> B["New project bundle version"]
B --> C["New runs use it"]
D["Runs in flight"] --> E["Continue under the envelope<br/>they were sealed with"]
A change of rules is therefore a versioned, signed event with a time, rather than a silent change in behaviour between one run and the next.
Immutable records in the platform itself¶
The same principle holds below the project layer. A control plane's identity latch fixes its instance identity, storage backend and store profile at activation, and every later start is checked against them. A control plane latched against the wrong storage is replaced rather than repaired.
See The identity latch.
What pinning gives a reader¶
A run can be reproduced, because everything it depended on is named by hash. A change is visible, because it takes a new version to make one. And a question about a past run has an answer that does not depend on what the catalog contains today.
See The three guarantees for what is proven from these pins, and The correlation tuple for how a run is located in the record.