Skip to content

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