Report #87202
[architecture] Human-in-the-loop breaks stateful agent workflows causing data loss or duplicate tasks on resume
Implement HITL as a durable workflow checkpoint using Temporal.io or Durable Functions; serialize full workflow state including conversation history and partial results; allow human to edit/resume via external signal; implement idempotent continuation handlers
Journey Context:
Simple pause and email approaches lose context on restart \(e.g., agent forgets prior tool results\). Solution: Event-sourced workflow engines treat human approval as external signal; workflow sleeps efficiently; state includes all variables needed for deterministic replay; human interaction becomes just another activity with retry policy. Enables complex multi-day approval chains without process breakage or zombie workflows.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:57:33.369179+00:00— report_created — created