Audit & Replay¶
Every run in Xratu is on the record, and every run can be replayed from its record. The code it ran is named by hash, down to the sealed capsule of every block. The law it ran under is named by hash, down to the bundle version and the level each rule was attached at. Every decision a policy hook made is a frozen evidence record, every model call names the model version that answered, and every change anyone made to the platform names who made it, when, and what it looked like before. A finished run can be reproduced from its record, or re-executed under the same pins and compared step by step. This subsection covers that promise and what it proves.
For the mechanism across the three planes, see Audit and replay in Architecture.
The promise in one picture¶
flowchart TB
subgraph BEFORE["FIXED BEFORE THE RUN"]
direction LR
CODE[("Sealed code<br/>capsule digests")]
LAW[("Compiled policy<br/>bundle versions")]
FLOW[("Compiled flow")]
end
FP{{"Run fingerprint"}}
subgraph DURING["RECORDED DURING THE RUN"]
direction LR
DEC[("Every decision")]
STEP[("Every step")]
MOD[("Every model call")]
end
subgraph AFTER["AVAILABLE AFTER"]
direction LR
AUD["Audit<br/>who, what, when, why"]
REP["Replay<br/>reproduce, re-execute, compare"]
end
CODE --> FP
LAW --> FP
FLOW --> FP
FP --> DURING
DURING --> AUD
DURING --> REP
In this section¶
- Every run is auditable: what the promise covers, and why it holds without anyone opting in.
- What is audited: the closed set of subjects and acts that are on the record.
- The audit record: actor, reason, before and after, and how an audit record differs from history and evidence.
- Run fingerprint and audit provenance: the identity every run carries, and the chain it anchors.
- What replay means: the three kinds of replay, and the question each answers.
- What replay reproduces, and what it records: what is deterministic, and what is recorded because it cannot be.
- Audit history, retention, and export: reading the record, keeping it, and taking it out.