5.3 Error Propagation in Multi-Agent Systems
What You Need to Know
Section titled “What You Need to Know”In a multi-agent system, a coordinator hands tasks to subagents and combines their results. Error propagation is how a subagent’s failure (a timeout, a permission error, an invalid query) reaches the coordinator. This propagation decides whether the system recovers gracefully or fails silently. An access failure means a tool never reached its data. A valid empty result means the tool reached the data, ran the query and found nothing.
This lesson uses one made-up example throughout: a bricklaying firm that uses a multi-agent system to prepare quotes. Five subagents find brick prices, mortar and sand prices, the job calendar, past jobs with similar walls, and the customer’s order history. The brick price subagent times out.
Structured Error Context
Section titled “Structured Error Context”A failing subagent must return structured error context with four elements. This is because the coordinator can only make an intelligent decision about recovery from what the subagent tells it.
1. Failure type. Transient failures (a timeout, a rate limit) may succeed on retry. Validation failures (bad input) need a corrected query. Business failures (a rule violation) need escalation or an alternative. Permission failures (access denied) cannot be retried without authorisation changes. The brick timeout is transient.
2. What was attempted. Give the specific query, parameters and target system. The coordinator cannot adjust a query it cannot see. “Searched the merchant’s price list for ‘red facing brick’, June delivery” is actionable. “Search failed” is not.
3. Partial results gathered before failure. If the subagent retrieved three of five sources before timing out, those three are still useful. Discarding them because the operation failed is wasteful.
4. Potential alternative approaches. The subagent knows its domain, so it can suggest a different source, broader search terms or cached results. For the bricklayer, examples are a second merchant or last week’s prices. These suggestions help the coordinator choose a recovery strategy.
{ "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" ]}After a subagent timeout, this structure gives the coordinator what it needs to decide: retry the same query, try an alternative, proceed with partial results or escalate. The bricklayer’s coordinator could use its three brick prices and retry the rest.
The Two Anti-Patterns
Section titled “The Two Anti-Patterns”Both anti-patterns, which are common approaches that do not work, are catastrophic, in different ways.
Silent suppression: returning empty results marked as success. This is the worst anti-pattern. The subagent times out but returns { "results": [], "status": "success" }. The coordinator believes the search ran and found nothing, so it will not retry or try alternatives. The coordinator’s synthesis silently omits an entire area. The output looks complete but is missing critical content: the bricklayer’s quote is sent with no brick cost.
Silent suppression is especially dangerous because it is invisible: nobody can detect the gaps. In customer support, the firm’s agent may report “no orders found” while the order lookup is unavailable. The agent may then tell the customer that they have no account.
Workflow termination: killing the entire pipeline on a single failure. One subagent times out and the whole pipeline crashes. The other four completed successfully, but their results are discarded. This disproportionate response wastes completed work and gives no way to recover. The bricklayer loses four finished lookups because one merchant is slow.
The approach that avoids both anti-patterns is structured error propagation. The subagent reports what happened. The coordinator assesses the effect of the failure. The system continues with partial results or with targeted recovery.
Access Failure vs Valid Empty Result
Section titled “Access Failure vs Valid Empty Result”Access failure: The tool could not reach the data source because of a timeout, a connection error or a permission denial. The search did not execute. Consider retrying with the same or modified parameters.
Valid empty result: The tool reached the source, executed the query and found no matches. That result is the answer, and no retry is needed because the system worked correctly. When the past-jobs records contain no curved garden walls, this result means that the firm has not built one.
Confusing access failures with valid empty results causes 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 — consider retry{ "status": "error", "failureType": "transient", "message": "Connection timeout after 30s", "shouldRetry": True}
# Valid empty result — no retry needed{ "status": "success", "results": [], "message": "Query executed successfully. No matching records found.", "shouldRetry": False}Coverage Annotations
Section titled “Coverage Annotations”When a synthesis agent combines subagent findings, the output should note which topic areas are well supported and which have gaps. If the brick subagent failed, the quote summary should say so.
“Section on brick costs is limited because the merchant price list was unavailable.”
A coverage annotation like this is far better than silently omitting the topic. Coverage annotations tell the consumer of the output what is fully covered and where the known limitations are. Without them, a gap looks like an irrelevant topic, not an unavailable source.
Local Recovery for Transient Failures
Section titled “Local Recovery for Transient Failures”Subagents should recover locally from transient failures (retry logic, fallback sources, lower-quality responses) before propagating errors. Only propagate errors the subagent cannot resolve locally, and always include what the subagent attempted and any partial results.
Local recovery reduces the complexity of the coordinator. Each subagent handles its own transient failures and escalates only persistent ones, so the coordinator need not manage retry logic for every subagent. The brick subagent retries the merchant, tries a second one, and reports only if both fail.
In the exam
Section titled “In the exam”The exam tests structured error context, the two anti-patterns (explicitly) and access failures versus valid empty results (directly). Most developers get that last distinction wrong. When a question describes a subagent timeout, the right answer has the subagent return structured error context. This context lets the coordinator decide how to recover.
Exam Traps
Section titled “Exam Traps”Sources
Section titled “Sources”- Claude Certified Architect Foundations Exam Guide — Domain 5, Task Statement 5.3 — Anthropic
- Anthropic Multi-Agent Patterns — Anthropic
- CCAR-F Exam Guide v1.0: Task Statement 5.3 — Anthropic
Exam Simulator
Section titled “Exam Simulator”Five exam-style multiple-choice questions on Error Propagation in Multi-Agent Systems. Pick an answer, then open the explanation.
Question 1
Section titled “Question 1”A web search subagent in a multi-agent research system times out while researching a topic. You need to design how this failure information flows back to the coordinator. Which approach best enables intelligent recovery?
- A. Propagate the timeout exception to a top-level handler that terminates the entire research workflow
- B. Implement automatic retry with exponential backoff, returning a generic ‘search unavailable’ status only after all retries are exhausted
- C. Catch the timeout and return an empty result set marked as successful
- D. Return structured error context including failure type, attempted query, partial results, and potential alternative approaches
Answer & explanation
Correct: D
- A is wrong: Workflow termination wastes partial results from other subagents that completed successfully.
- B is wrong: The generic ‘search unavailable’ hides the query, partial results, and alternatives from the coordinator, preventing informed recovery even after retries fail.
- C is wrong: Silent suppression — the worst anti-pattern. The coordinator believes the search succeeded and found nothing, so it will never attempt alternatives.
- D is correct: Structured error context gives the coordinator everything it needs: failure type (transient), what was tried, partial results gathered, and alternatives to try.
Question 2
Section titled “Question 2”A subagent searches a database for customer orders and returns zero results. The subagent’s code catches all exceptions and returns {results: [], status: ‘success’}. The database was actually experiencing intermittent connectivity issues. What is this failure pattern called?
- A. Graceful degradation
- B. Silent suppression
- C. Workflow termination
- D. Defensive programming
Answer & explanation
Correct: B
- A is wrong: Graceful degradation involves providing reduced functionality while acknowledging the limitation. This hides the failure entirely.
- B is correct: Silent suppression — returning empty results marked as success when the operation actually failed. The coordinator cannot recover because it believes the search succeeded.
- C is wrong: Workflow termination would crash the entire pipeline. Silent suppression keeps running but with invisible gaps.
- D is wrong: Defensive programming would include proper error handling. Masking failures as success is the opposite of defensive.
Question 3
Section titled “Question 3”A research pipeline has 5 subagents. Subagent 3 fails with a timeout. The system terminates the entire pipeline. What is the primary cost of this approach?
- A. The timeout will not be logged for debugging
- B. The user will receive an unhelpful error message
- C. Partial results from the 4 that succeeded are lost
- D. The failed subagent cannot be restarted independently
Answer & explanation
Correct: C
- A is wrong: Logging is a separate concern. The pipeline can log the error whether or not it terminates.
- B is wrong: Error messages can be customised regardless of the termination strategy.
- C is correct: Workflow termination wastes completed work. The other 4 subagents may have produced valuable partial results that could be used in the synthesis.
- D is wrong: Independent restart is possible with structured error propagation, but that is the solution, not the cost of termination.
Question 4
Section titled “Question 4”A subagent searches an academic database and returns zero results. Should the coordinator retry this search?
- A. It depends: no matches needs no retry, a failed connection does
- B. Yes, always retry zero-result searches in case of intermittent connectivity
- C. No, zero results means the data does not exist and retrying would waste time
- D. Yes, but only with modified search parameters to broaden the query
Answer & explanation
Correct: A
- A is correct: The critical distinction is access failure vs valid empty result. Access failure (could not reach source) warrants retry. Valid empty result (reached source, no matches) IS the answer.
- B is wrong: If the query executed successfully and genuinely found no matches, retrying wastes time on a query that will always return nothing.
- C is wrong: Zero results from a failed connection is not the same as zero results from a successful query. The coordinator needs to know which one occurred.
- D is wrong: Broadening the query might be appropriate for an access failure, but if the original query executed and found nothing, the results are valid.
Question 5
Section titled “Question 5”A synthesis agent combines findings from three research subagents. One subagent failed to retrieve journal articles on geothermal energy. The synthesis report covers solar and wind energy thoroughly but does not mention geothermal. What is the correct approach?
- A. The report is acceptable — if the data was unavailable, the topic should be excluded
- B. Delay the report until the geothermal research can be completed
- C. Add a coverage annotation noting that the geothermal section is limited here
- D. Estimate geothermal findings based on the solar and wind data as a reasonable proxy
Answer & explanation
Correct: C
- A is wrong: Silently omitting the topic makes the gap invisible. A reader would assume geothermal was not relevant, not that the source was unavailable.
- B is wrong: Delaying the entire report for one failed section is disproportionate, similar to the workflow termination anti-pattern.
- C is correct: Coverage annotations explicitly note which areas have gaps and why. This transparency lets the consumer know what the report covers fully and where there are known limitations.
- D is wrong: Fabricating findings based on proxy data produces unreliable content. The correct approach is transparency about the gap.