Agent handoffs explained: how an autonomous data conductor passes work between data agents
What a handoff between data agents carries, where it fails, and how a conductor keeps it safe
An agent handoff is the moment one agent stops working on a task and passes it, together with the context it gathered, to another agent that owns the next step. In data engineering that usually means a diagnosing agent hands a root cause to a fixing agent, and the fixing agent hands a change to a reviewer or a human. The handoff has to be a structured, typed message. If it is a free-text summary, the next agent starts half-blind. The tool surface that makes this practical today is the Model Context Protocol, which gives every agent the same way to expose and call capabilities.
Key Takeaways
- •A handoff is a typed message that carries the task, the evidence gathered so far, the scope of what the next agent may touch, and a stop condition.
- •Most handoff failures are context loss, not model quality: the second agent re-derives facts the first agent already knew, or never learns them.
- •A conductor that routes every handoff centrally gives you one place to set autonomy, approvals and audit, instead of N agents each deciding for themselves.
- •Handoffs need an autonomy level per data domain: a finance table and a scratch table should not share the same approval rules.
- •Handoffs between agents that are all MCP servers are inspectable from the same terminal your engineers already use, such as Claude Code or Cursor.
Agent handoffs explained: what actually gets passed
Teams often picture a handoff as one agent saying "your turn." In practice four things have to move, and leaving out any one of them is what makes multi-agent systems feel flaky.
- •The task: what outcome is wanted, in terms the receiving agent can verify (for example, "restore freshness on the orders gold table", not "fix the pipeline").
- •The evidence: query results, run IDs, lineage edges, the diff that triggered the problem. Evidence should be references the next agent can re-read, not a paraphrase.
- •The scope: which tables, jobs and environments the next agent is allowed to touch, and whether it may write or only read.
- •The exit condition: what counts as done, what counts as failed, and who gets the work next in each case.
We think of the last two as the difference between a demo and something you can run against production. A handoff without scope is an agent with a blank cheque. A handoff without an exit condition is a loop that burns tokens until someone notices.
A worked example: a nightly pipeline breaks after a schema change
Take a question our users actually ask: "Why did row counts drop 40% overnight?" Three handoffs sit behind the answer.
- •Detection to diagnosis: a freshness or volume alert fires. The conductor routes it to an incident-focused agent with the alert, the affected table and the time window. The agent finds that a source column was renamed upstream.
- •Diagnosis to impact: the diagnosing agent hands the renamed column to a schema-focused agent, asking "what is the blast radius if this column no longer exists under its old name?" The answer is a list of downstream models and dashboards, returned as references, not prose.
- •Impact to fix: the conductor passes the root cause and the impacted list to a pipeline agent, with write scope limited to the one model that needs a column alias. The fix is proposed as a diff, and the exit condition is that the next scheduled run passes its quality checks.
Our Pipeline Agent is the one that owns the final step: it builds and maintains pipelines across Airflow, Dagster, Prefect, dbt and Fivetran, and it chains with the catalog, quality and incidents agents. In early pilot testing, 60% of incidents auto-resolved before human notification. That is our own pilot data, not an industry benchmark, and the remaining 40% are exactly the cases where a handoff ends at a human on purpose.
Why a conductor beats agents calling each other
There are two common shapes for handoffs. In the peer-to-peer shape, each agent decides who to call next. In the conductor shape, agents return results to a coordinator, and the coordinator decides the next hop. Peer-to-peer is simpler to build and harder to run. Three problems show up quickly.
- •No single audit trail: to reconstruct an incident you stitch together logs from every agent.
- •Inconsistent permissions: each agent carries its own idea of what it may write, and they drift.
- •Unbounded chains: agent A calls B calls C calls A, with nothing that notices the loop.
A conductor fixes this by being the only component that creates handoffs. Agents do the work and report back. The conductor holds the policy: which agent may follow which, what scope each hop gets, and when to stop and ask a person. Our Autonomous Data Conductor is built on this model, and its goal is to reduce data operations toward zero human toil, with a per-domain autonomy dial that sets how far the chain may run before it needs approval.
What a handoff contract should contain
Whatever you build or buy, we suggest writing the handoff down as a contract. The table below is the minimum we would want to see.
| Field | What it holds | Why it matters |
|---|---|---|
| Task | Verifiable outcome in one sentence | Lets the receiver check its own work |
| Evidence refs | Run IDs, query IDs, lineage edges, diffs | Receiver re-reads facts instead of trusting a summary |
| Scope | Tables, jobs, environments, read or write | Limits blast radius of a wrong action |
| Autonomy level | Observe, propose, or apply | Decides whether a human must approve |
| Exit condition | Success check and failure route | Prevents loops and silent stalls |
| Trace ID | One ID across every hop | Gives one audit trail per incident |
None of these fields are exotic. The point is that they are explicit and machine-readable, so the conductor can enforce them rather than hoping each agent behaves.
Where handoffs fail in data systems
We see the same failure modes whenever teams wire agents to data infrastructure, including orchestrators such as Apache Airflow, where task retries and state already exist and an agent has to respect them.
- •Context loss: the diagnosing agent knew the column was renamed, but the handoff said only "schema issue". The fixer re-investigates and may reach a different conclusion.
- •Stale evidence: the handoff cites a table state from ten minutes ago, and a retry has since changed it. Evidence refs should carry timestamps, and receivers should re-read before acting.
- •Scope creep: a fixing agent that was asked to alias one column also rewrites a model it noticed was inefficient. Write scope on the handoff prevents it.
- •Competing actions: an orchestrator retries a task while an agent edits the same task. The conductor needs to know the state of the orchestrator before it creates a write handoff.
- •Missing human edge: the chain has no defined place where a person is asked. The first time something unusual happens, the agent improvises.
Setting autonomy per domain
Not every table deserves the same trust. A scratch schema for analysts and a revenue table feeding the board deck should not share an approval policy. We recommend three levels, applied per domain rather than globally.
- •Observe: agents may read and report. Handoffs stop at a human.
- •Propose: agents may prepare a change, such as a pull request or a dry-run diff, and wait for approval.
- •Apply: agents may execute within a bounded scope, with the result verified by the exit condition and logged.
- •Most teams start every domain at observe, move low-risk domains to propose, and only later move selected domains to apply.
The open-source edition of Data Workers, dw-claw, is Apache 2.0, runs locally and is read-only by default, which matches the observe level. Writes, approval workflows and audit trails arrive in Pro. We covered how read-only defaults and approval gates fit together in our security and governance material, and the same ideas apply to handoffs: a read-only agent can still hand evidence to another read-only agent, and nothing is changed until a write scope is granted.
Seeing handoffs from Claude Code or Cursor
Because every Data Workers agent is an MCP server, a handoff is not hidden inside a dashboard. An engineer in Claude Code or Cursor can ask "what's the blast radius if I drop this column?" and watch the schema capability answer, then ask the pipeline capability to draft the change. The Claude Code documentation describes how MCP servers are attached to the terminal agent. The same protocol is what lets a conductor treat the agents as interchangeable parts with typed inputs and outputs.
Our view is that this matters for trust. If a person can replay any handoff from the same tool they use to write code, the autonomy dial is something they can reason about instead of take on faith. Our earlier posts on MCP-native data agents and on Claude Code for data engineering go through the setup for a first connection.
A short checklist before you let agents hand off in production
- •Every handoff has a task, evidence refs, scope, autonomy level, exit condition and trace ID.
- •One component, the conductor, creates handoffs. Agents do not call each other directly.
- •Write scope is granted per handoff and expires when the handoff ends.
- •Every domain has an explicit autonomy level, and the default is observe.
- •Every chain ends at either a verified success check or a named human.
- •You can replay a full incident from one trace ID.
Frequently Asked Questions
What is an agent handoff in data engineering? It is the transfer of a task from one agent to another, along with the evidence, scope and exit condition needed to continue. A typical example is an incident agent passing a root cause to a pipeline agent that proposes the fix.
Is a handoff the same as a tool call? No. A tool call asks a capability to do something and returns a result to the caller. A handoff transfers ownership of the task, so the receiving agent decides how to proceed within the scope it was given. Both can use MCP, but the contract around a handoff is richer.
Do we need a conductor, or can agents call each other directly? Direct calls work for a two-agent demo. Once three or more agents touch production data, we recommend a conductor so permissions, loop detection and audit live in one place.
How do you stop an agent from changing something it should not? Grant write scope on the handoff itself, keep the default at read-only, and require approval at the propose level for sensitive domains. Verify the result against the exit condition before closing the incident.
Where do humans fit in an agent handoff chain? At the edges you choose. With a per-domain autonomy dial, a human can be the last hop for revenue tables and absent entirely for low-risk scratch tables.