The ledger
Every step and decision on a case is recorded in its append-only ledger, with who decided and under whose sign-in.
Each row is written in the same database transaction as the change it records. No change exists without its row, and no row without its change.
What a row says
| Field | Meaning |
|---|---|
action | What happened, as noun.verb: file.received, gate.confirmed, run.ingested, document.approved, workflow.auto_filed. |
actor.name | Who decided. A person's role, the name of an API key, Workflow, or Agent. |
actor.authenticatedAs | Whose sign-in or key authorized the write. |
actor.via | The app a Claude sign-in came through, for example Claude. |
target, detail | What was touched, and the specifics. |
When a person decides, both fields point to that person. When a machine decides, they differ: a workflow can file a document but cannot sign in, so name says Workflow and authenticatedAs names whoever took the gate. Example:
| Decision | actor.name | actor.authenticatedAs | actor.via |
|---|---|---|---|
| Jane Doe, an Underwriter, matches a pay stub to its requirement. | Underwriter | jane.doe@example.com | |
| A workflow Jane attached at the gate files a W-2. | Workflow | jane.doe@example.com | |
| Claude, signed in as Jane, tags the appraisal Priority. | Agent | jane.doe@example.com | Claude |
The Activity ledger shows the last row as "Agent via Claude · jane.doe@example.com".
Where to read it
- In the app: Activity ledger, under ⋮ on the case's Case Filing pages.
- Over the API:
GET /applications/{id}/events, newest first. See reading results. - Pushed to you: webhooks deliver ledger rows as they are written.
Retention
When a case passes the retention window, it is purged together with its ledger, by design.
Sheaf