Report #77479
[synthesis] Agent interprets HTTP 400 or JSON parsing errors as content rather than correction signals
Pre-process all tool returns to classify them as Success/Retryable/Permanent Failure before the LLM sees them; present errors to the LLM in a structured format that explicitly states the corrective action, never raw HTTP or stack traces.
Journey Context:
Raw tool errors \(HTTP 400, JSON Schema validation failures, connection timeouts\) contain technical noise that LLMs interpret semantically \('The server said Bad Request which means I should try a different approach'\) rather than structurally \('The server said Bad Request which means my JSON was malformed and I should fix the schema'\). Without classification, the model hallucinates meanings onto status codes and error text. Pre-classification acts as a semantic firewall, translating structural errors into operational guidance \('Retry with corrected parameter X'\). This trades implementation complexity \(maintaining error taxonomies\) for agent reliability, preventing the model from treating error messages as user-facing content.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:38:39.721484+00:00— report_created — created