Skip to content
CCAR-F Prep

Task Statement 5.3·Domain 5 — 15% of exam

Error Propagation in Multi-Agent Systems

Implement error propagation strategies across multi-agent systems

Jump to practice →

Official Exam Guide Objectives

The objectives below are quoted from Anthropic's Claude Certified Architect – Foundations exam guide, v1.1. Read the exam guide summary for the full blueprint.

Task 5.3: Implement error propagation strategies across multi-agent systems.

Knowledge of

  • Structured error context (failure type, attempted query, partial results, alternative approaches) as enabling intelligent coordinator recovery decisions
  • The distinction between access failures (timeouts needing retry decisions) and valid empty results (successful queries with no matches)
  • Why generic error statuses ("search unavailable") hide valuable context from the coordinator
  • Why silently suppressing errors (returning empty results as success) or terminating entire workflows on single failures are both anti-patterns

Skills in

  • Returning structured error context including failure type, what was attempted, partial results, and potential alternatives to enable coordinator recovery
  • Distinguishing access failures from valid empty results in error reporting so the coordinator can make appropriate decisions
  • Having subagents implement local recovery for transient failures and only propagate errors they cannot resolve, including what was attempted and partial results
  • Structuring synthesis output with coverage annotations indicating which findings are well-supported versus which topic areas have gaps due to unavailable sources

What You Need to Know

How failure information travels decides whether a multi-agent system degrades gracefully or fails without anyone noticing. A subagent hits a timeout, a permission refusal, a malformed query — and what it sends back up determines every option the coordinator has afterwards. The exam tests three things here: what structured error context contains, the two anti-patterns, and a distinction most developers get wrong.

Structured Error Context

A failing subagent owes the coordinator enough to decide with. Four elements:

1. Failure type. Which kind of failure this is: transient (a timeout or rate limit, so another attempt may work), validation (the input was wrong, so fix it and call again, never resend it unchanged), business (a rule refused it, so do not retry: explain the refusal and take the permitted alternative, which is often escalation), or permission (access denied, and no retry helps until authorisation changes). These are the four categories the exam guide names under task 2.2; learn four, not more.

2. What was attempted. The actual query, the parameters, the system it went to. "Searched academic database for 'renewable energy policy' with date range 2022-2024" can be acted on — narrowed, redirected, retried. "Search failed" cannot.

3. Partial results gathered before failure. Three sources retrieved before the timeout are three sources. Discarding them because the operation as a whole did not finish throws away work that already succeeded.

4. Potential alternative approaches. The subagent knows its own domain, and the coordinator does not. A database being unreachable, a query worth broadening, a cached result worth checking — these are suggestions only the failing agent is positioned to make.

{
  "status": "partial_failure",
  "failureType": "transient",
  "attemptedAction": {
    "tool": "search_academic_db",
    "query": "renewable energy policy",
    "dateRange": "2022-2024"
  },
  "partialResults": [
    {
      "title": "EU Renewable Energy Directive 2023",
      "source": "EUR-Lex",
      "retrieved": true
    }
  ],
  "alternativeApproaches": [
    "Retry with narrower date range (2023-2024)",
    "Search alternative database: government_publications",
    "Use cached results from previous research session"
  ]
}

With that in hand every option is open: repeat the call, take one of the alternatives, proceed on what was gathered, or escalate — and each is a decision rather than a guess.

Structured context turns a guess into a decision A subagent reports a generic status of search unavailable, and the coordinator has nothing to act on — no query, no results, no alternatives, just an unresolved question. Structured error context replaces that with four required fields: failureType, the attemptedAction naming the tool and query, any partialResults already gathered, and alternativeApproaches the subagent can see from inside its own domain. With those in hand the coordinator has four real options — retry, try an alternative, proceed on the partial results, or escalate — each a decision rather than a guess. Generic status status: "search unavailable" Coordinator ? no options available strips out the query, results, and alternatives Structured error context failureType: "transient" attemptedAction: search_academic_db partialResults: [1 item] alternativeApproaches: [3] Coordinator ✓ retry ✓ try an alternative ✓ proceed partial ✓ escalate each option is a decision now, rather than a guess
1 / 6Swipe diagram ↔

Structured context turns a guess into a decision, step 1: A generic status arrives — search unavailable

What each element buys the coordinator

ElementWhat it lets the coordinator do
Failure typeChoose a class of response: retry (transient), correct the input (validation), take another route (business), get access changed (permission)
What was attemptedAvoid repeating the identical call, and vary one dimension (a narrower date range, a different source)
Partial resultsKeep work already done, which may on its own be enough to proceed
AlternativesUse the subagent's knowledge of its own domain: the subagent proposes, the coordinator decides

Drop any one and a recovery path closes. The test to apply to any error design is this: the coordinator's next action should be derivable from the error alone. If deciding what to do means guessing, or going back to ask the subagent, the error is underspecified.

Field names are illustrative

The guide fixes the four elements, not the field names. failureType, attemptedAction and shouldRetry in this lesson's examples are one reasonable design. Task 2.2 names errorCategory and an isRetryable boolean; those are an application convention carried inside the tool result, not fields of the MCP specification. Whether a validation error is flagged retryable is also a convention the guide does not settle: some teams set true ("a corrected call can succeed"), others false ("the identical call cannot"). Answer by behaviour, which is the same under both: correct the input and call again, and never resend it unchanged.

The Two Anti-Patterns

The exam tests these explicitly. Both are catastrophic in different ways:

Silent suppression: returning empty results marked as success. The subagent times out and reports { "results": [], "status": "success" }. As far as the coordinator can tell, the search ran and the topic is empty — so it does not retry, does not try elsewhere, and synthesises a report missing an entire area of research. The report reads as complete.

That invisibility is what makes it the worst of the two. A crash announces itself; this does not, and nothing downstream can distinguish a subject that was searched and found barren from one that was never searched at all. A suppressed failure therefore becomes a confident false claim about the world: the report states as a finding something that is really a fault in the system. The customer-support version is a support agent telling someone they have no account, because the lookup service was down and reported nothing found. Logging the error carefully before returning the empty success does not change this; the log reaches an operator, not the coordinator.

Workflow termination: killing the entire pipeline on a single failure. One subagent times out and everything stops. Four others finished successfully and their work is discarded along with the failure. The response is out of proportion to the event, and it leaves no path forward except starting again.

Between the two sits the correct behaviour: the failure is reported in full, the coordinator judges how much it costs, and the system proceeds on partial results or targeted recovery.

Two anti-patterns, and the behaviour between them Silent suppression: a subagent times out and reports an empty result marked as success, so the coordinator reads a searched-and-empty topic and moves on unaware — the worst of the two anti-patterns because it is invisible, and the report reads as complete. Workflow termination: a different subagent times out and the entire pipeline stops, discarding the work of four other subagents that finished successfully. The correct behaviour sits between them: the failure is reported in full, the coordinator judges how much it costs, and the system proceeds on partial results, keeping what already succeeded. Silent suppression subagent timeout results: [] status: "success" Coordinator moves on, unaware ⚠ worst — invisible Workflow termination subagent timeout pipeline halted ✓ ✓ ✓ ✓ discarded too Report in full reported in full judges the cost ✓ ✓ ✓ ✓ results kept reported in full, judged, and the system proceeds
1 / 6Swipe diagram ↔

Two anti-patterns, and the behaviour between them, step 1: A subagent times out, silently

Access Failure vs Valid Empty Result

This distinction is critical and the exam tests it directly:

Access failure: the source was never reached — a timeout, a refused connection, a permission denial. The query did not run, so whether anything matches remains unknown. A retry, as-is or adjusted, is worth considering.

Valid empty result: the source was reached and the query ran. Nothing matched, and that is the answer. Retrying re-executes a successful operation to obtain the same correct result.

Conflating these leads to two problems:

  • Treating access failures as valid empty results means you never retry when you should.
  • Treating valid empty results as access failures means you waste time retrying a query that will always return nothing.
// Access failure — the tool never reached the data, so a retry may work.
const accessFailure = {
  status: "error",
  failureType: "transient",
  message: "Connection timeout after 30s",
  shouldRetry: true,
};

// Valid empty result — the query ran and the answer is "nothing matched".
const validEmptyResult = {
  status: "success",
  results: [],
  message: "Query executed successfully. No matching records found.",
  shouldRetry: false,
};
Access failure retries — a valid empty result does not A connection timeout means the source was never reached: the query did not run, so whether anything matches is still unknown, and shouldRetry is true — retrying is worth considering, while treating it as a valid empty result means you never retry when you should. A query that executed successfully and matched nothing is a different case: shouldRetry is false, because that empty result is the correct answer, and retrying it only re-executes a successful operation to obtain the same result again, wasting time. Conflating the two produces opposite failures. Access failure connection timeout shouldRetry: true ✓ retry worth considering ✕ treat as empty never retry when you should same shouldRetry field, opposite meaning Valid empty result query executed shouldRetry: false ✓ accept it that is the answer ✕ retry anyway wastes time re-running it access failure — worth a retry. valid empty — already the answer.
1 / 6Swipe diagram ↔

Access failure retries — a valid empty result does not, step 1: A connection timeout — the query never ran

Both responses contain zero results, and they demand opposite handling:

Valid empty resultAccess failure
What it isA finding about the worldA finding about the system
Coordinator actionRecord that no coverage exists; do not retry; consider whether the subtopic is real or the query was framed badlyRetry, re-query, or try an alternative source
How the report words it"No sources found on X""X not covered: retrieval failed"

The difference must be stated explicitly in the response, by status. Signalling it by convention, such as null for a timeout and [] for no matches, leaves every caller to remember the rule and lets the next code path break it. A valid empty result is more useful when it says what was searched ("query ran against three indexes; nothing matched"), so the coordinator can judge whether the absence is genuine. And the retry wrapper must sit around the call that can fail to connect, not around the whole subagent, or a query that correctly matched nothing gets attempted three times.

Coverage Annotations

A synthesis drawing on several subagents should state where its support is solid and where it is thin. Where the sources on geothermal energy never arrived, the report says so:

"Section on geothermal energy is limited due to unavailable journal access during research."

The alternative is a report that simply covers geothermal lightly, which a reader will interpret as a judgement about the topic's importance rather than a gap in the research. Annotating turns an invisible omission into a known limitation, and only one of those can be followed up.

Local recovery first — then an annotated gap, never a silent one A subagent absorbs a transient failure locally — retries, fallback sources, degraded responses — and only propagates upward if none of that resolves it, so the coordinator only ever deals with failures that are genuinely its problem. Separately, when sources on a topic never arrived, a synthesis report that simply renders a thin, unlabelled section reads as a judgement about that topic's importance. Annotating the same gap explicitly — limited due to unavailable journal access during research — turns an invisible omission into a known limitation that can be followed up. Local recovery Subagent ↻ retrying locally retries, fallback sources, degraded responses — all local unresolved coordinator informed Coverage annotation Geothermal Energy — silently thin ✕ reads as a judgement on importance Geothermal Energy — annotated Section on geothermal energy is limited due to unavailable journal access during research. ✓ a known limitation, not a silent gap annotating turns an invisible omission into a known limitation
1 / 6Swipe diagram ↔

Local recovery first — then an annotated gap, never a silent one, step 1: A subagent hits a transient failure

A coverage section, topic by topic

The guide asks for annotations "indicating which findings are well-supported versus which topic areas have gaps due to unavailable sources". In practice that means a status for every topic area (well-supported, limited, or a gap) with the reason attached to anything short of well-supported:

## Well-supported findings
- Music production: 3 independent sources, 2024–2026, in agreement. [S3][S7][S11]

## Findings with limited support
- Writing and publishing: 1 source only [S9], an industry blog. Treat as indicative.

## Coverage gaps
- Advertising: the trade body's 2026 survey is paywalled and no substitute was found
  (3 attempts, 2 alternative indexes). No claim is made about this sector.
- Film and VFX: employment data retrieved, but both spend datasets timed out. The
  employment finding stands alone and is not a sector-wide conclusion.

Two details carry the weight. A gap entry ends with an explicit no-claim, so nobody reads silence as a negative finding. And a partial gap says which part stands, so a narrow finding is not stretched into a broad one. The property to check: a reader can tell "we found nothing" from "we could not look". Never let missing information look like absent information.

Two tempting shortcuts fail that check. A single caveat at the top ("some sources were unavailable") is honest but not actionable, because it never says which topic is affected or how badly. Filling a thin section with estimates extrapolated from the topics that did return manufactures findings for a topic nobody researched, and a disclaimer does not make them sourced.

Local Recovery for Transient Failures

Transient failures belong to the subagent that hit them. Retries, fallback sources, degraded responses — all of it happens locally, and only what survives that treatment travels upward, carrying what was attempted and whatever partial results exist.

The benefit is structural. A coordinator that handles every transient failure of every subagent has to know each subagent's failure modes, which is knowledge that belongs where the failure occurs. Handling it locally leaves the coordinator dealing only with failures that are genuinely its problem, and a passing blip does not cost a coordinator turn.

Local recovery is for transient failures only

The skill bullet is specific: subagents "implement local recovery for transient failures". The other categories are not fixed by trying again, so a subagent that retries them wastes time and delays the report the coordinator needs:

FailureWhat the subagent doesWhat travels to the coordinator
Transient (timeout, 503, rate limit)Recovers locally: backoff, retry, an alternate indexOnly if still failing: type, what was attempted (including attempts made), partial results, alternatives
Validation (malformed query, unsupported filter)Never resends the same input. If the fault is in a call it built itself, it corrects that and calls again; if the fix needs a change to the task it was given, it propagates at onceThe rejected input and what a valid one would look like
Business (a rule refuses the request)Does not retry: the rule applies identically next timeThe rule that applied and the permitted alternative; in a customer-facing agent, an explanation the customer can be given
Permission (paywall, missing credentials)Propagates at once, since it cannot obtain access itselfThe resource it could not reach, named
Partial success (some sources worked)Keeps what workedThe partial results plus the failure for the rest

Partial results always travel, including on the failure path, and they accumulate across attempts. If the first attempt retrieves two sources, the second none and the third one more before the run gives up, the propagated error carries all three: retries add to what was gathered rather than replacing it.

In the sketch below, run_query executes the search and raises SearchError (with kind and partial_results) when it fails; structured_error builds the four-element payload. The invariant: only transient errors are retried, everything else leaves at once, and nothing gathered is dropped.

import time

def search_with_local_recovery(run_query, query, attempts=3):
    partial, last = [], None
    for attempt in range(1, attempts + 1):
        try:
            # An empty list is a valid empty result: a success, never retried.
            return {"status": "success", "results": run_query(query)}
        except SearchError as err:
            last = err
            partial += err.partial_results     # keep work that already arrived
            if err.kind != "transient":        # validation, business, permission
                break                          # retrying cannot help: propagate now
            if attempt < attempts:
                time.sleep(2 ** (attempt - 1)) # backoff: 1s, then 2s
    return structured_error(last, query, attempt, partial)

A wrapper that catches every exception, retries it and labels the outcome "transient" fails this invariant twice: it retries errors that cannot succeed, and it tells the coordinator the wrong failure type.

What the coordinator does with it

The coordinator is where the recovery decision is made, and the structured error is what lets it make one rather than apply a blanket rule:

  • Transient, retries exhausted: weigh the partial results. If they are enough, proceed and annotate the gap; if not, try one of the suggested alternatives (a narrower query, another source), accepting the extra latency.
  • Validation: re-delegate with a corrected query.
  • Business: take the permitted route the error names, which is often a human decision; in a customer-facing agent, explain the refusal to the customer rather than retrying.
  • Permission: route it to whoever can grant access, with the resource named. Neither a coordinator-level retry nor ending the run is right, and quietly substituting the nearest reachable source is not either: it changes what the report rests on, and nothing has shown the substitute holds equivalent material.

That decision belongs to the coordinator. A subagent that hits a failure and decides on its own to "proceed anyway", returning what it has without reporting the failure, has made the coordinator's call for it, and the coordinator cannot annotate a gap it was never told about.

Deep Dive

is_error — the API-level mechanism for signalling tool failure

At the Messages API level, tool failure has a specific, documented shape: "if the tool itself throws an error during execution... you can return the error message in the content along with \"is_error\": true," and "Claude will then incorporate this error into its response." Crucially, when a tool_result reports an invalid or missing-parameter call, "Claude will retry 2-3 times with corrections before apologizing to the user" — the model attempts local recovery on its own before giving up, which is the same principle this lesson's subagents apply at a higher level (retry locally, propagate only what survives).

Sourceplatform.claude.com › handle-tool-callsfetched 2026-07-30

Client tools vs server tools — who owns the error

Not every failure needs your is_error handling. Client tools (user-defined tools, and Anthropic-schema tools like bash/text_editor) "run in your application" — Claude responds with stop_reason: "tool_use", your code executes, and you return the tool_result including is_error on failure. Server tools (web_search, web_fetch, code_execution, tool_search) run on Anthropic's infrastructure instead, and "you do not need to handle is_error results for server tools" — Claude handles those failures transparently. Knowing which category a failing tool falls into determines whether your coordinator code is even responsible for catching the error at all.

Sourcesplatform.claude.com › overviewplatform.claude.com › handle-tool-callsfetched 2026-07-30

Errors compound in stateful, long-running agent systems

Anthropic's own multi-agent research system was built around the observation that "without effective mitigations, minor system failures can be catastrophic for agents... errors occur, we can't just restart from the beginning." Because agents hold state across many steps, a single unhandled failure doesn't stay local — it can propagate into a wasted multi-step trajectory. This is the production-grade justification for why silent suppression and workflow termination are both wrong: suppression hides the failure until it compounds invisibly, and termination throws away everything the system had already legitimately accomplished.

Sourceanthropic.com › multi-agent-research-systemfetched 2026-07-30

Resume-from-failure instead of restart-from-scratch

The documented fix at Anthropic is durable execution: "we built systems that can resume from where the agent was when the errors occurred." This is the architectural sibling of this lesson's "proceed with partial results" recovery decision — rather than discarding a partially-completed pipeline (workflow termination) or lying about it having succeeded (silent suppression), the system picks up from the last good state.

Sourceanthropic.com › multi-agent-research-systemfetched 2026-07-30

The prototype-to-production gap: one bad step derails the whole trajectory

Anthropic reports that "one step failing can cause agents to explore entirely different trajectories, leading to unpredictable outcomes," and that "the gap between prototype and production is often wider than anticipated" for exactly this reason. A coordinator that receives a generic "search unavailable" status has no way to tell whether the agent should retry, redirect, or continue with what it has — it can only guess, and guessing is how one failure metastasizes into a derailed trajectory. Structured error context (failure type, attempted action, partial results, alternatives) is the concrete fix that keeps a single failure from cascading.

Sourceanthropic.com › multi-agent-research-systemfetched 2026-07-30

Non-determinism means production tracing is required to diagnose failures

Because "agents make dynamic decisions and are non-deterministic between runs, even with identical prompts," Anthropic found that "adding full production tracing let us diagnose why agents failed and fix issues systematically," while monitoring "agent decision patterns and interaction structures—all without monitoring the contents of individual conversations." The same structured fields a coordinator needs for automated recovery (failure type, attempted query, partial results) are also what a human debugging the system after the fact needs — structured error context serves both real-time recovery and post-hoc diagnosis.

Sourceanthropic.com › multi-agent-research-systemfetched 2026-07-30

Quick Reference

FactValue
Four structured error elementsFailure type · what was attempted · partial results · alternative approaches
Four failure type categoriesTransient · validation · business · permission
Handling by categoryTransient: retry locally with backoff · validation: correct the input, never resend unchanged · business: do not retry; explain and take the permitted alternative · permission: propagate at once with the resource named
Validation "retryable" flagA convention the guide does not assign; answer by behaviour (fix the input, call again)
errorCategory / isRetryableTask 2.2's application convention, not MCP specification fields
Design testThe coordinator's next action must be derivable from the error alone
Access failure vs valid empty resultAccess failure = retry candidate; valid empty result = the answer, no retry
Report wordingValid empty: "No sources found on X" · access failure: "X not covered: retrieval failed"
Partial resultsAlways travel, including on the error path; accumulate across retry attempts
is_error: trueClient-tool failure signal returned in tool_result content
Server tools and is_errorNot your responsibility — Anthropic's infrastructure handles server-tool errors transparently
Invalid tool call default behaviourClaude retries 2–3 times with corrections before apologising
Anti-pattern 1Silent suppression — empty results marked as success (worst anti-pattern)
Anti-pattern 2Workflow termination — killing the whole pipeline on one subagent failure
Correct recovery patternLocal retry first; propagate only unresolved errors with context; resume from last good state
Why generic errors failThey hide the query, partial results, and alternatives the coordinator needs to decide
Coverage annotationsExplicitly mark synthesis gaps ("limited due to X") rather than silently omitting them; a gap entry ends with an explicit no-claim

Exam Traps

More wrong answers, and why each fails

Tempting answerWhy it failsChoose instead
Propagate every transient blip straight to the coordinatorSpends coordinator turns on noise the subagent could have absorbedLocal retry with backoff first; propagate only what survives it
Send the raw stack trace up as the errorBuilt for a human debugging the subagent; it has no category a branch can read, no partial results and no alternatives, and it leaks internalsThe four-element structured error
Add a severity score and timestamp so the coordinator can rank failuresRanking is not recovery: a severity number still does not say what to do about any one failureThe failure type, which names the class of response
Include only a retry-after delay and an attempt countCovers the transient case only; for validation, business and permission failures a delay is meaninglessThe failure type plus the other three elements
Drop an inaccessible folder or source from the configuration so the retries stopStops the waste but turns a reportable access problem into a silent omission nobody downstream can seeReport the permission failure once, with the resource named, and annotate the gap
Build a circuit breaker or a retry orchestration service to stop retrying permanent failuresInfrastructure to re-derive a decision the failure type already makesBranch on the failure type the subagent reports

How This Is Tested

Stem signalAnswerWrong-answer pattern beside it
A subagent times out; which propagation design enables recovery?Structured error context: failure type, attempted query, partial results, alternativesRetry then a generic status; empty success; abort the workflow
"No results" and "search failed" look the same to the coordinatorReport them differently: an access failure is an error, a valid empty result is a successA blanket retry rule for every zero-result search, or never retrying any
Where should retries live?In the subagent, for transient failures only; propagate what it cannot resolveCoordinator-level retry of everything; retrying validation, business or permission errors locally
One source is unreachable or paywalled; how should the report handle it?A coverage annotation naming the gap, with no claim about that areaSilent omission; one blanket caveat; extrapolated estimates; holding the whole report
Should a single failure abort the run?No: proceed on what succeeded, recover the gap or annotate itTerminating the pipeline; restarting from scratch
A tool refuses on a rule (a cap, a policy) and the handler retriesStop retrying; explain the refusal and take the permitted alternative, often a humanFaster backoff; rewriting the policy; parsing prose for the reason

Official sample question 8, option by option

The stem: "The web search subagent times out while researching a complex topic. You need to design how this failure information flows back to the coordinator agent. Which error propagation approach best enables intelligent recovery?"

OptionVerdictWhy
A. "Return structured error context to the coordinator including the failure type, the attempted query, any partial results, and potential alternative approaches."CorrectThe official explanation: it "gives the coordinator the information it needs to make intelligent recovery decisions—whether to retry with a modified query, try an alternative approach, or proceed with partial results."
B. "Implement automatic retry logic with exponential backoff within the subagent, returning a generic "search unavailable" status only after all retries are exhausted."WrongThe retry is sound; the "generic status hides valuable context from the coordinator, preventing informed decisions." This is the correct-plus-fatal pairing.
C. "Catch the timeout within the subagent and return an empty result set marked as successful."WrongSilent suppression: it "suppresses the error by marking failure as success, which prevents any recovery and risks incomplete research outputs."
D. "Propagate the timeout exception directly to a top-level handler that terminates the entire research workflow."WrongOver-reaction: it "terminates the entire workflow unnecessarily when recovery strategies could succeed."

Practice Scenario

Your support agent calls process_refund for £180 and the tool refuses it: this customer's plan caps self-serve refunds at £100. The handler treats every non-success alike, retrying three times with backoff over nine seconds before raising "refund failed after retries" to a human. The customer waits, and the human agent has to work out why it failed. What's the most effective first step?

Practice Questions

Exam simulator

Question 1 of 13

Scenario · Multi-Agent Research System

When a source fails, your research subagents return only {"status": "search unavailable"}. The coordinator retries the same query three times, losing several minutes per failure. Logs show that many of these failures were paywall refusals that will never succeed, and that a mirror of the same paper was available. What change would most effectively improve recovery?

Sources