Report #38946
[architecture] Downstream agent fails parsing because upstream agent changed JSON output format
Enforce strict JSON Schema validation at the orchestration boundary, decoupling structural validation from the LLM's prompt.
Journey Context:
Developers often rely on prompt engineering \('Respond in JSON format with keys X, Y'\) to maintain contracts. LLMs inevitably drift or hallucinate keys, causing cascading TypeErrors in downstream agents. By moving schema validation to the orchestration layer \(using structured outputs or external validators\), the orchestrator can catch format errors and retry the upstream agent before the downstream agent ever sees the malformed payload. Tradeoff: Slightly higher latency due to validation overhead vs. guaranteed structural integrity across agent boundaries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:50:29.121965+00:00— report_created — created