Skip to content

The chain hop by hop

Work crosses two links to reach execution and crosses both again to become evidence. Each hop hands the next something it can verify without trusting the hop before it. This page is that chain and what each hop guarantees.

The chain

flowchart LR
  subgraph CP["CONTROL PLANE"]
    direction TB
    AE[("Assignment envelope")]
    MD[("Metadata and references")]
    VC{{"Checks reference shape,<br/>digest normalisation"}}
    VC --> MD
  end
  subgraph XD["XRATUD"]
    direction TB
    VN{{"Checks policy digest,<br/>resolver fingerprint,<br/>artifact digests"}}
    VB{{"Checks content hashes<br/>against the recipe"}}
    VR{{"Checks chain continuity"}}
  end
  REG[("Registry")]
  BK[("Bucket")]
  subgraph K["KERNEL"]
    direction TB
    VK{{"Checks signatures<br/>and hashes"}}
    EV[("Evidence envelopes")]
  end
  AE -->|"out"| VN
  REG -->|"bytes"| VB
  VB -->|"sealed run-plan"| VK
  EV -->|"return"| VR
  VR ==>|"bodies"| BK
  VR -->|"references"| VC

Every arrow lands on a hexagon, and each hexagon belongs to the receiver. No plane accepts what the one before it handed over without checking it itself, and the two tables below list each check hop by hop.

Outbound: intent to execution

Hop Hands over The receiver verifies
Control plane to node An assignment envelope Policy digest against the snapshot, resolver fingerprint, artifact digests
Node to itself Fetched bytes Content hashes against the recipe
Node to kernel A sealed run-plan Signatures and content hashes, independently

No hop asks the next to trust it. The control plane states hashes for bytes it never read; the node fetches those bytes and checks them; the kernel opens what the node assembled and re-derives its own view.

Return: execution to evidence

Hop Hands over The receiver verifies
Kernel to node Sequenced envelopes with prev_digest and digest Chain continuity and sequence contiguity
Node to bucket Payload bodies Content digest on write
Node to control plane Metadata and payload references Reference shape and digest normalisation

What each hop guarantees the next

The control plane guarantees the assignment is complete and self-checking. Everything needed to verify it travels with it, so a node needs no second call to decide whether to act.

The node guarantees the run-plan matches the recipe. Bytes were fetched and checked against hashes the control plane pinned before the kernel sees them.

The kernel guarantees ordered, gap-evident evidence. Every envelope carries its position and links to its predecessor.

The node guarantees durable delivery of that evidence. What the kernel emitted is spooled and delivered, with identifiers that make redelivery safe.

Where a hop can stall without losing anything

Each hop holds its own position, so a stall at one does not disturb the others:

control plane to node    watch revision, assignment leases
node internal            outbox cursor and segments
node to kernel           last_acked_seq on the return lane

The cursors are separate and never collapsed. A node that delivered telemetry but lost the acknowledgement is in a different state from one that delivered neither, and one cursor could not express both.

The chain proves itself afterwards

Every run is identified by a fingerprint, and every kernel event references it:

{ project_execution_composition_digest, compiled_effective_policy_digest,
  policy_bundle_identities_and_versions, signed_exemption_refs }

Because each hop verified rather than trusted, that fingerprint is a claim the audit trail supports rather than one the system asserts. See The CP recipe.