For finance and audit
For the controller and internal audit
For each change an agent made: who asked, which rule applied, who approved exactly what, and what happened. You can check the record's hash chain without going through the service that wrote it.
Who approved exactly what
An approval is bound to a hash of the submitted plan: its steps, inputs, requester and policy version. Change any of them and the decision no longer applies.
Summary
Create vendor: Northwind Supplies GmbH, DECreate purchase order: 10 x LAPTOP-14 from (output of step vendor), unit price 120000 EUR (minor units), department it-opsPay deposit: 360000 EUR (minor units) for purchase order (output of step order)
- Rule
- procurement.irreversible_requires_approval
- Requester
- agent:procurement-bot for user:u_jonas
- Required role
- finance_approver
- Step inputs
- shown in full; left out of this drawing
- Expires
- 24 hours after creation
- Execution hash
- sha256:c41e…
Agent-supplied, unverified
New laptop supplier, 30% deposit agreed.
{ "principal": "agent:procurement-bot", "on_behalf_of": "user:u_jonas", "steps": [ { "intent": "…", "version": 1, "input": { … } } ], "bundle_digest": "sha256:9f2c…" }Scroll sideways for long lines.
A rule can require that the approver is not the person the agent acts for. Approval never overrides policy: each step is checked again when it runs. References to earlier steps' outputs are hashed unresolved. The agent's rationale is shown to the approver, labelled as unverified, and is not covered by the hash.
Evidence levels
Each decision records how the person was identified. A rule can demand a minimum level, so that a large payment can be decided only after a fresh sign-in.
tokenA bearer token on the operator API or the CLI. Proves a client holds a credential, not that the person signed in to decide.oidcSign-in on the approval page through your identity provider. Records who was authenticated when the exact content was approved. It is not a signature by the approver.webauthnWebAuthn approvalsPlannedThe approver's authenticator signs a challenge derived from the execution hash: a true signature over the approved content.
The record you can verify
Every event is chained to the one before it by a hash. A separate command reads the database directly and recomputes the chain, so the check does not depend on the service that wrote it.
OK: events 4120 to 4142, head 4142 c32d…BROKEN at seq 4123: hash does not match the event's contentSomeone with full control of the database can rewrite the whole chain. Today the defence is to store the current head hash where that person cannot reach it. Planned:
Anchored audit checkpointsPlanned
Export
The evidence leaves the system in a plain format, and the copy's chain can be recomputed on its own.
| Action or role | What it does |
|---|---|
| Export the trail | Writes events as JSON Lines, for your archive or a security monitoring system. |
| Check an export | Recomputes the chain over an exported file alone, without the database or the running service. Compare its last line with a head you recorded. |
| Record the head | Gives the current sequence number and head hash, to record somewhere else. |
| sefra_auditor | The role that reads approval summaries and rationales and exports from the console, without being able to change anything. |
What the record does not establish
- The system of record shows Sefra's technical user as the actor. The person who approved is in Sefra's trail, not on the ERP's record.
- The oidc level records a sign-in, so the approver's authenticator has signed nothing.
- A compromised service can append false events that chain correctly. The verifier cannot detect them.
- The trail records what Sefra saw and did. The agent's reasoning is not in it, and a rationale is stored as unverified.
- The trail is designed to produce evidence. Whether it satisfies a given regulation or auditor is your question, and Sefra claims no certification.
Putting the person's identity on the system's own record needs a credential for each person. Planned:
Per-user credentialsPlanned