Skip to content

Set initial token spending limits in CLI and dashboard - #86

Merged
nielsrolf merged 1 commit into
mainfrom
codex/token-creation-spending-limit
Sep 22, 2026
Merged

nielsrolf merged 1 commit into
mainfrom
codex/token-creation-spending-limit

Conversation

@nielsrolf

Copy link
Copy Markdown
Collaborator

Allow ow token create --name experiment --spending-limit-usd 100 and dashboard token creation to set a lifetime USD budget. A new RPC creates the token and budget atomically, preserving existing token-creation authorization while keeping existing-budget changes restricted to admin users.

Validate nonnegative finite amounts, including a zero budget. Document budget exhaustion: cancel queued/running jobs for the key, preserve completed jobs and other keys' work, and reject new submissions. Add PostgreSQL tests for atomic rollback, authorization, and the 100-job/60-completed scenario, plus CLI/API tests.

Validation: 97 tests passed with isolated PostgreSQL; frontend build and Chromium startup passed. Release 0.13.3 requires the additive token-creation RPC migration; worker images remain v0.13.1.

@nielsrolf
nielsrolf merged commit 5986ed2 into main Sep 22, 2026
1 check passed
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.

1 participant