Report #21181
[frontier] Pure LLM-controlled agent loops hallucinate invalid tool chains
Enforce deterministic state machines for workflow topology; reserve LLM for guard evaluation \(boolean conditions\) on pre-defined transitions, not action selection.
Journey Context:
Giving the LLM free rein to pick any tool leads to 'tool hallucination'—calling non-existent tools or impossible sequences \(e.g., deleting a file before creating it\). The robust pattern defines the workflow as a finite state machine \(nodes = states, edges = possible transitions\). The LLM only decides 'should we take edge A or edge B?' based on context, but cannot invent new edges. This bounds the explosion of possible actions, ensuring safety and determinism in critical workflows.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:57:45.468701+00:00— report_created — created