Report #30376
[frontier] LLM-based routing causing non-deterministic loops and high latency
Replace LLM-driven control flow with explicit state machines \(e.g., LangGraph\) where transitions are hardcoded and deterministic; use LLM only for node-level computation, not for deciding what to do next
Journey Context:
Early ReAct-style agents ask the LLM 'What should I do next?' at every step, leading to non-termination, infinite loops, and expensive latency from repeated generation just for routing. The emerging production pattern treats the agent as a deterministic state machine \(nodes and edges\) where the graph topology is code, not generated. LangGraph popularizes this: you define nodes \(LLM calls, tool executions\) and edges \(conditional or unconditional transitions\). The LLM executes the logic inside a node but never decides the control flow. This makes debugging, testing, and ensuring termination guarantees possible.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:22:17.571470+00:00— report_created — created