Files
Shadowbroker/backend/services
BigBodyCobain fe540f8a63 voice-agent U1: cost & budget rails
voice_cost.py: faithful Python port of the GEV voiceCost.js spend guard — model/tier registry with hostile-input-safe resolution, worst-case unknown-model billing, residual-to-audio usage splitting, one-shot warn/cap latches, tier-2 fallback audio-seconds estimator, single normalization authority ('off' sentinel round-trips; corrupt values restore defaults, never disarm). voice_daily_budget.py: per-UTC-day atomic ledgers under SB_DATA_DIR/voice_cost with midnight rollover, corrupt-file quarantine (.corrupt-* preserve + verbatim parse-error WARNING + ledgerQuarantined disclosure), hourly-throttled lazy pruning (>30d, no scheduler job), and the session-start budget gate incl. suggestTier at <25% remaining. Suites pin GEV arithmetic figures and cover plan §7.A items 4-10.
2026-08-24 21:33:02 -06:00
..
2026-03-04 22:44:08 -07:00
2026-05-01 22:56:50 -06:00
2026-05-01 22:56:50 -06:00
2026-05-01 22:56:50 -06:00
2026-05-01 22:56:50 -06:00
2026-05-01 22:56:50 -06:00
2026-05-01 22:56:50 -06:00
2026-05-01 22:56:50 -06:00
2026-05-01 22:56:50 -06:00
2026-06-16 17:05:46 -06:00