We gave our AI agent fleet a credit limit, and it hit it the same day
Описание и применение
Система автоматически ограничила расходы автономных агентов, превратив журнал событий в бухгалтерский реестр и применив пороговый контроль расходов, что предотвратило перерасход бюджета.
Задача
Uncontrolled AI agent fleet spending exceeded budget, risking runaway costs.
Результат
The system automatically prevented overspending by throttling new work once a rolling 5‑hour budget was exceeded, providing audit trails, real‑time alerts, and a fail‑open design that avoided paralysis.
Рабочий процесс
- 1. Replay board events into three hledger journals (money, promises, labour).
- 2. Validate ledgers with hledger check and independent replay for parity.
- 3. Compute rolling 5‑hour labour spend per mind using mesh‑labor.
- 4. Price spend via token‑to‑USD rate table (mesh‑ledger).
- 5. Monitor spend against configured cap with mesh‑labor‑alert (edge‑triggered).
- 6. When spend exceeds cap, mesh‑pace throttles new task dispatch until spend falls below threshold.
- 7. Operators can manually raise cap or bypass throttle via dedicated channels.
- 8. Ensure environment variables for cap are sourced in all entry points to avoid stale values.
Доказательства
The board gets replayed into three separate double-entry hledger journals, each tracking a different commodity: money, promises, labour.
mesh‑pace reads that rolling spend and, once it crosses the cap, holds every dispatch of new board work.
- Дата записи: 2026-09-15T06:15:34.931Z