Skip to content

Evidence continuity across both links

Evidence is produced in the kernel and recorded in the control plane, crossing both links on the way. Each segment of that path has its own continuity mechanism, and they compose so that a break anywhere is visible rather than silent.

The path

flowchart LR
  subgraph K["KERNEL"]
    direction TB
    CS[("Continuity store<br/>seq, prev_digest, digest")]
  end
  subgraph N["XRATUD"]
    direction TB
    RC[("Return cursor<br/>last_acked_seq")]
    OB[("Outbox spool")]
    RC --> OB
  end
  B[("Your bucket<br/>bodies")]
  CP[("Control plane<br/>metadata, references")]
  CS -->|"segment 1: digest chain"| RC
  OB ==>|"segment 2: content digest"| B
  OB -->|"segment 3: envelope identifiers"| CP

Each segment has a record at both of its ends, and the label on the edge names the check. The body and its metadata separate at the node's outbox, so bodies stay in your infrastructure and a reference and a digest cross to the control plane. See The tenant byte rule.

Three continuity mechanisms, one per segment

Segment Continuity by A break is visible as
Kernel to node Monotonic sequence with prev_digest and digest A digest that does not chain, at a named sequence
Node to bucket Content digest on the written object A reference whose digest does not match
Node to control plane The process's outbox with envelope identifiers A gap between produced and delivered counts

No segment relies on the one before it having worked. The chain is verified where it is consumed.

The correlation tuple joins the segments

Every envelope carries all five fields, and they are required rather than optional:

workspace_uuid, assignment_id, run_id, node_id, trace_id

An envelope missing one is not produced, because it is built from a validated return context rather than assembled field by field. The same fields appear on the payload reference, so a body in your bucket is attributable without the control plane reading it.

Where a break leaves a mark

A kernel link break leaves no gap in the chain. The kernel keeps appending while the consumer is away, so the sequence is contiguous when delivery resumes. What the outage produces is distance between last_acked_seq and max_seq, which closes as delivery catches up.

A control plane link break leaves no gap in the evidence. The node keeps consuming from the kernel and spooling, so the record is complete locally and delivered late.

A genuine gap is detectable. A prev_digest that does not match names the sequence where delivery skipped, and the cursor holds there rather than stepping over it.

Acknowledgement is what permits compaction

The kernel compacts delivered envelopes after acknowledgement. Because acknowledgement is cumulative and stops at the first gap, a gap prevents compaction of everything beyond it.

That coupling is deliberate: the only thing that lets the kernel forget an envelope is a consumer confirming it has it, contiguously.

What an auditor gets

A contiguous chain from the kernel, bodies in your storage addressed by digest, and control-plane metadata referencing both, all carrying the same correlation tuple and referencing the run fingerprint.

An outage on either link delays that record and does not puncture it. See What a break never loses.