Skip to content

[frontend] Budget & limits settings surface — show 24h consumption vs each ceiling + distance-to-limit, and edit the limits (console owner + admin) #475

Description

@serge-ivo

Depends on the config resolver (backend ticket).

Problem

The account circuit breaker (250M tokens / $50 charged per 24h) is invisible until it fires — the number only appears in the refusal message after work is already blocked. The console Usage page shows consumption from the ai_usage ledger but never the ceiling or how close you are. There is no field anywhere to change the limit.

Scope

  1. Usage/Budget panel (console, account owner): for each ceiling show current rolling-24h consumption, the ceiling, and distance-to-limit (a gauge), plus per-tree defaults and Loop iteration cap. Editable where policy allows (clamped to the max from the backend).
  2. Admin portal: platform-default ceilings + per-account overrides (the operator view), living beside the existing /admin/settings surface.
  3. Wire both to the new get/set endpoints from the backend + MCP tickets. No new source of truth in the client.

Notes

Folds in the earlier “breaker is invisible” gap. Admin portal is at /admin (host worker), role-gated; see #108 re: the Cloudflare Access perimeter.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    deferred-by-#68Parked under the focus bet (#68) — picking this up is a deliberate overrideenhancementNew feature or requestfrontendFrontend / UI work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions