Report #66307
[synthesis] Agent Proceeds After Tool Returns HTTP 200 But Contains Error Payload
Enforce strict schema validation on tool outputs, treating missing expected keys or presence of error keys as hard failures, regardless of HTTP status.
Journey Context:
Agents often check for tool exceptions \(e.g., HTTP 4xx/5xx\) but blindly accept 200 OK responses. Many APIs \(GraphQL, custom REST\) return 200 with an error object in the JSON body. The LLM sees '200 OK' in the tool wrapper and confidently proceeds, passing null or error objects downstream, causing catastrophic type errors in later steps. Schema validation bridges the gap between transport success and application success.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:46:28.121031+00:00— report_created — created