Skip to content

Add the per-project quota client and metrics#148

Merged
scotwells merged 1 commit into
mainfrom
split/quota
Jun 5, 2026
Merged

Add the per-project quota client and metrics#148
scotwells merged 1 commit into
mainfrom
split/quota

Conversation

@scotwells
Copy link
Copy Markdown
Contributor

Value

Lands the per-project quota client and metrics as a self-contained unit, ahead of the controllers that use it. Like the API types, this is scaffolding that stands on its own — it builds and vets cleanly on main independently of the federation controllers — so it can be reviewed in isolation before the reconcilers wire it in.

What

A self-contained internal/quota package:

  • The per-project quota client (talks to the Milo quota control-plane path)
  • Quota metrics

No controllers, no wiring — just the package. The federation foundation consumes it once it lands.

Stack

Sits between the (merged) API types and the federation foundation: main ← this ← #107 (controllers/wiring/config) ← …. Extracted from #107 so the quota integration reviews on its own.

🤖 Generated with Claude Code

Add the per-project quota client that reads AllowanceBucket capacity from
the project's Milo control plane, plus metrics that expose quota
allocation and lookup outcomes for observability.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@scotwells scotwells requested review from a team and savme June 5, 2026 16:26
@scotwells scotwells merged commit b4b61ee into main Jun 5, 2026
9 checks passed
@scotwells scotwells deleted the split/quota branch June 5, 2026 16:28
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.

2 participants