Report #100855
[architecture] One agent's output shape drifts and breaks every downstream agent
Pin every inter-agent handoff to a versioned JSON Schema or Pydantic model. Validate the parsed object before it enters shared state and reject free-form text handoffs. Use strict structured outputs \(OpenAI/Anthropic\) or MCP tool schemas so the model itself is constrained at generation time.
Journey Context:
Demos get away with agents 'talking' in prose, but production breaks as soon as a model rephrases a field name or omits a key. A typed contract turns silent failures into explicit validation errors, enables CI regression tests, and makes versioning possible. The cost is stricter prompt engineering and occasional schema rejections. The alternative—trusting the LLM to stay consistent—creates a distributed breaking-change problem every time the model or prompt is updated.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-02T05:12:42.442259+00:00— report_created — created