Task Statement 5.2·Domain 5 — 15% of exam
Escalation & Ambiguity Resolution
Design effective escalation and ambiguity resolution patterns
Official Exam Guide Objectives
The objectives below are quoted from Anthropic's Claude Certified Architect – Foundations exam guide, v1.1. Read the exam guide summary for the full blueprint.
Task 5.2: Design effective escalation and ambiguity resolution patterns.
Knowledge of
- Appropriate escalation triggers: customer requests for a human, policy exceptions/gaps (not just complex cases), and inability to make meaningful progress
- The distinction between escalating immediately when a customer explicitly demands it versus offering to resolve when the issue is straightforward
- Why sentiment-based escalation and self-reported confidence scores are unreliable proxies for actual case complexity
- How multiple customer matches require clarification (requesting additional identifiers) rather than heuristic selection
Skills in
- Adding explicit escalation criteria with few-shot examples to the system prompt demonstrating when to escalate versus resolve autonomously
- Honoring explicit customer requests for human agents immediately without first attempting investigation
- Acknowledging frustration while offering resolution when the issue is within the agent's capability, escalating only if the customer reiterates their preference
- Escalating when policy is ambiguous or silent on the customer's specific request (e.g., competitor price matching when policy only addresses own-site adjustments)
- Instructing the agent to ask for additional identifiers when tool results return multiple matches, rather than selecting based on heuristics
What You Need to Know
Where the escalation line sits determines whether a support agent is useful. Set it wrong and first-contact resolution collapses in one direction or the other — everything handed to a human, or nothing that should have been. What the exam tests is which triggers are sound and which merely sound sound.
The whole task fits in one picture: three triggers send a case to a person, and nothing else does.
| Escalate when | Because |
|---|---|
| The customer asks for a human | Immediately, with no investigation first |
| Policy is silent or ambiguous, or the customer wants an exception to it | The agent cannot invent policy or grant exceptions |
| No meaningful progress is possible | Tools exhausted, record missing, every action blocked |
| Do not escalate because | Because |
|---|---|
| The customer sounds upset | Sentiment is not complexity |
| The model's confidence is low | Self-reported confidence is poorly calibrated |
| The case feels complex or has several parts | Complex is not the same as unresolvable |
| Money is involved | That is a threshold gate (Task 1.5), a different mechanism |
The Three Valid Escalation Triggers
Three kinds of reason justify handing a case to a person:
1. Customer explicitly requests a human. "I want to speak to a person" ends the matter. Do NOT attempt to resolve the issue first, and do not offer to try — no version of "let me see whether I can help with that first" is acceptable, however helpfully meant. A clear request has been made and the response is to act on it.
This is an absolute rule with no exceptions. The moment the customer explicitly asks for a human, the escalation happens. It applies in any phrasing — a human, a manager, a supervisor, "a real person" — and at any point in the conversation, not only in the opening message. Do not ask the customer to explain why they want a person either; that is the same delay wearing a different coat.
The one legitimate thing to do while transferring is compile the structured handoff (Task 1.4, covered under Deep Dive) from what is already known, so the human starts informed:
- Wrong: "I'd be happy to help with that myself first — can you tell me the order number?"
- Wrong: "Let me look into this; if I can't resolve it I'll transfer you."
- Right: "Of course — I'm connecting you to a specialist now, and I've passed on the details you've given me so you won't need to repeat them."
2. Policy exceptions or gaps. The situation sits outside what policy covers — a request to match a competitor's price where policy addresses only adjustments against your own prices. Policy cannot be invented mid-conversation, so someone with the authority to make an exception has to decide.
What decides it is whether policy gives the agent an answer it can deliver, and whether the customer accepts that answer:
| Situation | Escalate? | Why |
|---|---|---|
| Policy covers it and a tool exists, though it takes six steps | No | Complex is not the same as unresolvable |
| Policy is silent on the request (competitor price match) | Yes | Nothing authorises a decision either way |
| Two policies give conflicting answers for this case | Yes | Ambiguous policy is a gap |
| Policy clearly says no, and the customer accepts it | No | Explain the outcome |
| Policy says no, and the customer asks for an exception | Yes | Only a human can grant an exception |
So a refund requested outside the return window is answered by policy: the agent explains the outcome, and if the customer accepts it, nothing escalates. If the customer presses for an exception to that rule, the case escalates, because the guide names "policy exceptions" as a trigger and the agent has no authority to grant one. Official sample question 3 describes the failure from the other side: an agent "attempting to autonomously handle complex situations requiring policy exceptions".
"Silent" is not "prohibited". In the guide's own example the policy addresses price drops on your own site; a competitor's price lies outside anything it contemplates. An agent that refuses the competitor match is inventing policy just as surely as one that grants it.
3. Inability to make meaningful progress. Resolution was attempted and cannot advance:
- a required tool still fails after local recovery (Task 2.2 and Task 5.3)
- the record the customer describes does not exist and cannot be found with any identifier they can give
- every available action is blocked by a gate or a missing prerequisite, or the case needs system access the agent does not hold
- the agent has looped without changing the customer's situation, or the defect belongs to engineering
This is the catch-all, and it is conditional on the attempt actually having happened. Anticipating difficulty is not the trigger; exhausting what the agent can do is.
Three triggers — a request, a gap, an exhausted attempt, step 1: An explicit request for a human
Ask or Escalate?
Not every gap in what the agent knows is an escalation. The discriminator is what kind of uncertainty it is:
| The agent is unsure about | Response |
|---|---|
| A fact it can get from the customer (which order, which account) | Ask a clarifying question |
| What policy allows | Escalate |
| Which of several matching records is the customer's | Ask for a disambiguating identifier |
"I need one more piece of information" is a clarifying question, not trigger 3. Ambiguity becomes an escalation only when the customer cannot supply anything that settles it, at which point the agent genuinely cannot progress.
The Two Unreliable Triggers
The exam specifically tests whether you can identify these as anti-patterns:
Sentiment-based escalation. Routing on detected frustration fails because frustration and difficulty are unrelated quantities. A customer furious about a late delivery has an easy case — apologise, compensate, reship. A polite customer asking about competitor price matching has a policy gap requiring human judgement. Sentiment reports how someone feels, which tells you nothing about how hard their problem is. Angry customers may well end up escalated more often; routing on that still sends resolvable cases to a queue, which hurts first-contact resolution, and still misses the calm customers who genuinely need a person.
Self-reported confidence scores. Asking the model for a 1-10 confidence and escalating below a threshold fails because that number is poorly calibrated. Hard cases attract confidence, since not knowing what it does not know is precisely the condition; easy cases attract hedging. The result is the failure the exam scenario describes — simple cases escalated while complex ones are attempted. Confidence that has been calibrated against labelled data and is used to route extractions for review is a different practice, covered in Task 5.5.
Sentiment and confidence measure the wrong thing, step 1: A furious customer, an easy case
Other signals that are not triggers
| Signal | Why it is not a trigger | What to do instead |
|---|---|---|
| The request has several parts | Multi-part requests are common and resolvable | Decompose (Task 1.4), resolve each part on its merits, escalate only the item that meets a trigger |
| Money is involved | Amount is a threshold question, not a complexity one | Below the autonomous limit, resolve; above it, a hook blocks the call and redirects to escalation (Task 1.5) |
| The turn count or number of tool calls is high | These measure effort, not authority | Ask whether one of the three triggers has actually fired |
Escalating the whole conversation because one item is stuck throws away first-contact resolution on every other item in it.
The Frustration Nuance
The exam tests a specific nuance about customer frustration:
- Frustrated, but the problem is simple: name the frustration and fix the thing — "I understand this is frustrating. I can process your replacement right now." No escalation.
- Asks again for a human after you have offered to help: escalate now. The offer was made and declined, which settles it.
- Opens by asking for a human: escalate at once. Nothing is investigated first and no help is offered first.
What separates the first case from the third is not how strongly the customer feels but whether they have asked for a person. Frustration accompanying a resolvable problem is answered by resolving it; a request for a human is answered by producing one.
Not how strongly they feel — whether they've asked for a person, step 1: Frustrated, but the problem is simple
Offer, do not insist. The agent makes one offer of resolution; if the customer then asks for a person, a second, better-worded offer is the same "let me try first" delay moved to after the request.
Ambiguous Customer Matching
Where a lookup returns several candidates — a name search finding three John Smiths — the agent asks for something that discriminates: an email address, a phone number, an order number.
The agent must NOT:
- Take whichever record was created most recently
- Take whichever account looks busiest
- Apply any rule of thumb at all to break the tie
Every one of those is a guess dressed as a rule, and the cost of guessing wrong is not a retry. Reading out one customer's details to another is a privacy breach, and refunding the wrong account is a financial error made confidently. Asking one clarifying question is the only response with no downside.
Ask for a discriminator — never select on a heuristic, step 1: Search for John Smith — two records match
What makes a good disambiguating question
- The identifier must partition the candidates. If all three matches are named John Smith, "Can you confirm your name?" resolves nothing. Ask for something that differs between them: an order number, a postcode, the last four digits of the card on the account, the date the account was opened.
- Ask; do not show. Reading the candidates' details back and inviting the caller to pick one discloses other customers' data to whoever is on the line.
- The rule holds when one match looks likelier. Same city, recent activity, an open order: a candidate that stands out is still a heuristic winner, not a verified one.
- The tool returns every match. A lookup that silently returns the first row makes the guess before the agent sees the ambiguity. The tool should return all the candidates and make it plain there is more than one; the system prompt then instructs the agent to ask for an identifier. A structured result can go further and name the identifiers that would separate the candidates. It should not invite a retry: repeating the same lookup returns the same matches, and only new information from the customer changes the outcome.
Explicit Escalation Criteria in System Prompts
Calibration comes from writing the criteria down, with worked examples, in the system prompt. Those examples should cover:
- The cases that go to a person — a request for one, a policy gap, an attempt that has run out of road
- The cases the agent finishes itself, including the frustrated customer whose problem is simple
- What an escalation must contain when it happens: customer ID, root cause, recommended action
And this comes before any infrastructure. A classifier or a sentiment model is a larger commitment answering a problem that explicit criteria usually solve outright — prompt work first, architecture only if it genuinely remains.
What the criteria section says
A criteria section the agent can apply to a message it has never seen states a rule per trigger, says when to resolve, and names what is not a reason to escalate:
## Escalation criteria
ESCALATE IMMEDIATELY, before any investigation, when the customer asks for a human,
a manager or "a real person", in any phrasing, at any point.
ESCALATE when policy does not address the situation, two policies conflict, or the
customer asks for an exception to a stated policy; when you cannot make progress
(a tool keeps failing, the record does not exist, no action changes the situation);
or when a threshold blocks the action, such as a refund above the autonomous limit.
RESOLVE when policy covers the situation and you have a tool for it, even if the
customer is angry, the case has several parts, or the amount is large but within the limit.
DO NOT ESCALATE because the customer is angry or because you feel unsure. Unsure of
the facts: ask a clarifying question. Unsure of the policy: escalate.A description of what escalation is, or a bare list of trigger names, leaves the agent to infer which situations fall under each, which is the unclear boundary the section exists to close.
What the worked examples must do
Two to four examples of boundary cases, each with its reasoning (the few-shot technique of Task 4.2):
| Customer message and context | Decision | Reasoning shown in the example |
|---|---|---|
| "Third time I've contacted you. I'm furious." Damaged order, photo attached, standard replacement policy applies | Resolve | Frustration is not a policy gap; policy covers it and the tool exists |
| "Just give me a human." Same damaged-order case | Escalate now, with a handoff | An explicit request is honoured without investigating first |
| "A competitor has this cheaper — match it." Policy covers only your own price drops | Escalate as a policy gap | Policy is silent, so neither granting nor refusing is supported |
| "Return two of the four items, store credit for the rest." Return window open, store credit documented | Resolve both parts | Multi-part but fully covered; decompose, do not escalate |
- At least one example must resolve. A set that only escalates teaches "escalate", shifting the boundary rather than defining it; for an agent that already escalates easy cases, that worsens the failure.
- Show the reasoning, not only the verdict. The reasoning is what lets the agent generalise past the cases shown.
- Do not let tone carry the decision. If every escalating example is angry and every resolving one calm, the agent learns sentiment-based escalation from the demonstrations. The furious-but-resolve example exists to break that pattern.
Deep Dive
Hooks as a deterministic escalation gate
Prompt instructions ("escalate when X") are probabilistic — they fail some percentage of the time. Where escalation must be guaranteed rather than merely likely, the Agent SDK's hook system is the deterministic mechanism. Hooks are "callback functions that run your code in response to agent events, like a tool being called, a session starting, or execution stopping," and one of their named use cases is exactly this: to "require human approval for sensitive actions" rather than relying on the model to remember to ask. A PreToolUse hook intercepts the tool call itself — e.g. process_refund above a threshold, or any tool tied to a policy-gap scenario — before it executes, and can force a human-approval branch regardless of what the model "decided."
Sourcecode.claude.com › hooksfetched 2026-07-30
PreToolUse output and canUseTool for human-in-the-loop approval
A PreToolUse hook's output sets permissionDecision to one of "allow", "deny", "ask", or "defer", plus a permissionDecisionReason — "ask" is the mechanism for routing a specific action to a human before it runs. Separately, a canUseTool callback provides a human-approval gate at the SDK level, but it sits at the end of the permission evaluation order — it is called only "if not resolved by any of the above". The docs are blunt about the consequence: "Auto-approved tools never reach canUseTool. A tool call approved at any earlier step, by acceptEdits or bypassPermissions, or by an allow rule, skips your canUseTool callback, so permission checks you put there are silently bypassed for that tool." Hence the documented rule: "For checks that must run on every tool call, use a PreToolUse hook" — so "always ask before a refund over $500" belongs in a hook, not in canUseTool.
Sourcescode.claude.com › hookscode.claude.com › permissionsfetched 2026-07-30
Hook decision priority when multiple checks apply
When several hooks or permission rules could apply to the same action, "deny takes priority over defer, which takes priority over ask, which takes priority over allow. If any hook returns deny, the operation is blocked regardless of other hooks." For an escalation architecture this means a hard business rule (deny) always wins over a softer "ask the human" rule. The permissions reference adds the same guarantee at the rule level: deny rules are checked before the permission mode, so "if a deny rule matches, the tool is blocked, even in bypassPermissions mode", and "a hook deny applies even in bypassPermissions mode". There is no permission mode that can silently bypass a genuine policy stop.
Sourcescode.claude.com › hookscode.claude.com › permissionsfetched 2026-07-30
Structured handoff protocol fields
When escalation fires, the exam guide's companion objective on workflow handoff (Task 1.4) specifies what a human agent needs, since they "lack access to the conversation transcript": a structured handoff summary containing customer ID, root cause analysis, and recommended action, plus (in refund-style cases) the specific amount involved. This is the concrete content behind this lesson's "structured handoff with customer ID, root cause, recommended action" — it is a required payload, not an optional nicety, because the receiving human has no other context.
Sourceanthropic-partners.skilljar.com › partner-certificationsfetched 2026-07-30
Tool-call interception for compliance-driven escalation
The same deterministic-vs-probabilistic distinction applies to policy enforcement. The exam guide's Task 1.5 knowledge point contrasts "hook patterns that intercept outgoing tool calls to enforce compliance rules (e.g., blocking refunds above a threshold)" against relying on prompt instructions for probabilistic compliance, and its paired skill is "implementing tool call interception hooks that block policy-violating actions... and redirect to alternative workflows (e.g., human escalation)." In other words: the third valid escalation trigger — inability to make progress — is sometimes not a model judgement call at all, but a hook-enforced redirect the moment a specific tool call is attempted.
Sourceanthropic-partners.skilljar.com › partner-certificationsfetched 2026-07-30
Quick Reference
| Fact | Value |
|---|---|
| Three valid escalation triggers | Explicit human request · policy exception/gap · inability to make progress |
| Two unreliable triggers | Sentiment/frustration detection · self-reported confidence scores |
| Explicit human request handling | Escalate immediately, zero investigation first, in any phrasing and at any point |
| Policy says no | Customer accepts → explain the outcome · customer asks for an exception → escalate |
| Policy silent or conflicting | Escalate; refusing invents policy as much as granting does |
| Unsure of facts vs unsure of policy | Facts → ask a clarifying question · policy → escalate |
| Multi-part request | Decompose; escalate only the item that meets a trigger |
| Money involved | Not a trigger; a threshold gate (hook) redirects amounts above the limit |
| Frustrated customer, simple issue | Acknowledge, offer resolution once, escalate only if they then ask for a person |
| Deterministic enforcement mechanism | Agent SDK hooks (e.g. PreToolUse) — guaranteed, not probabilistic |
PreToolUse permissionDecision values | allow, deny, ask, defer |
canUseTool invocation rule | Only fires when permission flow falls through to a prompt; skipped for auto-approved calls |
| Hook decision priority | deny > defer > ask > allow; a deny blocks even under bypassPermissions |
| Structured handoff fields | Customer ID, root cause analysis, recommended action (+ amount where relevant) |
| Ambiguous customer match | Ask for an identifier that partitions the candidates (order number, postcode, card last four) — never select heuristically, never read the candidates out |
| Prompt vs architecture | Add explicit criteria + few-shot examples (including a resolve case) to the system prompt before adding classifiers or sentiment models |
Exam Traps
More wrong answers, and why each fails
| Tempting answer | Why it fails | Choose instead |
|---|---|---|
| Score the matching records on recency and activity, open the top one and log the others for audit | Scoring dresses the same heuristic in rigour; the log records the wrong account after the fact instead of preventing it | Ask for a disambiguating identifier |
| Treat the case as an escalation because the agent lacks one fact, such as which order the customer means | Missing facts the customer can supply are not an inability to progress | Ask a clarifying question |
| Escalate whenever the case needs many steps or tool calls | Complexity and effort are not on the list of triggers; a covered, tool-supported case is resolvable | Resolve it, however many steps it takes |
How This Is Tested
| Stem signal | Answer | Wrong-answer pattern beside it |
|---|---|---|
| First-contact resolution well below target; the agent escalates easy cases and attempts hard ones | Explicit escalation criteria with few-shot examples in the system prompt | A confidence threshold; a trained classifier; sentiment routing |
| The customer asks for a human on a case the agent could close | Escalate immediately with a structured handoff | Investigate first; offer to help first; ask why |
| The customer is furious, but the issue is standard and covered | Acknowledge, resolve, escalate only if they then ask for a person | Escalate on tone; offer a choice of human or agent |
| Policy covers your own price drops; the customer wants a competitor match | Policy gap, so escalate | Decline as out of policy; apply the nearest policy |
| The customer asks for an exception to a clear policy | Escalate | Restate the policy and close the case |
| A customer lookup returns three matches | Ask for an additional identifier | Most recent, most active, read the candidates out |
| A multi-part request where one item is stuck | Resolve the rest, escalate that item | Escalate the whole conversation |
| A rule about amounts must hold every time | A hook that blocks the call and redirects to escalation | A prompt instruction; a confidence score |
Official sample question 3, option by option
The stem: "Your agent achieves 55% first-contact resolution, well below the 80% target. Logs show it escalates straightforward cases (standard damage replacements with photo evidence) while attempting to autonomously handle complex situations requiring policy exceptions." The question asks for "the most effective way to improve escalation calibration".
| Option | Verdict | The official explanation |
|---|---|---|
| A. "Add explicit escalation criteria to your system prompt with few-shot examples demonstrating when to escalate versus resolve autonomously." | Correct | It "directly addresses the root cause: unclear decision boundaries. This is the proportionate first response before adding infrastructure." |
| B. "Have the agent self-report a confidence score (1-10) before each response and automatically route requests to humans when confidence falls below a threshold." | Wrong | "LLM self-reported confidence is poorly calibrated—the agent is already incorrectly confident on hard cases." |
| C. "Deploy a separate classifier model trained on historical tickets to predict which requests need escalation before the main agent begins processing." | Wrong | It "is over-engineered, requiring labeled data and ML infrastructure when prompt optimization hasn't been tried." |
| D. "Implement sentiment analysis to detect customer frustration levels and automatically escalate when negative sentiment exceeds a threshold." | Wrong | It "solves a different problem entirely; sentiment doesn't correlate with case complexity, which is the actual issue." |
Read the symmetry in the logs: the agent escalates the easy cases and attempts the hard ones. Errors in both directions are the signature of no boundary at all, not of a boundary set too low, so no single threshold knob (B's confidence cut-off, D's sentiment level) can fix them; moving a threshold trades one direction of error for the other. Defining the boundary can, and it costs only prompt work.
Practice Scenario
A product line launched three weeks ago and its returns policy has not been written yet. Your agent handles requests against that line by applying the nearest analogous policy when it rates itself confident, and escalating when it does not. Two customers sent near-identical requests last week and received opposite outcomes. What's the most effective first step?
Practice Questions
Exam simulator
Question 1 of 13
Scenario · Customer Support Resolution Agent
Your support agent escalates when a sentiment score falls below −0.6 or its own confidence falls below 0.7. Escalations doubled, but the wrong cases escalate: angry customers with simple, covered refunds go to humans, while calm customers asking for policy exceptions are resolved by the agent, sometimes wrongly. What change would most effectively improve escalation decisions?
Sources
- Claude Certified Architect Foundations Exam Guide — Domain 5, Task Statement 5.2 — Anthropic
- Anthropic Agent SDK Documentation — Human-in-the-loop — Anthropic
- Anthropic Customer Support Best Practices — Anthropic
- Agent SDK — Hooks — Anthropic
- Agent SDK — Permissions — Anthropic