PUBLIC BETA OFFER

Save 50% off on an Eligible Learning PlanValid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026

Orchestrate multi-agent systems with coordinator-subagent patterns

Coordinate bounded workers with coverage maps, traceable findings, and honest synthesis.

Explore how a coordinator assigns specialists, passes explicit context, and checks coverage across independent investigations. A batch-versus-streaming comparison shows how missing cost evidence limits the overall recommendation while preserving supported findings.

Knowledge domain
Agentic Architecture & Orchestration
Topics & tags
Published
Author
LearningPathX Editorial TeamContent version 1.0
Resources

Orchestrate multi-agent systems with coordinator-subagent patterns

Learning objectives

By the end of this topic, you should be able to:

  • Assign coordination, investigation and synthesis responsibilities without losing task coverage.
  • Supply sufficient context to isolated workers and preserve access boundaries.
  • Choose workers from the actual question, partition independent work and refine unresolved findings.
  • Design observable handoffs that distinguish evidence, failure and completion.

Keep one authoritative coordination state

In a hub-and-spoke design, a coordinator owns the overall question, task plan, worker assignments and final synthesis. Workers investigate bounded parts of the problem and report results to that coordinator. A worker's final summary is an input to the synthesis, not automatic approval of the system's answer.

Central routing gives the coordinator one place to identify missing work, apply common error handling and track resource use. It does not require every tool result to be copied into the coordinator's conversation. A worker can persist detailed evidence in an authorized artifact store and return a concise finding plus a resolvable reference.

The topology is a design choice. A system with direct peer discussion and shared task lists has different coordination requirements from workers reporting only to a caller. Do not add peer-to-peer messages to a deliberately centralized workflow without updating ownership, observability and information-flow controls. MCP can expose external tools to either pattern, but delegation itself is not inherently an MCP operation. The supplied comparison describes agent teams as fully independent Claude Code sessions, each with its own context window. That comparison presents caller-managed subagents as suited to focused tasks where only the returned result matters, with the main agent managing the work. It presents teams as suited to complex work requiring discussion and collaboration, with teammates coordinating through their messages and shared task list. In that comparison, caller-managed subagents have lower token cost because results are summarized back to the main context, whereas teams have higher cost because each teammate is a separate Claude instance. These are source-scoped relative claims, not measurements in this lesson or universal cost guarantees; evaluate total actual worker, coordinator, tool and retry effort against the required output quality.

Isolation requires an explicit task packet

A fresh worker context should not be assumed to contain the coordinator's conversation, earlier tool results or unstated decisions. Supply the objective, relevant facts, source locations, governing versions, constraints and expected output. Project instructions or tool definitions may be provided by the configured harness; they do not imply that all parent history is available.

A fork is a different mechanism: it starts from a snapshot of an existing session. That can preserve a useful analysis baseline, but it also carries the history and assumptions in that snapshot. State which invocation mechanism the design uses rather than claiming that every kind of subagent starts with no history.

Context separation is not a complete security sandbox. A worker may still have access to shared files or tools through the execution environment. Enforce read-only or restricted access in the actual tool configuration and permissions. Give each worker only capabilities needed for its assignment and within the authority delegated by the parent.

Decompose for coverage rather than worker count

Start from the question's acceptance criteria. If a design comparison requires latency, recovery and operating-cost evidence, create a coverage map for those three dimensions before allocating work. Assign an owner to every required dimension and retain cross-cutting questions for synthesis.

Overly narrow assignments can produce individually excellent answers that collectively miss the question. Conversely, sending the same vague research request to several workers may duplicate effort. Both failures arise from an inadequate plan. Specify what each worker should investigate, what it should exclude, what dependencies it has and which uncertainties it must report.

The coordinator remains responsible for checking interactions between partitions. A latency recommendation may depend on a recovery assumption discovered by another worker. Separate investigation does not justify separate, incompatible definitions in the final answer.

Select the necessary specialists dynamically

The coordinator should analyze the actual request before invoking workers. A known fact may need one direct lookup rather than an entire agent pipeline. A broader comparison can justify independent investigations; an unresolved dependency may require a sequential handoff.

Worker names, model identifiers and tool permissions are deployment settings. Select them from the application's available definitions. A larger worker count or more expensive coordinator is not evidence of better coverage. Evaluate whether delegation improves the accepted outcome enough to justify additional coordination, latency and cost.

Independent investigations may run concurrently. Their elapsed time includes scheduling, execution, waiting and synthesis; it is not automatically just the duration of the slowest worker. Shared rate limits, contention or dependencies can change the result. Similarly, shorter summaries in the parent context do not mean that worker tokens were free. To interpret the source's slowest-worker comparison, hold the independent subtasks and acceptance criteria constant and assume they start together without queueing or resource contention. Under that idealization, the worker-execution phase takes the longest worker duration rather than the sum of their separate durations. This phase comparison is not a measured end-to-end saving or proof of output quality: failed or missing required findings remain unresolved, and actual waiting and retries still count.

Partition evidence and preserve usable references

Scope can be partitioned by subquestion, source family, system component or evaluation criterion. State the shared definitions and reporting period so that findings remain comparable. Keep a source inventory to reveal both duplicate searches and areas nobody investigated.

A useful worker return contains a claim, supporting source and location, relevant conditions, unresolved questions and a status. Retain detailed artifacts when compressing them into a summary. A path alone is inadequate if the coordinator cannot open the artifact, lacks authorization or cannot identify the version used.

For an access failure or a resumed handoff, retain the needed non-secret workspace/project, account and worker identities with the artifact locator, version and observed error. If credentials are relevant, retain only the credential identifier or an approved secret-store reference. Keep API keys, tokens, passwords and other secret values out of prompts, logs and handoffs. Sharing a tool definition or configuration does not by itself authorize sharing or using credentials, and knowing a locator or secret reference does not authorize access. Use the intended authorized context, or report the specific blocked state without silently switching accounts or expanding permissions.

Minimize needless copying of sensitive material between contexts. Pass only authorized information required for the task. A source document's instructions to disclose unrelated data do not acquire authority because a worker repeats them in a report.

Evaluate the synthesis and repair specific gaps

After aggregation, compare the draft with the original coverage map. A missing recovery condition calls for a targeted investigation, not a rerun of every successful worker. Ask the relevant specialist a question that identifies the disputed claim, available evidence and required correction.

An evaluator-optimizer loop is useful when there are clear criteria and feedback can produce a meaningful improvement. Check whether revisions actually resolve the gap and preserve supported findings. Repeated agreement among generated summaries is not independent validation.

Stop when the criteria are met or when the remaining issue requires missing evidence, access or a responsible human decision. Keep explicit resource limits, but distinguish budget exhaustion from successful completion. Persist the checked plan and findings before replacing an overflowing context with a fresh worker.

Make failures and accounting visible

Use task identifiers and explicit states such as pending, running, completed, failed or blocked. A completed worker must provide the required artifact and evidence; an empty response is not a successful finding. The coordinator should preserve the failure category and unresolved scope instead of converting a timeout into an empty but apparently complete report.

Asynchronous queues and receipts can support long-running or variable-latency work. Use stable task identifiers, inspect whether an operation already completed before retrying, and avoid replaying dependent or side-effecting work blindly. A synchronous sequence remains a valid option when its dependencies and recovery requirements are adequately controlled.

Account for actual consumed resources, including unsuccessful attempts. Reserving a budget before dispatch and reconciling it afterward can prevent oversubscription, but a failure does not imply that the attempt consumed nothing. Keep token counts, elapsed time and monetary cost in their own units.

Worked example: repairing an incomplete comparison

In this invented internal evaluation, the question is whether a reporting service should retain batch processing or introduce streaming. The agreed criteria are reporting latency, recovery behavior and operating cost. Source A describes observed latency; Source B describes replay and recovery. No supported cost record is available.

An initial plan assigns two workers only to latency. The coordinator detects that the coverage is incomplete and revises the plan:

Criterion Assignment and available evidence Honest result status
Reporting latency Latency analyst inspects Source A and records its measurement conditions. Supported only for the documented workload.
Recovery behavior Reliability analyst inspects Source B and preserves replay limitations. Supported within that source's stated configuration.
Operating cost Coordinator requests an approved cost record from its owner. Blocked by missing evidence; no cost winner selected.

A suitable reliability task packet says: "Read Source B, revision 2, recovery section. Compare the documented batch and streaming recovery paths. Do not modify files. Return each claim with its source location, conditions and unresolved questions. Exclude latency and cost conclusions."

A supported synthesis is: "The supplied records support a conditional latency and recovery comparison. Operating-cost evidence is missing, so this packet does not establish an overall preferred design. Obtain the cost record and reassess the combined criteria."

The coordinator can accept the checked investigations while holding the overall recommendation. This example demonstrates coverage and handoff design; it does not report a live multi-agent run or measured product performance.

Define the actual integration before dispatch

A coordinator is a large language model (LLM) used inside an application. The application starts workers and enforces their executable boundaries; a proposed model tool call is not an already running worker. MCP means Model Context Protocol. A deployment can expose worker operations as MCP tools, or use another supported model-tool/application interface. The architecture does not require every delegation to pass through MCP.

For the MCP wrapper described in the supplied source, the server declares its tools capability and answers tools/list with the tools actually available to the requesting client. Authentication and environment can change that set. Stable, deterministic ordering of an unchanged catalog can improve cache stability; it neither promises a cache hit nor establishes that a cached catalog or returned fact is current.

Use list-change notifications only when actually supported by the server. If a previously listed worker tool is removed or an invocation returns an unavailable-tool error, retain that observed error, refresh the supported catalog, and select a permitted available alternative. The source's InvalidRequest example is not a claim that every server uses that exact code. Do not fabricate a worker result for a tool that was never dispatched.

Worker definitions need an actual supported mechanism for the role's name and capability description, its own prompt, chosen model and effective tool permissions. The supplied source mixes an mcpServers launch configuration with conceptual subagents, system_prompt and inherit_claude_md keys. A JSON-shaped example does not establish that those keys are valid in a deployed host. In particular, listing external servers does not by itself assign a worker's read-only/no-network permissions or validate startup inheritance. Verify the host's real definition mechanism before treating that sketch as executable configuration. Within the supplied bundle, the Dxx domain knowledge files are the primary factual sources, including when glossary content conflicts; glossary entries support terminology. An anchor_candidate flag only marks an entry for a downstream candidate pool, and a derived quality_summary is a preflight summary; neither certifies a supported host configuration or successful execution.

The source's model strings, including older Sonnet and Haiku examples and a later claude-sonnet-4-6 example, belong to their respective source snapshots. The text also suggests Opus/Haiku routing in an evaluation workflow. These are alternative design examples; they do not verify present availability, current price, latency or a universally best routing policy. Select from the models and quality/resource constraints actually supported by the deployment.

Separate startup context, selection and permission

The supplied snapshot says built-in Explore and Plan workers skip CLAUDE.md files and the parent's git status, while custom workers load those project resources by default. That is a source-described worker-type/release behavior requiring confirmation for the deployed definition. Loading a project instruction file is different from copying every parent turn, earlier result or current discovery. In the supplied terminology, CLAUDE.md files are persistent instruction sets for coding standards, architectural guidance and personal preferences across sessions.

A fresh worker receives its own prompt, explicit task message and whatever startup environment the actual harness supplies. Reusing its definition does not restore its previous invocation's conversation. A supported fork copies a baseline at its creation point; a supported resume explicitly restores an identified saved context. Neither should be inferred from calling the same worker name again.

Another source-specific startup claim concerns the named-agent discovery list: the snapshot ties automatic first-turn injection to a fresh worker with SendMessage in the described Claude Code v2.1.206-or-later interface, and treats forks differently. This is discovery context, not permission to message peers. If a list is absent, inspect the actual version, invocation mode and capability rather than inventing a list or assuming a single root cause. A centralized workflow can still prohibit peer communication even when a messaging tool exists.

Three selection mechanisms have different scopes in the source description:

Mechanism Scope and evidence needed
Naming a worker in ordinary prompt text A routing signal; inspect whether the intended worker was actually invoked.
Selecting a worker through a supported UI @ selection A one-task selection in that interface; typed text alone is not proof the UI selection occurred.
A supported --agent flag or session agent setting Session-wide prompt, model and tool configuration; this differs from selecting one worker task.

Capability availability, preapproval and the actual permission decision are also separate. In the supplied Agent SDK description, allowedTools can preapprove Agent; another configuration can route a proposed call through canUseTool, while a mode such as dontAsk can deny a call needing approval. Absence from preapproval therefore proves neither universal denial nor permission. A correct capability description helps routing, but cannot grant access. Diagnose a description/task mismatch separately from a recorded callback or permission-mode rejection. CLI means Command Line Interface; that expansion alone does not establish support for any shown flag, worker setting or UI selection.

Make the delegation contract and bounded loop explicit

The source shows two inconsistent request sketches: one requires task_objective and required_output_format, with a max_turns default annotation of 5; another requires objective and limit but omits the output-format field. A real application must choose and honor one coherent contract. For this teaching design, choose the first contract:

{"task_objective":"Inspect Source B revision 2 for the documented recovery paths.","required_output_format":"Return status, claims with source locations, and unresolved questions.","max_turns":5}

In this illustrative application contract, objective and output-format strings must be nonempty. A supplied limit must be a positive integer accepted by the application's configured bound. If omitted, the application explicitly assigns 5 before execution. Merely writing JSON Schema default: 5 does not fill a missing value at runtime. A limit of zero, a negative value, a fractional number or a string is rejected under this teaching contract, rather than silently becoming an unlimited loop.

For the teaching validator used here, fix the application policy ceiling at 20 worker-loop turns, inclusive. This is an editorial example, not a source-stated or SDK-wide maximum. One turn here means one iteration of the application loop below. The accepted limit is a finite numeric value representing a whole number of turns from 1 through 20. Do not round fractional values or coerce booleans, strings or null. A numeric JSON value such as 5.0 represents five whole turns under this chosen contract. Omission alone selects the default 5; an explicitly invalid value never selects that default.

The table isolates the limit-validation subdecision. The objective and output-format strings remain the nonempty values in the complete request above, and the policy ceiling is fixed at 20. Each row gives the complete presence/value input to this subdecision and its predicted static outcome. Apply this validation before the budget reservation or worker start in the pseudocode; passing the input gate is not worker completion.

Limit presence/value Expected limit-validation outcome
Key omitted Assign effective limit 5; the limit gate passes.
-1 Reject: below the inclusive lower bound.
0 Reject: below the inclusive lower bound; not an unlimited run.
1 Accept effective limit 1, the inclusive lower endpoint.
2 Accept effective limit 2, just above the lower endpoint.
5 Accept effective limit 5.
5.0 Accept effective limit 5 because the numeric value is integral; no rounding is performed.
19 Accept effective limit 19, just below the upper endpoint.
20 Accept effective limit 20, the inclusive upper endpoint.
21 Reject: above the inclusive policy ceiling.
2.5 Reject: a fractional turn limit is not an integer.
"5" Reject: a string is not a numeric limit; do not coerce it.
true Reject: a boolean is not an integer limit.
false Reject: a boolean is not an integer limit.
null Reject: explicit null is not omission and does not select the default.
[] Reject: an array is not a numeric limit.
{} Reject: an object is not a numeric limit.
1e999 Reject: the mathematical value exceeds 20; any nonfinite parser-overflow value must also be rejected, never coerced into an allowed limit.

Every rejected row stops before reservation or dispatch; no worker result or charge is invented from rejection. A malformed JSON document, such as the incomplete input {"max_turns":, or a request containing an unquoted NaN or Infinity token, is a parse error under a strict JSON contract before limit validation. These are inspectable static boundary judgments, not reports of running a host parser, SDK or worker.

The following is application-control pseudocode. It shows the missing loop and outcome branches without claiming a tested API/SDK implementation:

validate objective, required output and effective positive turn limit
check actual invocation permission and atomically reserve the defined budget
try:
    start a fresh worker history containing its own prompt and explicit task packet
    for each allowed worker turn:
        check interruption, actual resource allowance and relevant context capacity
        request a response using supported tool definitions and preserved history
        preserve the complete assistant response
        if the signal requests client tools:
            validate each requested operation and its authorization
            obtain a real result or explicit error for every request ID
            append the complete matched user tool-result message
        else if the signal is a supported server-tool continuation:
            retain the supported history and continue that server-managed flow
        else if the signal ends the model turn:
            validate the actual status, required output fields and evidence
            return a completed, blocked or invalid-output outcome as appropriate
        else:
            return the actual unexpected-stop/interruption outcome
    return an explicit turn-limit interruption with preserved findings and gaps
finally:
    reconcile known actual usage; keep unknown usage unresolved
    preserve actual task outcome, evidence and any unresolved accounting error

The finally path runs before every return or propagated exception after a successful reservation, including worker startup failure. It records actual incurred usage, retains unknown amounts and preserves the original outcome or error; a cleanup failure must remain visible and must not silently replace the original failure. This pseudocode does not claim persistence through a process crash.

The limit is checked in the execution path, not left as an unused function argument. If all five allowed turns are consumed without the required outcome, the returned status is interrupted with a turn-limit reason and remaining work. Text already produced does not turn it into completed research. A single asynchronous inference call can be useful for a single generation, but it is not this autonomous tool loop merely because the function is named spawn_subagent.

For example, this invented worker outcome preserves the exhausted bound:

{"task_id":"recovery-17","status":"interrupted","reason":"max_turns","max_turns":5,"turns_used":5,"partial_findings":["Source B was located."],"unresolved":["The replay condition has not been checked."]}

At the coordinator boundary, preserve its complete assistant delegation requests and return a correlated user tool_result for every requested worker. Include actual blocked, failed or interrupted worker outcomes. Then make the supported coordinator continuation and inspect the synthesis against the original coverage target. Collecting a list with asyncio.gather and returning that list is not, by itself, a completed coordinator synthesis. Likewise, a source comment associating stop_sequence with refusals does not make that signal a universal refusal classifier.

The following separate teaching exchange shows a partial failure among two requested workers; each outcome remains correlated:

[
  {"role":"assistant","content":[{"type":"tool_use","id":"w_latency","name":"delegate","input":{"task_objective":"Inspect latency in Source A.","required_output_format":"Return status and evidence.","max_turns":5}},{"type":"tool_use","id":"w_recovery","name":"delegate","input":{"task_objective":"Inspect replay in Source B.","required_output_format":"Return status and evidence.","max_turns":5}}]},
  {"role":"user","content":[{"type":"tool_result","tool_use_id":"w_latency","content":"{\"status\":\"completed\",\"evidence\":\"Source A latency section; documented workload only\"}"},{"type":"tool_result","tool_use_id":"w_recovery","content":"{\"status\":\"interrupted\",\"reason\":\"max_turns\",\"unresolved\":[\"replay condition not checked\"]}"}]}
]

A supported next synthesis reports the documented latency finding and retains recovery as unresolved; it does not claim a preferred overall design. The application continues the coordinator using these actual outcome types in the teaching contract and checks its returned answer. The exchange itself has not been executed against a live API.

Supply a packet that a fresh worker can actually use

This invented read-only task packet expands the authentication-module example. The locations and error text are teaching inputs, not findings from a live security review:

{
  "original_task":"Review the recent auth-service changes for supported security findings.",
  "worker_task":"Inspect the token validation path and report evidence-backed findings only.",
  "current_findings":["A parent check observed TokenValidationError in the supplied test output; its root cause is not established."],
  "decisions":["Keep the existing public API while investigating; do not change files."],
  "paths":["auth-service/src/auth/oauth2.py","auth-service/src/auth/tokens.py"],
  "error_details":"TokenValidationError in the provided authentication test output.",
  "sources":[{"name":"provided test output","location":"failure case token-validation-17"}],
  "access_constraints":["Read only the authorized supplied files and test output.","No writes or network access."],
  "expected_output":["status","vulnerabilities","severity","file_references","unresolved_questions"]
}

The error is an observation to investigate, not an established vulnerability or root cause. If a file cannot be opened, inspect its actual path and access as well as the packet's completeness. Do not assume every file-not-found result proves missing parent history.

Bound worker ingestion separately from its returned summary: use supported chunking or pagination, preserve relevant completed phases and check that each next input fits. Limit the returned output according to the actual contract, then check the coordinator's combined retained task state, all returned summaries and needed evidence. One worker's output cap cannot guarantee the aggregate fits. Before replacing context, persist the findings, decisions, source identities, limitations and unfinished work, and explicitly restore the relevant parts.

The source's 1,000–2,000-token summaries and tens-of-thousands-token explorations are examples of compression, not required exact lengths or free worker computation. Its example scales—one agent with 3–10 calls for a simple fact, 2–4 workers with 10–15 calls each for comparison, and more than ten for complex research—are task illustrations. The cited 3–5 concurrent workers, 3+ parallel tools and up-to-90% research-time reduction likewise belong to a reported scenario. They are not universal acceptance counts, measured results of this lesson, or guarantees of end-to-end savings or active human time saved.

Separately, the source reports a 90.2% improvement in an internal research evaluation using an Opus 4 lead with Sonnet 4 workers versus a single Opus 4. This is a different reported evaluation claim, qualified to that model/task/study context. It neither measures this project nor shows that adding workers always improves quality. The original referenced evaluation attachment has not been independently checked here.

Validate plans, prompt inputs and returned outcomes

Dynamic orchestrator-workers planning derives subtasks from the current objective and input. It need not predefine every future task. The source's line-oriented XML parser, however, is only a sketch: serialized newline/print strings are damaged, XML structure is not fully validated, and missing or empty descriptions can be skipped. Its fallback task type default is sample-local behavior, not a universal SDK default.

For an actual parser contract, validate structure and required meaningful fields before dispatch. An invented valid planning input might contain:

<tasks><task><type>recovery</type><description>Compare the documented replay paths in Source B revision 2.</description></task></tasks>

The expected static judgment is one meaningful recovery task. An unclosed tag is malformed; an empty description does not satisfy this contract. An empty task list needs an explicit decision about whether the original task can be answered directly or remains unplanned. It must not silently become successful worker execution. A deliberately permitted missing-type fallback must be documented by the application's own contract.

These concrete comparisons keep the same original request: compare the documented replay paths in Source B revision 2, which the existing context does not already answer. For this teaching parser contract, each task needs a nonempty type and description, and no missing-type fallback is enabled. A different application may deliberately document a fallback; it must not be inferred from this example. The outcomes below classify the input before worker dispatch.

Complete planning input Expected static outcome and next boundary
<tasks><task><type>recovery</type><description>Compare the documented replay paths in Source B revision 2.</description></task></tasks> One meaningful recovery task is planned. Access, budget and actual worker/result acceptance still require their own checks.
<tasks><task><type>recovery</type><description>Compare the documented replay paths in Source B revision 2.</description></task> Malformed XML: the closing </tasks> is missing. Reject before dispatch; do not silently repair the input or invent a worker result.
<tasks><task><type>recovery</type><description> </description></task></tasks> Well-formed XML but an invalid task: the description has no meaningful content. Reject before dispatch, rather than skip it and call the original request complete.
<tasks></tasks> Well-formed but empty plan. Under the stated still-unanswered original request, keep required work unplanned and repair the plan; no worker was executed. An already-supported direct answer would require a different established premise.
<tasks><task><description>Compare the documented replay paths in Source B revision 2.</description></task></tasks> Well-formed XML but a missing required type under this local no-fallback contract. Reject before dispatch; do not silently invent the sample's default type.

These are complete, inspectable correct/error inputs with predicted validation outcomes. They do not report execution of an XML parser, worker, model or SDK.

Prompt formatting has its own failure boundary. If a template requires task and source, supplying only task leaves source missing. The shown source _format_prompt catches the missing key and raises ValueError identifying the required variable. That is a formatting error before worker invocation; no response, charge or executed worker may be invented from it. Supply both the original task/context and worker-specific instructions using actual values.

The displayed FlexibleOrchestrator excerpt stores templates/model, formats the planner request, extracts/parses task data and begins logging. It does not show the promised complete worker dispatch, validation, retries and synthesis. Logging an analysis or a task count is not proof these steps ran. Inspectable task lists, decisions and evidence suffice for evaluating the plan; the workflow does not require disclosure of hidden private reasoning.

Validate returns by their actual status and required fields, rather than text length alone. Under an invented search-output contract requiring status, matches and a source reference:

Returned material Static judgment
No response or an empty string Missing output; preserve the actual failure/interruption reason.
{"status":"completed","matches":[],"source":"Source B revision 2, recovery section"} A legitimate empty data result only if the actual authorized search completed and this contract allows no matches. It is not evidence of no recovery limitations elsewhere.
"Everything looks good" Nonempty but unusable: required fields and evidence are absent.
A recorded failed/interrupted status with partial findings Retain that status and its unresolved scope; do not relabel it completed because partial prose exists.

These are predicted static judgments for the teaching contract, not live worker-test outcomes. Appropriate actual evaluations should exercise coordination interactions, source quality and output criteria, combining automated checks with manual inspection of relevant evidence. Changing the coordinator's prompt can affect several workers; check the resulting interaction, not just each component in isolation.

Reconcile budgets and receipts without hiding failures

Define the accounting unit before making a reservation. Tokens, elapsed seconds, active human time and currency are different quantities; monetary accounting needs an actual pricing/conversion basis. A shared-budget gate must check availability and reserve an allocation atomically before expensive fan-out. Otherwise two workers can both see the same unreserved balance and overspend it.

For an invented token-unit ledger with 3,000 available units, a first 2,000-unit reservation leaves 1,000 unreserved; a second simultaneous request for another 2,000 must wait or be rejected under this contract. Two independent check-then-deduct operations without shared concurrency control do not enforce that boundary.

The following receipt uses the source's illustrative reservation arithmetic while making its status explicit:

{
  "task_id":"recovery-comparison-17",
  "worker_id":"example-recovery-worker",
  "status":"completed",
  "artifact_ref":"reports/recovery-comparison-17.md",
  "unit":"token accounting units",
  "reserved":2000,
  "actual_used":1850,
  "verified_unused_released":150,
  "timestamp":"2026-11-01T09:00:00Z",
  "unresolved":[],
  "execution_status":"illustrative receipt; no live worker run or artifact existence is asserted"
}

In the stated unit, 2,000 − 1,850 = 150 unused. The timestamp is an invented teaching event time. The receipt identifies task, worker, outcome, intended artifact and accounting basis; a real receipt needs its actual event time and the application's required identity/version/dependency evidence. A real coordinator must open the correct authorized artifact and reconcile its actual scope before dependent execution or final acceptance.

Failure does not imply zero usage. If an attempt reserved 2,000 units but actually consumed 900 before failing, the verified unused portion is 1,100; the 900 remains spent despite the failed outcome. If incurred usage is unknown, keep accounting unresolved rather than credit back the entire reservation. The source sketch's unconditional full refund on any exception is therefore insufficient accounting logic.

An ordinary JSON receipt is not signed or tamper-evident just because prose calls it so. Such a claim requires an implemented integrity/signature mechanism and actual verification under the relevant identity/trust contract. The example above contains no signature and makes no authenticity claim. Preserve earlier failure receipts when a step is retried, and revalidate dependent results when their inputs change.

Use observable refinement and implemented continuity

Evaluator-optimizer refinement applies when explicit output criteria and actionable feedback can produce a meaningful improvement. Inspect the actual failing criterion, request the affected evidence or worker correction, preserve still-valid findings, then re-evaluate the changed synthesis. If repeated revisions do not improve it, examine unclear criteria, unactionable feedback, missing evidence or a poor fit for iteration before spending another attempt. An exhausted resource limit remains an interruption, not successful convergence.

Persist relevant findings, decisions, source references and unresolved work through an actual accessible artifact or memory mechanism. The source's scheduled episodic consolidation, sometimes called “dreaming,” is a proposed maintenance pattern. Naming it does not install a scheduler, run a background service or demonstrate successful restoration. A supported scheduler and explicit save/read path must exist before claiming scheduled continuity.

These additions explain source-defined contracts and inspectable teaching cases. They do not claim a live multi-agent, MCP, SDK, security, budget or website test. Original referenced attachments and current external product behavior remain unverified; the supplied local knowledge files are the actual basis.

Summary

A coordinator should preserve the original question while delegating bounded investigations. Supply explicit context, restrict actual capabilities, retain traceable artifacts and inspect the synthesis for gaps. Central routing makes responsibility visible only when failures, resource consumption and unresolved evidence remain visible too.

PUBLIC BETA OFFER

Save 50% off on an Eligible Learning Plan

Valid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026