Lesson 5.3: Hand-offs, routing and delegation
Learn how work passes between agents: what a good hand-off holds, how routers pick a specialist, how delegation limits authority and how to stop loops.
By the end of this lesson you will be able to write a hand-off record that carries what the next agent needs and nothing more, design a router that sends each request to the right specialist and falls back safely when it is unsure, delegate work with limited authority, a budget and a deadline, and stop agents passing a task back and forth forever. You will work out that a router that is 92 per cent accurate lifts a system from 85 to 89.7 per cent, that adding a confidence fallback lifts it to 91.3 per cent, and that facts passed through four loose hand-offs survive only 65.6 per cent of the time against 92.2 per cent with a structured record. You should have read Lessons 5.1 and 5.2. No code is needed, though a short example of a record appears. The mathematics is multiplication and weighted averages.
Lesson 5.2 showed a lead handing work down to workers and receiving results back. Real systems have more kinds of movement than that. A support request arrives and must be sent to the billing agent or the technical agent. A drafting agent finishes and passes its work to a reviewer. A worker finds it needs a permission it lacks and must ask someone. Each of these is a moment where responsibility for a task passes from one agent to another. Most multi-agent failures happen at these moments. The agents themselves are usually fine. What goes wrong is what is passed, or to whom, or with what authority. This lesson covers three ideas in turn: the hand-off, which is the passing of work and context, routing, which is choosing who gets it, and delegation, which is giving someone else the right to act for you.
The hand-off
A hand-off is the moment one agent stops and another starts, with the second needing to know what the first knew. The central difficulty is that a new agent starts with an empty context. Whatever the first agent understood is gone unless it is written down and passed on.
There are three ways to pass context, each with a different cost.
Method · What is passed · Strength · WeaknessThe whole history · Every message and tool result so far · Nothing is lost · Large, slow and costly. Carries clutter and mistakes along with the facts
A free-text summary · A paragraph written by the first agent · Short and easy · Details drop out. The summary reflects what the writer thought mattered
A structured record · Named fields: goal, facts, decisions, open questions · Short, checkable and complete where it matters · Needs designing, and the first agent must fill it in correctly
For all but the smallest systems the structured record is the best choice, and it is worth understanding why. A free-text summary loses information in a way no one can see. A structured record has fields, so a missing field is visible, and code can check that each one is filled in.
What a hand-off record contains
A good record answers the questions the next agent would otherwise have to ask. Seven fields cover most cases.
Field · What it holds · ExampleGoal · What the whole task is for, in the user's terms · "Customer wants a refund for order 5521, which arrived damaged."
Task for you · What this agent must do next · "Decide whether the refund policy allows it, and draft the reply."
Facts established · What has been checked, with the source of each · "Order 5521 delivered 3 Nov (tracking record T-88). Value ₹2,400. Photo of damage attached."
Decisions made · What has been settled and should not be reopened · "Customer identity verified. Do not ask again."
Open questions · What is unknown or unresolved · "Whether the damage was before or after delivery is unclear."
Constraints · Rules and limits that apply · "Refunds over ₹2,000 need manager approval. Reply in Hindi."
What to return · The shape of the answer and where it goes · "Return a decision and a draft reply, then hand back to the support lead."
Two fields do the most to prevent trouble. Decisions made stops the next agent asking the customer the same question again, which feels careless and wastes time. Open questions is an honest list of what the sender did not know. Without it, the receiver may treat a guess as a fact.
A record might look like this when written for code to read:
goal: Refund for order 5521, arrived damaged
task: Check refund policy and draft reply
facts:
- order 5521 delivered 3 Nov, value Rs 2,400 (source: tracking T-88)
- photo of damage provided by customer (source: attachment 2)
decided:
- identity verified
open:
- damage before or after delivery unknown
constraints:
- refunds over Rs 2,000 need manager approval
- reply in Hindi
return: decision and draft reply, hand back to support lead
This takes about 90 tokens. The conversation it replaces might be 4,000. The receiving agent knows exactly what to do and where the gaps are.
Why hand-offs lose information
Each hand-off is a chance to lose something. If every hand-off keeps 90 per cent of the facts the next agent needs, then after four hand-offs the share that survives is 0.9⁴ = 0.656. Of 20 facts the last agent needs, only about 13 arrive. Many of the lost ones are small, such as a constraint mentioned in passing or a decision made early, but they are the kind that cause an embarrassing error.
A structured record that keeps 98 per cent of the facts changes this a great deal: 0.98⁴ = 0.922, so about 18 of the 20 arrive. The record does not make the first agent smarter. It makes forgetting visible and makes remembering the default.
Predict first: a task passes through four hand-offs. With free-text summaries each hand-off keeps 90 per cent of the needed facts, and with a structured record each keeps 98 per cent. Out of 20 needed facts, about how many reach the last agent in each case? Work it out before reading on.
Free text delivers about 20 × 0.656 = 13.1 facts. The structured record delivers about 20 × 0.922 = 18.4 facts. The lesson is not that the numbers are exact, since the real keeping rates depend on your records and your tasks. The lesson is that small losses multiply, so the best answer is often fewer hand-offs as well as better ones. Cutting the chain from four hand-offs to two raises the free-text figure from 65.6 to 81 per cent.
What not to pass
More is not better. Passing everything, including failed attempts, raw tool output and the first agent's reasoning, clutters the next agent's context and can mislead it. If the first agent tried a wrong approach, the next may copy it. Pass conclusions with their evidence, not the whole path. The exception is when the receiver is a reviewer who must judge the work. Then give it the result and the original request, but, as Lesson 5.1 noted, not the reasoning, so that it forms its own view.
Pass nothing the receiver should not have. A hand-off crossing a boundary, for example from an agent that can see customer card numbers to one that should not, must strip those fields. Treat the record as a place where permissions are enforced, not merely a convenience.
Routing
Routing is choosing which agent handles a request. A router is the part of the system that decides. It can be a rule, a small classifier or a language model. The idea is to let each request reach an agent set up for it, with the right instructions and tools, in place of one agent that tries to do everything.
Three ways to route
By rule. If the request comes from the billing form, send it to billing. If it contains an order number, send it to orders. Rules are cheap, fast and predictable, and you can test them exactly. They are brittle when requests do not fit the rules.
By classifier. A small model, trained or prompted, labels the request: billing, technical, sales, other. This handles varied wording better than rules and costs little per request.
By a language model. A capable model reads the request and the descriptions of the available agents and chooses. This is the most flexible, handles unusual cases and costs the most. It is also where routing mistakes are hardest to predict.
Many systems layer these. Rules catch the obvious cases at no cost, a classifier handles the bulk and a model decides the rest.
The router's two kinds of mistake
A router can fail in two ways. It can send a request to the wrong specialist, or it can send it to a specialist when a generalist would have served better. The cost of the first is usually high, since a billing agent given a technical problem will flounder.
Work through an example. A company has a generalist agent that handles all requests correctly 85 per cent of the time. It adds a router and three specialists. A specialist handles a request in its area correctly 94 per cent of the time, and handles a request wrongly routed to it correctly only 40 per cent of the time. The router sends 92 per cent of requests to the right specialist. The overall success rate is 0.92 × 0.94 + 0.08 × 0.40 = 0.8648 + 0.032 = 0.8968, so 89.7 per cent. That is better than 85 per cent, but the gain is 4.7 points, and it depends heavily on the router.
If the router were only 80 per cent accurate, the result would be 0.80 × 0.94 + 0.20 × 0.40 = 0.752 + 0.08 = 0.832, or 83.2 per cent, which is worse than the generalist alone. A router has to be good to pay for itself.
Routing with a confidence fallback
A router can often tell when it is unsure. If it reports a confidence, the system can send confident requests to specialists and unsure ones to the generalist. Suppose the router is confident on 85 per cent of requests and right 97 per cent of the time on those, and the other 15 per cent go to the generalist. The result is 0.85 × (0.97 × 0.94 + 0.03 × 0.40) + 0.15 × 0.85 = 0.85 × (0.9118 + 0.012) + 0.1275 = 0.85 × 0.9238 + 0.1275 = 0.7852 + 0.1275 = 0.9127, so 91.3 per cent. The fallback gains another 1.6 points over the plain router, and it is more robust, since the system degrades to the generalist and not to a wrong specialist.
Testing a router
A router is tested like any classifier. Collect 100 or more real requests and label each with the right destination. Run the router and count how often it agrees. Then look at the errors in a table of expected against chosen. Often the errors cluster: billing and refunds get confused, or two specialists have overlapping descriptions. The fix is usually to sharpen the descriptions or add a rule, not to switch models. Also check the cost of each kind of error, because sending a refund to the sales agent is worse than sending a general question to billing. And keep testing, because requests change.
Writing good descriptions
When a model chooses between agents, it reads their descriptions. Each description should say what the agent does, what it does not do and what kinds of request belong to it. "Handles billing" is thin. "Handles invoices, payments, refunds and failed charges. Does not handle delivery problems or product questions" gives the router a boundary. Where two agents overlap, say which wins.
Delegation
Delegation is giving another agent the right to act on your behalf. It differs from a plain hand-off in that responsibility stays with the delegator. The lead delegates a task but is still accountable for the result. Four principles keep delegation safe.
Narrow authority. A delegate should have no more power than the task needs, and never more than the delegator has. If the lead can read the finance database but not write to it, no worker it starts can write. A worker told to check invoices gets read access to invoices, not to everything. This is the ordinary principle of least privilege, applied to agents.
A budget. Give the delegate limits on steps, tokens, money and time. A delegate with no budget can loop or spend without anyone noticing. A task brief that says "at most 12 tool calls and 3 minutes" prevents a runaway worker from costing more than the job is worth.
A deadline and a way back. The delegate should know when its result is needed and what to do when it cannot finish: report what it has, say what is missing and stop. A delegate that silently keeps trying leaves the delegator waiting.
Accountability stays up. The delegator checks the result before using it, as Lesson 5.2 explained, and is the one who answers to the user or the person above. The final response should not say "the billing agent said so" as an excuse. The system as a whole answers.
Permissions do not travel by instruction alone
A tempting mistake is to tell a delegate in its brief, "do not send any emails", and to give it the email tool anyway. A model can be mistaken or tricked and may send one. The safe design is to withhold the tool. What a delegate may do should be enforced by what it is given, not by what it is told. The same applies to hand-offs: a field that must not be seen should be removed by code, not by a request to ignore it.
Delegating upward: escalation
Sometimes the right move is to hand a task back up, to the lead or to a person. A worker that finds the task needs approval, hits something outside its scope or cannot reach a confident answer should say so and stop. Build this in as a normal outcome with its own format: "escalate, reason, what I tried". An agent that has no way to ask for help will guess.
Loops, ping-pong and runaway chains
When agents can hand work to each other, they can hand it back. Agent A routes to B, B decides it is really A's job and routes back, and the task bounces. Similar traps include a reviewer that always asks for changes and a drafter that always revises, forever, and a chain of delegations that keeps growing as each worker starts its own workers.
Four simple controls prevent these.
A hop limit. Count how many hand-offs a task has had. After, say, five, stop and escalate to a person. The count travels in the record.
A history of who has seen it. If the task is about to go to an agent that has already handled it, treat that as a signal of trouble, not a normal route.
A depth limit on delegation. Allow workers to start no further workers, or at most one more level. Unlimited depth can grow without bound.
A round limit on review. A reviewer and a drafter get two or three rounds. After that, the best version so far goes to a person with the unresolved comments.
These limits are crude, and that is their strength. They do not need to understand why a loop is happening. They simply cap how long it can run.
Keeping a trail
Every hand-off should leave a record that a person can read later: who handed what to whom, when, with which fields, and what came back. Give each task an ID that travels through every hand-off, so one search reconstructs the whole path. When a customer complains that they were asked the same thing three times, you will be able to see exactly where the chain dropped the answer. Lesson 8.2 of this track covers tracing in more depth. For now, make sure the ID and the records exist.
Three worked examples
Example 1: support triage
A support system has a router and three specialists for billing, delivery and product help, with a generalist as a fallback. Rules catch messages from the billing form. A classifier labels the rest and reports a confidence. Requests below 70 per cent confidence go to the generalist. Each specialist receives a hand-off record with the customer's issue, the facts found, constraints and what to return. A hop limit of four stops loops. The team measures the router on 150 labelled requests and finds that delivery and refund requests are confused, so it rewrites the two descriptions to separate them. Accuracy rises from 88 to 93 per cent.
Example 2: a drafting pipeline
A content team uses a drafter, a fact-checker and a formatter in order. The drafter's hand-off to the fact-checker carries the draft, the sources it used and a list of claims it considers risky. The fact-checker returns a table of claims with verdicts and evidence. A free-text note would lose the sources, so the record is structured. The fact-checker has read-only access to the web and no tool to edit the draft. If it finds more than three false claims, it escalates to a human editor instead of sending the draft back for another round.
Example 3: a delegation gone wrong, and fixed
A lead agent asked a worker to "clean up the supplier list". The worker had write access to the whole database and removed 200 suppliers it judged to be duplicates. Some were not. The fix was threefold. The worker's tool was changed to propose changes in a staging table and not to write them. The brief was changed to say what counted as a duplicate and to list the fields to compare. And the lead was made to show the proposed changes to a person before they were applied. The fault was not that the worker was careless. It was that authority was broad and the brief was loose.
A checklist for hand-offs, routing and delegation
1. For every hand-off, list the fields of the record and who fills each.
2. Mark what must not be passed, and strip it in code.
3. Count the hand-offs in the longest path and ask whether any can go.
4. For a router, write a description for each agent with its boundary, label 100 or more real requests and measure accuracy.
5. Add a confidence fallback to a generalist, or a human, for unsure requests.
6. For every delegation, write the authority, budget and deadline, and enforce them by what the delegate is given.
7. Define escalation as a normal outcome, with its own format.
8. Set a hop limit, a depth limit and a round limit.
9. Give each task an ID and log every hand-off.
Common mistakes
Passing the whole transcript. It is large and carries mistakes. Pass a structured record.
Free-text summaries for important facts. Details vanish without anyone noticing.
No field for decisions and open questions. The next agent repeats questions or treats guesses as facts.
Too many hand-offs. Losses multiply. Remove any that do not earn their place.
A router that is worse than none. Measure it against the generalist.
Overlapping agent descriptions. Give each agent a boundary and say who wins an overlap.
No fallback for unsure routing. Send low-confidence requests to a generalist or a person.
Telling a delegate not to, instead of not giving the tool. Enforce permissions by design.
No budget or deadline. A delegate can spend or loop without limit.
No hop limit. Agents can pass a task back and forth indefinitely.
No trail. Without a task ID and records you cannot find out where a chain went wrong.
Key takeaways
A hand-off passes work and context between agents. A structured record with goal, task, facts, decisions, open questions, constraints and return format beats a transcript or a loose summary.
Losses multiply. At 90 per cent kept per hand-off, four hand-offs deliver 65.6 per cent of the facts. At 98 per cent they deliver 92.2 per cent. Fewer and better hand-offs both help.
Pass conclusions with evidence, not the whole path, and strip anything the receiver should not see in code.
A router chooses the specialist, by rule, classifier or model. A 92 per cent router lifts an 85 per cent generalist to 89.7 per cent, while an 80 per cent router drops it to 83.2 per cent. A confidence fallback raised it to 91.3 per cent.
Test a router on labelled real requests, write each agent's description with a boundary and keep checking.
Delegation gives limited authority, a budget and a deadline, and the delegator stays accountable. Enforce permissions by what the delegate is given, and make escalation a normal outcome.
Limit hops, depth and review rounds to stop loops, and keep a trail with a task ID.
Check yourself
1. Name five of the seven fields of a hand-off record.
Any five of: goal, task for you, facts established, decisions made, open questions, constraints and what to return.
2. Why include "decisions made" and "open questions"?
Decisions stop the next agent reopening settled points, such as asking the customer the same question again. Open questions mark what the sender did not know, so the receiver does not treat a guess as fact.
3. Each of three hand-offs keeps 95 per cent of the needed facts. What share of the facts reaches the end?
0.95³ = 0.857, about 86 per cent.
4. A generalist succeeds 85 per cent of the time. A router is 90 per cent accurate, specialists succeed 94 per cent in their area and 40 per cent when wrongly routed. Does the router help?
0.9 × 0.94 + 0.1 × 0.4 = 0.846 + 0.04 = 0.886, so 88.6 per cent, which is better than 85.
5. Why is it safer to withhold the email tool than to tell a worker not to send email?
A model can make mistakes or be tricked into ignoring an instruction, but it cannot use a tool it was never given.
6. Name three controls that stop agents passing a task back and forth forever.
Any three of: a hop limit, a record of who has handled the task, a depth limit on delegation and a round limit on review.
Try this
Set aside seventy-five minutes.
1. Take a multi-agent design, real or imagined, and draw its hand-offs as arrows. Count the hand-offs in the longest path.
2. Write the hand-off record for the most important arrow, with the seven fields and a note of anything that must be stripped.
3. If the design has a router, write each agent's description with a boundary. List ten requests and say where each should go.
4. Use the router simulator with your own estimates to see whether the router beats a generalist, and what a fallback adds.
5. For each delegation, write the authority, budget and deadline, and note how each is enforced.
6. Define an escalation format and write when each agent should use it.
7. Set a hop limit, a depth limit and a review round limit, and decide what happens when each is reached.
A good result is a short specification of how work moves through your system: the record, the router and its tests, the delegation limits and the loop controls. Lesson 5.4 covers what several agents do at the same time: running in parallel, sharing state and communicating without stepping on one another.
Tags: Agentic AI Hand-offs Routing Delegation Multi-agent systems