Orchestrating Pipeline, Catalog and Quality Agents Together: A Handoff Framework
Who detects, who decides, who acts, and what context moves at each handoff
Orchestrating Pipeline, Catalog and Quality agents together works when you give them one shared job (keep a dataset trustworthy from source to consumer), assign each agent exactly one role in that job (Quality detects, Catalog decides, Pipeline acts), and pass a structured context object at every handoff instead of free text. Each agent is exposed as an MCP server, so any MCP-compatible client can call them and a coordinator can chain them. Below we lay out the framework we use, including the handoff table, the approval points and the failure paths.
Key Takeaways
- •Split the work by verb, not by tool: Quality detects, Catalog decides what the change means, Pipeline acts on it.
- •Every handoff carries a typed context object (asset, evidence, blast radius, proposed action), not a chat summary.
- •Reads and diagnosis can run autonomously; writes to production pipelines should sit behind an approval point until the team sets a higher autonomy level for that domain.
- •Failure of one agent must degrade to a safe state (hold, quarantine, escalate), never to a silent skip.
- •In our early pilot testing, 60% of incidents auto-resolve before a human is notified. That is our pilot data, not an industry benchmark.
Orchestrating Pipeline, Catalog and Quality agents together: the shared job
Most data incidents cross three concerns. Something is wrong with the data (quality), nobody is sure what depends on it or who owns it (catalog and governance), and something has to change in a job or model to fix it (pipelines). When those three live in separate tools, the on-call engineer becomes the integration layer. In our experience an incident like this costs two to four hours of human coordination, and most of that time is spent moving context between systems rather than fixing anything.
The shared job is therefore narrow and testable: when a dataset deviates from its contract, detect it, work out who and what is affected, and either repair it or stop the damage from spreading. Three agents can cover that loop. The Quality Agent wraps rule-based checks such as dbt data tests and Great Expectations plus anomaly detection. The Catalog Agent holds lineage, ownership and semantic meaning across whatever catalogs you already run. The Pipeline Agent builds and maintains the jobs themselves across your orchestrators and transformation layer.
Roles: which agent detects, which decides, which acts
We assign roles by verb so that no two agents can disagree about who owns a step.
- •Detect (Quality Agent): runs tests and anomaly checks, opens a finding with evidence (failing rows, metric deltas, the check that fired). It does not diagnose cause and does not touch pipelines.
- •Decide (Catalog Agent): takes the finding, resolves the asset, walks lineage downstream to compute blast radius, looks up owner, sensitivity tags and SLA, and classifies severity. It produces a proposed action but executes nothing.
- •Act (Pipeline Agent): takes an approved proposal and does the work: pause a downstream job, rerun a backfill, patch a model, or roll back a change. It reports the result back for verification.
The Orchestration Agent sits above the three as the coordinator. It does not do domain work. It routes findings, enforces ordering, tracks the state of the incident, and decides when to stop and ask a human. That separation matters: a coordinator that also does domain work becomes the single point of failure we were trying to remove.
The handoff table
A handoff is only as good as the context that travels with it. The table below shows the three handoffs in the loop, what each one carries, and where a human approves.
| Handoff | From → To | Context passed | Approval point | If it fails |
|---|---|---|---|---|
| 1. Finding | Quality → Catalog | Asset ID, failing check, evidence (row counts, metric delta, time window), first-seen timestamp | None (read-only) | Orchestration retries once, then pages the owner with the raw finding |
| 2. Proposal | Catalog → Pipeline | Blast radius (downstream assets, dashboards, consumers), owner, sensitivity tags, SLA, severity, proposed action and rollback plan | Required for production writes unless the domain autonomy level allows auto-approve | Orchestration holds the proposal and marks affected assets as 'suspect' for consumers |
| 3. Result | Pipeline → Quality | Change applied, run IDs, affected partitions, expected post-condition | None (read-only verification) | Pipeline rolls back to the last good state and escalates |
| 4. Close | Quality → Orchestration | Re-check result, pass or fail, residual risk | Human sign-off on failed re-check | Incident stays open with a full timeline |
What context moves at each handoff
We pass a structured object, not a paragraph. The Quality-to-Catalog finding includes the asset identifier, the check name, the evidence and the time window. The Catalog Agent) adds fields rather than rewriting: blast radius, owner, tags, severity and a proposed action. The Pipeline Agent never has to re-derive any of that, which is what lets it act quickly and what makes its action auditable later.
This is also where the questions teams ask in Claude Code or Cursor map onto the loop. "Why did row counts drop 40% overnight?" starts at Quality. "What's the blast radius if I drop this column?" is a Catalog question. "Why is the nightly pipeline 3x slower this week?" lands on Pipeline. The coordinator lets a single prompt traverse all three without the engineer switching tools.
Approval points and the autonomy dial
Detection and diagnosis are read-only, so they can run without approval. The risky step is the write. Our open-source edition is read-only by default; the Pro edition adds writes, approval workflows and audit trails. That gives a natural policy: in a new domain, every Pipeline Agent write needs a human approval; as the team sees the proposals hold up, they raise the autonomy level for that domain so low-severity, well-understood fixes proceed on their own while anything touching PII or a gold table still asks first.
The Catalog Agent's sensitivity tags are what make this policy enforceable. A proposal that touches a column tagged as PII is routed to approval regardless of the domain's autonomy level. Every approval, rejection and action is written to a tamper-evident audit trail so you can reconstruct who or what changed what.
What happens when one agent fails
Multi-agent systems fail in specific, predictable ways, and the framework should define the safe state for each before you go live.
- •Quality Agent down: no detection. The coordinator marks monitoring coverage as degraded and alerts the owner. Absence of findings is never reported as health.
- •Catalog Agent down or stale: no blast radius. The coordinator refuses to forward any write proposal, because acting without lineage is the failure we are trying to prevent. It escalates with the raw finding instead.
- •Pipeline Agent down or erroring: the fix cannot run. The coordinator holds the proposal, flags downstream assets as suspect, and notifies the owner with the proposed fix attached so a human can apply it.
- •Coordinator down: agents revert to being individually invocable MCP servers, so an engineer can still run each step by hand from the terminal.
The rule underneath all four is the same: when context is missing, the system stops and asks. It does not guess.
A worked example
Say an upstream team renames a column. The Quality Agent flags a null-rate spike on orders.customer_id and opens a finding. The Catalog Agent resolves the asset, finds that a revenue dashboard and two downstream models depend on it, sees the owner and the SLA, and proposes pausing the downstream jobs and patching the staging model. Because the change is a production write, it waits for approval. Once approved, the Pipeline Agent applies the patch, reruns the affected partitions and reports run IDs. The Quality Agent re-checks, the null rate returns to baseline, and the incident closes with a timeline. The engineer reads a summary instead of assembling one.
We covered how the Catalog Agent keeps lineage current in a separate post, and our Schema Agent and Incidents Agent extend this same loop to schema drift and root-cause diagnosis. The three-agent version here is the smallest useful unit; you can add agents without changing the handoff pattern.
How to start
- •Begin read-only: connect the three agents to one domain and let them produce findings and proposals without executing anything.
- •Review the proposals for a few weeks and note which ones you would have approved unchanged.
- •Raise the autonomy level for that domain on the low-severity fixes only, and keep PII and gold tables on approval.
- •Add the next domain once the handoff context fields stop changing.
If you want to see the pattern running, the open-source edition at dataworkers.io is Apache 2.0, runs locally and installs into Claude Code, Cursor or any MCP-compatible client.
Frequently Asked Questions
Why use three agents instead of one agent with many tools? A single agent with every tool has to hold detection, lineage and execution in one context, and its permissions must be the union of all three. Splitting by role gives each agent a smaller context, narrower permissions and an auditable boundary. The trade-off is that you must define the handoffs, which is what the table above is for.
Which agent should be allowed to write to production? Only the Pipeline Agent, and only against an approved proposal that carries a blast radius and a rollback plan. The Quality and Catalog agents stay read-only. That keeps the number of components with write access to one.
What happens if the Catalog Agent's lineage is out of date? The proposal is only as good as the lineage behind it, so the coordinator checks catalog freshness before forwarding a write. If lineage is stale or missing, it holds the proposal and escalates rather than acting on a partial blast radius.
Do we have to replace our existing tests and catalog? No. The Quality Agent wraps the checks you already run, such as dbt tests and Great Expectations suites, and the Catalog Agent federates across the catalogs you already have. The agents add coordination on top of those systems.
How much of the incident loop can run without a human? In our early pilot testing, 60% of incidents auto-resolved before a human was notified. That is our own pilot figure from a limited set of deployments, and it depends on how far a team has raised the autonomy level in each domain.