---
title: Approval gates
description: Pause until a human decides.
---

# Approval gates

The gate is the paid-product wedge detectors cannot copy: **stop the irreversible action before it runs**.

Human-in-the-loop is not "ask an LLM if this looks risky." You decorate the function. The SDK always pauses when `when="irreversible"`.

## Flow

1. Agent reaches `@approve` (delete, refund, deploy, …).
2. SDK creates an approval request on the control plane.
3. Console (and optional Slack) shows the payload.
4. Human approve / reject.
5. SDK polls, then runs the function or raises.

See [`@approve`](/approve) for timeouts and errors.

## Console

Approvals inbox is a first-class view. Rejected and timed-out calls never execute the wrapped body.

## Policy later

PII redaction, risk flags, and richer `when=` policies are on the roadmap. Do not configure them in the SDK today — they are not a public decorator API yet. Server-side redaction is the intended default when it ships.

## Agent instructions

This page: https://docs.agenko.app/gates.md

Fetch `/llms.txt` for the full index. Search: `GET /api/search-docs?query=...`
