guide
guide8 min read

Orchestrating the Orchestration, Pipeline and Incidents Agents Together

A worked incident, a sample handoff packet, and the approval points between three agents

Three agents can share one incident cleanly if the Orchestration Agent owns the plan, the Incidents Agent owns the diagnosis, and the Pipeline Agent owns the change, with a typed handoff packet at each boundary. Anthropic's write-up of its multi-agent research system describes the same orchestrator-worker shape: a lead agent plans and delegates, and subagents work in parallel. This post walks one failed-pipeline incident through that shape, shows the packet we pass at each handoff, and marks where a person signs off.

Key Takeaways

  • •One agent per verb: the Orchestration Agent plans and routes, the Incidents Agent diagnoses, the Pipeline Agent changes. No agent does two of the three on the same incident.
  • •Every handoff carries a packet with evidence, a confidence level, the proposed action and a rollback. A bare 'please fix this' message is not a handoff.
  • •Approval is attached to the action, not to the agent: reads run freely, reversible writes need a tiered check, and irreversible writes always wait for a person.
  • •A failed agent never fails silently. The Orchestration Agent records the failure, stops the chain at that step and escalates with the packet it already holds.
  • •Anthropic reports its multi-agent setup beat a single-agent baseline by 90.2% on an internal research eval. That result does not transfer automatically to data pipelines.

The shared job: from failed run to verified fix

The shared job is narrow: a scheduled run fails, and the platform must get from 'something is wrong' to 'it is fixed and verified' without a person acting as the integration layer. Detection is the easy part. The gap sits after it, where someone reads logs, checks lineage, finds the upstream change, edits a model or config, reruns, and confirms downstream tables recovered. We split that gap into three verbs so each agent has a single, testable responsibility.

The Orchestration Agent decides what the incident is and who works on it. The Incidents Agent traces root cause across lineage, logs and queries and proposes a fix. The Pipeline Agent, which maintains pipelines across Airflow, Dagster, Prefect, dbt and Fivetran, applies the change. Keeping these separate matters because the agent that proposes a fix should not also be the one that grades it.

We covered the general detect, decide, act split in an earlier post. This one is narrower: it follows one concrete incident and shows what actually moves between the agents.

Who detects, who decides, who acts

Detection arrives as an event: a failed task, a freshness breach, a row-count anomaly. The Orchestration Agent receives it, deduplicates it against open incidents, and opens a case. It does not diagnose. Its job is to pick the right worker, set the scope of what that worker may touch, and keep the case state in one place.

The Incidents Agent is the decider in the sense that it produces a ranked diagnosis and a proposed remediation. It reads and never writes. That read-only posture is deliberate, and it is what makes it safe to run the diagnosis without an approval step.

The Pipeline Agent is the actor. It receives the proposed change, validates it against the pipeline definition, applies it in the narrowest scope it can (one model, one task, one connector), and reports the result back to the Orchestration Agent. When we say an agent acts, we mean it is the only one holding write credentials for that step.

The handoff table

HandoffFromToContext passedApproval point
1. Case openedOrchestration AgentIncidents AgentFailed run ID, pipeline name, error excerpt, time window, read-only scopeNone: read-only
2. Diagnosis returnedIncidents AgentOrchestration AgentRoot cause, evidence links, blast radius, confidence, proposed fix, rollbackOrchestration Agent checks confidence and action tier
3. Fix delegatedOrchestration AgentPipeline AgentApproved change, target object, expected post-state, rollbackPerson signs off if the action is irreversible or touches production data
4. Fix verifiedPipeline AgentOrchestration AgentRerun status, row-count and freshness checks, diff of what changedNone if checks pass; escalate if they do not
5. Case closedOrchestration AgentHumans and audit logTimeline, packets, who approved whatReviewer can reopen

A worked incident

Take a familiar question: 'Why did row counts drop 40% overnight?' A nightly dbt job succeeds but the orders model loads far fewer rows. The freshness check fires. The Orchestration Agent opens a case, notes that the job did not fail, and hands the Incidents Agent the run ID, the affected model and a 24-hour window.

The Incidents Agent walks lineage upstream and finds that an ingestion connector renamed a column, so a join in the staging model now matches nothing. It reports root cause, the three downstream tables affected, a confidence level, and a proposed fix: update the column reference in the staging model, then rerun the model and its children. It also attaches a rollback, which is reverting the one-line change.

The Orchestration Agent checks the proposed action against the tier it belongs to. A model edit in a branch with a rerun is reversible, so it delegates to the Pipeline Agent. The Pipeline Agent opens the change, runs the model, compares row counts against the previous good run, and returns the diff. A person reviews the merge, because we treat merges to the production branch as an approval-required action.

What the handoff packet looks like

The packet is structured data, not prose. Here is the diagnosis packet from step 2, shortened: {"case_id":"inc-0412","root_cause":"upstream column renamed: order_total to order_amount","evidence":["lineage:stg_orders<-raw.orders","log:join produced 0 matches"],"blast_radius":["fct_orders","daily_revenue","finance_summary"],"confidence":"high","proposed_action":{"type":"model_edit","target":"stg_orders","reversible":true},"rollback":"revert commit"}.

Each field answers a question the next agent would otherwise have to ask. Evidence lets the Orchestration Agent and any human reviewer check the claim without redoing the work. Blast radius tells it how many people to notify. The reversible flag decides which approval tier applies. The rollback field means the Pipeline Agent never invents its own undo path.

The packet also gives you something to test. You can replay a stored packet against the Pipeline Agent in a sandbox and assert the outcome, which is much harder to do with free-text messages. The Model Context Protocol specification is built around typed tool inputs and outputs for the same reason, and each of our agents is exposed as an MCP server.

Approval points between the agents

We attach approval to the action rather than to the agent. Reads, such as lineage queries and log searches, run without a gate. Reversible writes, such as a branch edit or a single-task rerun, run under a policy the team sets. Irreversible or high-impact writes, such as dropping a column, backfilling a large table or changing access, wait for a named person. A per-domain autonomy dial lets a team move each domain between those tiers as trust builds.

Approval requests are only useful if they are small and specific. The request a person sees contains the proposed action, the evidence, the blast radius and the rollback, copied from the packet. If the packet is incomplete, the Orchestration Agent returns it to the Incidents Agent instead of forwarding a vague request to a human.

We also keep a record of who approved what. Every approval, rejection and override is written to the case timeline, which is what makes a closed incident reviewable weeks later.

When one agent fails

Agents fail in three ways: they time out, they return low confidence, or they return something wrong. The Orchestration Agent handles each differently. A timeout triggers one bounded retry, then escalation. Low confidence from the Incidents Agent stops the chain before any write and sends the evidence gathered so far to a person. A wrong result is the hard case, which is why the Pipeline Agent verifies against an expected post-state instead of trusting the proposed fix.

If the Pipeline Agent fails mid-change, it runs the rollback from the packet and reports the failure with the partial state. The Orchestration Agent then marks the case as blocked, keeps the diagnosis intact, and notifies the owner. Nothing is retried in a loop, because repeated blind retries are how a small incident becomes a large one.

The cost of this design is overhead. Anthropic notes in the same engineering post that multi-agent systems use about 15 times more tokens than chats. For a nightly pipeline incident that is a fair trade. For a trivial alert it is not, so the Orchestration Agent should route simple cases to one agent.

What the 90.2% result does and does not tell you

Anthropic reports that a multi-agent system with Claude Opus 4 as lead and Claude Sonnet 4 subagents outperformed a single-agent Claude Opus 4 by 90.2% on its internal research evaluation. That is a result about open-ended research tasks, measured on Anthropic's own eval. It is not a claim about data pipeline incidents, and we do not cite it as proof that our setup resolves incidents faster.

What it does support is the design principle: parallel workers with separate context windows and a coordinating lead can cover more ground than one agent doing everything. A practitioner overview of agent swarms makes a similar case for specialisation. Whether that holds for your pipelines is something to measure on your own incident history before widening autonomy.

Frequently Asked Questions

Why not use one agent for the whole incident?

You can, and for simple cases you should. Splitting pays off when diagnosis and change need different permissions. The Incidents Agent stays read-only, the Pipeline Agent holds write access, and the Orchestration Agent enforces the gate between them. A single agent holding both would need a broader credential and offer no independent check.

What does the Orchestration Agent actually decide?

It decides routing, scope and escalation. It picks which agent works the case, limits what that agent can touch, checks each proposed action against its approval tier, and escalates to a person when confidence is low or an action is irreversible. It does not diagnose or edit pipelines itself.

Where does a human sign off?

On irreversible or production-impacting actions, and on any case the agents cannot resolve with enough confidence. Teams set the thresholds per domain with the autonomy dial. Reads never need sign-off, and reversible writes can run under policy once the team trusts the track record.