Audit and replay¶
Every run Xratu executes can be explained after the fact from records, and replayed from them. Which code ran, sealed under which review; which policy applied, attached at which level; which decisions the kernel made and why; which model version answered, built from which weights; who changed what, when, and under what authority. No single plane holds all of that. The control plane records every change to its own state and every governance decision. The node records what it verified before a run reached the kernel. The kernel records what the run did, step by step. This section joins the three into one account an auditor can follow, and shows how a run is replayed and compared against its original.
For the reader's account of what is audited and what replay guarantees, see Audit & Replay in Concepts.
One run, three records, one fingerprint¶
flowchart TB
subgraph CPL["CONTROL PLANE"]
direction LR
AU[("Audit records<br/>every mutation, actor, before and after")]
GV[("Governance and history<br/>decisions, lifecycle")]
RE[("Run record<br/>snapshots, compiled plan, events")]
end
subgraph DPL["NODE"]
direction LR
AT[("Dependency attestation<br/>artifacts verified, policy digest")]
SP[("Audit spool<br/>hash-chained")]
end
subgraph KRN["KERNEL"]
direction LR
FP{{"Run fingerprint<br/>fixed at run start"}}
PD[("PolicyDecision records")]
JR[("Telemetry journal<br/>hash-chained, sealed")]
end
BK[("Your bucket<br/>bodies")]
FP --> PD
FP --> JR
AT --> BK
JR --> BK
RE -. "run_id, trace_id" .- AT
AT -. "run_id, trace_id" .- JR
AU -. "run_id, workspace" .- RE
The three records join on the correlation tuple: the run_id and trace_id
the control plane minted travel unchanged through the node into the kernel.
Every kernel record also carries the run fingerprint, so every decision and
every step names the exact code and law it ran under. See
Three layers of evidence.
What an auditor can answer¶
| Question | Answered by |
|---|---|
| Who changed this, when, and what did it look like before? | The control plane's audit records |
| What exact code and policy did this run execute? | The run fingerprint |
| What did the node verify before the run started? | The dependency attestation |
| Which rule fired at each step, and what did it do? | The run's PolicyDecision records |
| Which model version answered each call, from which weights? | The run's model route contracts and the model's serve evidence |
| Has any of this been altered since? | The hash chains and digests at each layer |
| Does the run reproduce? | A replay, compared node by node against the source |
In this section¶
- Three layers of evidence: what the control plane, the node and the kernel each record, and how the records join.
- Integrity at every layer: the hash chains, digests, fences and seals that make a record tamper-evident, and how to verify them.
- The run fingerprint: the identity every run carries, and what an audit log proves because of it.
- Auditing a run end to end: from a run id to every version, decision and model call behind it.
- Auditing a project version: what a version was built from, who promoted it, and what ran on it.
- Auditing a model: a model's revisions, bindings and routes, and which runs each version served.
- Auditing agents and workflows: delegation, context construction and agent memory on the record.
- Replay mechanics: recorded-output replay, pinned re-execution with comparison, and rebuilding the evidence graph from a sealed journal.
- What an audit is never missing: the invariants that keep a record complete.
- Auditor access and export: who may read audit records, how bodies are released, and retention, legal hold and export.
For the walkthroughs, see Replay a run and compare, Verify a run fingerprint, Audit history and governance reporting and Retention, legal hold, purge, and audit export.