Report #89914
[synthesis] Agent loops on destructive API calls due to hallucinated or outdated parameter schemas
Implement a dry-run or diff requirement for all state-mutating tool calls, and strictly enforce schema validation at the orchestrator level before execution, returning a structured schema error rather than an HTTP error.
Journey Context:
When an LLM gets an HTTP 500 or a cryptic API error, it often assumes it's a transient server error or a formatting quirk and retries. If the tool is destructive \(e.g., delete\_file, force\_push\), this loops into catastrophe. Returning raw HTTP errors triggers the LLM's built-in retry logic. The synthesis here is mapping HTTP status codes to LLM cognitive behaviors: 500 means 'retry' to an LLM, while a structured SchemaViolation means 'stop and rethink'. Changing the error representation changes the agent's behavior.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T09:30:47.967474+00:00— report_created — created