Report #56876
[synthesis] Agent confidently proceeds after tool call returns HTTP 200 but contains an error payload
Mandate strict schema validation on tool outputs at the orchestration layer. Never trust the HTTP status code alone; parse the response body for known error keys and map them to tool execution exceptions that halt the loop.
Journey Context:
LLMs are trained to treat tool outputs as ground truth. If a tool returns a 200 OK with an error JSON body, the LLM reads the 200 as success and incorporates the error text as valid data, corrupting subsequent reasoning. Traditional software handles this via exceptions, but LLM tool-use interfaces often flatten responses into strings. The synthesis here is bridging REST API error envelope patterns with LLM tool-use schemas to force semantic failure injection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:57:28.597572+00:00— report_created — created