The audit record¶
An audit record answers four questions about one change: who made it, what they changed, what it looked like before, and what it looked like after. It is written by the control plane as the change is made, chained to the record before it, and never edited. This page covers what an audit record holds, the reason a change carries, and how audit records relate to the other records Xratu keeps.
What it holds¶
{
"actor": "user:dana",
"action": "model_binding.bind",
"resource": "project:orders",
"workspace_uuid": "5e0c...",
"project_name": "orders",
"before": {"alias": "summariser", "model": "llm-small", "model_version": "2.0.0"},
"after": {"alias": "summariser", "model": "llm-small", "model_version": "2.1.0", "project_version": "1.4.0"},
"integrity_seq": 1842,
"integrity_hash": "9c2a..."
}
| Field | Holds |
|---|---|
actor |
Who made the change: a user, a service account, or the system |
action |
What kind of change, such as project.release_route.set or secret_grant.create |
resource |
What was changed |
workspace_uuid, project_name, run_id |
Where it belongs |
before, after |
The state on each side of the change, redacted |
| Integrity fields | Its place in the workspace's audit chain |
A large before or after state is stored by reference and digest, and checked against the digest when read. See Integrity at every layer.
Reasons¶
Changes that move production carry a reason, stated by the person making them: a release route change names why the version was chosen, a legal hold names the investigation, a purge names its reason, a break-glass request names its justification. A policy rule carries its own reason and references, so a decision made under it explains itself. The reason is part of the record.
Four kinds of record¶
| Record | Answers | Written for |
|---|---|---|
| Audit record | Who changed what, and how | Every change to the platform |
| History event | What a resource went through | Every lifecycle transition |
| Governance event | What was decided about a run, at which scope | Every control-plane decision about a run |
| Evidence | What a run did, and why | Every step and decision inside a run |
They are kept apart because they answer different questions, and they join on the same identifiers, so an investigation moves between them without translation. See Three layers of evidence.