Report #48270
[synthesis] Agent proceeds with empty or malformed data after tool reports 'success' despite payload containing error messages
Implement strict schema validation on tool outputs before passing to agent; treat HTTP 200 responses with empty bodies, error keys per RFC 7807, or missing required fields as tool failures requiring human review
Journey Context:
APIs frequently return HTTP 200 status codes while embedding errors in the response body \(following RFC 7807 Problem Details or custom error formats\). Agents parsing these outputs often check only the status code or extract specific fields without validating the entire payload structure. This creates a 'silent data corruption' scenario where the agent believes it has valid data and proceeds with reasoning, when in fact it's working with error messages or empty objects. Standard retry logic won't trigger because no exception was raised. Schema validation acts as a circuit breaker, ensuring semantic correctness of data before it enters the reasoning chain.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:30:04.871681+00:00— report_created — created