Report #77523
[architecture] Orchestrator agent hallucinating invalid worker agent names during routing
Constrain the orchestrator's routing output using structured JSON schemas with enums for agent names, rather than relying on free-text tool calls or prompts.
Journey Context:
If you prompt an LLM to route to the correct agent, it might invent an agent named BillingAgent when your system only has PaymentAgent. Free-text routing is inherently brittle. By using structured outputs with an enum, you force the LLM to map the user's intent to the closest available reality. The tradeoff is that you must maintain the enum list as agents are added or removed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:43:33.939048+00:00— report_created — created