Module 6 · Context management and reliability · Chapter 23
Escalation, ambiguity and error propagation: when to hand off, and how errors travel
- Escalate when a wrong guess is expensive, confidence is low, a policy boundary is hit, the customer asks for a human, or the same fix failed twice.
- A good handoff carries a summary, what was tried, and the exact question for the human.
- In a chain of agents, one early wrong value becomes every later step's trusted input. Verify at boundaries and pass provenance with values.
The picture: a careful agent knows two exits: hand the case up, or stop a bad value early.
- Spot the cases where an agent must escalate to a human instead of answering.
- Build a handoff that gives the human the summary, the attempts so far, and one clear question.
- Explain how an error in one step becomes trusted input for every later step.
- Place checks at the boundaries between steps: ranges, cross-checks, and provenance.
- Let a step reject a bad input instead of processing it silently.
Domain 5, Context Management and Reliability, is 15% of the exam.
- The five triggers that must hand a case to a human.
- What a good handoff carries, and the two ways to get escalation wrong.
- How one wrong value travels through a chain of agents.
- Defenses: boundary checks, provenance, and steps that can object.
- A costed worked example, then the lab and quiz.
Step 1: Five triggers that must hand off to a human
Escalation is not failure. It is a designed exit for cases the agent should not decide alone. Pine calls escalate_to_human when any of these fire:
- The request is ambiguous and a wrong guess is expensive. Two readings of the policy, and the wrong one costs $620.
- Confidence is low. The agent cannot point to a source for its answer. A fluent answer with no source is a guess in a nice font.
- The case hits a policy boundary. Pine's rule: refunds above $500 need a human. Boundaries are set in advance, never improvised mid-case.
- The customer asks for a human. Arguing or stalling costs trust. Hand over, with context, right away.
- The same fix failed twice. A third attempt is rarely insight. It is usually the same guess with more confidence.
Think of a junior nurse who must call the doctor for certain symptoms. The list is written before the shift, not invented during it.
Where the picture breaks down:
- A nurse can see the patient. The agent sees only text and tool results, so its triggers must be checkable conditions.
- A human queue has a wait, so the handoff must carry enough context to be worth it.
Next: a trigger helps only if the handoff is good.
Step 2: A good handoff, and the two ways escalation fails
A handoff is a case summary, the skill from chapter 22. It carries three things:
- A summary: who the customer is, what they asked, the verified facts (order, amount, dates) from tools, not memory.
- What was tried: the lookups done, the fix attempted, and what happened, so the human never repeats a failed step.
- The exact question: one sentence the human must decide, such as "Does clause 4 cover storm damage to a tent bought in March?"
Escalation fails in both directions:
- Too late: Pine guesses first, promises, then escalates. The human inherits a promise, not a question.
- Everything: Pine escalates every second case. The queue floods, humans stop reading summaries, and the 80 percent first-contact resolution target dies.
Like a relay baton pass: the runner who drops it, and the runner who never runs, both lose the race.
Where the picture breaks down:
- A baton is one object. A handoff is text the human must trust, so facts and guesses must be labelled apart.
- A queue may route the case to someone new, so the summary must stand alone.
The note carries no summary, no attempts, and no question. The human rebuilds the case from zero. Note also that $540 is above the $500 boundary, so escalation was right; only the handoff was bad.
Next: the second failure mode, with no human in the loop.
Step 3: How one wrong value travels
In a chain of agents, each step trusts the step before it. A wrong value early on stops looking like one subagent's output and starts looking like an established fact.
Press next to walk the picture.
- The search subagent returns a wrong figure. Right now it is one output among many, and cheap to question.
- A range check or cross-check can flag the value before anyone builds on it.
- The coordinator cannot tell a wrong value from a right one by looking. It passes the figure on.
- Synthesis writes clean prose around it. The further it travels, the more confident it looks.
- The buying team plans around the number. Fixing it now means unwinding decisions, not editing a sentence.
Three properties make propagation dangerous. The error is inherited: later steps receive it as input, not as a claim to test. It is amplified: later steps do arithmetic and prose on top of it. And it is laundered: each handoff strips away doubt, so the final report sounds more certain than the first guess was.
Like a typo in the first line of a spreadsheet that every formula below copies: the sheet still balances, it is just wrong.
Where the picture breaks down:
- A spreadsheet shows its formulas. An agent chain hides them, unless you log what each step received.
- A typo is static. A wrong value changes shape as steps round, convert, and summarise it.
Next: the three defenses, placed where they actually work.
Step 4: Defenses that stop errors at the border
- Verify at boundaries. Where one step hands a value to the next, test it. Sanity ranges: growth of 240 percent when history says 5 to 30 percent gets flagged. Cross-checks: compare the value against the source system, such as
lookup_ordertotals, before it moves on. - Pass provenance with values. A number travels with where it came from and when. Chapter 25 builds this out. A value with no source may not back a big claim.
- Let steps say "this input looks wrong". Give each step a way to reject bad input and stop, using the structured errors from chapter 10: a clear error with a reason, not a silent guess. A stopped chain is cheaper than a confident wrong report.
Placement matters. A check at the end reads a finished report and can only complain. A check at the boundary stops the value while stopping is cheap. On the exam, "verify where steps hand off" beats "review the final output".
Next: watch one wrong rate grow, with the cost counted.
Step 5: Worked example: one wrong rate, four steps
All figures in this example are made-up. Compass prices a US supplier order for the buying team.
- Step 1, extract: the order is 2,000 units at $50, so $100,000 USD. Correct so far.
- Step 2, convert: a subagent supplies the rate as 1.73 CAD per USD. The real rate in this made-up example is 1.37: the digits are swapped. Converted: 100,000 x 1.73 = $173,000 CAD. Correct: 100,000 x 1.37 = $137,000. Error: $36,000.
- Step 3, add margin: the next step adds 10 percent. 173,000 x 1.10 = $190,300. Correct: 137,000 x 1.10 = $150,700. The error grew to $39,600 with no new mistake.
- Step 4, decide: the team sees $190,300, over the $175,000 approval line in this example, and rejects a deal that was fine at $150,700.
Answer: one swapped digit pair cost a good deal. A boundary check after step 2, "rate must sit between 1.20 and 1.55", flags 1.73 in seconds, at almost no cost.
Next: build the triggers and one check yourself.
Step 6: Hands-on lab: Pine's trigger list and one Compass check
Why this exercise: exam questions hand you a case and ask "escalate, answer, or verify?" Write the rules that decide, before the case arrives.
Part A: the rules (illustrative)
# Pine escalation triggers: illustrative, for Harbor & Pine policy
escalate_when:
- request_is_ambiguous AND cost_of_wrong_answer > 200 # dollars
- confidence == low OR answer_has_no_source
- refund_amount > 500 # the $500 rule: human approval
- customer_asks_for_human == true
- same_fix_failed_count >= 2
handoff_must_include: [case_summary, what_was_tried, exact_question]
# Compass boundary check: illustrative
check "exchange_rate_cad_per_usd":
source: web_search_subagent
rule: 1.20 <= value <= 1.55 # sanity range, made-up for this lab
on_fail: stop_chain, return structured error "input_out_of_range"
provenance_required: [source_url, retrieved_date]
Part B: on-page check: escalate, answer, or verify?
Lab: Step 1 names five triggers that must hand a case to a human: the request is ambiguous and a wrong guess is expensive, confidence is low with no source behind the answer, the case hits a policy boundary such as the $500 refund rule, the customer asks for a human, or the same fix has failed twice. This lab runs in your browser and needs JavaScript enabled.
Each case has a different right answer. The skill is matching the action to ambiguity, cost, and how far a value still has to travel.
Mix-ups to avoid
- "Escalation means the agent failed." No. A named trigger firing is the design working. Guessing past a trigger is the failure.
- "Escalate anything uncertain, to be safe." No. Flooding the queue is its own failure: slow humans, ignored summaries, dead resolution rates.
- "A confident report means the inputs were checked." No. Confidence grows as a value travels. It says nothing about testing.
- "Review the final output and errors get caught." Too late. By the end, the error is woven into arithmetic and prose. Check at boundaries.
- "If an input looks wrong, quietly fix it." No. Stop and return a structured error. A silent fix hides the broken step.
Next: the chapter quiz.
Chapter quiz
Five questions. Score 70% or more to pass.
Review this chapter in 5 minutes
Watch the whole chapter recapped: the five escalation triggers, the three part handoff, how errors are inherited amplified and laundered, and boundary checks with provenance.
- Five triggers: ambiguous and expensive, low confidence, a policy boundary such as the $500 rule, the customer asks for a human, the same fix failed twice.
- A good handoff: summary, what was tried, the exact question. It reuses chapter 22's case summary skill.
- Two failure modes: escalating too late (after a promise) and escalating everything (a flooded queue).
- Propagation: an early wrong value is inherited, amplified, and laundered by later steps.
- Defenses: verify at boundaries, pass provenance with values, let steps return a structured error for bad input.
- Worked example: a made-up rate of 1.73 instead of 1.37 grew a $36,000 error into $39,600 after margin.
Decision rule: if a wrong answer is expensive or a boundary is hit, escalate before committing. If a value crosses a boundary, check it there, with its source attached.
Independent exam preparation. Not affiliated with or endorsed by Anthropic.
Review
Glossary
- Escalation trigger
- A named condition that hands a case to a human. Example: a refund above $500.
- Handoff
- What the agent passes on: summary, attempts, and the exact question.
- Policy boundary
- A limit set in advance where agent authority stops. Example: Pine may refund up to $500 alone.
- Error propagation
- One step's wrong output becoming every later step's trusted input.
- Boundary check
- A test where a value passes between steps. Example: growth must sit between 5 and 40 percent.
- Sanity range
- The plausible band for a value, from history or policy. Example: past growth of 5 to 30 percent.
- Cross-check
- Comparing a value against an independent source. Example: matching a total against lookup_order.
- Provenance
- Where a value came from, and when. Example: a figure with its document name and page.
- First-contact resolution
- Solving a case in one contact. Example: Pine's target is 80 percent.
Next: "Large codebase exploration: scratchpads, subagents and /compact".