Resolution at build time¶
Workflow compilation, policy merge, version pinning, exemptions and dependency resolution are all decided before a run, on the control plane and the data plane node, and sealed. The kernel receives the result: a sealed run-plan and a verified runtime closure, both fixed by hash. This page covers what is resolved, where and when, and what that fixes for a running project.
Where each decision is made¶
flowchart TB
subgraph CP["CONTROL PLANE"]
direction TB
COMP["Workflow compiler"]
MERGE["Policy merge<br/>most-restrictive-wins"]
PIN["Version pinning"]
EXM["Exemption issuance"]
ADM{{"Closure admission"}}
end
subgraph NODE["DATA PLANE NODE"]
direction TB
RES["Closure resolution"]
MAT["Materialisation"]
end
subgraph XCK["KERNEL"]
direction TB
PLAN[("Sealed run-plan")]
CLO[("Verified runtime closure")]
EXE["Execution"]
end
COMP -->|"1. IR over the closed set"| MAT
MERGE -->|"1. frozen policy per step"| MAT
PIN -->|"1. exact block hashes"| MAT
EXM -->|"1. signed exemptions"| MAT
RES -->|"2. candidate closure"| ADM
ADM -->|"3. admitted closure"| MAT
MAT -->|"4. sealed, hash-verified"| PLAN
MAT -->|"4. materialised views"| CLO
PLAN --> EXE
CLO --> EXE
Closure
resolution on the node proposes a candidate, and only Closure admission on
the control plane admits it. Materialisation assembles what the control
plane decided, and the kernel holds two sealed inputs, Sealed run-plan and
Verified runtime closure, from which Execution runs.
What is resolved, and when¶
| Decision | Made by | When | Reaches the kernel as |
|---|---|---|---|
| Workflow compilation | The control plane's workflow compiler | Workflow publish and project build | Compiled IR over the closed primitive set |
| Policy merge | The control plane, across the seven attachment levels | Project build | A frozen effective policy for every step |
| Version pins | The control plane | Workflow publish | Exact block artifact hashes |
| Exemptions | The control plane, which issues and validates them | Project build | Signed exemptions, consumed as data |
| Runtime dependencies | Resolved on the node, admitted by the control plane | Before the cell starts | One admitted runtime closure |
| Application services | The api.yaml compiler |
Project build | Sealed service descriptors and bindings |
The kernel consumes sealed descriptors and grants. Authored source, such as
workflow YAML, block decorators or api.yaml, reaches execution only in its
compiled form.
What this fixes for a running project¶
Policy holds for the length of a run. A change to a bundle creates a new project-bundle version. Runs already executing keep the policy they started under, and runs started from the new version use it.
An upgrade is a rebuild. Moving a block to a new version means rebuilding
the project bundle, and the new run-plan carries the new hash. A project that
opts into auto-tracking with track: latest-minor runs an exact version as
well, and the run-plan records which one.
Every run is explained by its fingerprint. Every decision is sealed before the run starts, so the run fingerprint names everything that decided its behaviour. See Deterministic lowering.
Related¶
- Staying primitive for what the kernel owns at execution.
- Resolved runtime closure for how dependencies are fixed before a cell starts.
- Why the kernel never parses authored source for the compiled forms the kernel accepts.