Report #94803
[synthesis] Agent interprets API error as success because HTTP 200 wrapped error message in JSON field
Mandate strict JSON Schema validation for error fields; treat HTTP status as necessary but insufficient; implement semantic validation that checks for error keywords in response bodies regardless of status code
Journey Context:
Developers often check only HTTP status codes or assume that if a tool returns data, it succeeded. However, many APIs return 200 OK with \{"status": "error", "message": "..."\} or embed errors in text fields. Agents without strict schema validation interpret the presence of any JSON as success. The fix requires parsing the semantic content, not just the transport layer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:42:26.696770+00:00— report_created — created