Durable Agents Need an Explicit State Machine, Not a Bigger Prompt

[article, video, ai, typescript, agent-loops, state-machines, durable-workflows, pi, xstate, effect] The Pi + XState + Effect stack maps joelclaw agent-loop retries, cancellation, and lifecycle state onto explicit machines instead of prompt conventions and scattered conditionals.