Multi-Agent Collaboration Architecture: From Personal Assistants to Team-Based AI Systems

    Early AI tools were built around question-and-answer interactions, but modern applications are shifting toward continuous execution. This article examines two typical architectures—personal assistant agents and team-based multi-agent systems—and explains key design principles including least-privilege access, human-in-the-loop approval, state and context management, message protocols with idempotency, and observability. It also outlines a phased adoption path and common risks such as intent misinterpretation, cascading errors, and permission creep, providing a practical reference for building reliable agent systems.

    1. Background: AI Tools Are Moving from Passive Responses to Continuous Execution

    Early AI tools were primarily built around question-and-answer interactions. A user asked a question, the model produced an answer, and the task ended there. Over the past couple of years, application patterns have changed noticeably. Systems now continuously receive external signals, aggregate information on a schedule, proactively send reminders when conditions are met, and execute certain operations within authorized boundaries.

    This shift raises three new problems. First, the system needs access to data sources such as email, calendars, and business systems, so permission boundaries must be clearly defined. Second, tasks may span multiple steps and multiple points in time, which requires state management. Third, a failed proactive action can be more costly than a wrong answer, so human confirmation mechanisms are necessary.

    2. Two Typical Architectures

    Current designs generally fall into two categories: the personal assistant type and the team collaboration type. They solve different problems and emphasize different technical priorities.

    2.1 Personal Assistant: Single Entity, Proactive Awareness

    The personal assistant type targets a single user or a small team. Its core goal is to reduce the cost of information gathering and repetitive chores. Typical components include:

    • Event collection layer: subscribes to change events from email, calendars, tickets, or financial systems, preferring read-only interfaces.
    • Information aggregation layer: merges scattered data by time, priority, and business object to produce structured summaries.
    • Task and reminder engine: generates to-dos based on rules or model judgment, such as a follow-up prompt for overdue receivables.
    • Approval gateway: any operation involving payments, outbound messages, or record modifications first produces a draft and waits for user confirmation.

    Take the daily briefing as an example. The typical flow is: a scheduled trigger pulls incremental data from the past 24 hours, deduplicates it, hands it to the model to generate a summary, attaches items that require decisions, and finally pushes the result to the user’s preferred messaging channel. Throughout this process, the model is only responsible for understanding and organizing information; write operations are controlled by rules and human confirmation.

    2.2 Team Collaboration: Multiple Roles, Central Orchestration

    The team collaboration type breaks a complex goal into subtasks and assigns them to agents with different roles. Common roles include candidate screening, expense reimbursement verification, and code defect triage. The system usually has a coordinator agent responsible for understanding the user’s goal, splitting tasks, assigning roles, and aggregating results.

    Roles exchange structured information through a message bus rather than sharing free-form text directly. The following pseudocode illustrates the basic skeleton of the coordination logic:

    1. class Coordinator:
    2. def handle(goal):
    3. subtasks = planner.split(goal)
    4. for task in subtasks:
    5. role = router.match(task.type)
    6. if policy.requires_approval(task):
    7. approval_queue.push(task)
    8. continue
    9. result = role.run(task, context=shared_store.scoped(task.scope))
    10. bus.publish(topic=task.type, payload=result.to_schema())
    11. return aggregator.merge(bus.collect(goal.id))

    This pseudocode reflects three design points: tasks are routed by type, high-risk steps enter an approval queue, and context is trimmed to the task’s scope before being passed in.

    3. Key Design Principles

    3.1 Least Privilege

    Each agent should only access the data and interfaces required for its own task. The reimbursement role does not need to read recruiting data, and the defect triage role does not need permission to send email. Permissions should be configured separately by role and operation type, and audited regularly.

    3.2 Human in the Loop

    Keep decision-making authority with humans. A recommended approach is to classify operations into three levels: read-only queries can be executed automatically; internal writes must be logged and support rollback; operations such as sending external messages, making payments, or deleting data must go through explicit confirmation.

    3.3 State and Context Management

    Multi-step tasks require persistent state. It is advisable to assign each task a unique identifier and record its current stage, input snapshot, completed steps, and failure reasons. Context should be trimmed by scope to avoid passing irrelevant sensitive information to every role.

    3.4 Message Protocols and Idempotency

    Messages between agents should follow a fixed structure containing the task identifier, sender, type, version, and payload. Consumers must handle messages idempotently to prevent the same operation from executing twice due to network retries. The message queue’s redelivery mechanism must be designed in coordination with this.

    3.5 Observability

    For each invocation, record an input summary, the selected role, latency, result status, and approval records. Monitoring metrics should include task completion rate, human rejection rate, and abnormal retry counts. Logs must not contain keys, tokens, or personally identifiable information; sensitive fields need to be masked.

    4. A Phased Adoption Path

    Phase one: read-only aggregation only. Connect one or two data sources, generate briefings, and validate information quality and latency.

    Phase two: introduce write operations with approval. Start with the lowest-risk operations, such as generating to-do drafts, and open up gradually.

    Phase three: multi-role collaboration. First split two or three roles within a single business scenario, clarify orchestration rules and failure fallback strategies, then consider expansion.

    Each phase should define exit criteria. For example, only proceed to the next phase when the factual error rate of briefings stays below the agreed threshold for two consecutive weeks.

    5. Risks and Boundaries

    Proactive systems are most prone to three types of problems. First, the model may misinterpret intent, treating a draft as a confirmed instruction. Second, roles may propagate erroneous conclusions to each other, creating a cascading failure. Third, the permission scope may gradually expand with feature iterations, exceeding the original design.

    Mitigations include: retaining source references for key conclusions, attaching confidence levels or validation results to role outputs, bringing permission changes into the review process, and keeping traceable records for all write operations.

    The personal assistant type is well suited for reducing an individual’s information processing burden, while the team collaboration type fits the decomposition of complex workflows. Both share the same prerequisites: clear boundaries, controllable decisions, and auditable processes.