Skip to content

fix(budget): make local spend caps configurable across platforms #107

Done

Description

@abruption

Problem

#104 allows a zero daily spend cap in Worker mode. The local settings schema and CLI still reject zero. Windows local mode also needs a budget-only configuration path that leaves the existing protection for credential-routing settings in place.

Scope

  • Allow zero for local daily spend only. Keep monthly and per-request spend, daily request count, concurrency, and recorded request accounting intact.
  • Provide a narrow environment override for daily and monthly spend that also works on Windows. Keep Worker bindings independent.
  • Verify the local CLI and SQLite runtime can use a $150 monthly cap and 50,000-token profiles for GPT-6.2 Astra and Claude Fable 5.2. Keep existing defaults and document the new behavior in the four configuration guides.

Acceptance criteria

  • Existing local settings continue to work. Invalid environment values fail before reserving or calling a provider, and the local override has no effect on Worker mode.
  • Packaged CLI, local budget enforcement, and the Windows package probe cover the configuration paths with fixtures or mocked providers.
  • Independent review and CI pass before the fix is included in the 0.6.1 release.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions