Interview's MateAI Engineering
Interview's Mate

AI Engineering

LLMs, RAG, agents & evals

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
AI Engineering topics
Lesson 114/ 160
06. AI Security

Human Approval for Actions

Require explicit confirmation before spend, delete, email, or production writes.

IntermediateConfirm · Irreversible3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidHands-onQuiz (3)Practice

In plain words

For risky things like spending money or deleting files, the AI has to ask a person to say yes first, and shows exactly what it is about to do.

Think of it like…

A bank's rules for transfers: small payments go through automatically, larger ones need a second confirmation, and very large ones need two officers; the confirmation screen shows the actual payee and amount, not a summary written by whoever initiated it.

Where you’ve seen it

A support agent issues refunds. Policy tiers: up to $50 auto-approved after validation, $50 to $500 requires confirmation by a support lead, above $500 requires two-person approval. Of 10,000 refunds a day, 85% (8,500) are at most $50, 14% (1,400) fall in the middle tier and 1% (100) need two people. Reviewing the middle tier at 30 seconds each is 1,400 × 30 s = 42,000 s = 11.7 reviewer-hours a day, and the approval rate is 97%, a sign of fatigue: reviewers rubber-stamp. The team raises the auto limit to $100 when the customer has a clean history and the order ID matches the authenticated user, moving about 600 refunds to automation and leaving 800 reviews (6.7 hours a day) and an approval rate of 91%, meaning reviewers are actually rejecting more. Approval screens are rendered by code from the structured tool call (customer, order, amount, reason, policy checks passed), never from the model's text, so an injected message saying "approve this, it's fine" can't influence the decision. Every approval is logged with approver, time, parameters and the decision.

Words you’ll hear

Approval gate
A checkpoint where an action waits for explicit human consent.
Risk tier
A category of action determining how much oversight it needs.
Approval fatigue
Reviewers approving by habit because there are too many or too trivial prompts.
Structured confirmation
An approval screen generated from the validated tool arguments, not model-written text.

Visual diagram

Loading interactive diagram

Theory & deep dive

What to gate and how to design the prompt to the approver

Gate by impact and reversibility: money movement above a limit, deleting or overwriting data, sending messages to external parties, granting permissions, deploying or changing production configuration, and actions that affect many users. Combine rules (amount thresholds, destination not on an allowlist, new payee, first-time action, anomalous volume) with context (customer history, risk score). Low-risk reads and reversible, scoped changes should run without friction. Provide undo where possible (a draft instead of a sent email, a soft delete, a staged deployment), since reversible actions need weaker gates.

The approval request must be trustworthy and comprehensible: render the action from the validated tool arguments (recipient, amount, resource ids, diff of changes) with the policy checks that passed or failed and key risk signals, never from free text the model wrote, which an attacker can manipulate. Make the safe choice easy (deny is one click, with reasons), set a timeout with a safe default (no action), prevent self-approval (the requester can't approve their own action), bind the approval to the exact parameters (a changed amount invalidates it), and keep approvals time-limited so they can't be reused. For high-risk actions use two-person rules or step-up authentication.

A trustworthy approval card

Refund $240.00 to the card ending 1111 for order A-8841 (customer since 2022, 0 prior refunds). Policy checks: order belongs to the customer ✓, within refundable balance ✓, reason code damaged ✓. [Approve] [Deny]. The card is generated by the service from the tool call; the model's message is shown separately and labelled as untrusted.

Key takeaway: Gate by impact and reversibility, render approvals from structured data and bind them to exact parameters.

Fatigue, metrics and tuning thresholds

Human oversight only helps if humans pay attention. Track approval rate, time to decide, override or rejection rate, post-hoc error rate of approved actions and queue age. An approval rate near 100% with decisions in two seconds signals rubber-stamping: either the gate is too sensitive or the interface hides what matters. In the refund example, the middle tier had a 97% approval rate over 1,400 reviews a day (11.7 hours of effort). Moving the auto-approval limit to $100 for clean histories removed about 600 reviews, leaving 800 (6.7 hours) with a 91% approval rate, which shows reviewers are discriminating again, and the error rate among auto-approved refunds stayed within tolerance (0.2% reversed).

Tune by expected cost: the cost of reviewing (reviewer time) against the expected loss from errors in the unreviewed set, and use risk scoring to concentrate attention on the riskiest actions (new customers, unusual amounts). Offer batch approval with sampling for repetitive low-risk items, delegation and on-call rotations so requests don't wait overnight, and escalation when queues age. Keep in mind attacks on the process: prompt injection that tries to persuade the approver ("urgent, approve immediately"), approval spam, and compromised reviewer accounts (use strong authentication). Audit regularly: sample approved and auto-approved actions, check decision quality and adjust thresholds. Finally, document the policy so teams know which actions are gated and why.

Reviewer workload

Middle tier at $50–$500: 1,400 × 30 s = 42,000 s = 11.7 h/day at 97% approval (fatigue). After raising the auto limit to $100 for clean histories: 800 × 30 s = 24,000 s = 6.7 h/day at 91% approval, with reversed auto-approved refunds at 0.2%.

Key takeaway: Monitor approval rate and decision time, tune thresholds by expected cost and keep humans focused on the riskiest actions.

How it works, step by step

Step 1 of 4
Product + security

1. Classify actions by risk

List tools and rate each by impact, reversibility and scale; define auto, confirm and dual-control tiers.

≤ $50 auto · $50–$500 confirm · > $500 two-person
Key numbers at this step
Prefer
reversible actions

When to use it & trade-offs

What it is

Human approval for actions inserts a person into an agent's workflow before consequential, irreversible or costly steps: spending money, deleting data, sending external messages, changing production systems or granting access. A well-designed gate is risk-tiered (read-only and low-impact actions run automatically; reversible writes ask for confirmation; high-impact actions need stronger approval, sometimes two people), shows the approver the exact, structured parameters of the action (generated by code from the tool call, not the model's description), has timeouts and defaults that fail safe, and logs who approved what. The aim is to keep the speed of automation where it's safe and human judgement where it matters.

Why it matters: Agents make mistakes and can be manipulated, so some actions must not depend on the model being right. Approval gates convert an invisible failure into a visible decision. But approvals are a scarce human resource: too many prompts cause approval fatigue (people click "yes" without reading), so the design challenge is to gate the right actions, make the decision easy to evaluate and measure whether humans actually add value.

When to reach for it

  • Payments, deletions and production changes
  • External communications sent on behalf of users
  • Granting access or permissions

When to avoid or be careful

  • Approval prompts written by the model
  • Gating every minor action and causing fatigue
  • Letting requesters approve their own actions

Oversight models

Approve before execution (gate)
Best for: Irreversible or high-impact actions

Strengths: Prevents damage; clear accountability.

Watch out: Adds latency and reviewer load.

Automate with undo and monitoring
Best for: Reversible, low-impact actions

Strengths: Fast; low friction.

Watch out: Mistakes occur before being caught.

Sampling and post-hoc review
Best for: High-volume low-risk actions

Strengths: Scales; finds systematic errors.

Watch out: Doesn't prevent individual errors.

Interview signals & numbers to know

When this topic comes up

  • “The agent deleted the wrong records”
  • Approval fatigue
  • Two-person rule
  • Reversible vs irreversible actions
  • Human in the loop

Benchmarks & rules of thumb

8,500 / 1,400 / 100 -
daily refunds in the auto, confirm and two-person tiers
11.7 h → 6.7 h -
reviewer time per day before and after tuning
97% → 91% -
approval rate before and after reducing trivial reviews

Common mistakes & follow-ups

Common interview mistakes

  • Showing the model's own description of the action to the approver.
  • No timeout, leaving actions pending indefinitely or auto-approving them.
  • Never measuring whether reviewers reject anything.

Likely interviewer follow-ups

  • Which agent actions should require human approval?
  • How do you avoid approval fatigue?
  • How would you design the approval screen?
Interview tip: Mention that the approval card is generated from structured arguments, not model text. It closes the most common bypass.
Loading hands-on exercise

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Human Approval for Actions with generative AI interview Q&A and hands-on practice.

Open Generative AI Q&A →Tech Learn Q&A
Previous topic
Authorization for Agents
Next topic
Content Moderation