Multi-Agent Architecture in Practice: How AI Scheduling AI Evolves Autonomous Systems

    This article explores the shift from single-agent task completion to multi-agent architectures where AI handles scheduling and execution while humans focus on goals and acceptance. It covers the three-layer responsibility model, a two-tier design with a global router and parallel workers, event-driven task discovery with two-stage filtering, context engineering practices, and risk controls such as least privilege, budget limits, and predefined acceptance criteria. Readers will find practical guidance on task structures, rollout steps, and metrics for running autonomous systems that remain stable and auditable without constant human attention.

    1. The Background: The Bottleneck Is Moving from Model Capability to Human Attention

    Over the past two years, most discussions about agents have centered on single-task completion: whether a model can understand requirements, write runnable code, and call tools to close the loop on its own. As reasoning ability, long context, and tool-calling stability have improved, the level of automation for a single task has become quite high, and the need for human intervention has dropped significantly.

    But one fact has been overlooked for a long time: the human capacity for handling parallel tasks has not grown at the same pace. In practice, a person can effectively follow only three to five active sessions; beyond that, context starts to blur, priorities get tangled, and replies are delayed. As a result, the overall throughput ceiling of the system has quietly shifted from “model capability” to “human attention.”

    This mismatch between the two curves is the real driver behind multi-agent architecture. If scheduling authority stays with humans, every additional task stream requires a person to assign it, synchronize context, and confirm the result. Humans become a serial bottleneck. The only way to break through it is to move session management and context synchronization from people up to the system layer, letting AI take on scheduling and execution while humans keep just two actions: setting goals and accepting results.

    2. Core Design Principle: Redistributing Responsibilities Across Three Layers

    The design of this kind of autonomous agent system can be abstracted into a redistribution of responsibilities across three layers:

    • Goal layer (human): define the problem to solve, the constraints, and the acceptance criteria, for example, “this defect needs to be reproduced and fixed, without introducing new failing test cases.”
    • Scheduling layer (system): continuously receive input from multiple channels, decide which items are signals that need handling, break them into tasks, dispatch them to the right execution units, and track status and blockers.
    • Execution layer (agents): complete concrete work in isolated contexts, and when necessary spawn finer-grained subtasks below them.

    The key decision rule is simple: any work that involves “synchronizing information, deciding who does it, and when to do it” should be moved from humans to the scheduling layer as much as possible; any work that involves “judging whether it was done correctly and whether to keep investing” stays with humans.

    3. Two-Tier Architecture: A Global Coordinator Plus Parallel Workers

    A common implementation is a two-tier structure.

    The first tier is a continuously running global coordinator (Router). It does not aim for depth in a single inference pass; it aims for always-on operation, low latency, and a global view. Its responsibilities include: unifying input from multiple channels such as group chat messages, code hosting platform events, email, and tickets; performing intent recognition and priority ranking; dispatching tasks to worker nodes; maintaining a task ledger and state machine; and triggering reminders or escalations when there is no progress for a long time.

    The second tier is parallel worker nodes (Worker). Each node maintains its own isolated context and handles one clearly defined type of work, such as issue reproduction, code review, feature development, or documentation completion. Their contexts are isolated from one another to prevent cross-contamination; they are deployed homogeneously and scale elastically by queue; and when a task is too heavy, they can spawn secondary agents (Subagents) to take on closed subtasks such as retrieval or running tests.

    A sample task description structure can be written as:

    1. {
    2. "task_id": "fix-1024",
    3. "goal": "Reproduce and fix the intermittent login state failure",
    4. "context_refs": ["issue://1024", "repo://auth-service"],
    5. "constraints": ["Do not change public interface signatures", "New test cases must pass"],
    6. "acceptance": ["Reproduction script triggers the issue reliably", "Regression tests are all green"],
    7. "budget": { "steps": 40, "wall_clock_min": 30 }
    8. }

    The most instructive fields here are acceptance and budget: the former turns “what counts as done” into machine-checkable conditions up front, while the latter sets boundaries for autonomous execution to prevent an agent from falling into an infinite loop or making excessive changes.

    4. Event-Driven Design and Two-Stage Filtering: Let the System Find Problems on Its Own

    The dividing line for autonomy is whether the system can find work to do without being called out by a human (no manual @-mention). This requires event-driven input plus two-stage filtering.

    The first stage is coarse filtering, which recalls candidates based on low-cost signals, such as semantic cues like “error,” “cannot reproduce,” “intermittent,” or “rollback” appearing in messages, or a code commit triggering a failed continuous integration event. The goal is high recall and lower precision; it is better to look at more.

    The second stage is fine filtering, which uses a stronger model together with repository context to make a judgment: is this a real defect or a usage question? Is there already a task in progress? What is the scope of impact and the urgency? Only signals that pass are converted into formal tasks and enter the background reproduction and fix workflow.

    The value of the two-stage structure lies in cost control and noise suppression: expensive inference is spent only on a small number of high-value candidates, while agents are prevented from repeatedly misfiring in casual chat areas. This is key to whether an autonomous system can stay online over the long term.

    5. Context Engineering: Isolation, Compression, and Recoverability

    The real difficulty in a multi-agent system is not “being able to call tools” but context governance. Four practices can be followed:

    1. Isolation: one context per worker node; sharing full history across tasks is prohibited, and only structured task descriptions and artifact references are shared.
    2. Compression: long-running tasks periodically generate summaries and decision records, keeping conclusions and constraints while discarding process noise.
    3. Recoverability: all intermediate artifacts (reproduction scripts, patches, test reports) are written to external storage, so context can be rebuilt from artifacts if it is lost.
    4. Observability: instrument every dispatch, tool call, and state transition, and output to logging services and monitoring alerts to form a traceable chain.

    6. The Human-Machine Collaboration Loop and Risk Control

    Autonomy does not mean loss of control. Mature solutions usually set three gates: first, least privilege, where worker nodes can by default operate only on isolated branches and in sandbox environments, and merging to the main branch requires human approval; second, budget constraints, where exceeding the step count or time limit causes the task to be suspended and reported; third, acceptance up front, where only outputs that meet predefined acceptance criteria enter the human review queue.

    The human role therefore becomes clear: write goals and acceptance criteria, handle escalated difficult cases, and make trade-offs at key points. In its engineering practice around agents, Baidu AI Cloud also emphasizes a similar idea: give deterministic work to processes and platform capabilities (such as container platforms, message queues, and general-purpose logging and monitoring components), and leave judgment to humans.

    7. Implementation Recommendations

    • Start with read-only scenarios: begin with code review responses and defect reproduction, which carry low risk and offer direct benefits.
    • Write acceptance criteria clearly before talking about automation; otherwise autonomy will only amplify errors.
    • Measure three metrics: the number of parallel tasks per person, the average time to close a task, and the human rework rate.
    • Keep a human takeover channel; any autonomous workflow must be pausable with a single action.

    Overall, letting AI schedule AI is essentially about freeing up “attention,” a scarce resource, from the process. Whether the architecture succeeds does not depend on how well the agents reason, but on whether the system can finish work stably and auditably when no one is watching.