Human in the Loop

A sensitive action transitions a durable workflow into an awaiting_approval checkpoint; a deadline check first auto-expires a lapsed request, and human approve or deny resumes or terminates the run

Human in the Loop A sensitive action transitions a durable workflow into an awaiting_approval checkpoint; a deadline check first auto-expires a lapsed request, and human approve or deny resumes or terminates the run 01 / Durable workflow 02 / Interruptions + recovery 03 / Terminal outcomes Running · hits sensitive action · Durable workflow · run 01 Running hits sensitive action run Deadline Check · still valid? · Durable workflow · gate 02 Deadline Check still valid? gate Awaiting Approval · durable checkpoint · Durable workflow · paused 03 Awaiting Approval durable checkpoint paused Resumed · approved, continues · Durable workflow · done 04 Resumed approved, continues done Expired · deadline lapsed · Terminal outcomes · auto Expired deadline lapsed auto Terminated · denied · Terminal outcomes · stop Terminated denied stop Legend active state waiting terminal success failure / exit

Approval Path

  • • A sensitive action pauses the durable run
  • • State is checkpointed at awaiting_approval
  • • Approval resumes exactly where it paused

Deadline First

  • • The deadline is checked before waiting
  • • A lapsed request auto-expires without a human
  • • Stale approvals never resume

Terminal Outcomes

  • • Deny terminates the run cleanly
  • • Expiry and denial are distinct exits
  • • Neither leaves a run dangling