Home › Study guides › CCDV-P › Domain 1 › Lesson 1.1
CCDV-P · Domain 1 · 17% of the exam · Lesson 1.1 · 21 min read New in the December 7, 2026 guide release (v1.0)
Multi-agent orchestration: supervisors, parallel workers and approval gates
Orchestrators and subagents in production: delegation briefs, context isolation, the cost of parallel fan-out, validating worker reports and placing human approval.
Written against skill 1.1 of the official CCDV-P exam guide (Version 1.0, effective November 2026). An independent resource, not affiliated with Anthropic; the practice questions are written from scratch.
1.1.1 Why one agent cannot work every claim alone
Northwind Mutual, a property and motor insurer, takes about 3,200 new claims a day. Each one arrives as a claim form plus a pile of evidence: repair estimates, photos, police reports, sometimes a 140-page medical file. Before anyone pays, three questions need answers. What does the evidence actually say? Does the policy cover this loss on this date? Does anything look like fraud?
The first version was one agent with every tool. It worked on small claims and failed on big ones. A long medical file filled the context window with scanned text, p95 latency (the time within which 95% of claims finish) reached six minutes, and twice the agent quoted one claimant's injury in another claimant's summary.
Dana Okafor, the staff engineer who owns the claims platform, rebuilt it around a split. An orchestrator, one agent that owns the claim, hands three focused jobs to subagents: document extraction, policy lookup and fraud signals. Each subagent works in its own context window and returns a short report, and the orchestrator combines them. Payouts above 10,000 dollars still need a human adjuster's yes.
The split fixed the old failures and created new ones, the kind that only happen between agents. This lesson is about both.
1.1.2 Supervisor and workers, or a flat design
The first design question is who owns the decision. In a supervisor/worker hierarchy (also called orchestrator-worker), one agent plans, delegates and synthesises, and the workers never talk to the user or to each other. In a flat design, there is no boss: either one agent does everything, or peers hand work along a chain, each passing its output to the next.
Think of a hospital ward round. The consultant does not read every scan; radiology, pharmacy and pathology each report back, and the consultant decides. Nobody in radiology prescribes. That is the supervisor pattern: specialists report, one owner decides.
Northwind's claims orchestrator and its workers
Anthropic's guidance is to start with one agent and add subagents only when a concrete constraint calls for it. Three constraints justify the split: protecting the main context from bulky intermediate material, independent work that can run in parallel, and specialisation, where one agent with too many tools starts choosing badly.
| Design | When it wins | What it costs |
|---|---|---|
| Single agent with tools | Small inputs, steps that share context, a tight latency budget | Context fills on large cases; one prompt carries every specialism |
| Supervisor/worker | Independent slices of work, bulky evidence, specialists with different tools | More tokens overall; briefs and synthesis become new failure points |
| Flat chain of peers | Fixed sequential stages that rarely change | Each handoff loses detail; nobody owns the whole result |
Northwind's claims fit the middle row: three independent slices of evidence, one of them bulky. Each worker owns a body of evidence, not a phase of work. A split such as "one agent drafts, another reviews, a third rewrites" makes every agent rebuild context the previous one already had.
Both Anthropic runtimes implement the hierarchy. In the Agent SDK, you pass an agents map of AgentDefinition entries, and the main agent delegates through the Agent tool. In Claude Managed Agents, the agent definition carries a multiagent block of type multiagent_20261001. You list the allowed subagents in subagents.predefined_agents, and each subagent runs in its own session thread. Managed Agents delegation is one level deep, with at most 25 child threads at a time. The Agent SDK lets subagents nest up to three layers by default.
1.1.3 Parallel dispatch: when fan-out pays and when it multiplies cost
Here is the question the exam loves: Dana's three workers can run one after another or all at once. Which is right, and what does it cost?
Parallel dispatch means the orchestrator launches several subagents in the same turn and waits for all of them. Independent subtasks then finish in the time of the slowest, not the sum. Northwind's extraction takes about 40 seconds on a typical claim, policy lookup 15 and fraud signals 25. Run in sequence, that is 80 seconds; run in parallel, about 40.
Sequential versus parallel dispatch for one claim
Sequential
80 s wall clock, same tokens
Parallel
48 s wall clock, same tokens
Parallelism saves time, not money. Each subagent makes its own model calls with its own system prompt, brief and tool results. Anthropic's engineering write-up of its research system measured multi-agent runs at about 15 times the tokens of a chat interaction. Its guidance on when to use multi-agent systems puts them at 3 to 10 times the tokens of a single agent on the same task. Northwind's cost per claim went from 0.41 to 0.74 dollars. On 3,200 claims a day, the faster p95 and the end of cross-claim mix-ups justified that cost. On a low-value task it would not have.
Parallel dispatch also needs genuinely independent work. Fraud signals need the claimant's id and the incident date. If those came only from extraction, the fraud worker would have to wait. Northwind takes both from the structured claim form at intake, so all three workers can start at once.
The expensive failure is runaway fan-out. One Monday, a claim with 31 attached documents made the orchestrator start one extraction subagent per document, and cost per claim jumped twentyfold. Anthropic saw the same thing early on: agents spawned 50 subagents for simple queries. A prompt rule such as "use at most three workers" steers the model, but only the harness enforces a limit.
In the Agent SDK, CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS caps how many run at once (default 20) and CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH caps nesting. max_budget_usd (Python) or maxBudgetUsd (TypeScript) stops the whole query, subagents included, at a spend limit. These three limits need Python SDK v0.2.127 or TypeScript SDK v0.3.219 or later. In Managed Agents, a session budget is one shared cap across all of a session's threads.
1.1.4 The delegation brief and the isolation boundary
The first post-launch incident was a mismatch. The fraud worker flagged a claim from a J. Alvarez because of three prior water-damage claims. All three belonged to a different J. Alvarez. The orchestrator's brief had said "check this claimant for fraud signals" and given the name, but not the customer id.
A subagent starts with no knowledge of the parent's conversation. In the Agent SDK, the parent passes only the prompt string of the Agent tool call. The subagent also gets its own system prompt, its tool definitions and, where configured, the project's CLAUDE.md file. It does not see the parent's history, tool results or system prompt. Whatever the orchestrator knows and does not write into the brief, the worker does not know.
So the brief is a contract. Anthropic's research team found that each delegated task needs an objective, an output format, guidance on tools and sources, and clear task boundaries; vague briefs caused duplicated work and gaps. For Northwind, that means identifiers (claim id, customer id, policy number), the dates that matter, what is out of scope, and the exact shape of the report.
In this definition of the fraud worker, look at the tools line, which keeps the worker read-only, and the maxTurns line, which bounds its loop.
from claude_agent_sdk import ClaudeAgentOptions, AgentDefinition
fraud_signal = AgentDefinition(
description="Fraud signals for ONE claim. Use only with a claim id, customer id and incident date.",
prompt=FRAUD_SYSTEM_PROMPT, # role, signal rubric, report schema
tools=["mcp__claims__get_claim_history"], # read-only: no payout tool, no Agent tool
model="sonnet",
maxTurns=8, # stops a looping worker; marked partial on Claude Code v2.1.246+
)
options = ClaudeAgentOptions(
agents={"fraud-signal": fraud_signal, "extraction": EXTRACTION, "policy-lookup": POLICY},
env={"CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH": "1", # workers cannot spawn workers
"CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS": "5"},
max_budget_usd=2.00, # whole claim, subagents included
)
The brief the orchestrator writes at run time is the other half. Northwind's orchestrator prompt requires every brief to follow this template:
Claim C-2026-118204. Customer id CU-55120 (match on id, never on name). Incident date 2026-11-14.
Objective: report fraud signals for this claim only.
Scope: claims history for CU-55120, last five years. Policy cover and document contents are other workers' jobs; do not fetch them.
Report: JSON with status (complete | partial | failed), signals (each with claim ids as evidence), and open questions.
Isolation also works in the other direction, and that is a feature. The extraction worker reads all 140 pages of a medical file; the orchestrator receives only its final message, a few hundred tokens. That is what fixed the cross-claim mix-ups: the bulky text never entered the context where decisions are made. The cost is fidelity. A summary can drop a detail, so Northwind's workers also write their full findings to the claim file and return a reference, which the research team recommends to avoid a "game of telephone".
One boundary is narrower than it looks. In Managed Agents, threads have isolated conversations but share the same sandbox, filesystem and vault credentials. Context isolation is not a security boundary, so the tools each worker may call still need their own limits.
1.1.5 Synthesis and validation: never trust a worker's word
The worst incident looked like success. During a rate-limit spike, the fraud worker was cut off mid-run. Its text output so far read "no prior claims found in the records checked so far". The orchestrator wrote "no fraud signals" into the recommendation, and a claim later proven fraudulent went through.
The orchestrator trusted a report it should have checked. In the Agent SDK, a foreground subagent cut off by an API error returns its partial text with a note that it did not finish. A worker that produced nothing fails with Agent terminated early due to an API error, and a background worker is marked failed but still hands back its last output. One that hits maxTurns comes back marked partial, on Claude Code v2.1.246 or later. All of those reach the orchestrator as text, and a model reading quickly can treat them as answers.
What makes a worker's report usable
Northwind now validates before it synthesises. Each worker ends with the JSON report from its brief, and Dana's code, not the orchestrator, checks it: valid schema, status complete, and evidence ids that exist in the claim file. A partial or failed report goes back for one retry with the same brief, then to the adjuster queue. The orchestrator synthesises only validated reports, and it must name every disagreement instead of resolving it by taste.
Disagreements are real findings. Extraction read an incident date of 14 November from the police report; policy lookup reported that the policy lapsed on 10 November and was reinstated on the 16th. Neither worker is wrong; the claim is genuinely uncovered on those dates, or the police report is. The rule is to resolve on evidence the orchestrator can cite, and when it cannot, route the claim to a human.
| Failure between agents | What the trace shows | Fix |
|---|---|---|
| Lost context in handoff | Brief lacks ids or dates; worker searches by name | Brief template with identifiers, scope and report format |
| Duplicated work | Two workers call the same history tool for one claim | Non-overlapping scopes written into each brief |
| Conflicting results | Workers report incompatible dates or amounts | Synthesis names the conflict and routes it to a human |
| Trusting a failed worker | Partial or errored report used as a finding | Status checked in code before synthesis |
| Runaway fan-out | Dozens of subagents for one input; cost spike | Concurrency, depth and budget caps in the harness |
Memorise the five failure names and their fixes; the trace symptoms are how exam stems describe them. The Agent SDK helps you read those traces: every message produced inside a subagent carries parent_tool_use_id, which ties it to the Agent call that started it.
1.1.6 Where the human approval sits
Northwind's rule is old and simple: a payout above 10,000 dollars needs an adjuster's approval. In a multi-agent flow there are many places to put that check, and most of them are wrong.
The approval belongs at the irreversible action, after synthesis and validation, and outside the model. Not in the workers: they only read, and an adjuster asked to approve three partial findings per claim cannot judge the claim. Not in a prompt: "never pay above 10,000 dollars without approval" is a request the model may misread, and an injected instruction in a claim document could argue around it. And not on every claim: 3,200 approvals a day trains adjusters to click yes.
Northwind's claim flow with the approval gate
issue_payout runsThe runtime gives you the hook. In the Agent SDK, your can_use_tool callback (canUseTool in TypeScript) or a PreToolUse hook sees the orchestrator's issue_payout request before it runs. Your code checks the amount and the conflict flag, and either allows it or holds the call until the adjuster answers. The callback fires only for calls nothing has pre-approved, so issue_payout must stay out of allowed_tools. In Managed Agents, an MCP tool under the always_ask permission policy pauses the session. A request from any thread is cross-posted to the primary thread with its session_thread_id, and your client answers with a user.tool_confirmation event whose result is allow or deny. A custom tool runs in your own application, so its handler enforces the threshold itself.
Only the orchestrator holds issue_payout. The workers' tool lists cannot reach it, so no worker, however confused, can pay a claim. Watch the defaults: the built-in general-purpose subagent inherits the orchestrator's tools, so Northwind sets CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS=1. In Managed Agents, an inline agent uses the session agent's tools, so the equivalent step is to disable inline_agents. The adjuster sees one packet: the recommendation, the three validated reports and the named conflicts. Their decision is recorded with the claim.
1.1.7 The exam traps
- ✗ Splitting work into agents by phase: one drafts, one reviews, one rewrites. ✓ Split by context boundary, so each worker owns a slice of evidence end to end. Phase splits make every agent rebuild context and lose detail at each handoff.
- ✗ Briefing a subagent the way you would brief a colleague who saw the whole case. ✓ Write identifiers, scope, boundaries and the report format into the brief. The subagent sees nothing of the parent's conversation.
- ✗ Passing the orchestrator's full transcript to every worker "so nothing is lost". ✓ Pass only what the subtask needs and get a summary back. Copying the transcript defeats isolation and multiplies tokens.
- ✗ Capping fan-out with a prompt instruction alone. ✓ Set concurrency, depth and budget limits in the harness. The prompt steers; the harness enforces.
- ✗ Synthesising whatever text each worker returns, or taking a majority vote. ✓ Check status and evidence in code first, retry or escalate partial results, and route conflicts to a human.
- ✗ Putting the approval in the system prompt, in every worker, or on every claim. ✓ Gate the irreversible tool call in code, above a threshold, with the validated evidence in front of the approver.
1.1.8 Put it together: break and repair a claims fan-out
You now have every piece: the hierarchy, the cost of parallel dispatch, the brief, validation before synthesis, and the gate on the irreversible step. The way to own them is to build a small fan-out, watch a worker fail quietly, and see whether your orchestrator notices.
The rest of this domain builds on this design. Durable execution (1.2) keeps a long multi-agent run alive through a crash, so a paused approval does not restart the claim. Architecture selection (1.3) asks, with cost and quality data, whether a flow like this should stay agentic at all. Context and memory architecture (1.4) handles the orchestrator's own context when a single case runs for hours.
Key takeaways
- ✓ Use a supervisor/worker hierarchy when the work splits into independent or bulky slices, and stay with one agent when the steps share most of their context.
- ✓ Parallel dispatch cuts wall-clock time to the slowest worker but multiplies tokens, so it must earn its cost and be capped in the harness.
- ✓ A subagent knows only its system prompt, tools and brief, so the brief carries identifiers, scope, boundaries and the report format.
- ✓ Context isolation keeps bulky evidence out of the deciding context; only the worker's final summary comes back, ideally with a reference to the full findings.
- ✓ Validate every worker's status and evidence in code before synthesis, and send partial results and conflicts to a retry or a human.
- ✓ Place the human approval on the irreversible tool call, after validation, enforced by a callback, hook or permission policy, never by a prompt.
- ✓ The Agent SDK delegates through the
Agenttool and anagentsmap; Managed Agents delegates through amultiagentblock and session threads.
Check your understanding
4 questions written for this lesson. Every answer option is explained, including the ones you did not pick. Nothing is stored.
CCDV-P practice questions are being written
There is no CCDV-P question bank on this site yet. The practice questions are being written now. Until they are ready, work through the free study guide: every lesson ends with questions that check your understanding, and every answer option is explained.
Back to Domain 1 → The CCDV-P exam guide →
The CCDV-P course will hold the same study guide as a book, for reading in the app.
Sources
- Subagents in the SDK
- Create custom subagents (Claude Code)
- Handle approvals and user input (Agent SDK)
- Multiagent orchestration (Managed Agents)
- Session threads (Managed Agents)
- Permission policies (Managed Agents)
- How we built our multi-agent research system
- Building multi-agent systems: when and how to use them
- Building effective agents
- The CCDV-P exam guide, summarised