Report #3377
[architecture] Agents exchange free-form natural-language messages and every consumer re-parses intent.
Define every inter-agent message as a JSON Schema or Pydantic model, generate with strict structured outputs, and validate before dispatch.
Journey Context:
Free-form text lets models drift: keys get renamed, enums hallucinated, and markdown leaks in, forcing every downstream agent to regex-parse. The result is N^2 brittle parsers and silent schema mismatches. Structured outputs guarantee API-level conformance, so agents consume typed records instead of text. The cost is upfront schema versioning and the constraint that strict mode rejects additionalProperties, but that discipline is exactly what makes multi-agent wiring reliable.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T16:37:35.439775+00:00— report_created — created