Report #52216
[frontier] Non-deterministic agent workflows that are impossible to debug, replay, or resume after crashes
Model agent lifecycles as explicit state machines \(XState/Statecharts\) where states are deterministic and LLM calls are pure side-effect actions, enabling event-sourced replay
Journey Context:
Free-form agent loops with \`while\` statements and global variables are impossible to inspect or resume. Separating the orchestration logic \(state transitions\) from the cognitive logic \(LLM calls\) allows the system to persist events \(state transitions\) and replay execution exactly, even across server restarts. This treats the agent as a deterministic state machine where non-determinism is isolated to specific 'invoke' actions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:08:19.258468+00:00— report_created — created