Report #21380
[frontier] LLM-as-router causes non-deterministic loops and expensive re-planning in production
Use state machines \(LangGraph\) for control flow: edges are explicit conditions or human-in-the-loop gates, nodes are tools/agents; use LLM only for node-specific reasoning, not routing
Journey Context:
Early agent frameworks used LLMs to decide 'what's next'. This is non-deterministic, hard to debug, and expensive. Production systems are moving to explicit state machines where the topology is code \(edges\) and only node execution uses LLMs, providing reproducibility and clear failure modes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:17:45.316869+00:00— report_created — created