alexcinovoj.devby TechTide AI
Back to AI proof
Pattern · AI production systems

Approval gates that suspend the run

Most approval UX asks a human to review work that already happened. A real gate suspends the run at the boundary and resumes it only on approval.

Short answer

What is human approval gates for AI agents?

Most approval UX asks a human to review work that already happened. A real gate suspends the run at the boundary and resumes it only on approval.

Implementation

  • Model the run as a graph with suspend and resume points at every irreversible action.
  • Persist the suspended state so an approval hours later resumes the same run.
  • Show the approver the exact payload that will execute, not a summary of it.
  • Record approver identity, decision, and timestamp in the audit log.
  • Expire pending approvals rather than leaving runs suspended indefinitely.

Failure modes

  • Notification-only gates, where the action already ran.
  • Summarised payloads, which hide the parameter that mattered.
  • Approvals granted by the same service account that requested them.

How it is verified

  • Kill the process while a run is suspended and confirm it resumes correctly.
  • Confirm the approved payload byte-matches the executed payload.

Questions this pattern answers

What is human approval gates for AI agents?

Most approval UX asks a human to review work that already happened. A real gate suspends the run at the boundary and resumes it only on approval.

How do you implement approval gates that suspend the run?

Model the run as a graph with suspend and resume points at every irreversible action. Persist the suspended state so an approval hours later resumes the same run. Show the approver the exact payload that will execute, not a summary of it. Record approver identity, decision, and timestamp in the audit log. Expire pending approvals rather than leaving runs suspended indefinitely.

How is approval gates that suspend the run verified?

Kill the process while a run is suspended and confirm it resumes correctly. Confirm the approved payload byte-matches the executed payload.

What usually goes wrong with approval gates that suspend the run?

Notification-only gates, where the action already ran. Summarised payloads, which hide the parameter that mattered. Approvals granted by the same service account that requested them.

Projects in this track

Related patterns

This page documents how the pattern is built. Engagement scope and pricing live on TechTide AI.

AI Production Systems at TechTide AI