Marks / Execution controls / Budget enforcement
pi · Budget enforcement
CLI reports usage only with a 3-retry cap; the pi-durable stack enforces a maxTurns work limit when set (R3); no cost admission
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
best - 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
What the source review found
No spend, token or turn budget in the pi CLI. Tokens and USD are computed per response from the bundled or remote catalog (or the provider's own figure) and summed for display and stats. Existing limits: 3 provider retries, codemode caps, the compaction threshold. [alt: pi-durable maxTurns; no cost admission]. X120X121X122X123
Pinned evidence
Cited by the mark
- X120
per-response cost math (tiered rates)
- X121
usage totals for display/stats
earendil-works/pi packages/coding-agent/src/core/usage-totals.ts L22-L28
- X123
[alt pi-durable] maxTurns ends run with turn_limit
earendil-works/pi packages/durable/src/harness/generation.ts L1274
Also cited by the review finding
- X122
retry defaults: 3 retries, 2000 ms base
earendil-works/pi packages/coding-agent/src/core/settings-defaults.ts L18-L26
Two independent graders
- Grader A
- 1 / 1
- Grader B
- 1 / 1
- Final
- 1 / 2
Adjudicated · R3 (agreed cell changed from 1/1)
CLI reports usage only with a 3-retry cap; the pi-durable stack enforces a maxTurns work limit when set (R3); no cost admission