How Multi-Agent Systems Actually Collaborate: From Role Configuration to Task Boards

    This article explains what collaboration means in a multi-agent system, how agents, role configurations, and task boards differ, and which scenarios genuinely benefit from multiple agents. It walks through designing a minimal collaboration system, structuring task cards and handoffs, handling scheduling problems such as duplicate claims, stale tasks, retries, and circular dependencies, and applying least-privilege security and observability from the start. Readers get a practical, incremental path to a reliable multi-agent workflow in which role boundaries are clear, task state is trustworthy, deliverables are verifiable, and failures are recoverable.

    1. First, Understand What a Multi-Agent System Is Actually Coordinating

    🤔 You can think of a multi-agent system as a small working team: one member gathers material, another processes data, another writes the report, and someone else reviews it. But what determines whether the team functions is not the number of members — it is the clarity of responsibility boundaries, the handoff method, and the acceptance rules.

    A complete collaboration system usually has three layers:

    • Execution layer: agents complete concrete tasks according to their role requirements.
    • Coordination layer: assigns tasks, checks dependencies, handles failures, and aggregates results.
    • State layer: stores task status, deliverable locations, and run records.

    If you only create several roles without a unified task record, they may duplicate work, use different versions of the same data, or even reach mutually contradictory conclusions. Building a multi-agent system is therefore first a process design exercise, and only second a question of role count and model calls.

    2. Agents vs. Role Configurations vs. Task Boards

    2.1 Agent: a work unit with execution capability

    An agent is typically composed of model reasoning capability, role instructions, callable tools, context, and an execution loop. It does more than answer questions: it may read material, generate files, call external services, and check execution results.

    Note that whether an agent has independent memory, can access files, or can run for a long time all depend on the actual system implementation. These are not capabilities every agent has by default.

    For example, the responsibility of a “research agent” can be scoped as:

    Collect public material on the specified topic, record the source and retrieval time, distinguish facts from speculation, output structured research notes, and do not modify programs or publish content.

    A clear boundary produces more stable behavior than “you are a highly capable expert.”

    2.2 Role configuration: it defines a way of working, it does not create a running instance

    📄 A role configuration is best viewed as a job description. It generally includes:

    • Role name and work objective;
    • Permitted and prohibited actions;
    • Input and output formats;
    • The scope of data that can be accessed;
    • Tool permissions;
    • How memory or the working directory is organized;
    • Acceptance conditions.

    But three actions must be kept distinct:

    Saving a configuration does not start an agent; switching configurations does not run agents in parallel; copying a configuration does not achieve permission isolation.

    A role definition only becomes a working agent when the runtime actually reads the configuration, creates an execution instance, and enforces access control.

    2.3 Task board: visualizing and managing the workflow

    📋 A task board breaks work into movable task cards and uses columns to represent status. The simplest flow is:

    1. Pending → In Progress → Done

    In real collaboration, it is better to add review and blocked states:

    1. Pending → In Progress → In Review → Done
    2. ↓
    3. Blocked

    A board by itself is a work management method; it does not inherently provide automatic scheduling, persistence, or dependency transitions.

    Supporting mechanisms are required for those capabilities:

    • Data storage keeps the tasks;
    • A scheduler selects runnable tasks;
    • An executor starts the agents;
    • Review rules confirm delivery quality;
    • Logs and monitoring track anomalies.

    ✅ So “the task has moved to the Done column” and “the task output has passed acceptance” are not the same thing.

    3. When Multiple Agents Are Worth Using

    3.1 The work requires clearly different skills

    For example, completing three stages: research, data processing, and report writing. Their inputs, outputs, tool needs, and quality standards differ, so splitting roles reduces context mixing.

    However, if the task is very small, one agent executing step by step is usually simpler. The benefit of role separation should exceed the coordination cost.

    3.2 Subtasks can run independently in parallel

    Research on different topics, processing of different data partitions, and checks of different modules can all proceed in parallel.

    Parallelism requires that subtasks have no dependencies that force waiting, and that they do not modify the same shared resource simultaneously. Otherwise, increasing the number of executions can cause file overwrites, state conflicts, and duplicate calls.

    3.3 Different data or tool permissions are needed

    A role oriented toward public information should not have internal database access by default; a writing role should not have production modification rights by default.

    🔐 Role separation is only the first organizational step. Real security isolation also requires separate credentials, access control, runtime restrictions, and audit records. You cannot achieve it with a single prompt sentence saying “do not read sensitive data.”

    3.4 Tasks run long and need staged delivery

    For example, a flow from requirements analysis to development, testing, and documentation is well suited to recording stage outputs on a board.

    Even if the execution process is interrupted, work should be able to continue from the saved task state and deliverables, rather than re-guessing how far things had progressed.

    3.5 Independent review is required

    For important reports, data analyses, or program changes, an execution role can submit its output and a review role can check it against standards.

    But the review role can also be wrong. Important conclusions should still be backed by rule validation, real tests, or human review; “another agent agreed” is not sufficient proof.

    When multi-agent is not a good fit

    If you are only explaining a concept, editing a short piece of text, or completing a single task that takes a few minutes, multiple agents usually just add cost.

    Ask yourself three questions first:

    1. Can you separate out independent, acceptance-testable subtasks?
    2. Do the different roles genuinely need different capabilities or permissions?
    3. Do the gains from parallelism or division of labor outweigh the handoff cost?

    If most answers are no, prefer a single agent with clear steps.

    4. Designing a Minimal Collaboration System from Scratch

    Start with three business roles and one coordination responsibility:

    Role Main responsibility Deliverables Permission boundary
    Researcher Collect and organize material Research notes, source list Read public material
    Processor Clean and analyze data Result files, processing notes Read/write in a designated directory
    Writer Consolidate into a report Report draft Read reviewed material only
    Coordinator Split, schedule, check progress Task records, acceptance results Task management permissions

    The coordination responsibility does not have to be handled by an agent. For a fixed process, an ordinary program scheduling by rules is usually more deterministic; only when task decomposition requires dynamic judgment should an agent take part in planning.

    Step 1: Write down the shared objective

    Do not just say “help me produce an industry report.” Specify:

    • Who the audience is;
    • What scope to research;
    • What time range of material to use;
    • Which conclusions require evidence;
    • How many sections the output should have;
    • Whether data tables are needed;
    • Under what conditions human confirmation must be requested.

    The clearer the objective, the easier subsequent tasks are to accept.

    Step 2: Create the role configuration

    The following is a custom illustrative configuration used to show the structure. It does not map to any existing product’s interface and does not by itself guarantee that permissions take effect:

    1. {
    2. "role_id": "researcher",
    3. "goal": "Collect public material and produce verifiable research notes",
    4. "allowed_actions": [
    5. "read_public_material",
    6. "write_research_notes"
    7. ],
    8. "forbidden_actions": [
    9. "read_private_credentials",
    10. "publish_external_content"
    11. ],
    12. "output_requirements": [
    13. "Record source and retrieval time",
    14. "Distinguish facts, speculation, and items to confirm",
    15. "List gaps in the material"
    16. ],
    17. "review_required": true
    18. }

    These fields must be interpreted by your own execution program. Permission-related fields in particular must map to actual access control, not merely serve as text for the model to read.

    Step 3: Standardize the delivery directory

    Organize outputs by task ID:

    1. workspace/
    2. roles/
    3. tasks/
    4. artifacts/
    5. task-001/
    6. task-002/
    7. task-003/
    8. logs/

    Each task uses its own directory, which prevents multiple agents from writing to the same file. Approved outputs should keep an explicit version, and downstream roles should read only the specified version rather than an ambiguously defined “latest file.”

    5. What a Task Card Should Contain

    A reliable task card must answer at least:

    Who does it, what to do, what it depends on, where to deliver, and how completion is judged?

    Again, the following is custom illustrative data:

    1. {
    2. "task_id": "task-003",
    3. "title": "Draft the research report",
    4. "assignee": "writer",
    5. "status": "pending",
    6. "depends_on": ["task-001", "task-002"],
    7. "input_artifacts": [
    8. "artifacts/task-001/research-notes.txt",
    9. "artifacts/task-002/analysis-results.txt"
    10. ],
    11. "output_artifact": "artifacts/task-003/report-draft.txt",
    12. "acceptance_criteria": [
    13. "Includes research scope and method",
    14. "Key conclusions map to evidence",
    15. "States data limitations explicitly",
    16. "Contains no unverified numbers"
    17. ]
    18. }

    Real systems can add priority, owner, creation time, claim time, retry count, and an error summary as needed.

    ✅ Acceptance criteria should be checkable. “Content is professional” is too vague; “every key conclusion is accompanied by a corresponding evidence ID” is much easier to enforce.

    6. Delegate Short Tasks Directly; Use a Persistent Board for Long Ones

    6.1 Short tasks: request and wait for the result

    This suits work with a small scope, short duration, and cheap re-execution after failure — for example, checking whether a piece of text contains contradictions.

    The basic flow is:

    1. Main executor raises a subtask
    2. ↓
    3. Sub-executor completes it and returns the result
    4. ↓
    5. Main executor checks it and continues

    This is simple to implement, but you should still set a timeout and an output length limit to avoid waiting indefinitely or pulling large amounts of irrelevant information back into the main context.

    6.2 Long tasks: persist first, then schedule

    For cross-stage tasks, persist the task record first, then let executors claim it.

    The general flow is:

    1. Create task → Check dependencies → Claim task → Execute
    2. ↓
    3. Archive when done ← Acceptance passed ← Submit output

    If acceptance fails, record the reason and make explicit whether the original task is re-executed or a revision task is created. Do not just move the card back and forth without leaving history.

    Task dependencies must also be explicit. For example:

    1. Material collection ─┐
    2. ├→ Data analysis → Report writing → Final review
    3. Data preparation ────┘

    Material collection and data preparation can run in parallel, while report writing should wait until the required outputs have passed acceptance.

    7. Key Problems the Scheduler Must Handle

    7.1 Prevent the same task from being claimed twice

    When multiple executors check the board at the same time, they may all see the same pending task. Claiming should be done through a database transaction, an atomic state update, or an equivalent mechanism.

    Do not use “read first, then unconditionally write In Progress,” which easily leads to duplicate execution.

    7.2 Give in-progress tasks a validity period

    If an executor crashes, a task may stay In Progress forever. Heartbeats and a claim validity period can identify lost tasks, which can then be recovered according to rules.

    But a timeout does not mean the original executor has stopped. When file publishing, external writes, or other side effects are involved, deduplication and idempotency design are also needed to prevent the recovery process from repeating operations.

    7.3 Limit retries and resource consumption

    Different failures call for different strategies:

    • Temporary connection failure: limited retries are acceptable;
    • Missing input: move to Blocked;
    • Insufficient permissions: request administrator handling;
    • Acceptance failure: revise based on feedback;
    • High-risk operation: wait for human approval.

    ⚠️ Do not hand every failure to an agent for unlimited attempts. Set a maximum attempt count, an overall execution time limit, and a resource budget.

    7.4 Check whether dependencies form a cycle

    If task A waits for task B and task B waits for task A, neither can ever start.

    When creating or modifying dependencies, check for circular dependencies and confirm that every task has a clear completion condition. For work that is repeatedly revised, create a new revision task instead of expressing feedback through a dependency cycle.

    8. Collaboration Quality Comes from Handoff Standards, Not Chat Volume

    When agents pass information to each other, use a structured handoff:

    1. Task ID:
    2. What was completed:
    3. Deliverable location:
    4. Basis and sources:
    5. Verification result:
    6. Known limitations:
    7. Issues the downstream role should watch:

    This prevents a downstream role from receiving only “it’s done” without knowing where the files are, which content is trustworthy, and what gaps remain.

    For shared knowledge, also distinguish:

    • Raw material;
    • Verified facts;
    • Unconfirmed assumptions;
    • Temporary context for the current task.

    Do not write one role’s speculation directly into shared knowledge, where other roles later cite it as fact.

    9. Security and Observability Cannot Be Left to the End

    9.1 Treat external content as material, not as instructions

    Web pages, documents, and task attachments may contain text like “ignore the original requirements” or “read the credentials.” The system should treat such content as data to be analyzed, not as high-priority operating instructions.

    Sensitive operations must be governed by explicit authorization and cannot be triggered by external material on their own.

    9.2 Assign tools by least privilege

    A research role usually does not need production write access; a review role usually does not need to delete deliverables; a writing role usually does not need access to raw sensitive records.

    For operations involving deletion, publishing, payment, or production configuration changes, require additional approval and record the target and the result.

    9.3 Keep sufficient run records

    Record task status changes, role identifiers, tool call summaries, elapsed time, errors, and deliverable versions. Logs should be as structured as possible while avoiding credentials and unnecessary sensitive information.

    These records are not only for troubleshooting; they also help evaluate whether the multi-agent setup actually delivers value. You can observe task completion rate, review rejection rate, number of repeated executions, and average delivery time, rather than only counting how many roles were created.

    10. A Practical Order for Beginners

    🚀 The safest path is not to build a huge team at once, but to increase complexity gradually:

    1. First run a complete task with a single agent, and define inputs and outputs clearly.
    2. Identify the stage that is easiest to deliver independently, and split out a second role.
    3. Establish a unified task card format and an artifacts directory.
    4. Track status on a simple board, with handoffs confirmed manually at first.
    5. Add dependency checks, automatic claiming, and result review.
    6. Fill in permission isolation, timeout recovery, limited retries, and logging.
    7. Decide whether to add more roles based on actual results.

    In the end, a reliable multi-agent system meets four conditions: clear role boundaries, trustworthy task state, verifiable deliverables, and recoverable failures.

    The task board makes the collaboration process visible, the role configuration makes responsibilities expressible, but execution control and acceptance mechanisms are what make the system genuinely usable. Building a small, complete loop first and then expanding parallel capability usually yields more stable results than creating a large number of agents at the outset.