What to do
- Bounding every agent loop and call. For example, setting a maximum number of iterations, turns or recursion depth on each agent run, and a timeout on every model and tool call.
Evidence
Config: Loop and timeout limitsAgent or framework configuration on the real execution path showing a step limit and timeouts. May include max_iterations, recursion_limit or max_turns settings, client timeouts on model and tool calls, or a run deadline that ends the workflow.
- Enforcing a token or spend cap that stops work when reached. For example, a per-run and per-period ceiling checked before each model call, which ends the run instead of only sending an alert.
Evidence
Config: Hard budget capCode or configuration showing a token or cost counter checked before each model call and a stop when the cap is reached. May include a budget check in the agent loop, gateway or provider quota settings that reject calls over the limit, or a test showing a run stops at the cap. An alert or dashboard alone does not demonstrate a cap.
- Setting limits where the agent cannot change them. For example, reading limits from deployment configuration, a model gateway or the provider account, never from values the model supplies through tool arguments or prompts.
Evidence
Config: Limit placementConfiguration showing where each limit is set and that no tool, prompt or model output can raise it. A limit stated only in the system prompt does not demonstrate this activity.
- Applying one limit across a whole workflow. For example, a single ceiling covering every sub-agent, retry and parallel task started from one request.
Evidence
Config: Workflow-wide limitsCode or configuration showing a budget shared by all agents and retries in one workflow, such as a budget passed to sub-agents and reduced by each call, or per-workflow quotas at a gateway.
