Sheaf.us
SheafDocsConceptsThe ledger

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

FieldMeaning
actionWhat happened, as noun.verb: file.received, gate.confirmed, run.ingested, document.approved, workflow.auto_filed.
actor.nameWho decided. A person's role, the name of an API key, Workflow, or Agent.
actor.authenticatedAsWhose sign-in or key authorized the write.
actor.viaThe app a Claude sign-in came through, for example Claude.
target, detailWhat 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:

Decisionactor.nameactor.authenticatedAsactor.via
Jane Doe, an Underwriter, matches a pay stub to its requirement.Underwriterjane.doe@example.com
A workflow Jane attached at the gate files a W-2.Workflowjane.doe@example.com
Claude, signed in as Jane, tags the appraisal Priority.Agentjane.doe@example.comClaude

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.

This page as markdown · llms.txt · API contract