Multi-Agent Development Systems: An Engineering Guide to 24/7 Operation

    Learn how to turn multiple AI agents into a reliable software delivery system using explicit task boundaries, versioned handoffs, controlled tool access, independent testing, and failure recovery. A competitor price-monitoring application illustrates the requirements, data design, scheduling, and operational safeguards needed for continuous operation with appropriate human oversight.

    1. From Multiple Assistants to an Engineering Delivery System

    Assigning market research, requirements analysis, architecture, development, and testing to separate agents is an intuitive way to organize multi-agent development. But adding roles does not automatically improve delivery. Without task constraints and shared acceptance criteria, agents may duplicate work, wait on one another, or produce incompatible results based on different versions of the requirements.

    A practical multi-agent system must address four questions:

    1. How are goals decomposed? Users usually express business needs, such as “continuously monitor competitor prices and notify us about anomalies,” rather than clearly defined development tasks. The system must translate those needs into data scope, business rules, feature boundaries, and acceptance criteria.
    2. How are results handed off? Research findings cannot remain solely in conversations. Requirements, interface contracts, code changes, and test reports must become persistent deliverables.
    3. How is execution controlled? Agents need tools to perform real operations, but reading documents, changing code, running commands, and deploying services require different permissions.
    4. How does the system recover from failure? Long-running tasks may encounter model-call failures, collection timeouts, dependency conflicts, or process restarts. Operation cannot depend on one uninterrupted conversation.

    “24/7 operation” should therefore mean continuous scheduling, failure recovery, and human takeover when necessary—not unrestricted agent autonomy.

    2. Define the Business Loop with a Price-Monitoring Application

    An e-commerce competitor price-monitoring application provides a concrete example. It combines data collection, rule evaluation, visualization, notifications, and exports, making it useful for validating collaboration across roles.

    Define the Minimum Viable Scope

    An initial system can support:

    • Managing monitored products and their source URLs.
    • Collecting displayed prices, reference prices, promotion details, and stock status on a schedule.
    • Saving historical observations and displaying price trends.
    • Generating alerts for prices below thresholds, significant changes, or out-of-stock events.
    • Sending notifications to an organizational messaging channel.
    • Exporting filtered historical data.

    A displayed price is not necessarily the final transaction price. Discounts may depend on membership, location, purchase quantity, or eligibility to claim an offer. The system must preserve these conditions rather than directly compare prices that apply under different circumstances.

    Turn Acceptance Criteria into Verifiable Rules

    “Accurate monitoring” and “timely notifications” are too vague. Each capability needs an observable verification method.

    For example:

    • A failed collection attempt preserves its failure reason and does not overwrite the last valid price with a null value.
    • A product has no duplicate records within the same collection run.
    • A specification change prevents direct price-change calculations against the previous specification.
    • The same anomalous event does not trigger repeated notifications within a cooldown window.
    • Exports include observation time, product identifier, pricing conditions, and data status.
    • Trend views clearly distinguish valid observations from collection-failure intervals.

    Clear acceptance criteria make it harder for a development agent to declare completion based on subjective judgment.

    3. Assign Clear Responsibilities to Agents

    A multi-agent system does not need a large roster at the outset. Start with coordination, requirements, development, and testing roles. Separate research, architecture, and operations responsibilities as the workflow matures.

    Coordination Agent: Manage the Workflow, Not Every Task

    The coordination agent receives user requests, checks whether the information is complete, establishes task dependencies, and assigns work to execution roles.

    It maintains an overall view of progress without repeatedly reading every code file or collection record. That view can consist of task summaries, a risk register, deliverable references, and pending decisions.

    The coordinator must also recognize boundaries that require user confirmation, including data-source authorization, notification recipients, operating budgets, and deployment permissions. Affected tasks should pause until these questions are resolved rather than proceed on assumptions.

    Requirements and Research Agent: Separate Facts from Assumptions

    This role clarifies business goals, defines data semantics, and produces the requirements document. Its findings should distinguish:

    • Verified facts.
    • Assumptions awaiting validation.
    • Explicit user requirements.
    • Capabilities proposed by the system.

    This separation prevents unverified speculation from passing through successive handoffs and becoming a mandatory implementation requirement.

    Architecture Agent: Define Module Boundaries

    The architecture role defines the boundaries between collection, storage, rule evaluation, query and presentation, and messaging. It also specifies data structures and exception handling.

    Architecture deliverables should include more than a conceptual diagram. They need interface contracts, data lifecycles, permission boundaries, and handling principles for important failure scenarios.

    Development Agent: Implement in a Controlled Environment

    The development role changes code according to approved requirements and interface contracts. It may use AI coding tools, but execution must take place in an isolated workspace.

    Separate development tasks should use independent working directories or change branches. A shared main branch should not become a temporary workspace that multiple agents modify simultaneously, risking overwritten changes and untraceable conflicts.

    Testing Agent: Verify Independently

    The testing role derives a test plan from the acceptance criteria and checks edge cases. A development agent’s “completed” status is not sufficient: the testing agent must decide whether the implementation passes based on actual execution results.

    Failed tests should return reproducible issue descriptions, input conditions, expected results, and actual results—not vague feedback such as “the feature is broken.”

    4. Establish Execution Order with a Task State Machine

    Agents can exchange messages, but free-form conversation should not be the sole mechanism for organizing work. A task state machine provides the foundation for workflow control.

    A simple lifecycle is:

    Pending → Ready → Running → Awaiting Acceptance → Completed

    It should also include Failed, Blocked, and Canceled states.

    “Pending” means prerequisites have not yet been met. “Ready” means dependencies are complete and an executor can claim the task. “Blocked” means the task needs additional information, external resources, or a human decision.

    The following is an illustrative custom task record, not an interface from an existing product:

    1. Task identifier: Implement price collection module
    2. Prerequisites: Requirements approved; data contract approved
    3. Execution role: Development
    4. Inputs: Requirements document version; interface contract version
    5. Expected deliverables: Code changes; test records; operating instructions
    6. Acceptance criteria: Successful collection; failure isolation; duplicate-write protection
    7. Current state: Ready
    8. Attempt count: 0
    9. Permissions: Read and write within the isolated workspace

    Task claiming must be atomic to prevent multiple executors from handling the same task at once. Long-running tasks can use execution leases and heartbeats: an executor periodically reports that it is alive, and the scheduler evaluates whether to reassign the task after the lease expires.

    An expired lease does not prove that the original executor has stopped. Before rerunning a task, the system should inspect existing deliverables and enforce idempotency or execution-generation checks at critical writes to reduce duplicate-operation risks.

    5. Balance Context Isolation with Shared Memory

    Independent contexts reduce irrelevant information and limit access to unnecessary data. Isolation does not mean that roles should share nothing.

    Organize information into three layers.

    Role Context

    This includes the current task objective, role responsibilities, operating restrictions, and necessary inputs. The development agent does not need every research conversation, and the testing agent should not depend on the developer’s subjective assessment.

    Shared Project State

    This includes approved requirements, interface contracts, a glossary, a risk register, and task progress. Persist this state and identify changes through version numbers.

    Deliverables and Evidence

    These include code changes, test reports, collection samples, log summaries, and deployment records. Save them as referenceable files or records rather than leaving them only in chat history.

    Long-context models can reduce truncation, but they cannot guarantee that important constraints will always be recalled correctly. A more reliable approach is to reload the currently valid requirements and acceptance criteria before each task starts.

    Use a consistent structure for cross-role handoffs:

    Completed work — Deliverable locations — Verification evidence — Outstanding issues — Items requiring downstream confirmation

    This is easier to audit and recover from than repeatedly forwarding lengthy conversations.

    6. Make Automated Development a Controlled Pipeline

    Calling local tools to write code moves agents from recommendations to execution. It is also where much of the operational risk concentrates.

    Plan Before Making Changes

    At the start of a development task, identify the modules and files to change, potential impacts, and verification methods. Operations such as deleting data, changing permissions, installing system-level dependencies, or deploying services require additional approval.

    Routine code changes may run automatically, but that does not justify granting unrestricted system access.

    Restrict Tool Permissions and the Runtime Environment

    Apply least privilege to the development environment:

    • Allow access only to designated project directories by default.
    • Inject credentials through controlled mechanisms rather than placing them in code or conversations.
    • Limit outbound network access to what the business task requires.
    • Set command timeouts and resource limits.
    • Prohibit unapproved operations on production business data.
    • Separate development, testing, and production environments.

    Tool-call logs should record operation type, target, outcome, and duration without retaining secrets or sensitive personal information.

    Let Verification Determine Completion

    After each round of changes, run applicable syntax checks, static checks, unit tests, and integration tests. Agents can diagnose failures and attempt repairs, but retries must have a limit.

    If repeated attempts fail to resolve the same issue, preserve the evidence and escalate to a human. Unlimited retries waste resources and may gradually move the implementation away from its original design.

    7. Design Price-Monitoring Data and Rules

    Use Append-Only Observation Records

    Store product information separately from price observations. A product record describes the monitored item; an observation record describes the result of a particular collection attempt.

    Each observation should include at least:

    • Product and specification identifiers.
    • Data source.
    • Observation time.
    • Displayed price and currency.
    • Reference price and its meaning.
    • Promotion eligibility conditions.
    • Stock status.
    • Collection status and error type.

    Do not overwrite historical results with new ones. Append-only observations support trend analysis, troubleshooting, and rule replay.

    Separate Collection Status from Business Status

    Timeouts, page-structure changes, and access restrictions are collection problems. An out-of-stock condition is a business state. They must not be treated as equivalent.

    Marking a product as out of stock whenever collection fails creates false alerts. Collection failures should follow a separate exception path, notifying maintainers when appropriate rather than telling business users that the product is unavailable.

    Prefer authorized data APIs or permitted public access methods. Respect access restrictions and do not obtain data by bypassing verification or evading permissions.

    Calculate Price Changes Against a Valid Baseline

    The relative change between valid observations can be expressed as:

    1. Relative change = (Current price - Baseline price) / Baseline price

    The baseline must be greater than zero. Both observations must use matching specifications, currencies, and pricing conditions. If those conditions differ, suspend the comparison or route it for human review.

    To reduce false positives, rules can combine a minimum absolute price change, a relative change threshold, and a required number of consecutive confirmations. Determine these settings from business tolerance and historical data rather than treating example values as universal best practices.

    Give Alerts Deduplication and Recovery Semantics

    Alerts should distinguish an anomaly’s onset, its continuation, and recovery—not just its initial occurrence.

    A deduplication key can combine the product identifier, rule identifier, and anomaly phase. Retry failed notifications under a controlled policy and persist their delivery status. Decouple business-data writes from notification delivery so that a messaging failure does not cause collection results to be lost.

    Exports also require access controls, field masking, and protection against spreadsheet formula injection. Text collected from external pages should not be written into spreadsheet files as executable formulas without appropriate handling.

    8. Build the Operational Foundations for 24/7 Execution

    Continuous operation depends on scheduling and operations design, not on what a model can produce in a single response.

    First, the scheduler should run independently of agent processes and periodically inspect due tasks, execution states, and backlogs. Limit task-queue concurrency so that simultaneous collection or development work does not exhaust available resources.

    Second, set timeouts, backoff retries, and circuit-breaking policies for external calls. Transient failures may justify retries; persistent failures should pause affected tasks and trigger alerts rather than drive repeated high-frequency requests to the same source.

    Third, enforce budget boundaries:

    • Maximum execution time per task.
    • Maximum number of tool calls.
    • Daily resource-consumption limits.
    • Maximum failure retries.

    When a limit is reached, preserve a checkpoint and wait for a human decision.

    Finally, continuous services require observability. At minimum, monitor task success rate, queue wait time, retry counts, collection freshness, notification failure rate, and the frequency of human intervention. Carry task identifiers through scheduling, tool execution, and delivery logs to support troubleshooting.

    9. Roll Out in Stages

    A staged rollout is more reliable than building a full roster of agents at once.

    Stage 1: Complete a Single-Task Workflow

    Use one coordination role and one execution role to move from explicit requirements through code changes, testing, and reporting. Verify that task records and deliverable storage work as intended.

    Stage 2: Introduce Independent Testing

    Separate implementation from acceptance. Establish a failure-feedback and rework process.

    Stage 3: Add Requirements and Architecture Roles

    Use structured handoffs and version control to maintain consistent information across tasks.

    Stage 4: Add Scheduled and Continuous Operation

    Connect scheduled execution, organizational messaging, and operational safeguards. Exercise scenarios such as process interruption, duplicate messages, notification failures, permission denials, and exhausted budgets.

    Each stage should have inspectable exit criteria. Role count and conversation length are not meaningful measures of maturity.

    10. Evaluate Collaboration with Engineering Metrics

    A successful demonstration is not enough to evaluate a multi-agent development system. More useful measures include:

    • First-pass acceptance rate.
    • Average task completion time.
    • Number of human interventions.
    • Proportion of duplicated or repeated work.
    • Resource consumption per task.
    • Recovery capability after failures.

    Model evaluation should also use real tasks. Can the model consistently interpret interface contracts, respect tool permissions, recognize insufficient evidence, and preserve useful progress after failure? One successful long conversation does not establish reliable round-the-clock delivery.

    The core of multi-agent engineering is placing intelligent reasoning inside a manageable process: tasks have boundaries, handoffs have contracts, execution has permissions, completion has evidence, and failures have recovery paths. Together, these mechanisms turn agent collaboration from a demonstration into a reliable, long-running business practice.