Report #47035
[frontier] Agent outputs failing JSON parsing causing cascade failures in multi-agent chains
Use LLM APIs with structured outputs in 'strict' mode \(e.g., OpenAI response\_format with strict: true\) to guarantee schema adherence at the API level, eliminating regex post-processing.
Journey Context:
Legacy agents parse markdown code blocks or use 'JSON mode' which is lax. In 2025, OpenAI introduced strict JSON Schema constraints \(and others followed\), where the API guarantees valid output or errors out. This removes the need for retry loops due to malformed JSON. Tradeoff: slightly higher latency for first token, but reliability increases dramatically for inter-agent communication.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:25:10.222289+00:00— report_created — created