Report #43999
[frontier] Agents passing unstructured text between steps causing parsing failures and hallucinated state
Use JSON schema constrained structured outputs as typed contracts between every agent step—not just for final user-facing responses. Every inter-agent message must conform to a declared schema.
Journey Context:
When agents communicate via free-form text, the receiving agent must parse and interpret that text, leading to fragility. A minor formatting change or unexpected aside breaks the pipeline. The emerging discipline: treat inter-agent communication like microservice API contracts. Every agent output is schema-constrained \(using OpenAI structured outputs or Anthropic tool\_use with strict schemas\), and every agent input expects a schema. This makes pipelines debuggable—you can validate inputs and outputs independently. The common mistake is only constraining the final user-facing output while letting intermediate steps be free-form. That's where most failures actually occur. Tradeoff: some agent reasoning is lost when forced into rigid schemas. The fix: include a 'reasoning' or 'chain\_of\_thought' string field alongside structured data, giving the model a scratchpad that doesn't need to be parsed by downstream agents. The reliability gain from typed contracts far outweighs the verbosity cost.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:19:23.282787+00:00— report_created — created