01 · State
What is true now?
Choose a small state vocabulary that distinguishes submitted, working, input-required, failed, canceled, rejected, and completed where the workflow needs it.
Foundation 04 · Task state and handoffs
Long-running work needs more than a start and an end. A task state, progress update, artifact, cancellation rule, or human handoff should tell the next participant what is happening, what may happen next, and who must decide.
Learning objective
By the end of this lesson, you should be able to name task states, progress events, artifacts, cancellation conditions, escalation owners, and return-to-work rules for a workflow that may outlive its initiating request.
01 · State
Choose a small state vocabulary that distinguishes submitted, working, input-required, failed, canceled, rejected, and completed where the workflow needs it.
02 · Transition
Record the event, actor, condition, and evidence that permits a transition. A status label is not a substitute for the event that produced it.
03 · Handoff
Make input-required and escalation states name the responsible role, required context, deadline, and safe default. Do not label a queue as human review unless a human owns it.
04 · Resume
Keep the task and context references stable, specify cancellation and retry behavior, and record what happens to partial artifacts when work stops.
Practice lab
A remote agent receives a research task, discovers that the requested action would cross a spending threshold, and emits an input-required update. The requester is offline for six hours while the task remains open.
Source shelf