# Execution limit

Understand constraints that stop or interrupt execution and why reaching a limit is different from completing the task.

Canonical URL: https://thecompanybrain.com.br/en/glossary/execution-limit
Authors: Luiz Gardelin
Updated: 2026-11-14T20:40:07.942Z

An execution limit is a defined constraint that prevents a task from continuing beyond a particular boundary. For agents, it may cap repetitions of a cycle, for example. [Anthropic](/en/glossary/anthropic) describes task completion as one way execution ends and also recommends stopping conditions, such as a maximum number of iterations, to maintain control over the run. [Anthropic, stopping conditions](https://www.anthropic.com/research/building-effective-agents).

## Stopping and completing are different outcomes

A task may end because it reached its objective or because it reached the limit before solving it. Those events need different descriptions. An interrupted report does not become complete merely because the program stopped trying. Similarly, an agent's final response does not by itself establish that the request's acceptance criteria were met.

In a hypothetical example, an agent searches for documents to explain a discrepancy between procedures. The project permits up to six lookup rounds before returning progress to the team. If the agent finds the necessary sources in the fourth round, it may complete the investigation. If it reaches the sixth without locating a current version, it should report what it could establish and identify the unresolved dependency. The number is an illustrative project choice, not a universal recommendation.

## A boundary should match the operation

Alongside repetitions, a project may define a maximum duration or operation count. Restricting tools is a separate rule: it defines which capabilities are available, while an execution limit determines how far activity may continue. In the example, limiting rounds prevents indefinite continuation but does not confirm the quality of the comparison between procedures. Lookup permission needs to be handled separately.

The design also needs to specify what happens at the boundary. Recording the reason, presenting partial results, or returning the decision to a person are possible choices. A limit written only in an instruction does not explain how the application monitors or interrupts execution. That mechanism must be understandable in its own right.

[Agent planning](/en/glossary/agent-planning) may change during the investigation but remains subject to defined constraints. [Human approval](/en/glossary/human-approval) is an authorization decision, not another name for reaching a limit. Separating these situations makes it possible to understand why the agent stopped and which portion of the objective, if any, still needs attention.

## Sources

- [Building effective agents](https://www.anthropic.com/research/building-effective-agents): Distinguishes programmed paths from agents directing their actions and describes tools, environmental feedback, pauses, and stopping conditions.

## Related reading

- [Agent planning](/en/glossary/agent-planning)
- [Human approval](/en/glossary/human-approval)
- [Agent action](/en/glossary/agent-action)
- [Agent autonomy](/en/glossary/agent-autonomy)
- [Agent memory](/en/glossary/agent-memory)
- [Agent orchestration](/en/glossary/agent-orchestration)
