Report #74955
[architecture] Non-deterministic agent routing causing unpredictable pipeline execution and debugging nightmares
Use deterministic finite state machines \(FSMs\) or directed graphs for orchestrating agent handoffs, reserving LLM-based routing only for ambiguous edge cases where explicit state transitions are impossible.
Journey Context:
Allowing LLMs to decide which agent runs next often leads to infinite loops, skipped steps, or hallucinated agent names. Explicit graph definitions \(like state machines\) make the architecture predictable, testable, and debuggable, while still allowing the agents themselves to be non-deterministic. The tradeoff is reduced flexibility, forcing the developer to anticipate all valid paths rather than relying on the LLM to discover them.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:24:22.213945+00:00— report_created — created