Auditing a run end to end¶
An audit of a run starts from one identifier and ends with a complete account: who started it, what code and law it executed, what the node verified before it began, every decision the kernel made, which model version answered each call, which secrets it was granted, what it did step by step, and whether any of that record has changed since. Each answer comes from a record written at the time, never from reconstruction. This page walks one run from its id to that account, and names the record behind each step.
From a run id to the whole account¶
flowchart TB
RID(["run_id"])
subgraph CPR["CONTROL PLANE"]
direction TB
AU["Audit records<br/>who started it, what changed"]
RR["Run record<br/>snapshots, compiled plan, input"]
GE["Governance and history<br/>decisions, lifecycle"]
DT["Determinism view<br/>model version, pinning, replays"]
end
subgraph NDR["NODE, bodies in your bucket"]
direction TB
DA["Dependency attestation<br/>artifacts verified"]
end
subgraph KNR["KERNEL, bodies in your bucket"]
direction TB
FP["Run fingerprint"]
PD["PolicyDecision records"]
JR["Telemetry journal<br/>every step"]
end
CAT[("Catalog<br/>capsule publication records")]
RID --> AU
RID --> RR
RID --> GE
RID --> DT
RID --> DA
RID --> FP
FP --> PD
FP --> JR
FP -->|"qualified capsule identities"| CAT
Everything branches from the run_id, and everything the kernel recorded also
hangs from the fingerprint. The records in the control plane are read directly;
the bodies in your bucket are read through payload access.
A worked audit¶
The run is $RUN_ID, a run of the project orders at version 1.4.0 in the
current workspace.
1. Who started it, and what changed around it¶
The audit records name the actor who created the run (run.create) and every
other change recorded against it, with the state before and after. The history
shows the run's lifecycle: queued, dispatched, each step, its end. For what the
same actor did around it, across resources:
2. What it executed, under which law¶
The fingerprint names the compiled project execution composition, every block's capsule digest, the effective policy, the bundle versions and any exemptions. Each capsule digest leads to its release in the catalog: the package, the version, the publication attestation and who published it. See The run fingerprint and Publication attestation and signing.
3. What the node verified before the run began¶
The dependency attestation for the run lists every artifact the node fetched, by reference and digest, the policy digest it verified them under, and whether trust verification was required. Its reference is in the node's audit spool record and the body is in your bucket. See Assignment attestation append.
4. Every decision the kernel made¶
Each PolicyDecision names the hook, the step, the rule, the bundle, the level
it was attached at, the input hash, the effect and the reason. An approval
records who approved and when; an exemption records the exemption and its
signer. The control plane's governance events record the decisions it made
about the run, at which scope. See
Policy decision evidence
and
Governance events.
5. Which model version answered each call¶
The determinism view names the model, the model version, the binding the run called it through, and the prompt template and tool schema versions pinned for the run. The run's model route contract records, per call, the version selected, whether it was the route's target, and the route's generation and hash. The model version's serve evidence and trace chain then name the engine image and the weights. See Model versions and project bindings and Auditing a model.
6. Which secrets it was granted¶
The release pins, for each consumer of a declared key, the binding revision and the use policy it resolved under. The resolution evidence for the run's assignment names the grant, the binding revision, the external version your gateway selected, the outcome and the signed receipt. The resolved delivery names the delivery mode for each consumer. No record at any layer holds a value. See Resolution evidence admission.
7. What it did, step by step¶
The trace and timeline project the run's events. The complete account is the
kernel's telemetry journal: every capability transition, every object and its
lineage, every effect, every validation and claim, in journal order. Its
sealed collection is in your bucket, with its metadata and journal_hash in
the control plane. See
The execution evidence graph.
8. Whether the record is intact¶
The run's event chain and the workspace's audit chain are recomputed and their signatures checked; a body read back is checked against its recorded digest. See Integrity at every layer.
The account, in one table¶
| Question | Record | Where |
|---|---|---|
| Who started it | run.create audit record |
Control plane |
| What else changed around it | Audit records with the run_id, actor activity |
Control plane |
| What code ran | The project execution composition and capsule publication records | Kernel records, catalog |
| Under which law | The governing-policy identity, contributing bundle versions and signed exemptions | Kernel records |
| What the node verified | Dependency attestation | Your bucket, spool reference |
| What each rule decided | PolicyDecision records |
Kernel, projected through the node |
| Which model answered | Model route contract, determinism view, serve evidence | Control plane, kernel |
| Which secrets it used | Lease intent, delivery receipts | Control plane, node |
| What it did | Telemetry journal | Your bucket, metadata in the control plane |
| Whether any of it changed | Hash chains, digests | Every layer |
To read a body in your bucket, see Auditor access and export.