Skip to content

Add scoped budgets and spending alerts - #22

Merged
IAbuElRuzz merged 1 commit into
feat/scalable-historyfrom
feat/scoped-budgets
Nov 15, 2026
Merged

IAbuElRuzz merged 1 commit into
feat/scalable-historyfrom
feat/scoped-budgets

Conversation

@IAbuElRuzz

Copy link
Copy Markdown
Owner

Accounts can now create daily or monthly UTC budgets for all usage, an exact project or an exact model identifier. Choose estimated API-equivalent cost or supplied billed cost. SQL totals use canonical retained requests and preserve unpriced coverage, revisions and account isolation.

The Operations dashboard refreshes budgets every30 seconds, displays threshold alerts and optionally sends desktop notifications while open. Notifications deduplicate by budget/period during the account view lifetime. Definitions persist in each account ledger; server mutations require CSRF validation. These are advisory budgets, not spending enforcement or provider invoice reconciliation. Closed-dashboard delivery is not implemented.

Validation: backend budget regressions cover period boundaries, corrections, missing prices, CSRF and tenant-scoped deletion; 45 frontend tests and production build passed; Ruff passed. Combined backend suite passed72 tests before one additional cursor regression separately passed.

Depends on PR21. Review/merge order: PR19 → PR20 → PR21 → this PR.

@IAbuElRuzz
IAbuElRuzz merged commit 5c1c754 into feat/scalable-history Nov 15, 2026
20 checks passed
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