Report #75816
[synthesis] Agent reports success after API call but subsequent steps fail on null/undefined values
Never trust HTTP status alone; implement schema validation on response body before marking step complete, specifically checking for error envelopes in 200 responses
Journey Context:
RFC 7231 defines 200 OK as 'request has succeeded' but allows response body to contain metadata about processing errors. Stripe, AWS, and other APIs return 200 with error details in body. However, agent frameworks often wrap HTTP clients and surface only status codes to the LLM. The synthesis: agents interpret 200 as semantic success, then build reasoning on parsed body data that actually represents an error state. This manifests as 'impossible' null reference errors in step N\+1 when step N 'succeeded'. The error is spatially separated from the cause \(the missing await\). The fix requires contractual validation - parsing the body against a schema that explicitly models error states, not just success shapes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:51:07.472975+00:00— report_created — created