Deployed Lab

Module 6 · Context management and reliability · Chapter 23

Escalation, ambiguity and error propagation: when to hand off, and how errors travel

16 min1 clickable picture1 hands-on lab5 exam questions5-min video review
In 30 seconds

The picture: a careful agent knows two exits: hand the case up, or stop a bad value early.

Exam objective: Task statements 5.2 and 5.3

Domain 5, Context Management and Reliability, is 15% of the exam.

The problem (Harbor & Pine is a made-up company) A customer asks Pine whether a warranty covers storm damage to a $620 tent. The policy text is unclear. Pine guesses yes and promises a free replacement. The policy excludes storm damage, so Nadia's team must either break the promise or pay $620 the policy never owed. The same week, a Compass subagent reports one wrong market figure. Nobody checks it, synthesis writes it into the final report as fact, and the buying team plans around a number that was never true.
The plan for this chapter
  1. The five triggers that must hand a case to a human.
  2. What a good handoff carries, and the two ways to get escalation wrong.
  3. How one wrong value travels through a chain of agents.
  4. Defenses: boundary checks, provenance, and steps that can object.
  5. 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:

  1. The request is ambiguous and a wrong guess is expensive. Two readings of the policy, and the wrong one costs $620.
  2. 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.
  3. The case hits a policy boundary. Pine's rule: refunds above $500 need a human. Boundaries are set in advance, never improvised mid-case.
  4. The customer asks for a human. Arguing or stalling costs trust. Hand over, with context, right away.
  5. 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:

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:

Escalation fails in both directions:

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:

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.

How a wrong value travels through Compass A search subagent returns a wrong figure. It passes a boundary check, the coordinator, and synthesis, and the buying team acts on it. Searchsubagentwrong figure Boundarycheckrange + source Coordinatorpasses value on Reportstated as fact Buying teamacts on it
  1. The search subagent returns a wrong figure. Right now it is one output among many, and cheap to question.
  2. A range check or cross-check can flag the value before anyone builds on it.
  3. The coordinator cannot tell a wrong value from a right one by looking. It passes the figure on.
  4. Synthesis writes clean prose around it. The further it travels, the more confident it looks.
  5. The buying team plans around the number. Fixing it now means unwinding decisions, not editing a sentence.
SubagentsCheckPeople and coordinator

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:

Next: the three defenses, placed where they actually work.

Step 4: Defenses that stop errors at the border

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.

  1. Step 1, extract: the order is 2,000 units at $50, so $100,000 USD. Correct so far.
  2. 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.
  3. 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.
  4. 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.

What to notice

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.

Field note, November 2026 In production support teams, the handoff note is the product: escalations with a summary and one clear question get fast human decisions, while bare "please handle" notes bounce back for the missing facts. For chained pipelines, a common pattern is range and source checks at each handoff, logged so a bad value can be traced to the step that introduced it. Treat thresholds as team policy, set from your own error costs.

Mix-ups to avoid

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.

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".