Use this when people must decide inside a workflow.
Human-in-the-loop
Human-in-the-loop workflows include points where a person reviews, decides or supplies information before automation continues, for actions where judgment matters.
1. Human-in-the-loop steps ask people for decisions or input.
2. Clear context.
3. Timeouts and escalation.
4. Validate inputs.
5. Record who did what.
workflow → human decision → continue
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as branch condition drift, hidden dependency, duplicate parallel mutation, approval bypass, retry storm, partial rollback and successful orchestration with failed consumer state, choosing the cases most relevant to pause/approval state, approver identity, timeout/escalation, immutable context shown to the human and safe resumption without replaying prior side effects.
Step 2 Common mistakes Narrow the fault
- Approvals without showing what will change.
- Approval steps that time out and auto-approve.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Workflows can pause for human input.
- Give clear instructions and options.
- Handle timeouts.
- Human task forms — inputs
- Notifications to responsible people — channels
- SLA/timeouts — escalation
ReferenceWhy it matters1 section · depth on demand
What it is
Human-in-the-loop adds an approval or manual decision step before a risky action, with the plan or diff shown to the approver.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Human-in-the-loop means a workflow pauses for a person to approve, choose or provide information before continuing. It is used where judgement, accountability or risk require a human decision: production changes, deletions, exceptions to policy, or ambiguous results.
Design points:
| Aspect | Guidance |
|---|---|
| What the approver sees | The exact change, diff, impact and rollback plan |
| Who may approve | Defined roles; not the requester for high-risk changes |
| Timeout | Expire or escalate if nobody responds |
| Record | Approver, time, decision, comment |
Keep human steps for decisions, not for routine checks that automation can verify. Approvals that are always clicked through without reading give a false sense of control.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Workflow Automation > Human-in-the-loop. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For pause/approval state, approver identity, timeout/escalation, immutable context shown to the human and safe resumption without replaying prior side effects, prefer typed fields and stable IDs over human presentation text.