Use this when workflows pause for approval.
Approval Gates · Workflow Automation
Approval gates pause a workflow until someone approves, such as before deploying to production, with timeouts and a record of the decision.
1. Approval gates pause workflows for human approval.
2. Define approvers and timeouts.
3. Show context (diff/plan).
4. Log decisions.
5. Use for production/risky actions.
workflow → approval request → approved/rejected → continue/stop
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
Run a fixture workflow to the gate and confirm the execution persists without consuming repeated side effects while waiting. Approve one instance and verify only that instance advances; reject or let another expire and confirm the configured terminal/escalation path. Restart a worker/controller if safe to show waiting state durability. Correlate the decision with downstream mutation and read-back.
Step 2 Common mistakes Narrow the fault
- Approval gates without context.
Step 3 Where it fails Narrow the fault
Separate workflow state persistence, gate-policy evaluation, identity/authorization, decision storage, transition scheduling and downstream action. A gate can be approved while the workflow later fails to resume; a workflow can be waiting because no approver exists rather than because the worker is hung. Do not force-skip a gate without recording policy exception and target scope.
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.
- Approval gates pause a workflow until someone approves.
- Set an approver and a timeout.
- Record the decision.
- Approval step configuration — who approves
- Timeout for approval — expiry
- Approval audit log — evidence
ReferenceWhy it matters1 section · depth on demand
In depth
Approval gates pause a workflow until an authorised person approves or rejects the next step, typically before production changes. They add human judgement and a record of who allowed what.
| Platform | Mechanism |
|---|---|
| GitHub Actions | Environments with required reviewers |
| GitLab | Protected environments, manual jobs |
| AAP/AWX | Approval nodes in workflow templates |
| Jenkins | input step |
| ServiceNow | Change approval before job launch |
Show approvers what will change (plan output, diff), set a timeout so forgotten approvals expire, and do not let the requester approve their own change.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
An approval gate is a workflow transition guarded by a human or policy decision. Unlike generic approval records, the gate has state-machine semantics: the workflow must persist while waiting and then take a deterministic transition on approve, reject, timeout or cancellation. The gate should bind to the exact workflow instance and immutable inputs/artifact being approved. Multiple gates may protect different resources or risk stages.
ReferenceConfiguration & state1 section · depth on demand
Lifecycle
Version gate placement and policy with the workflow, review approver groups/resource owners, and document timeout/escalation behavior. Ensure in-flight instances retain a compatible gate definition during deployment of new workflow versions. Avoid long-lived hidden waits without expiration and provide cancellation/recovery procedures. If upstream data changes after the gate request, invalidate or re-evaluate approval as policy requires.
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 > Approval Gates. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops · confidence 94%Quick lookup tables
Workflow Automation → Approval Gates · operational reference
Context-specific ownership, verification, output and failure-boundary lookup for Workflow Automation → Approval Gates.
| Layer | Workflow Automation → Approval Gates operational reference |
|---|---|
| Runtime/ownership | Workflow approval gates / protected resource checks · identify controller/parser, durable intent, identity and target ownership before mutation |
| Persistent intent | Versioned definition/configuration with explicit dependencies, scope and credential boundary |
| Verification | Run a workflow that reaches a gate, confirm state is durable while waiting, approve one instance and reject/expire another, then inspect downstream transition and target state. |
| Expected interpretation | The workflow cannot cross the protected transition without the required decision, waiting survives worker/controller changes, and approve/reject/timeout lead to explicit different paths. |
| Recovery boundary | Preserve correlation IDs + pre-state, repair first failing boundary, then verify the target independently |
Deep reference
Healthy vs suspicious evidence
Output interpretation
Capture workflow instance, definition version, gate/check ID, protected state/resource, artifact/revision, requested/decision timestamps, approver identity, decision/timeout reason and resulting next state. Waiting should be visibly distinct from queued or failed. Preserve both the workflow trace and the external approval audit record.