The Architecture Evolution of Large Models: From Information Containers to Execution Engines

    This article explains why large models are shifting from answering questions to delivering completed tasks, and what that shift requires from infrastructure. It covers the engineering meaning of long-horizon coding, controlled multi-agent clusters, and multi-day autonomous execution, along with task-based pricing, capacity planning for launch traffic spikes, a four-dimension evaluation framework, and a phased adoption roadmap.

    1. The Paradigm Shift: Why “Answering” Is Not “Delivering”

    For the past few years, the mainstream value of large models has been as an information container: the user asks a question, the model retrieves and recombines existing knowledge, and outputs readable text. The ceiling of this mode is obvious—it delivers advice, not results. Real engineering delivery requires reading a codebase, running tests, inspecting logs, changing configuration, and then verifying through regression—a closed loop that can span hours or even days.

    The execution engine positioning differs in three ways. First, the objective function changes from single-turn answer quality to whether the task reaches its intended end state. Second, the unit of interaction changes from one question-and-answer exchange to an observable, interruptible, and resumable task. Third, evaluation metrics expand from human preference scores to pass rate, average elapsed time, cost per task, and human takeover rate.

    This shift imposes structural requirements on infrastructure. Inference services are no longer stateless short requests; they must handle long-lived connections, resume from checkpoints, and persist state. Scheduling systems must manage hundreds or thousands of subtasks at once. Observability must evolve from logging requests to reconstructing the task decision chain.

    2. What the Three Core Capabilities Mean in Engineering

    2.1 Long-Horizon Coding: Treat Context Management as a First-Class Engineering Problem

    Whether a model can code continuously for ten-plus hours depends not on how long it can “remember,” but on its ability to organize context in layers. A practical approach divides context into four layers: the task contract layer (goals, acceptance criteria, prohibited actions), the code fact layer (directory structure, interface signatures, dependencies), the execution trace layer (changes made, failed attempts, test output), and the scratch layer (intermediate reasoning that can be discarded at any time).

    Engineering this requires externalized memory: write intermediate artifacts to durable storage and backfill them on demand through retrieval, rather than concatenating context indefinitely. A schematic task state structure looks like this:

    1. task = {
    2. "goal": "Add idempotent writes to the order service",
    3. "acceptance": ["Duplicate requests produce no duplicate records", "Unit test coverage >= 80%"],
    4. "facts": {"entry": "service/order.py", "deps": ["db", "cache"]},
    5. "trace": [{"step": 3, "action": "run_tests", "result": "2 failed"}],
    6. "checkpoint": "ckpt-0007"
    7. }

    With a checkpoint mechanism, an interrupted task can resume from the most recent consistent state, so a long task is not rolled back entirely because of a single failure.

    2.2 Multi-Agent Clusters: From Parallelism to Controlled Parallelism

    Supporting hundreds of cooperating sub-agents depends not on the count but on the collaboration topology and conflict control. Three topologies are common: hierarchical (one planner decomposes the task, multiple executors claim subtasks), pipeline (coding, testing, review, and documentation flow in stages), and market-based (subtasks are broadcast and agents with matching capabilities claim them).

    Four types of control must be built in. First, write-conflict control for shared resources, using leases or shard ownership for code branches and configuration items. Second, budget control, setting limits on steps, elapsed time, and call cost for each subtask. Third, convergence criteria, to avoid a loop caused by agents “politely reworking” each other’s output. Fourth, human takeover points, forcing a pause before irreversible operations.

    1. cluster_policy:
    2. max_agents: 256
    3. topology: hierarchical
    4. budget_per_task: {steps: 200, wall_clock: 4h}
    5. write_lease_ttl: 300s
    6. halt_on: [schema_migration, permission_change, delete_resource]

    2.3 Long-Running Autonomy: State Machines, Idempotency, and a Failure Budget

    Running an agent autonomously for days requires treating it as a distributed system, not a script. Tasks should be modeled as an explicit state machine (pending, in progress, blocked, awaiting review, completed, abandoned), with every state transition written to a durable log. All outbound actions must be idempotent and carry a deduplication key. Calls to external dependencies need timeouts, retries, and circuit breakers so that a single point of jitter does not bring down the whole chain.

    A failure budget should also be introduced: a certain proportion of attempts may fail, but once consecutive failures reach a threshold, the agent degrades to a help-requesting state and hands the decision back to a human. This is more controllable than unlimited retries and makes it easier to locate problems in post-hoc audits.

    3. Commercialization and Cost Structure: The Logic Behind Structured Pricing

    Moving from per-token billing to per-task billing is an inevitable result of the execution engine form. Long-horizon tasks consume more than input and output tokens; they also consume retrieval calls, tool execution, sandbox compute, and storage. Pricing therefore tends to be tiered: input and output priced separately, long-context tiers, discounts for cache hits, discounts for batch and asynchronous tasks, and cluster concurrency billed by seat or quota.

    Enterprises are advised to do three things for cost governance. First, establish task-level cost accounting that attributes all resource consumption of a task to business tags. Second, set multi-level quotas and alerts that automatically downgrade model tiers before the budget is exhausted. Third, introduce result caching and workflow templates for high-frequency repetitive tasks to reduce wasted inference.

    4. Capacity and Stability: Architectural Preparation for a Launch Window

    Traffic spikes when a new version opens for trial are sudden, long-tailed, and amplified by retries. Reusable practices include: queueing and token-bucket rate limiting at the entry layer to keep concurrency within what the backend can handle; elastic scaling on a container platform at the inference layer, with baseline capacity reserved for cold starts; separate pools for long tasks and short question-and-answer requests, so long-lived connections do not exhaust the capacity for interactive requests; and full-chain logging, monitoring, and alerting with tiered thresholds for queue latency, task success rate, and cost per task.

    Product design on the user side should be adjusted accordingly: quota resets, visible task queues, readable failure reasons, and resume-from-checkpoint support. These measures significantly reduce complaints and duplicate submissions during spikes.

    5. Evaluation and Selection: How to Judge Whether an Execution Engine Is Usable

    Do not rely on a single benchmark score. Build a four-dimension evaluation set: long-horizon completion rate (the final pass ratio for tasks that modify multiple files); stability (variance across repeated runs of the same task); cost efficiency (total spend per successful task); and controllability (human takeover frequency and interception rate for dangerous operations). Regressing against a fixed task set in your own environment is the only way to avoid being misled by a single demo.

    6. Adoption Roadmap

    In the first phase, pick a medium task with clear boundaries and automatic verification to close the loop, and get state persistence and checkpoints working. In the second phase, introduce collaboration among two or three roles plus write-conflict control, and validate the convergence criteria. In the third phase, scale to dozens of sub-agents and complete budgets, circuit breaking, and auditing. In the fourth phase, connect enterprise-side quotas, cost accounting, and compliance auditing to form a sustainable operating platform. Baidu AI Cloud can serve as one infrastructure option for hosting such long-horizon workloads, drawing on general capabilities such as container platforms, object storage, message queues, and monitoring and alerting.

    Overall, the value of an execution engine does not come from a longer context window, but from recoverable state management, controlled multi-agent collaboration, and an accountable cost system. Get these three things solid, and long-horizon coding and multi-day autonomous operation will move from demo to production.