Report #69491
[gotcha] Silent tool execution failures causing infinite loops or undetected attacks
Implement structured error handling for all tool calls, log every tool invocation and its outcome to an external telemetry system, and enforce a maximum retry limit for the agent.
Journey Context:
When building agents, developers focus on the happy path. If a tool fails due to a permission denied error from a security policy, the LLM might misinterpret the error string and try again with slightly different arguments, causing an infinite loop. Additionally, without telemetry, a prompt injection trying to brute-force a file path goes completely unnoticed by security operations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:07:38.570850+00:00— report_created — created