Agents, Tool Use & MCP·Question 36 of 90Intermediate

Design the human approval flow for an agent that files expense reports. Where do the gates go, and how do you stop people from clicking through them?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Gates go where blast radius justifies them, and the axis is reversibility, not model confidence. A useful phrasing: would I let a new hire do this unsupervised on day one?

Full worked answer with diagram

Gates go where blast radius justifies them, and the axis is reversibility, not model confidence. A useful phrasing: would I let a new hire do this unsupervised on day one?

For expenses:

  • Auto-approve reads. Fetch receipts, look up policy, query past reports. No gate. Gating reads is the fastest way to train people to click through everything.
  • Auto-approve reversible writes under a threshold. Draft the report, categorise line items, save. Undoable, low stakes.
  • Gate irreversible or costly actions. Submitting to finance, anything above a currency threshold, anything that pings a VP.
  • Hard-block, never gate. Actions that should not be in the tool set at all. Do not put delete_all_reports behind a confirmation dialog and call it safety.

Approval fatigue is the real failure mode, and it is a design problem, not a user problem. Approve forty times a day and you approve reflexively; the gate becomes decorative, which is worse than no gate because it launders liability. Defences:

  • Batch. One approval for a whole report, not per line item.
  • Show the diff, not the intent. "Submit report" is unreviewable. "Submit $2,340 across 12 items, including $890 flagged out-of-policy" is reviewable. Surface the thing that should make them pause.
  • Raise thresholds using observed data. If humans approve 99.8% of sub-$50 submissions, that gate is theatre. Track approval-to-rejection ratio per gate and delete the gates that never reject.
  • Make rejection cheap and informative. A rejection should return as a tool result the agent can act on, not kill the run.

The engineering constraint people miss: a human approval takes minutes to hours, so you cannot hold a process open on a blocking call. The agent must checkpoint, suspend, and resume on an external event. That means durable state keyed by run ID, an idempotent resume path, and accepting a cold prompt cache on the other side. Design the pause as a first-class state, not a input() call with a long timeout.

Worth sketching. The suspend-and-resume box is the part interviewers wait for: an approval is a state, not a blocking call.

flowchart TD
    A["Agent proposes an action"] --> B{"Reversibility?"}
    B -->|"read or draft"| C["Auto-approve"]
    B -->|"submit, over threshold,<br/>pings a VP"| D["Show the diff:<br/>total, item count, flagged lines"]
    B -->|"should never happen"| E["Not in the tool set at all"]
    D --> F["Checkpoint and suspend,<br/>durable state keyed by run id"]
    F -->|"approved, minutes or hours later"| G["Resume, accept a cold cache"]
    F -->|"rejected with a reason"| H["Return as a tool result,<br/>agent adapts"]

What a good answer covers

  • Gates go where blast radius justifies them, and the axis is reversibility, not model confidence
  • A useful phrasing: would I let a new hire do this unsupervised on day one?
  • Auto-approve reads
  • Auto-approve reversible writes under a threshold
  • Gate irreversible or costly actions

Key terms: blast radius · Auto-approve reads · Gate irreversible or costly actions · Hard-block, never gate · Batch · Raise thresholds using observed data · Make rejection cheap and informative · The engineering constraint people miss

Interviewer follow-ups to expect

  1. The approver is on holiday and the report is time-sensitive. What does your system do?

  2. How do you audit that an approval was meaningful rather than reflexive?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep