Step-by-step answer
Core 90–120 min8 stepsBuild a cost ledger with budgets and alerts
A SQLite ledger of raw Claude usage events for a synthetic month (2,000 matters, five firms), priced at query time from a versioned price table, with written allocation rules, a per-firm and per-matter-type report, a reconciliation waterfall that explains every gap to a synthetic invoice, and run and matter budgets replayed to show where the runaway matter would have stopped.
Back to the exercise