Skip to content

The CP recipe

A recipe is the control plane's complete, signed statement of what a run is made of, containing no bytes. It is the output of xratu project build and the input to everything that follows. This page is what it contains and why the work is split where it is.

What a recipe contains

compiled flow IR         the workflow, lowered and deterministic
pinned block hashes      every reusable capability block, by identity and hash
resolved policy envelope the effective policy, already merged
a manifest of all of it
signatures over the manifest

Everything is symbolic. A hash names bytes the control plane has never read, and the policy is already merged, so nothing in a recipe requires resolution later.

The split across the boundary

Side Owns
Control plane Symbolic resolution: the pinned graph, the compiled IR, the resolved policy. Byte-free and signed
Data plane Materialisation: fetches block bytes from the tenant registry, verifies hashes against the recipe, assembles the sealed run-plan
Kernel Execution: consumes the sealed run-plan and runs it

The recipe and the bundle

flowchart LR
  subgraph CP["CONTROL PLANE"]
    direction TB
    subgraph RC["RECIPE, signed"]
      direction TB
      R1["Compiled flow IR"]
      R2["Pinned block hashes"]
      R3["Resolved policy envelope"]
    end
  end
  subgraph YI["YOUR INFRASTRUCTURE"]
    direction TB
    REG[("Registry<br/>block bytes")]
    subgraph BN["SEALED RUN-PLAN"]
      direction TB
      B1["Recipe, verified"]
      B2["Block bytes, hash-checked"]
    end
    K["Kernel"]
    REG --> B2
    BN --> K
  end
  RC -->|"pulled by the node"| B1

The recipe box holds no bytes and the bundle box holds both halves. They are joined on your side, where the registry is, so the same recipe produces the same bundle whoever operates the control plane.

Hosted, self-hosted and air-gapped deployments all fall out of this one model. None of them is a special case, because the recipe never depended on where the bytes were.

Resolution happens once, at build time

The kernel compiles nothing, merges no policy, and resolves no version at run time. Everything that could vary was decided when the recipe was built and signed.

A run is reproducible for that reason: replaying it means replaying a fixed document, rather than re-running a resolution that might now answer differently.

The run fingerprint

Every run is identified by one fingerprint over exact admitted code and law, and every kernel event references it:

{ project_execution_composition_digest, compiled_effective_policy_digest,
  policy_bundle_identities_and_versions, signed_exemption_refs }

The statement "on this date we ran exactly this code under exactly these rules" is therefore provable from the audit trail rather than asserted. See The correlation tuple for how those events join to everything else.

What the control plane owns to produce one

Producing a recipe requires the control plane to own the registries the recipe draws on: the policy bundle registry and its versioning, the flow registry including compiled IR, the block manifest registry, the attachment graph, and the effective policy computation over it. It also owns approval routing metadata for approval effects, and evidence retention and indexing over what comes back.

See Byte-free recipes for what the control plane is kept away from, and Runtime closure admission and reconciliation for the pinned runtime a recipe is executed against.