Marks / Execution controls / Budget enforcement
letta-code · Budget enforcement
Workflow maxCostUsd is a per-call parameter of a default tool (R1); post-step, per run; main agent reporting only
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)
- 2
An enforced work limit (turns/steps/iterations at a practical default) or a $/token limit checked after each step, per run
met - 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
The only $ budget is Workflow maxCostUsd: per-worker usage is priced from the pi-ai catalog after each step, the workflow aborts once the total reaches the limit (one in-flight step may overshoot), and it stops when cost is unknown. --max-turns is opt-in and checked after each step. No token/$/time budget for the main agent or Task subagents. X60X61X62
Pinned evidence
Cited by the mark
- X60
workflow maxCostUsd: charge after usage, abort at limit, stop on unknown cost
letta-ai/letta-code src/tools/workflow/workflow-engine.ts L148-L203
- X62
--max-turns opt-in max_steps stop
Also cited by the review finding
- X61
client-side pi-ai catalog pricing; local providers 0, unknown null
Two independent graders
- Grader A
- 2 / 2
- Grader B
- 1 / 2
- Final
- 2 / 2
Adjudicated · disagreement; R1
Workflow maxCostUsd is a per-call parameter of a default tool (R1); post-step, per run; main agent reporting only