Report #45517
[architecture] Agent output format breaks downstream agent — no contract enforcement between agents
Define a JSON Schema as the formal contract at every agent boundary. The producing agent must emit conformant output; the consuming agent must validate before processing. Use structured output modes \(OpenAI Structured Outputs, Anthropic tool\_use\) to enforce at generation time, then validate again at reception time.
Journey Context:
Without a schema contract, agents pass free-text that the downstream agent must parse heuristically. This is fragile: format drift, missing fields, and type mismatches cause silent failures or hallucinated parsing. The schema serves triple duty: \(1\) it is a design-time contract forcing you to define what each agent owes the next, \(2\) it is a runtime validation gate catching errors before they cascade, and \(3\) it constrains the producing agent's output space, reducing hallucination. The tradeoff is rigidity—schemas must evolve as requirements change, and over-constraining can prevent agents from communicating nuance. The right call is to start with a schema at every boundary and relax only when you have evidence that structure is counterproductive. Two-layer validation \(generation-time structured output \+ reception-time schema check\) catches both syntax and semantic violations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:52:33.175540+00:00— report_created — created