Skip to content

feat(worker): support independent spend limits and deeper profiles - #104

Merged
abruption merged 1 commit into
mainfrom
feat/103-worker-budget-output
Nov 26, 2026
Merged

abruption merged 1 commit into
mainfrom
feat/103-worker-budget-output

Conversation

@abruption

Copy link
Copy Markdown
Owner

Issue

Closes #103

Problem and result

Workers can configure an uncapped daily spend limit by setting the daily amount to zero. The monthly and per-request spend checks, daily request count, and concurrency still apply. A dedicated optional binding lets operators set both spend limits while keeping the existing Worker configuration. The admin budget output includes the effective daily and monthly values.

GPT-6.2 Astra and Claude Fable 5.2 profiles can opt in to a maximum of 50,000 output tokens. Existing profile values and the limits for other models are preserved. Upgrade the Worker clients before increasing active profile limits past 16,384.

Validation

  • npm run typecheck, npm run build, npm test (314 passed), and npm run test:package
  • The Worker integration exercises a real review dispatch against a mocked provider under a configured monthly cycle. It verifies the spend override, refusal for invalid settings, and the remaining D1 reservation controls.
  • Deterministic tests cover profile bounds, the provider request parameters, reservation cost, the Worker CLI budget output, and local configuration compatibility.
  • Independently reviewed by Claude Opus 5.5 and Gemini 4 Neon Medium.

Related to #81.

@abruption
abruption marked this pull request as ready for review November 26, 2026 02:04
@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:06:13.852832Z bcef2e9 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-26T02:07:48.392834Z bcef2e9 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 46b52b8 into main Nov 26, 2026
9 checks passed
@abruption
abruption deleted the feat/103-worker-budget-output branch November 26, 2026 02:12
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.

feat(worker): support an uncapped daily spend limit and deeper review profiles

1 participant