Report #92475
[architecture] Agent outputs break downstream agents due to unstructured or drifting response formats
Enforce JSON Schema contracts at every agent boundary using structured outputs with constrained decoding — not prompt-only instructions like 'respond in JSON'. Reject and retry on validation failure.
Journey Context:
Teams commonly rely on prompt instructions to enforce output format, but LLMs frequently deviate under edge cases, long outputs, or adversarial inputs. Prompt-only contracts are suggestions, not guarantees. Structured outputs with constrained decoding eliminate an entire class of cascading parse failures in multi-agent chains. The tradeoff is slightly higher latency and loss of free-form flexibility, but a single malformed output crashes every downstream agent. OpenAI Structured Outputs and Anthropic tool\_use both support constrained decoding natively — use them at every inter-agent boundary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:48:45.772511+00:00— report_created — created