Skip to content

Manager-worker, sequential, peer and consensus patterns; compare with one agent

14 min reading

Compare hierarchy, sequential pipelines and peer coordination against a one-agent baseline.

Page details

GenAI · Lesson 26 of 45 · 4 / 4.1

Sources · 14 min reading · 30 min with practice

Published · Last edited:

More
20px

Progress is saved in this browser when storage is available.

View guided paths and progress

Know first: Bounded SQL analyst: query corrections, anomaly interpretation and visualization. Optional help: GenAI foundations.

Optional background references

Hypothetical scenario. Northwind’s bounded analyst has a clear execution owner. Maya proposes separate evidence, analysis and review agents. Dev sketches several coordination patterns, while Priya asks which new responsibility each actor would own.

Maya: “Would specialists help us inspect the result?”

Dev: “We could delegate under a manager, use sequential stages or exchange peer proposals.”

Priya: “Compare those arrangements with the same task handled by one bounded agent.”

You will compare manager-worker, sequential and peer coordination, then distinguish agreement from independent verification. Account for artifact versions, latency and total work before treating additional actors as an improvement.

Which decision needs a separate actor?

A manager-worker hierarchy gives one actor responsibility for delegation and collection. A sequential pipeline passes a versioned artifact through ordered stages. Peer-to-peer coordination lets actors exchange proposals without assuming a central planner, but still needs ownership and a termination rule. Consensus on a generated claim is not independent factual verification, and using several agents does not implement a distributed consensus protocol automatically.

Hypothetical scenario. Three specialists each produce two proposals: 3 × 2 = 6 artifacts. A reviewer must select or reject specific artifact versions rather than approve “the team's answer.” If a single agent can perform the same six bounded steps with adequate isolation and acceptance evidence, the hierarchy has not yet earned its coordination overhead. Compare failure recovery and observable outcomes under equivalent budgets.

The specialists disagree about the same order

Northwind assigns one investigator to shipment evidence, another to policy applicability and a third to drafting the customer response. Each produces a plausible result. The shipment investigator uses the latest order revision, while the policy investigator uses an earlier snapshot. The final writer combines them into a recommendation that no participant actually checked as a whole.

Splitting work can make expertise and evaluation boundaries clearer, but it creates a new task: decide which intermediate artifacts can be combined. A coordinator needs the identity and revision of the shared subject, the contract for each participant and the rule for accepting a final result. Without those, parallel work can increase disagreement while making its origin harder to inspect.

Assign one owner before adding more agents

Hypothetical scenario. A manager asks two specialists to assess the same proposed refund. Their replies are recommendations, not two independent refund grants. One workflow authority owns the accepted decision, approval and protected operation identity.

Assign one owner before adding more agents
ArtifactConcrete evidenceDecision boundary
Work assignmenttask, role, input revisionBounded responsibility
Recommendationevidence refs, proposal, uncertaintyUncommitted result
Decision recordowner, accepted artifact, approvalOne authority
Bounded subtask: Manager / task owner → Specialist A.Bounded subtask: Manager / task owner → Specialist A. Manager / task owner to Specialist A: bounded subtask; Manager / task owner to Specialist B: bounded subtask; Specialist A to Manager / task owner: recommendation; Specialist B to Manager / task owner: recommendation.Manager / task ownerSpecialist ASpecialist Bbounded subtaskbounded subtaskrecommendationrecommendation
Bounded subtask: Manager / task owner → Specialist A. Enlarge the diagram to inspect its labels; the surrounding records and explanation give the text alternative.

Sequential roles can clarify handoffs; peer discussion can provide alternatives; additional agents also add latency, contradictory state and repeated work. Agreement among agents sharing a model and evidence is not independent factual confirmation or distributed consensus. Compare with one agent using the same task cases, evidence and total work budget. Record which disagreement needs human review rather than allowing an open-ended debate to determine authority.

Why role prompts do not establish ownership

A prompt saying “you are the reviewer” describes an intended responsibility. It does not prevent another participant from changing the artifact, establish who can publish it or define what happens when two reviewers disagree. Those are application rules that must survive the model's wording.

Give each participant a bounded input and a result contract. A shipment investigator can return source references and observed status for a specific order revision. A policy investigator can identify applicable clauses with qualifications. A final assembler can produce a candidate recommendation while a separate acceptance step checks cross-artifact consistency. Avoid granting every participant the same broad write tools merely because they share a task.

Choose the coordination structure deliberately

LangChain's multi-agent documentation describes several orchestration patterns, including subagents and handoffs. These provide implementation choices for delegation and control transfer. The application still defines what is delegated, which state travels with it and which actor retains authority over the final effect.

A supervisor can own the task while calling narrow specialists. A handoff can transfer the active interaction to a participant with a different role. A fixed workflow can run known subtasks without asking a model to allocate them dynamically. Choose among those shapes based on the real need for changing responsibility, not on the number of agents that makes a diagram look sophisticated.

Separate the communication topology from the authority topology. Several participants can exchange observations while only one service can authorize publication. Conversely, independent approval domains might require decisions from different people or systems. The fact that messages can flow between agents says nothing about whether their authority should be pooled.

Fan out work, then inspect the join

Follow the decision boundaries

Multi-Agent Coordination: Separate Responsibilities, Explicit OwnershipOne task owner delegates to specialists. Evidence or conflict returns to a join that validates the complete artifact.Task ownerSpecialistsEvidence or conflictValidated join

The join checks whether the results concern the same task revision and satisfy their individual contracts. It can return a conflict rather than forcing a merged answer. Make the coordinator's acceptance criteria inspectable so failures can be attributed to a participant, a missing dependency or the combination rule.

Derive latency and total work separately

Hypothetical scenario. Assign chosen durations of six seconds to shipment inspection, eight seconds to policy inspection and four seconds to a stock check. A final merge and validation step takes three seconds. Assume the three inspections are independent, can start together and have sufficient resources.

In a serial schedule, the accounted duration is 6 + 8 + 4 + 3 = 21 seconds. In the selected parallel schedule, the longest inspection determines the join time: max(6, 8, 4) = 8 seconds. Adding the merge gives 8 + 3 = 11 seconds. The difference is 21 − 11 = 10 seconds of critical-path time under these assumptions.

The inspection work remains 6 + 8 + 4 = 18 participant-seconds in either schedule. With the three-second merge, accounted work is 21 participant-seconds. Parallelism changes when work happens and how many resources are occupied together; it does not make the three inspections disappear. A system with insufficient concurrency can queue tasks and fail to realize the toy 11-second schedule.

Suppose the coordinator also invokes a verifier for every pair of three specialist results. The number of distinct pairs is 3 × 2 / 2 = 3. If each comparison is assigned one second of serial work, verification adds three seconds. Decide whether these comparisons catch a meaningful class of inconsistency before adding them; more review calls can consume resources while repeating the same blind spots.

A handoff should transfer an explicit task record

For Northwind, a handoff can carry the order identity, selected revision, current question, authorized scope, evidence references and remaining budget. The receiving participant should know whether it is allowed to investigate, draft, approve or execute. A large transcript alone leaves those responsibilities implicit.

Version the intermediate artifacts so a coordinator can detect that one participant worked on an older subject. If the order changes, determine which results remain valid. A stock observation may need refreshing while a general policy explanation remains useful. Recomputing everything is simple but potentially wasteful; accepting everything is cheaper but can produce an incoherent decision.

Keep action identity at the effect boundary. Two participants must not independently publish the same logical correction just because each believes it is finishing its own subtask. A single publication owner or an authoritative conditional transition can define who is allowed to act on the accepted final artifact.

In the wild: documented orchestration alternatives

The official LangChain multi-agent guide provides concrete patterns for delegating work and handing off control. Its significance is that these patterns have different state and routing implications. It is not evidence that a larger agent team necessarily outperforms a simpler workflow on Northwind's task.

The order investigation is hypothetical. Evaluate a proposed decomposition against a single-agent or prescribed-workflow baseline using the same cases. Inspect correct completion, unnecessary calls, evidence consistency and unauthorized effects. A framework's support for several patterns makes comparison possible; it does not select the winning design for the application.

Several reviewers can share one failure

Giving three models different role descriptions does not guarantee independent errors. They can share the same missing evidence, misleading source or ambiguous instruction. Agreement is useful only in relation to the task and the sources that produced it. Preserve provenance so agreement over one copied assertion is not counted as several independent confirmations.

Some responsibilities are better implemented as ordinary services. A deterministic schema validator, current permission lookup or arithmetic check need not become a simulated persona. Use model calls where flexible interpretation is useful, and retain deterministic checks for conditions the application can specify directly.

Disagreement can be a valuable output. A coordinator can return the unresolved question, conflicting evidence and the decision needed from Priya. That is more honest than asking another unconstrained model to produce a fluent compromise whose source basis nobody can inspect.

Split where responsibility becomes clearer

Consider multiple participants when tasks have distinct context needs, tool scopes or evaluators, or when independent work can use parallel resources productively. Keep one workflow when the decomposition mostly repeats the same context and creates expensive communication. The unit of specialization should correspond to a testable responsibility.

Account for maintenance as well as inference. Every participant adds instructions, interface contracts and failure cases that can change independently. A small, explicit delegation can improve clarity. An elaborate hierarchy can make ownership ambiguous and incident diagnosis harder, especially if intermediate artifacts are only unstructured messages.

Claims the topology cannot support

More agents provide more reliable judgment. Reliability depends on their evidence, errors, verification and coordination. Headcount alone is not an evaluation.

The supervisor owns every permission. Delegation should pass a defined scope, not automatically pool all credentials.

A parallel response is cheaper because it is faster. Critical-path latency and total resource consumption are separate measurements.

Make each intermediate artifact independently reviewable

A useful delegation result should be understandable without access to the participant's entire internal conversation. State the question answered, subject identity, evidence used, applicable revision and unresolved conditions. The coordinator can then inspect whether the artifact fits the task it is assembling.

Suppose the shipment specialist reports a delivered package while the policy specialist reports that the same order is still awaiting shipment. The join should expose that disagreement and compare their source revisions. Asking the writer to blend both statements into a polished response would hide the conflict rather than resolve it.

Keep the participant's confidence separate from its authority. An investigator may be highly certain about a fact while lacking permission to disclose it to the current customer. The coordinator needs both the evidentiary and access context before using that fact. A broad shared scratchpad can make this separation harder if participants copy restricted material into a common space without scope information.

For an initial rollout, use the smallest decomposition that exposes a real responsibility. Add a specialist only when its input, output and evaluator can be stated clearly. This creates a reviewable reason for the extra component and a way to remove it if it adds cost without improving the task.

Evaluation should also include a missing participant result. A coordinator that only succeeds when every branch responds has a different availability contract from one that can return an explicitly partial recommendation. Decide which outputs are mandatory and which are optional before measuring a join as successful.

The assumptions behind the comparison

The timing calculation assumes independent inspections, immediate concurrent admission and fixed durations. Real tasks can share dependencies or have variable costs. Orchestration frameworks organize execution without proving artifact consistency, independent reasoning or correct authority. Assess the complete decomposition against a simpler baseline, including communication overhead and unresolved cases, before treating additional participants as an improvement.

Test the work assignment boundary

Three agents agree on a statement from one wrong source. Is that three confirmations?

Reveal the design reasoning

No. They share the same evidence failure. Inspect source provenance and correlated errors; use independent checks where required. Voting does not establish permission or truth.

Decision: Add an actor only for a measurable benefit and assign final ownership explicitly.

Review the proposed team

The three inspections run in parallel. Why does the example still account for 21 participant-seconds?

The inspection work totals 18 seconds across participants, and the merge adds three. Concurrency shortens the critical path to 11 seconds under the chosen assumptions; it does not remove the work or its resource cost.

Two specialists agree, but both copied the same obsolete source. Does agreement resolve the question?

No. Their agreement shares the same evidence failure. Check the source revision and refresh the relevant artifacts. Independent participants are not automatically independent observations.

Who should publish when several agents contribute to the recommendation?

The application must define an authoritative owner or conditional publication transition. Contributors can supply artifacts without receiving publication authority. Bind the accepted result, action identity and current authorization before creating the external effect.

Northwind decision log

  1. Give each participant an inspectable input and result contract.
  2. Validate subject revisions and evidence at the coordination join.
  3. Assign publication authority independently from message topology.

Go deeper: supporting mechanisms

Related: Agentic systems · Retries and tool outcomes.

Check the mechanism in this lesson

If three agents agree, may the reviewer skip checking their shared source?

Compare the explanation

No. They may repeat the same mistaken or unauthorized evidence. Agreement among generated proposals is not independent verification. Evaluate source identity and the specific artifact version selected for acceptance.

Carry the decision forward

If Northwind splits work, it must transfer more than conversation. Page 27 examines shared state and event transports, keeping delivery records separate from durable task ownership.