Report #65285
[agent\_craft] Agent entering infinite loops of tool calls due to adversarial prompting
Enforce hard limits on tool call iterations, token generation, and execution time per task. Implement a circuit breaker pattern: if the agent repeats the same tool call with the same parameters more than N times, halt and ask the user for intervention.
Journey Context:
Adversarial prompts can trick an agent into a loop \(e.g., keep searching until you find X where X doesn't exist\). This wastes resources and can be a DoS vector. The agent must have internal resource limits independent of the user's instructions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:04:05.128990+00:00— report_created — created