Integrity at every layer¶
An audit record is worth only as much as the proof that nobody changed it afterwards. Every layer that keeps records makes them tamper-evident on its own: records are chained, each to the one before, so a record removed or altered breaks every record after it; bodies are addressed by digest, so a body read back is checked against the digest recorded when it was written; and the artifacts a run executed are sealed by hash from the source up. This page covers the chain at each layer, what each seal covers, and how to verify them.
The seals, from source to report¶
flowchart TB
subgraph BUILD["SEALED BEFORE THE RUN"]
direction TB
CAP[("Execution capsule<br/>digest, Ed25519 publication attestation")]
BUN[("Policy bundle<br/>compiled and signed")]
REC[("Project recipe<br/>signed by the control plane")]
PLAN[("Sealed run-plan<br/>hash-verified on the node")]
CAP --> REC
BUN --> REC
REC --> PLAN
end
subgraph RUN["CHAINED DURING THE RUN"]
direction TB
FP{{"Run fingerprint"}}
JR[("Kernel telemetry journal<br/>hash chain, sealed")]
SP[("Node audit spool<br/>hash chain per stream")]
FP --> JR
end
subgraph REPORT["CHAINED WHERE IT IS KEPT"]
direction TB
EV[("Control plane chains<br/>audit, history, event, log")]
BO[("Bucket objects<br/>SHA-256 digest recorded")]
end
PLAN --> FP
JR --> BO
SP --> EV
JR -->|"collection metadata,<br/>journal_hash"| EV
Each seal is referenced by hash from the one that builds on it. The fingerprint names the sealed run-plan's hashes; the run-plan names the recipe; the recipe names each capsule and bundle by digest. The chain runs from "this run executed" down to "this exact code shipped under this exact governance review", and every link is checkable.
The control plane's chains¶
The control plane chains four kinds of record, each in its own scope:
| Envelope type | Scope | Covers |
|---|---|---|
audit |
audit:<workspace_uuid> |
Every audit record in the workspace |
history |
history:<workspace_uuid> |
Every history event in the workspace |
log |
log:<workspace_uuid> |
Every governed service log in the workspace |
event |
event:<run_id> |
Every event of one run |
Each record takes the next sequence number in its scope and a hash:
The body is the record's content: for an audit record, the actor, action,
resource, workspace, and the digests and references of the state before and
after. The hash is signed with the control plane's telemetry signing key
(hmac-sha256), and the record stores integrity_seq, integrity_prev_hash,
integrity_hash, integrity_signature_alg and integrity_signature.
Verifying a chain¶
xratu obs integrity workspace audit
xratu obs integrity workspace history
xratu obs integrity workspace log
xratu obs integrity run $RUN_ID
Verification walks the scope in sequence, recomputes each hash from the record's content, and checks each signature. It stops at the first failure and names it:
reason |
Means |
|---|---|
sequence_mismatch |
A record is missing, or one was inserted |
prev_hash_mismatch |
A record's link to its predecessor was rewritten |
hash_mismatch |
A record's content changed after it was written |
signature_mismatch |
The hash was not signed by the control plane's key |
The report carries ok, verified_count, failed_count and first_failure.
An ok chain proves that every record in the scope is exactly as it was
written, in the order it was written.
Bodies are checked by digest¶
The state before and after an audited change, and every body a node or the kernel reports, is recorded with its SHA-256, its size and its content type. Bodies are redacted before they are hashed, so the digest covers what was kept. A body read back from your bucket through a payload-access request is checked against that digest; a body that no longer matches has been altered. See Payload store runtime.
The node's chain¶
The node's audit and attestation spool holds two hash chains, audit and
attestation, each record's hash covering its predecessor. Every envelope the
node serializes has an event_id that is the SHA-256 of the envelope itself.
See Audit attestation.
The kernel's chain¶
The kernel's telemetry journal is append-only and hash-chained, one record per
line, ordered by the journal's own sequence. When the run ends the kernel seals
the journal; the sealed collection records the hash at the head of the chain,
journal_hash, and its first and last sequence numbers. The collection's
metadata reaches the control plane while its body goes to your bucket, so the
control plane holds the proof of a journal it never holds. A journal read back
later is the journal the kernel sealed exactly when its chain recomputes to
that head. See
Payload store runtime
and
The execution evidence graph.
Ordering inside a run comes from the journal sequence, never from timestamps, so clock skew between processes changes nothing a verification or a replay depends on.
Reports are fenced¶
A node's report changes the control plane's state only when it was made under the state the control plane expects:
| Fence | Refuses |
|---|---|
| Release route generation and hash | A report made under a project or model route that has since moved |
| Lease and fence epoch | A report from a node whose ownership of the assignment was taken over |
| Policy snapshot digest | A report made under a different effective policy |
A refused report changes nothing, and the refusal records the expected and observed values. See Versioned release routes and bindings and Policy snapshot and digest enforcement.