# Audit ledger

Append-only audit and financial proof across orders, revenue, spend, tools, models, and approvals.

Status: implemented
Version: latest
Review: source-backed

## Proof ledger

The ledger reads durable orders, Stripe webhooks, RevenueEvent rows, spend events, run events, tool calls, model decisions, approvals, artifact records, and audit hashes.

| Ledger source | What it proves |
| --- | --- |
| Order and RevenueEvent | Money entered the system and became work |
| StripeWebhookEvent | Payment proof was received idempotently |
| Deal and CRM activity | Business context exists in the built-in CRM |
| AcquisitionRun and RunEvent | Operational work started and changed state |
| ToolCall | External side effect was allowed, denied, or failed visibly |
| ModelDecision | Model work happened through a governed route |
| ApprovalEvent | A human approved, denied, or edited high-risk work |
| Artifact | A deliverable was generated, linked, and access-controlled |
| AuditEvent | System actions have an explainable trail |

It is operational proof, not mock-provider decoration. Sample and fallback rows must be labeled honestly and must never be presented as live production proof.


Source paths:
- `lib/autonomous_agency/audit.ex`
- `lib/autonomous_agency/revenue/ledger.ex`
