Audit an agent's spending records
audit_spendDetect duplicate charges, price escalation, failed-but-billed calls, runaway loops, missing refunds, and budget breaches in settled agent calls, returning three separate recoverable amounts rather than one misleading sum.
Instructions
Find duplicates, price escalation, failed-but-billed calls, runaway loops, missing refunds, model overpay, unknown asset/network and budget breaches in a list of settled agent calls. Returns three separate amounts (money without a basis, estimate above the agent's own median, budget overrun) instead of one sum, because adding them together would overstate what can be recovered. Do NOT use as a statement of money actually returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | No | Optional budget policy: {"limit_usd": "100"}. | |
| records | Yes | Rows with ts, agent_id, tool, quote, settled, status; optional model, actual, refund, asset, network, tx_hash, payee. |