Methods noteSI evaluation

Testing when an agent should hand off to a person

How to test agent escalation to a human as one decision with two errors, using paired cases, a confusion table, checks on the handoff itself and repeated runs.

Cover of the full report: Testing when an agent should hand off to a person
The research behind this article, with every source listed. 19 pages.

Key points

From the Summary of the full report

  1. Published guides name the same few triggers for handing off to a person: repeated failures, high-risk or irreversible actions, blockers and checkpoints, and a user's request [1, 2, 4, 7]. Each trigger becomes a test only once the correct action for a case is written down before the run [9, 18].
  2. A test that scores only safety rewards an agent that always hands off. An agent that always asks for confirmation can earn a perfect safety score while failing its task, so helpfulness has to be scored alongside safety [3, 13].
  3. Across 32 language models in OR-Bench, an over-refusal benchmark, rejection rates on toxic prompts and on safe prompts had a rank correlation of 0.89, so the models that refused more toxic prompts tended to refuse more safe ones [12].
  4. Prompt changes trade missed handoffs for unneeded ones. In Ambig-SWE, a software benchmark with underspecified issues, stronger encouragement to ask raised one model's rate of unneeded questions from 0.00 to 0.36 and cut its rate of missed questions from 0.81 to 0.10 [16].

Agent escalation to a human is a decision with two ways to go wrong: the agent proceeds when it should hand off, or hands off when it should proceed. A test of escalation therefore needs cases where handing off is right and cases where it is wrong, a score for each error, and checks on the handoff itself. Published guides say when an agent should escalate. The research below shows how to test whether it does.

Escalation is one of several measures in agent evaluation metrics, and it can be scored only where the correct action is written down before the run. This note sets out how to build and score that test.

Agent escalation to a human: the published triggers

One model provider's guide (April 2025) names two triggers for human intervention [1]. The first is exceeding failure thresholds, such as failing to understand a customer's intent after multiple attempts. The second is high-risk actions that are "sensitive, irreversible, or have high stakes", such as canceling orders, authorizing large refunds or making payments [1]. A second provider adds pauses for human feedback at checkpoints or blockers, along with stopping conditions such as a maximum number of iterations to keep control [2]. A governance framework from Singapore's Infocomm Media Development Authority (IMDA), version 1.5 of May 2026, adds outlier behavior, such as an agent reaching a system outside its work scope, and limits that users set, such as purchases above an amount [7].

One agent platform's analytics sorts escalations by cause: a business rule set by the builder, a threshold such as three failures at a task, or a user's request for a person [4]. Its escalation rate is the share of engaged sessions that handed off [5]. That number shows how often the agent escalated. It cannot show whether each handoff was needed or whether a needed one was missed.

The missed kind has a documented cost. In 2023 the Consumer Financial Protection Bureau described "doom loops" in consumer-finance chatbots with no offramp to a person, and warned that "only specific words or syntax may trigger the recognition of a dispute" [6]. A test case for that failure states the same dispute without the trigger words.

Two errors, one decision

Research on abstention, where a model declines to answer, scores the decision with a confusion table [9]. Read "abstain" as "hand off" and each test case lands in one of five cells: proceeded and right, proceeded and wrong, handed off when it could have proceeded, proceeded when it should have handed off, and handed off correctly [9]. Unneeded handoffs and missed handoffs become two separate numbers.

Each error alone has a trivial winner. A model that refuses every prompt "would be perfectly harmless but also completely useless", as XSTest's authors put it [11]. In ToolEmu, an agent that seeks confirmation before every action, even harmless ones, can reach a perfect safety score while failing the task, so its authors score helpfulness alongside safety [13]. One provider's evaluation guide states the rule plainly: "One-sided evals create one-sided optimization" [3].

The two errors tend to move together. Across 32 models in OR-Bench, an over-refusal benchmark, rejection rates on toxic prompts and on safe prompts had a rank correlation of 0.89, and the authors conclude that "most models simply trade over-refusal for safety" [12].

Build paired cases

A paired case is the same request in two forms, one the agent should handle and one it should not. XSTest pairs 250 safe prompts with 200 unsafe ones [11]. Ambig-SWE gives each of 500 software issues a fully specified form and an underspecified form [16].

Four kinds of request belong in an escalation set:

  • Missing or unclear information. NoisyToolBench finds that language models "tend to arbitrarily generate the missed argument" [15]. BFCL V3 has 200 cases where the right move is to ask for a missing parameter [14].
  • No correct answer. AbstentionBench covers unknown answers, underspecification, false premises, subjective questions and outdated information. Across 20 models abstention was unsolved, larger models helped little, and two reasoning models showed an average 24% drop in abstention against their non-reasoning counterparts [10].
  • Policy limits. tau-bench, a customer-service benchmark, tells its agent to transfer the user "if and only if the request cannot be handled within the scope of your actions" and to deny requests against policy [18]. Its successor's telecom policy asks the agent to try to resolve the issue before transferring [19]. Resolve, deny and transfer are different correct actions.
  • Sensitive actions. Irreversible or high-impact steps that need a person's confirmation [1, 7, 34].

Write the correct action into every case before the run. AgentAtlas (May 2026) names six states for that: act, ask, refuse, stop, confirm and recover [26]. Write forbidden actions in too. ToolSandbox scores a whole trajectory zero when the agent does what the case says it must not, such as calling a tool on a timestamp it invented [17].

Score both errors side by side

Ambig-SWE shows why a single rate misleads. It reports unneeded questions and missed questions for each model under three prompts [16]. One open coding model never asked: 0.00 unneeded and 1.00 missed under every prompt [16]. One proprietary model moved from 0.00 unneeded and 0.81 missed under a neutral prompt to 0.36 and 0.10 under strong encouragement to ask [16]. A single share of questions asked would hide both results.

Check the action and the message as well as the end state. On tau-bench's airline tasks, 38% of tasks are intentionally impossible and success means leaving the environment unchanged, so an agent that did nothing scored 38%, above a model-based agent at 35% [20]. What agent benchmarks measure covers that benchmark's other scoring flaws. Where a model judge decides whether the agent declined, check the judge too. AbstentionBench's judge was 88% accurate on a hand-labeled sample [10].

Confidence thresholds need the same two numbers. In KnowNo, a robot planner from 2023, a lower target error raised task success and required more human help [24]. In one 2024 study, models stating their own confidence tended to be overconfident, and every method tested struggled on tasks that need professional knowledge [23].

Test the handoff itself

A handoff can fire and still fail. One agent platform counts a session as escalated "whether the conversation transfers to a live agent or not" [4]. Follow each case to a person or a queue.

Read the note. In a retail task in tau-bench's appendix, the agent broke the one-exchange rule, hit an error on its second exchange and transferred the case with a note that blamed the system and left out its own first exchange [18]. IMDA's framework asks that approval requests be short and clear and include data such as the risk of the action [7].

Test decline, cancel and reject. The Model Context Protocol (MCP) gives a request for information three outcomes: accept, decline and cancel [28]. One agent framework's documentation warns that under a conditional pause, if the condition changes on resume, "the tool runs and the reviewer's answer is ignored, even a reject" [29]. The same framework reruns the code before a pause when the run resumes, and a paused run waits indefinitely for an answer [30]. IMDA asks for denying action by default when no approver is reachable [7].

Prompts move both errors, so rerun

A prompt that fixes one error can create the other. In XSTest's 2023 tests, adding a guardrail system prompt to one open model cut its unsafe responses and raised its full refusal of safe prompts from 0.8% to 9.6% [11]. AbstentionBench found that a carefully written system prompt raised abstention without fixing the models' inability to reason about uncertainty [10]. Treat every prompt or model change as a new version and rerun both halves of the set, several times per case, for the reasons set out in LLM nondeterminism. Compare versions on paired differences per case [35].

A passing result proves less than a failing one. XSTest's authors say their suite "has negative predictive power" [11]. An escalation test shows how the agent handled the cases in it, and it is no safety guarantee. For buyers, questions to ask before you deploy a vendor's agent turns these points into requests for evidence.

Rillor's agent tests before go-live run on an organization's own tasks with black-box logging and replayable runs, and score refusal and escalation: whether the agent declines or hands off to a person when it should, and proceeds when it should.

Read the full report

The full report adds the confusion-table formulas, the published transfer rules, the confidence and deferral research, the oversight texts that name the behavior and a paired test-set design with a source behind each element.

The full report

Testing when an agent should hand off to a person

The research behind this article, with every source listed. 19 pages.

  1. Summary
  2. Background
  3. Method
  4. Findings
  5. Implications
  6. Limits of this analysis
  7. Sources

Sources

  1. A practical guide to building agents. OpenAI, 7 April 2025 (PDF creation date), viewed 8 November 2026. https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
  2. Building effective agents. Erik S. and Barry Zhang, Anthropic Engineering, 19 December 2024, viewed 8 November 2026. https://www.anthropic.com/engineering/building-effective-agents
  3. Demystifying evals for AI agents. Mikaela Grace, Jeremy Hadfield, Rodrigo Olivares and Jiri De Jonghe, Anthropic Engineering, 9 January 2026, viewed 8 November 2026. https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
  4. Monitor conversational agent effectiveness. Microsoft Copilot Studio documentation, Microsoft Learn, 4 November 2026, viewed 8 November 2026. https://learn.microsoft.com/en-us/microsoft-copilot-studio/analytics-improve-agent-effectiveness
  5. Agent metrics reference. Microsoft Copilot Studio guidance, Microsoft Learn, 4 November 2026, viewed 8 November 2026. https://learn.microsoft.com/en-us/microsoft-copilot-studio/guidance/agent-business-value-metrics-reference
  6. Chatbots in consumer finance. Issue Spotlight, Consumer Financial Protection Bureau, 6 June 2023, viewed 8 November 2026. https://www.consumerfinance.gov/data-research/research-reports/chatbots-in-consumer-finance/chatbots-in-consumer-finance/
  7. Model AI Governance Framework for Agentic AI, Version 1.5. Infocomm Media Development Authority, Singapore, 20 May 2026, updated 5 June 2026, viewed 8 November 2026. https://www.imda.gov.sg/-/media/imda/files/about/emerging-tech-and-research/artificial-intelligence/mgf-for-agentic-ai.pdf
  8. Know Your Limits: A Survey of Abstention in Large Language Models. Bingbing Wen, Jihan Yao, Shangbin Feng, Chenjun Xu, Yulia Tsvetkov, Bill Howe and Lucy Lu Wang, arXiv:2407.18418, version 3, 12 February 2025 (TACL 2024 per the arXiv comment, first version 25 July 2024), viewed 8 November 2026. https://arxiv.org/abs/2407.18418
  9. AbstentionBench: Reasoning LLMs Fail on Unanswerable Questions. Polina Kirichenko, Mark Ibrahim, Kamalika Chaudhuri and Samuel J. Bell, arXiv:2506.09038, 10 June 2025, viewed 8 November 2026. https://arxiv.org/abs/2506.09038
  10. XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models. Paul Röttger, Hannah Rose Kirk, Bertie Vidgen, Giuseppe Attanasio, Federico Bianchi and Dirk Hovy, arXiv:2308.01263, version 3, 1 April 2024 (NAACL 2024), viewed 8 November 2026. https://arxiv.org/abs/2308.01263
  11. OR-Bench: An Over-Refusal Benchmark for Large Language Models. Justin Cui, Wei-Lin Chiang, Ion Stoica and Cho-Jui Hsieh, arXiv:2405.20947, version 5, 15 June 2025 (ICML 2025, first version 31 May 2024), viewed 8 November 2026. https://arxiv.org/abs/2405.20947
  12. Identifying the Risks of LM Agents with an LM-Emulated Sandbox. Yangjun Ruan, Honghua Dong, Andrew Wang, Silviu Pitis, Yongchao Zhou, Jimmy Ba, Yann Dubois, Chris J. Maddison and Tatsunori Hashimoto, arXiv:2309.15817, version 2, 17 May 2024 (first version 25 September 2023), viewed 8 November 2026. https://arxiv.org/abs/2309.15817
  13. BFCL V3: Multi-Turn and Multi-Step Function Calling Evaluation. Huanzhi Mao and others, Gorilla project, UC Berkeley, 19 September 2024, updated 10 December 2024, viewed 8 November 2026. https://gorilla.cs.berkeley.edu/blogs/13_bfcl_v3_multi_turn.html
  14. Learning to Ask: When LLM Agents Meet Unclear Instruction. Wenxuan Wang, Juluan Shi, Zixuan Ling and others, arXiv:2409.00557, version 4, 29 April 2026 (EMNLP 2025, first version 31 August 2024), viewed 8 November 2026. https://arxiv.org/abs/2409.00557
  15. Ambig-SWE: Interactive Agents to Overcome Underspecificity in Software Engineering. Sanidhya Vijayvargiya, Xuhui Zhou, Akhila Yerukola, Maarten Sap and Graham Neubig, arXiv:2502.13069, version 3, 21 February 2026 (ICLR 2026, first version 18 February 2025), viewed 8 November 2026. https://arxiv.org/abs/2502.13069
  16. ToolSandbox: A Stateful, Conversational, Interactive Evaluation Benchmark for LLM Tool Use Capabilities. Jiarui Lu, Thomas Holleis, Yizhe Zhang, Bernhard Aumayer, Feng Nan and others, arXiv:2408.04682, version 2, 16 April 2025 (first version 8 August 2024), viewed 8 November 2026. https://arxiv.org/abs/2408.04682
  17. τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains. Shunyu Yao, Noah Shinn, Pedram Razavi and Karthik Narasimhan, arXiv:2406.12045, 17 June 2024, viewed 8 November 2026. https://arxiv.org/abs/2406.12045
  18. τ²-Bench: Evaluating Conversational Agents in a Dual-Control Environment. Victor Barres, Honghua Dong, Soham Ray, Xujie Si and Karthik Narasimhan, arXiv:2506.07982, 9 June 2025, viewed 8 November 2026. https://arxiv.org/abs/2506.07982
  19. Establishing Best Practices for Building Rigorous Agentic Benchmarks. Yuxuan Zhu, Tengjun Jin, Yada Pruksachatkun and others, arXiv:2507.02825, version 5, 7 August 2025 (first version 3 July 2025), viewed 8 November 2026. https://arxiv.org/abs/2507.02825
  20. Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMs. Miao Xiong, Zhiyuan Hu, Xinyang Lu, Yifei Li, Jie Fu, Junxian He and Bryan Hooi, arXiv:2306.13063, version 2, 17 March 2024 (ICLR 2024), viewed 8 November 2026. https://arxiv.org/abs/2306.13063
  21. Robots That Ask For Help: Uncertainty Alignment for Large Language Model Planners. Allen Z. Ren, Anushri Dixit, Alexandra Bodrova and others, arXiv:2307.01928, version 2, 4 September 2023 (CoRL 2023), viewed 8 November 2026. https://arxiv.org/abs/2307.01928
  22. AgentAtlas: Beyond Outcome Leaderboards for LLM Agents. Parsa Mazaheri and Kasra Mazaheri, arXiv:2605.20530, version 2, 26 May 2026 (first version 19 May 2026), viewed 8 November 2026. https://arxiv.org/abs/2605.20530
  23. Elicitation. Model Context Protocol specification, version 2026-07-28, viewed 8 November 2026. https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation
  24. Human-in-the-loop. LangChain documentation (Python), undated, viewed 8 November 2026. https://docs.langchain.com/oss/python/langchain/human-in-the-loop
  25. Interrupts. LangGraph documentation (Python), LangChain, undated, viewed 8 November 2026. https://docs.langchain.com/oss/python/langgraph/interrupts
  26. LLM06:2025 Excessive Agency. OWASP Top 10 for LLM Applications 2025, OWASP GenAI Security Project, 2025, viewed 8 November 2026. https://genai.owasp.org/llmrisk/llm062025-excessive-agency/
  27. Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations. Evan Miller, arXiv:2411.00640, 1 November 2024, viewed 8 November 2026. https://arxiv.org/abs/2411.00640

Notices

Superintelligence (SI) outputs can be wrong. Important decisions should include human review.

Test your agent before it goes live.

Send us the tasks your agent handles, the model versions it runs on and the decisions it is trusted with.

Evaluate an agent