Egor Urvanov

Escalation to a human in AI agentsHow an agent stops and asks through MCP and hooks

Escalation to a human is the moment an agent stops and hands a decision to a person: by a question, a permission request or a confirmation. MCP has elicitation with three answers (accept, decline, cancel); Claude Code has hooks and permission modes. The check stands outside the agent, and the escalation passes through a narrow window.

An observation. I thought agents are trained and measured on how long they work on their own, without a person. The score is given for the outcome: task solved is 1, not solved is 0. A question to a person does not produce an outcome by itself, so the penalty arrives for an unfinished task, and guessing pays better. I checked this against documents and papers and derived the formulas below. A penalty for the question itself turned out to be rare: some metrics do not provide for a question and some reward it.

In short: what escalation is and where it passes

A window in the separator: only the question gets outthe agent works insideseparatorquestionacceptthe person approveddeclinethe person said “no”cancelclosed without choosing● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

The agent works in its own context; one question goes to the person behind the separator and one of three answers returns.

What it is. Escalation is a stop initiated by the agent or by the program around it: “I may not decide here, a person is needed”. Three common kinds: a clarifying question, a permission request for a dangerous action, a confirmation of the result before merge. The quality gate from “What are quality gates for AI agents” hands a person whatever the check is “not sure” about, so escalation continues the gate.

How it works in MCP. A server can ask a person through the client: in the specification this is elicitation. There are three answers: accept, decline, cancel. A server may not count on an answer: the protocol itself requires handling a decline and a cancel.

How it works in Claude Code. Permission modes decide which calls go to a person, and hooks intercept a call and answer “allow”, “deny” or “ask”. The program enforces this, while the instruction text only guides.

Takeaway
In this exampleAn agent edits the config of a booking server. A hook sees the path of a live config and answers “ask”: a person gets a window with a question. If nobody answers and the run has no interface, the call is rejected and the agent continues with another plan.
In generalEscalation has two parts: the program around the agent decides “ask”, and the answer comes from a person through a narrow window.
Next stepWrite down three agent actions after which you want to see a question: deletion, release, a permissions change. Everything else can be allowed without questions.

What it looked like at first

The starting observation was simple: agents rarely stop and ask, and more often guess and carry on. A chain of four assumptions grew out of it, and each had to be checked on its own.

1. The check stands outsideA gate and a question to a person should live outside the agent, or it will decide for itself.
2. Agents are trained for autonomyAgents are trained and measured on how long they work on their own: how far they go from start to stop without a person.
3. A question is a lossThe score gives 1 for a solved task and 0 for an unsolved one. A question with no solution gives 0 while a guess may give 1, so asking does not pay.
4. MCP is a bottleneckOnly a question and an answer pass through MCP, and the host decides the rest.

Next, in order: what benchmarks measure, what “autonomous time” means, how agents ask in practice, what MCP and Claude Code say. Expectations and findings are put side by side in a table near the end. First, where exactly the penalty sits in such a metric.

What an agent is penalized for: the metric and its formulas

Two schemes show which quantity drops when an agent stops and asks. This is a simplified record by the meaning of the metrics in the sources; quotes come in the chapters on the checks.

The score is given for the outcomeguessed right1guessed wrong0asked, no channel0● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

Score by outcome: a right answer gives 1, a wrong one and a stop without a solution give 0.

The penalty falls on the unfinished outcome: a stop without a solution gets the same 0 as a mistake. If a channel exists and the task is solved after the answer, the question even pays, and that is how HiL-Bench is built.

A question cuts the agent’s turnno questionone turn · 60 mina question at minute 40turn 1 · 40 minturn 2 · 20 min?● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

A question cuts the turn: a made-up example of 60 minutes.

At Anthropic a question ends the measured turn. The lab itself calls an agent’s stop oversight.

Takeaway
In this exampleAn agent spends forty minutes fixing an export, hits two equally valid ways and asks a person. By outcome scoring the question costs nothing while the task is solved afterwards. By turn length it cuts 60 minutes into 40 and 20.
In generalThe penalty sits in two places: the zero for an unsolved task and the cut of a turn at a question. None of the metrics reviewed subtracts for the question itself.
Next stepWrite down the formula for your metric: what stands in the numerator and what happens to the score if the agent stopped and asked.

Check: what autonomy benchmarks measure and where a person sits in them

Autonomy is measured in different ways, and the way decides whether a metric can see a stop to ask a question. In order below: the picture of a metric with a finish line, the METR horizon, classic benchmarks and metrics where a question counts.

The metric counts the finish, a question is not in the countfinish: the mark is herea question to a person: not counted● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

The metric marks the finish; the path of a question to a person is not in the count.

The METR horizon: how long a task takes a person

METR defines the horizon as the time people typically take on tasks the model solves with 50% success. Task time comes from successful human runs. The set has no tasks involving a request to a person, and METR itself warns that the horizon is not the time of independent work. In the report of 19 May 2026 the best shared model got 16–20 hours at the 50% level and 3–4 hours at the 80% level.

How the METR horizon is computed

p(success | task of length t) = σ( (ln h − ln t) · β )
h — the horizon: the task length at which p = 0.5
t — the geometric mean of successful human run times

METR’s method is a logistic curve over task length, with the horizon taken at the 50% (or 80%) point. The agent’s own time does not stand in the formula anywhere.

METR horizon: task hours, not hours of independent worksuccess 50%16–20 hsuccess 80%3–4 hThe set has no tasks involving a person● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

Task hours of the best model: at the 50% level and at the 80% level.

Task benchmarks: no person in them

SWE-bench scores by tests: “the percentage of task instances that are resolved”. In OSWorld, Terminal-Bench, GAIA and Cybench a script, a test or a flag judges, and there is no channel to a person. The phrase “minimal human intervention” in these papers describes a goal or the growth of the set, and is no metric. In tau-bench the reward is 0 or 1 by the final database, and a handoff to a person is an ordinary action: in some tasks it belongs to the reference, in the rest the database will not match.

Metrics where a question counts: HiL-Bench, HAS-Bench, Anthropic

These three sources count a question differently, so the sharpest contrast comes first: what happens to a model when a task cannot be solved without asking.

HiL-Bench: share of solved tasksfull information67–91%a person must be asked1–39%Spread across models; training reward: +0.3 for a relevant question, −0.1 for an extra one● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

When the missing part must be found by asking a person, the share of solved tasks falls several times over.

HiL-Bench from Scale AI is built so that a task cannot be solved without asking. The authors write that ordinary benchmarks are blind to this failure. With a “ask a person” function the best models solve 1 to 39% of tasks, against 67 to 91% with full information. The training reward: +0.3 for a relevant question and −0.1 for an extra one. HAS-Bench introduces the share of human intervention as a descriptive figure. In its work on autonomy in production Anthropic counts interventions and agent-initiated stops separately and calls the stops a form of oversight.

Three ways to count a question

HiL-Bench:  r_question = +0.3 if the question targets something missing
            r_question = −0.1 if it is extra or a repeat
            a task counts only when everything missing is resolved
HAS-Bench:  HIR = steps done by people / all steps   (a description, not a penalty)
Anthropic:  an agent stop counts as oversight, an intervention separately
What a metric does with a question to a personSWE-bench, OSWorld, Terminal-Bench, GAIA, Cybench, METRthere is no channel to a persontau-bencha handoff is neutralHiL-Bench (Scale AI)a question is rewarded, a guess is punishedAnthropic: autonomy in productionan agent-initiated stop is a form of oversightNot found anywhere: “asking a person counts as a loss”● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

Four ways to treat an agent’s question: no channel, neutral, reward, a form of oversight.

This summary puts the four ways together: the same agent work, while a metric may not see a question, reward it or count it as oversight.

Takeaway
In this exampleThe same agent cannot ask in SWE-bench, asks for a reward in HiL-Bench, and in Anthropic’s production metrics its stop is recorded as oversight. There is more than one metric, and a request to a person is recorded differently in each.
In generalThe claim “autonomy metrics punish a question” is wrong as a general rule. What holds is narrower: classic benchmarks do not provide for a question, and a stop without a solution equals failure.
Next stepAsk about your own autonomy metric: what does it record when the agent stopped and asked: success, failure or nothing.

What counts as autonomous time at METR, Anthropic and DeepMind

The phrase “autonomous time” means three different things at three labs, and that decides whether an agent’s question to a person hurts the metric. Below in turn: what METR counts, what Anthropic counts and what Google DeepMind counts.

Three measures of “autonomous time”METRp(success | task hours) = 0.5Anthropicturn = stop − startDeepMindshare of tasks, no intervention● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

Three measures: a person’s hours on the task, a turn from start to stop, a task without human intervention.

“Work on their own” can be measured three ways. The first: how many hours a task takes a person, a task the agent solves. The second: how far the agent goes from start to stop. The third: what share of tasks is done without human intervention. The formulas of all three are below.

METR: the difficulty of a task, the agent’s own time is not in the metric

METR itself answers whether this is the time of independent work. The FAQ on the horizons page says the same: it measures the difficulty of a task, and the time an AI spends is not part of it. METR does not publish the agent’s own time: it varies greatly by model provider and agent setup.

Anthropic: an agent’s turn from start to stop

In its work on autonomy in production, time is counted mechanically from Claude Code telemetry: from the start of work to a stop, and a stop can be a question to a person. So an agent’s question cuts the turn and formally shortens the measured time. The authors themselves caveat that turn length is an imperfect proxy for autonomy.

Anthropic does not treat a stop to ask as a defect. In its words, on harder tasks Claude limits its own autonomy by stopping to consult the human, and a footnote adds that asking the user a question is itself a form of agency. Only a blocking question of the kind “I need this to continue” counts; a question like “shall I commit?” after a finished task is not a stop.

Google DeepMind: the task is done without human intervention

DeepMind has no turn-length metric. In “Levels of AGI” autonomy is described by levels from “AI as a Tool” to “AI as an Agent”, by interaction style rather than time, and the ability to turn to a person is part of the top level: a fully autonomous AI acts without continuous oversight but knows when to consult humans. In the Frontier Safety Framework report (October 2026) autonomy is defined as “the task was done without human intervention”: they look at whether the agent succeeded on its own and whether a person intervened, and the share of fully delegated pull requests grew from 7.5% to 11.9%. A separate metric “the agent asked a person” was not found there.

WhoWhat counts as autonomousAn agent’s question to a person
METRtask difficulty in human hoursno such event: tasks have no dialogue
Anthropicturn length until a stopcuts the turn but is called oversight
Google DeepMinda task without human interventionnot an intervention, not counted separately
Takeaway
In this exampleThe agent stopped and asked. At Anthropic the turn ended there, at METR there is no such event, and DeepMind cares whether a person intervened on their own.
In generalAn agent’s question shortens only the turn at Anthropic, and even there it is called oversight. The labs count a human’s own intervention as the minus.
Next stepWhen you are given hours of autonomous work for an agent, ask which measure it is: turn length, task difficulty or the share of tasks without intervention.

Check: do agents actually ask

Share of sessions with a question to a personGemini 3 Flash0%Sonnet 4.523%GPT-5.252%arXiv 2605.07937: no model asks in the best window, about 10% into the run● model, people, systems, data  ● agent and harness

The share of sessions with a question in one study: from zero to a half.

There is no single share; the result depends on the model, the prompt and the harness. Without permission to ask, models are almost silent: in Ambig-SWE (500 SWE-bench tasks) “without explicit prompting, models almost never interact”. With a prompt Sonnet 4 asks on underspecified tasks in 82% of cases, on complete ones in 3%. The chart above shows “Ask Early, Ask Late, Ask Right”, another set: Sonnet 4.5 asked in 23% of sessions, GPT-5.2 in 52%, Gemini 3 Flash in 0%, and no model asked in the best window, about 10% into the run (arXiv 2605.07937).

The opposite extreme exists too. In LHAW (arXiv 2602.10525) GPT-5.2 asks in 81–97% of runs with little benefit per question, and in “Ask or Assume” (arXiv 2603.26233) Sonnet 4.5 asks in 73.8% of tasks. People are overloaded as well: by Anthropic’s data on auto mode users accept 93% of permission requests, and the post speaks of confirmation fatigue directly.

The agent asks too little or too muchno permission: silent and guessing???with permission: floods with questionsa person accepts 93% in a row● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

Two extremes: silent and guessing, or flooding with questions.

The cause “training rewards completion” is put forward by authors of several papers, but there is no measurement for agents. A related paper by Kalai et al. (arXiv 2509.04664) shows that with binary grading abstaining does not pay, and 9 of 10 checked benchmarks are binary, SWE-bench included. That paper is about the answer “I do not know”; carrying it over to a question to a person stays an analogy.

Takeaway
In this exampleAn agent without permission to ask stays silent and guesses, while an agent with permission floods a person with questions. Both cases are recorded in measurements, so the conditions need fixing: when to ask and how often.
In general“Agents do not ask” and “agents ask too much” are both true, in different models and settings.
Next stepGive the agent an explicit threshold: “ask if the decision is irreversible or you have two equal readings of the task; decide the rest yourself”.

Check: what MCP says about elicitation

Elicitation is the way an MCP server asks a person for extra data through the client. Below are the facts for version 2026-07-28 and what changed in it.

Three answersAccept: the person approved and sent data. Decline: the person explicitly said “no”. Cancel: the person closed the window without choosing. The server must handle a decline and a cancel.
Two modesForm: a flat schema with simple fields, the client sees the data. URL: the person is sent to an external address and the data does not pass through the client or the model. Asking for passwords, keys and payment data through a form is forbidden, and URL mode exists for them.
New in 2026-07-28A server no longer sends a request on its own initiative: it answers a client request with an “input required” result, the client collects the answer and repeats the request. Sampling, Roots and Logging are marked deprecated (SEP-2577).
Human in the loopFor elicitation the client must show which server asks, offer decline and cancel, and let the person review and edit a form answer. For function calls and sampling the wording is softer: “SHOULD always be a human in the loop”.

The two modes differ in one thing: who sees the person’s answer. The picture shows it.

Who sees the person’s answerform: the client sees the dataURL: the client sees nothing, secrets go here● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

Form and URL: who sees the person’s answer.

What the specification lacks. It neither allows nor forbids a client or an agent to answer instead of a person: the word “user” stands everywhere, and no interface is imposed (“the protocol itself does not mandate any specific user interaction model”). There are no sanctions for such an auto-answer either, and the specification says so itself. The words “bottleneck” or “limitation” do not appear in the specification.

Takeaway
In this exampleA payment server asks to confirm a transfer. If the client presses “accept” itself, the protocol will not notice: control stays with the host and its settings.
In generalMCP describes how to ask and which answers exist, but who answers and whether one may answer for a person is decided by the client.
Next stepCheck your client: can an agent or a script answer elicitation instead of a person. If it can, forbid that for dangerous servers.

Check: modes, hooks and a question to a person in Claude Code

Who enforces the ruleText in CLAUDE.mdguides what the agent triesthe agent may not follow itHook and permission rulesenforced by the program, not the modelallow · deny · askAskUserQuestion is not auto-approved in any mode● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

A hook and permission rules are enforced by the program. Instruction text remains advice.

The Claude Code documentation says it directly: permission rules are enforced by the Claude Code program, and instructions in a prompt or CLAUDE.md do not change what it allows.

Modes: how many questions reach a person

The person picks the mode at launch: it decides how many questions reach them at all.

Modes: how many questions reach a persondefaultasks almost everythingacceptEditsedits without a questionplanno changes before the planautoa classifier decidesdontAska question = a denialbypassPermissionsasks nothingNot auto-approved in any modeAskUserQuestion · MCP functions that need a person · explicit “ask” rules● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

Six modes from “asks everything” to “asks nothing” and what is not auto-approved.

Even in the freest mode some things are not auto-approved: the built-in AskUserQuestion function, MCP functions marked as requiring user interaction, and “ask” rules. A permission cannot be obtained from a person after the fact: no person, no answer.

Hooks: deciding whether to ask

The PreToolUse hook answers before a function call with one of four decisions: allow, deny, ask or defer. With several hooks the order is: deny beats defer, defer beats ask, ask beats allow. The “defer” decision is for runs without an interface: the calling program pauses Claude, collects the answer through its own interface and resumes from the same place. The Elicitation hook ties this to MCP: it answers a server request with accept, decline or cancel, and without an interface an unhandled request is cancelled.

A limit for subagents: AskUserQuestion is always removed from them. In a run without an interface a call that would need a question is rejected unless there is an allow rule, a hook or a host for requests. So an autonomous run without configured rules gets a denial, and an answer from a person is not coming.

At night a question becomes a report at the doorat nightdoor: nobody to answerblocker reportin the morning● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

With no person, a question becomes a report at a closed door.

This is what escalation looks like with no person: a stop and a recorded reason instead of a guess.

Takeaway
In this exampleA night run on a build server. The agent wants to release a build and nobody can be asked. In dontAsk mode the call is rejected, the agent writes a blocker report, and in the morning a person sees it instead of a silent workaround.
In generalIn an autonomous run escalation turns from a question into a blocker report: the agent stops, records the reason and waits.
Next stepFor night runs set explicit “deny” rules for dangerous actions and demand a blockers file from the agent instead of a silent guess.

What came out: why a gate and escalation do not fit into MCP entirely

The host keeps the whole conversation, and a server receives only what it needs. In the specification this is the third architecture principle. A local server runs with the client’s privileges. From this follows a conclusion I draw myself: a request and an answer pass through MCP, and everything else stays on the host side.

Barrier and intercom: the decision “ask” in two placesagentbarrier: a host hookintercom: the MCP windowpersonbypass: answer for the person● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

The host sets the barrier, MCP gives the intercom; a bypass is answering for the person.

What exactly passes through MCP and what stays on the host side is listed below.

Through MCPa function call, a result by schema, a request for data from a person, server permissions
Outside MCPclient hooks, permission modes, the sandbox, the conversation history, the person’s own dialogue with the agent

So part of a gate lives in MCP: the request to a person, permissions, the result schema. The other part stands in the host: hooks and modes. The single decision “ask” is assembled from both parts, and if only MCP is left, the default rule runs into the fact that a client can answer for a person. This is the narrow window: a question fits in it, while the decision “whether to ask at all” is taken outside.

Takeaway
In this exampleAn MCP server can ask a person about a money transfer. Whether the client will show the question or answer itself is determined by the client and its hooks.
In generalA gate and escalation are assembled from two places: the window in MCP and rules in the host. Either one alone leaves a hole.
Next stepFor each dangerous operation check both sides: the server can ask, and the client cannot answer instead of a person.

Expected and found

The four assumptions from the start, checked against the text of the documents and papers themselves. Whatever could not be opened or checked in full is marked.

What the primary sources saidA gate outside the agent’s contextconfirmedTraining for autonomypartlyA question is a loss for a metricnot confirmedMCP is a bottleneckin meaning, no quote● model, people, systems, data  ● agent and harness  ● risk, stop, boundary

The verdict on each of the four assumptions.

Details are in the table: what was expected, the result and what was found.

What it looked likeResultWhat was found
A gate stands outside the agent’s contextyesa judge inside the loop scored 86.7 against 113.0 for a check from outside (arXiv 2607.25152, pilot). In Claude Code the documentation itself separates instruction text from rules the program enforces
Agents are trained and measured for autonomous run timepartlyMETR measures a task horizon: 16–20 hours at 50% success for the best shared model. How exactly Anthropic and Google DeepMind train for a long horizon was not found in public documents
For metrics a question to a person is a loss, so asking does not pay (the penalty: 0 for an unsolved task and a cut turn)noclassic benchmarks have no channel to a person, and a stop without a solution counts as a failure. In tau-bench an unneeded handoff to a person scores 0. Metrics that count a question either reward it (HiL-Bench) or treat it as neutral (HAS-Bench). No wording like “a question is a loss” was found. There is no measurement “before and after training for completion”
MCP is a bottleneckin meaningThere is no direct quote: the specification has no words like “bottleneck”. It does say the protocol cannot enforce security principles itself, and the host provides isolation

The table gives one result: the assumption about punishing a question is the only one the sources did not support, and it held the whole chain together.

Takeaway
In this exampleThe assumption about punishing a question looked convincing, yet the one real case found is benchmarks with no channel to a person. That is a different thing: a question is impossible there, and there is nothing to punish.
In generalIf a metric does not provide for a question, training on it does not teach asking. That follows from how the metric is built, and there is no direct proof of an effect on behavior.
Next stepBefore concluding why an agent behaves a certain way, find a measurement: the same agent compared before and after training. Without it only a hypothesis remains.

How to start: four steps and ready prompts for the agent

The steps go from cheap to thorough. The first two are enough for escalation to stop depending on the agent’s mood.

1. List of stopsWrite in a file which actions require the agent to stop and ask.
2. Rules and a hookPut dangerous actions into “deny” or “ask” through permissions and a PreToolUse hook.
3. Permissions on the MCP serverHand out dangerous functions only with the required scope.
4. Question logCount how many times the agent asked, how many times needlessly and how many times stayed silent when it should have asked.

The first prompt collects the list of stops: this is step 1.

Create a file escalation.md listing the cases where the agent must stop and ask me: irreversible actions,
release, permission changes, two equal readings of the task. For each case write which question to ask and which answer counts as consent.
The agent decides everything else itself.

The second prompt turns the list into hook rules: this is step 2.

Set up a PreToolUse hook in .claude/settings.json: for commands from escalation.md answer “ask”, for clearly dangerous ones answer “deny”
with a reason the agent will see. Show the final file and an example call on which the hook fired.

The third prompt checks whether the client can answer for a person: this is step 3.

Check my MCP client: can an agent or a script answer a request for data from a person instead of me. If it can, suggest a setting
that prevents this for servers with dangerous functions.

Here is how it looks after the first two steps.

Takeaway
In this exampleA week later the log showed: of ten questions eight were about renaming files. The list of stops was cut down to irreversible actions, and questions dropped to two a day.
In generalEscalation is tuned by the log: too many questions eat a person’s attention, too few leave the agent’s guesses.
Next stepDo steps 1 and 2 for one task today, and start the log in a week from real questions.

Frequently asked questions

What is escalation to a human in AI agents?

A stop where the agent or the program around it hands a decision to a person: by a question, a permission request or a confirmation. Rules and hooks take the decision “ask”, and the person gives the answer.

What is elicitation in MCP?

The way an MCP server asks a person to provide data through the client. There are three answers: accept, decline and cancel. Asking for passwords and keys in a form is forbidden, and there is an external-address mode for them.

Do autonomy metrics punish an agent for asking a person?

The penalty arrives for an unfinished outcome: 0 instead of 1, and at Anthropic a question cuts the turn. A subtraction for the question itself was not found. Classic benchmarks simply have no channel to a person. The recent HiL-Bench and Anthropic’s work reward a question or treat it as oversight, and HAS-Bench treats it neutrally.

Can a gate and escalation be built into MCP entirely?

No. MCP carries a question and an answer, while the decision whether to show the question to a person or to answer automatically is taken by the host: its hooks, permission modes and the client. The protocol itself cannot enforce that decision.
Facts: as of 14 November 2026, from the documents and papers linked by ↗ marks. The openai.com pages and METR’s social post did not open, so OpenAI’s figure for the share of tasks without intervention is not used here. Some quotes about agents’ questions and about METR were checked through a page summary; verify them against the original before quoting. The examples with a config, a payment server and a night run are hypothetical.
© 2026 Egor Urvanov