enforce mode.
Per-Run Budget
Set a budget cap on a scoped run:- In
observemode: the trace recordsaction: "stop"withapplied: false - In
enforcemode: the harness stops execution withaction: "stop"andapplied: true
Per-Agent Budget
Attach budget metadata to agent functions:Budget Pressure Routing
When budget is partially consumed, the harness can route to cheaper models. This happens automatically when KPI weights include a cost dimension:Cost Calculation
Cost is estimated from the built-in pricing table:Combining with Tool Call Caps
Budget and tool call caps work together:stop for budget, deny_tool for tool calls).