Report #78968
[synthesis] Agent returns valid JSON but omits optional but required-for-business-logic fields
Use strict JSON schema validation on the output of the LLM, not just response\_format=\{ type: json\_object \}, and reject outputs missing optional fields before executing the downstream business logic.
Journey Context:
Developers enable JSON mode and assume the output conforms to their schema. However, LLMs silently relax schemas under uncertainty. If a field is hard to compute, the model will simply omit it if it's not strictly required by the API's enforcement. The API returns 200, the JSON parses, but the downstream system fails because reasoning\_steps was omitted. The degradation is silent because the LLM API succeeded, but the contract was broken.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:08:15.238057+00:00— report_created — created