The change ledger — auditable history of every decision
The change ledger is Crew's append-only record of every state-changing action in the agent runtime. Every accepted proposal — whether it came from an agent or a human, whether it was auto-approved or sat in a review queue for hours — writes one row. The ledger is the layer that makes the rest of the system trustworthy.

Why a ledger exists
You can't run a serious AI-assisted process without an audit trail. Three pressures force this:
1. Auditors will ask. A client compliance team, a Talkpush legal review, a candidate disputing their rejection — every one of them will eventually ask "who decided this and why?" Without a ledger, the answer is a shrug. With one, the answer is a row.
2. High autonomy without trace is reckless. The whole bet of the autonomy dial is that you can let AI do more of the work without losing visibility. That bet only works if every AI action leaves a permanent, queryable trace. Otherwise "autonomy" is just "we stopped looking."
3. Patterns only emerge from history. "The screening agent is rejecting 12% of candidates we'd otherwise have advanced" is a useful fact, but you can only learn it by reading a few hundred ledger rows. Without the ledger, the system is opaque to its own operators.
A ledger answers all three. And it does it without being yet another database to maintain — it's just a table that every write goes through.
What goes in a ledger row
Every entry captures:
- The proposal that triggered the change (
proposal_id). Optional — some changes are direct human edits without an intermediate proposal. - The actor — who or what made the change.
actor_kindis one ofagent,human,external.actor_idpoints at the specific agent or user. - The approval path — was it auto-approved, human-approved, or human-applied directly?
- The target — which application, which candidate, which requisition the change affected.
- The prior playbook version vs. the applied playbook version — useful when a change moves an application onto a different playbook version mid-flight.
- The change itself — a structured JSON describing what fields shifted from what to what.
- A reason — free-text rationale, captured from the proposal's reason field plus any human edit during approval.
- The timestamp.
- A reverts pointer — if this row reverses an earlier row, it points back at what it reversed.
The schema is intentionally rich. A casual reader doesn't need all of it. An auditor or a debugger needs every field.
How the ledger fits into the runtime
┌──────────────────┐
agent → proposal │ │
─── auto-approve ──────►│ apply change │
│ │
─── queue → human reviews │ │
│ │ │
▼ │ │
approve ───────►│ │
│ │ │
reject (dropped, no ledger row) │
│ │
human direct edit (no proposal)──────────►│ │
│ │
└────────┬─────────┘
│
▼
┌──────────────────┐
│ change_ledger │ ← every applied
│ _entry │ change writes
│ (append-only) │ here
└──────────────────┘
A few things this picture makes precise:
- Rejected proposals don't get a ledger entry. Only changes that actually applied. The proposal table itself records what was proposed and rejected; the ledger is for what was done.
- Human direct edits write to the ledger. When a recruiter manually changes a candidate's stage without going through an agent proposal, that's still a state change and still earns a ledger row. The
actor_kindishuman, theproposal_idis null. - Auto-approval and human-approval both write the ledger. The difference is recorded in a field, not in whether the row exists.
What the ledger does
Beyond just existing, the ledger powers a few important capabilities:
- Replay a candidate's journey. Filter the ledger by application id, sort by timestamp, and you have the full trace of every state change that candidate experienced — every message, every advancement, every score adjustment.
- Attribute changes. "Show me every change agent X has made in the last 24 hours." "Show me every change made by recruiter Y this week."
- Revert with confidence. If a bad batch of changes went through (an agent had a bad day, a recruiter's bulk update was wrong), you can write a revert that points at the original entries via
reverts_change_id. The revert is itself a ledger entry — the system doesn't try to magically un-do; it explicitly records the corrective action. - Spot patterns. Aggregations over the ledger answer the meta-questions: "what percentage of agent proposals get human modifications during review?" "Which steps have the highest revert rate?" These are signals the system uses to tune itself over time.
Constraints and gotchas
- The ledger is append-only. No updates, no deletes. To correct a row, you write a new row that explicitly reverses it. This is enforced at the database level — the
app_userruntime role doesn't have UPDATE or DELETE grants on this table. - Don't query the ledger in hot paths. The ledger grows fast — a busy tenant adds tens of thousands of rows per day. It's optimized for write throughput and time-range queries, not for synchronous dashboard reads. The dashboards read the current state of applications; the ledger is consulted when someone wants history.
- Ledger entries don't contain PII directly. The
changeJSON captures field names and id references (current_stage_id,application_id), not raw candidate names or phone numbers. If you need to know who an entry is about, follow the application id → candidate id → encrypted PII. This is intentional — keeping the ledger PII-free simplifies retention and export. - Reverts cascade reasoning, not state. Reverting a ledger row writes a new row that re-establishes the prior state. But if other rows came after that one and depend on it, those don't automatically revert. The human reverter must decide what else to revert.
- Tenant scoping is enforced. A ledger query without the tenant scope (or with the wrong tenant) returns zero rows by RLS policy. Same as everywhere else in Crew — you can't accidentally read another tenant's ledger.
A concrete example
the candidate applies to Acme Co's Quezon City crew member requisition. Her journey produces this ledger trace:
| Time | Actor | Action | Reason |
|---|---|---|---|
| 09:01 | agent intake-v2 |
application created at stage Applied | — |
| 09:01 | agent screen-v3 |
sent screening message | autonomy low, auto-approved |
| 09:14 | agent screen-v3 |
received answers, scored 8/10 | — |
| 09:14 | agent screen-v3 |
proposed advance to Phone Screen | "Score 8/10 above threshold 6" |
| 11:32 | human the admin | approved proposal prop-...x4 |
"Looks fine, advance" |
| 11:32 | system | applied advancement, stage now Phone Screen | (from approved proposal) |
| 14:02 | agent schedule-v1 |
proposed sending scheduling link | autonomy medium, queued |
| 14:50 | human the recruiter (recruiter) | approved with modification | "Approved; changed offered times to evenings only" |
| 14:50 | system | sent scheduling link | (from modified proposal) |
| 16:18 | human the candidate (via candidate flow) | confirmed phone screen for tomorrow 2pm | — |
| ... | ... | ... | ... |
Every row is a fact. If a question comes up six months later — "why did the candidate get a 6pm scheduling option when our standard is morning?" — the answer is right there: the recruiter modified the proposal with a stated reason. No mystery, no he-said-she-said.
The total ledger for the candidate's journey from application to hire might be 30–50 rows. Across Acme Co's full operation, the ledger grows by tens of thousands of rows per day. Each one is small. Together they're the platform's memory.
Where the ledger surfaces
The change ledger data is accessible in two additional places beyond a raw database query:
- Requisition Activity log — the Activity log tab on the requisition detail page shows a filtered view of ledger events for that specific requisition: who changed its status, who edited its fields, and when. This is the primary day-to-day way recruiters see the ledger. See Requisition activity log.
- Candidate profile timeline — the candidate profile view includes a timeline of changes affecting that specific candidate's applications — stage advances, scoring updates, message events. See The candidate profile view for how it's laid out.
Both surfaces read from the same underlying ledger; they differ only in the filter applied (by requisition id vs. by candidate id).
See also
- What is an agent in Crew? — the agents whose actions populate the ledger.
- Autonomy and approval — how oversight works — the dial that controls whether proposals get into the ledger directly or via human review.
- Requisition activity log — the per-requisition filtered view of ledger events.
- The candidate profile view — the candidate-scoped timeline of changes.