Free self-study · No account needed · Progress stays in this browser. Back it up before clearing site data or changing devices.

← Week 13: Multi-Agent Architecture

Week 13 / Lesson 3

Resolving disagreement with evidence

Identify correlated mistakes and test competing conclusions.

Section 3.1 1 of 7

Overview

Focus

Identify correlated mistakes and test competing conclusions.

Your route through the lesson

  • 3.2 Agreement and shared assumptions
  • 3.3 Verifier independence and source evidence
  • 3.4 Comparing team and individual failures
  • 3.5 Put it into practice
  • 3.6 Guided comparison
  • 3.7 Three agents sharing one mistaken assumption

All required teaching is included here. Review selections are saved. Choose a correct answer for every question to continue; retries are unlimited. Study time and personal notes are optional.

Section 3.2 2 of 7

Agreement and shared assumptions

Focus

Identify correlated agreement by tracing shared assumptions to their source.

Agreement is useful evidence only in relation to how conclusions were produced. Three agents can repeat one wrong assumption because they read the same summary, use the same prompt, or inherit the same incomplete data. These are correlated errors: the failures are linked rather than independent draws. A majority vote counts conclusions but does not inspect those dependencies.

Consider a ledger with paid amounts 12 and 5 and a pending amount 7. Asked for collected revenue, two agents report 24 and one reports 17. If the majority treated pending as collected, their agreement amplifies the same category mistake. Repeating the question to those agents may reproduce 24 with greater confidence. The discriminating question is whether pending amounts belong in the requested total.

Record assumptions alongside answers: included statuses, currency, date range, and source version. This makes disagreement actionable. If one agent uses calendar-month data and another uses the last thirty days, an arithmetic comparison alone will not resolve the difference. First determine the required meaning. Then calculate from the appropriate source records. Unresolved definitions should remain visible instead of being erased by a vote.

// Quick review

Check your understanding.

Choose an answer for immediate feedback. Retry freely; a correct answer for every question unlocks the next section.

1. Two agents include pending 7 with paid 12 and 5; one excludes it. Collected revenue?
2. Three agents use the same incorrect summary. What does their agreement establish?
3. Two reports use different date windows. What must be settled before comparing totals?

Section 3.3 3 of 7

Verifier independence and source evidence

Focus

Design a verifier that can falsify competing claims using original evidence.

A verifier needs access to evidence and a check capable of producing a different answer. Asking an agent to endorse another agent's conclusion encourages explanation without independent measurement. Stronger verification reconstructs the result from raw records, applies a different calculation, or checks a predicted consequence that separates the alternatives.

For the paid-ledger disagreement, the verifier reads each original status and amount. It filters status equal to paid, yielding 12 and 5, then sums to 17. The competing total 24 differs by exactly the pending amount 7, which explains the failure mechanism. This is more informative than merely marking 24 wrong: it identifies the assumption to repair.

Independence is a matter of method and evidence, not simply using another model name. A second model given only the first model's summary lacks the missing raw records. A simple deterministic calculation can be more independent for arithmetic than a second fluent explanation. Verification also has limits. If original records are inconsistent or missing, the verifier should report which claims remain unresolved and what additional observation would distinguish them.

// Quick review

Check your understanding.

Choose an answer for immediate feedback. Retry freely; a correct answer for every question unlocks the next section.

1. Which check best separates totals 17 and 24 for paid 12, paid 5, pending 7?
2. A different model sees only a producer summary. Is its review independent of summary errors?
3. A ledger lacks status for one row. What should a verifier report?

Section 3.4 4 of 7

Comparing team and individual failures

Focus

Compare team and individual failures using case-level outcomes and failure causes.

A useful comparison records outcomes per case rather than reporting only an overall score. Suppose a single agent fails invoices B and D, while a team fails D and F. Both solve four of six, but the team fixes B and introduces F. Case D is a shared weakness. The identical totals hide these important differences.

For each case record the expected result, actual result, evidence inspected, calls, and failure category. Distinguish extraction, arithmetic, missing authorization, stale input, and unresolved specification. A team might improve extraction yet worsen integration. That diagnosis supports changing a boundary or verifier rather than simply adding another worker.

Compare under the same task definitions, inputs, and permitted tools. If the team receives cleaner data or more retries, the comparison mixes architecture with resources. Report that difference explicitly. Small fixed fixtures establish concrete behavior and reveal mechanisms; they do not estimate performance for every future task. With a real model, variability across repeated runs becomes another measured dimension. A deterministic fixture has no sampling variation but can still have narrow coverage and a misleading task distribution.

// Quick review

Check your understanding.

Choose an answer for immediate feedback. Retry freely; a correct answer for every question unlocks the next section.

1. Single fails B,D; team fails D,F across six cases. What does equal 4/6 hide?
2. Team gets five retries while baseline gets one. What must the report disclose?
3. A deterministic fixture has repeatable outputs. Does that establish broad task coverage?

Section 3.5 5 of 7

Put it into practice

Focus

Run a raw-evidence disagreement check and explain the category mistake.

Download week13.py, save it in an exercise folder, and run python week13.py --lesson 3. This standard-library, processor-only practice uses three fictitious rows and should complete within seconds. It sends no messages, contacts no service, and executes no generated code. The single practice is to inspect the reported totals and identify why the majority is wrong.

The rows are Python dictionaries, each containing amount and status. The expression sum(row['amount'] for row in rows if row['status'] == 'paid') uses a generator expression: it supplies matching amounts one at a time to sum. The if clause filters before addition. Equality uses ==; assignment uses =. Here the filter supplies 12 and 5, producing 17.

The reports dictionary deliberately contains agent_a=24, agent_b=17, and agent_c=24. Another generator counts how many reports equal 24. It confirms a majority of two while the independent source check confirms 17. The output names the pending amount 7 as the explanation. These fixture agents are named reports, not actual model invocations. Passing demonstrates the evidence-based resolver's logic for the supplied ledger, not a measured ability of live agents to resist correlated mistakes.

Download this week’s Python lab ↓

// Quick review

Check your understanding.

Choose an answer for immediate feedback. Retry freely; a correct answer for every question unlocks the next section.

1. What does if row["status"] == "paid" do before sum?
2. Reports are 24,17,24 while paid rows total 17. How many reports are correct?
3. A script contains named reports but makes no model calls. What claim is supported?

Section 3.6 6 of 7

Guided comparison

Focus

Trace the completed resolver from raw rows to a bounded conclusion.

The worked resolver first identifies the requested quantity: collected revenue, represented here by status paid. It does not begin by choosing the most common report. Filtering removes the pending row, leaving amounts 12 and 5. Addition produces 17. Comparing 24 with 17 yields a difference of 7, exactly the pending amount. This alignment supports a specific explanation: the majority included a row outside the requested category.

The conclusion remains bounded to the fixture definitions. Real collected revenue may require refunds, settlement dates, or multiple currencies. A verifier should not silently assume the classroom ledger models every accounting rule. If a new requirement asks for booked revenue rather than collected revenue, the inclusion rule may change and should be stated before calculation.

An evidence record can preserve both reports, the source version, the filtering rule, and the recomputed result. Keeping disagreement visible helps diagnose correlated failure later. Erasing the incorrect reports after resolution would hide whether two workers repeatedly make the same mistake. The manager can use that diagnosis to change task wording, supply a required status definition, or add a paid-only check, then evaluate the revised arrangement on new cases.

// Quick review

Check your understanding.

Choose an answer for immediate feedback. Retry freely; a correct answer for every question unlocks the next section.

1. The difference between disputed totals is exactly pending amount 7. What does that support?
2. A new request asks for booked rather than collected revenue. What should happen first?
3. Why retain rejected reports in the evidence record?

Section 3.7 7 of 7

Three agents sharing one mistaken assumption

Focus

Resolve a shared mistaken assumption without treating unanimity as independent proof.

Three agents recommend deleting all events older than thirty days. They agree because each received a summary saying the retention period is thirty days. The original policy actually requires ninety days for one regulated project. Unanimity therefore reflects a shared summary error, and executing the deletion would create an irreversible consequence from unverified evidence.

In the worked resolution, the verifier reads the original project-specific policy, identifies the ninety-day exception, and checks the proposed event dates against that rule. Events aged forty days remain required for that project. The manager rejects the proposed deletion and preserves the conflict: general thirty-day policy versus project-specific ninety-day requirement. The control at the executor should also require the exact project and permitted date range before any real deletion.

This example extends the ledger mechanism to authority. A team can agree about facts yet lack permission to act, or agree about a permission that does not apply to the project. Verification must inspect both the factual predicate and authorization scope. If the original policy cannot be located, the supported result is unresolved permission, not permission inferred from consensus. More agents repeating an unavailable policy do not create the missing authority.

// Quick review

Check your understanding.

Choose an answer for immediate feedback. Retry freely; a correct answer for every question unlocks the next section.

1. Three agents use a thirty-day summary; original project policy says ninety days. Delete forty-day events?
2. Agents agree deletion is useful but no applicable permission is available. What follows?
3. A worker proposes deleting project-specific events older than a cutoff. Which executor check limits the retention action?

Your personal notes

Optional, ungraded, and saved only in this browser. Export a backup from the Academy homepage to keep them.

References and further reading
Ask your own AI assistant

Copy this prompt into an assistant you already use. Nothing is sent automatically, and your personal notes are not included.

Next lesson: Scheduling a durable task graph →