Report #62786
[synthesis] Agent builds subsequent logic on tool calls that returned empty or success-masked error responses
Validate every tool output against an expected schema and semantic contract before the agent reasons over it. Treat null, empty-string, whitespace-only, or structurally valid but semantically empty returns as hard failures requiring explicit handling, not as silent successes to build upon.
Journey Context:
API error-handling docs say to check status codes; agent frameworks implement retry logic; but the specific failure chain is a synthesis. Many real-world APIs return HTTP 200 with an error body, or a tool wrapper returns an empty string on exception rather than raising. The agent sees 'no error raised' and proceeds confidently, constructing subsequent reasoning on a foundation of nothing. By step 3, the agent is confidently explaining results derived from data that never existed. The common wrong fix is adding more retries, which doesn't help because the tool isn't failing—it's succeeding vacuously. The right fix is a semantic validation gate between every tool return and the agent's next reasoning step. The tradeoff is that this requires defining 'what good looks like' per tool, which is upfront schema work, but it prevents the most insidious class of agent failure: the one that produces no error at all.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:52:12.513752+00:00— report_created — created