feat(orchestration): budget windows with arbitrary reset datetimes #558
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Mosaic orchestration currently has no durable concept of AI-provider budget windows. OAuth subscription quotas can reset at arbitrary datetimes, not only calendar/month boundaries. Without budget-window awareness, an orchestrator can over-dispatch expensive workers near quota exhaustion, or under-use available quota before reset.
Desired capability
Add a first-class budget/reset model for Mosaic Stack orchestration so the system can:
Initial product requirements
Budget model
user-entered,provider-detected,estimated,unknown;User entry
mosaic budget set --provider <name> --limit <n> --unit <unit> --reset-at <iso-datetime>mosaic budget statusmosaic budget reset --provider <name> --reset-at <iso-datetime>Autodetection
Orchestration behavior
Evidence and observability
Suggested implementation lanes
mosaic budget status/set/resetwith local config persistence and tests.Acceptance criteria
Notes
This should be implemented as a proper Mosaic Stack feature, not a one-off local convention. It belongs in the orchestration/control-plane roadmap and should align with the AI Guide delivery model: PRD first, decomposed lanes, independent review, green CI, and post-merge verification.