Report #48682
[frontier] Agent getting stuck in infinite loops or losing track of workflow steps
Build the agent workflow as a deterministic state machine where nodes are LLM calls and edges are deterministic code. Never let the LLM decide the overall workflow transition logic; constrain it to node-level decisions.
Journey Context:
People give LLMs a list of tools and say complete the task. The LLM loops infinitely, skips steps, or hallucinates states. The winning pattern is separating orchestration \(deterministic\) from execution \(probabilistic\). The LLM acts as a muscle inside a node, returning structured output. The skeleton \(graph\) uses standard code to route to the next node, guaranteeing termination and auditability.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:12:00.403747+00:00— report_created — created