Marks / Execution controls / Budget enforcement
codex · Budget enforcement
Default token_budget only steers, cost display only; rollout_budget is pre-call tree-wide admission, in-flight calls billed
Level
Criteria for this column
- 0
No limits of any unit, and no usage reporting
- 1
Usage or cost reported only, or only coarse safety caps (retry counts, iteration ceilings ≥1000, wall-clock timeouts ≥ hours)
default - 2
An enforced work limit (turns/steps/iterations at a practical default) or a $/token limit checked after each step, per run
- 3
A $ or token limit checked before the model call (admission) for a run, or a post-step $ limit covering descendants
- 4
Pre-call admission across the whole delegation tree, with stated settlement of in-flight calls
best
What the source review found
Goal token_budget (goals on by default) is soft: once tokens reach the budget the goal becomes BudgetLimited and a steering message is injected. [opt: rollout_budget, under development, off] adds a hard weighted-token admission gate shared across the agent tree; in-flight responses are still billed. $ turn cost is polled from the backend for display. No turn cap. X12X13X14X15X16X17
Pinned evidence
Cited by the mark
- X12
goal status set to BudgetLimited when tokens_used >= token_budget
- X14
tree-shared work gate consulted before new work; in-flight work still billed
- X15
goalsStable default on;rollout_budgetUnderDevelopment default off
Also cited by the review finding
- X13
BudgetLimited injects steering message (soft)
- X16
RolloutBudgetConfig validation (missing/non-positive limit errors; weighted token units)
- X17
turn cost polled from backend every 150 s (API-key users)
openai/codex codex-rs/app-server/src/turn_cost_worker.rs L1-L32
Two independent graders
- Grader A
- 1 / 4
- Grader B
- 1 / 4
- Final
- 1 / 4