Skip to content

fix(budget): make local spend caps configurable - #108

Merged
abruption merged 1 commit into
mainfrom
fix/107-local-spend-caps
Nov 26, 2026
Merged

abruption merged 1 commit into
mainfrom
fix/107-local-spend-caps

Conversation

@abruption

Copy link
Copy Markdown
Owner

Issue

Closes #107

Problem and result

Local mode now accepts zero to disable only the daily spend cap. macOS and Linux can save the value with rebut set daily-budget 0. A budget-only REBUT_LOCAL_BUDGET_LIMITS environment override also supports Windows and is forwarded by new Codex and Claude Code registrations.

The local override applies only to the supplied daily and monthly spend amounts. Saved defaults, the Worker binding, credential routing, and existing ledger records keep their current behavior. Both modes report the effective daily and monthly caps via rebut budget.

Validation

  • Typecheck, build, 318 tests, package smoke, and the Windows probe harness on macOS passed.
  • CLI tests exercise a $150 monthly cap, local override precedence, rejected invalid values, and 50,000-token Astra and Fable profile persistence. SQLite tests exercise the per-request and monthly caps with a zero daily cap and a mocked provider.
  • The Windows CI job exercises the packaged CLI and local MCP environments. No paid provider calls were made.
  • Claude Opus 5.5 and Gemini 4 Neon reviewed the implementation. Gemini 4 Hydrogen reviewed the configuration guides.

@abruption
abruption marked this pull request as ready for review November 26, 2026 02:35
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T02:36:52.437200Z cd43ebc Draft marked ready
🔒 Security Review ✅ Completed 2026-11-26T02:37:17.965288Z cd43ebc Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@abruption
abruption merged commit 493d18e into main Nov 26, 2026
9 checks passed
@abruption
abruption deleted the fix/107-local-spend-caps branch November 26, 2026 02:37
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.

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

1 participant