Skip to content

Meter supervisor spend by provider credits delta#106

Merged
MaxGhenis merged 1 commit into
mainfrom
supervisor-credits-meter
Jul 7, 2026
Merged

Meter supervisor spend by provider credits delta#106
MaxGhenis merged 1 commit into
mainfrom
supervisor-credits-meter

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Cache replays carry their original recorded cost; summing scenario CSVs double-counts prior runs' spend (observed: $7.74 'spent' in one minute of free replays, which would have tripped the budget governor on phantom spend). Prefer the OpenRouter /credits delta from run start when a key is present; keep the disk sum as fallback. Two new tests.

🤖 Generated with Claude Code

Cache-replayed responses carry their original recorded cost, so summing
the per-scenario CSVs double-counts money spent in earlier runs — the
supervisor's first production outing reported $7.74 spent after a
minute of free replays and would have tripped the budget governor on
phantom spend. With an OpenRouter key the /credits delta from run start
is authoritative (polled at most every 20s); the disk sum remains the
fallback for providers without a balance endpoint.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policybench-site Ready Ready Preview, Comment Jul 7, 2026 10:35am

Request Review

@MaxGhenis MaxGhenis merged commit 6863849 into main Jul 7, 2026
6 checks passed
@MaxGhenis MaxGhenis deleted the supervisor-credits-meter branch July 7, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant