Agent Infrastructure Is the Real Bottleneck, Not the Harness
This article argues that while most teams pour effort into harness engineering—prompt design, tool-call wrappers, and scaffolding code—the true barrier to production is infrastructure: sandbox isolation and lifecycle, externalized state and memory, and orchestration of asynchronous, long-running tasks. It contrasts prototype and production environments, explains why infrastructure problems surface late, and documents a shift from generic harnesses toward harness-model coupling. It also reviews common multi-agent orchestration patterns, lists seven managed capabilities a production agent platform should provide, and closes with practical guidance for teams building agent applications today.
1. The Overrated Scaffold, the Underrated Foundation
In agent application development, a common misconception is that the hardest part is “harness engineering”—the prompt design, tool-call wrapping, and scaffolding code built around a model. Many teams spend most of their effort on squeezing every bit of capability out of the model: endlessly tuning prompts, piling on constraint rules, and writing patch-style logic for minor behavioral differences.
A product and engineering lead of a cloud vendor’s agent platform offered a different judgment in a recent public interview: what makes most teams hit a wall is not harness engineering, but infrastructure. Her point was roughly this—people assume the hardest part is building the scaffold and mining the model’s potential, but once a prototype moves into production and begins to scale, problems appear one after another: sandbox environments dropping connections, state being lost, asynchronous tasks that cannot be scheduled reliably. That is the obstacle that ultimately cannot be bypassed.
This judgment deserves serious attention. The reason is that the complexity of scaffolding code is linearly accumulative: one more tool description, one more exception hint—the cost is perceptible and the benefit is verifiable. The complexity of infrastructure is non-linear: it barely exists in a single-machine demo, and only reveals itself in scenarios involving concurrency, long-running execution, cross-session and cross-process collaboration.
2. Why Infrastructure Problems Are Invisible at the Prototype Stage
To understand why this wall arrives late, you have to look at the essential differences between a demo environment and a production one.
| Dimension | Prototype / Demo | Production at Scale |
|---|---|---|
| Session duration | Seconds to minutes | Minutes to hours, even days |
| Concurrency | Single user, single session | Multi-tenant, high concurrency |
| Execution location | Local process or a single container | Distributed execution environment pool |
| Failure handling | Manual rerun | Automatic retry, idempotency, checkpoint resume |
| State storage | In-memory variables | Externalized persistent storage |
In a demo, a task runs to completion inside one process, context lives in memory, tool calls are synchronous and blocking, and a failure is handled by rerunning manually. This model is enough to support a presentation, but it cannot support a product aimed at real users.
Problems cluster in three areas:
Sandbox lifecycle and isolation. Agents need to run code, manipulate files, and invoke commands, which requires a controlled sandbox. At the prototype stage, teams often use a local subprocess as the sandbox. Once you move to a server-side environment, you face sandbox creation and destruction timing, the binding relationship between sessions and sandboxes, idle reclamation and recovery after abrupt disconnection, and resource and data isolation across tenants. If a sandbox is reclaimed while the session is still active, all subsequent tool calls fail together.
Externalizing state. An agent’s “memory” includes conversation history, intermediate conclusions, files already read, and pending checklists. If these exist only in process memory or a local temporary directory, any scheduling switch, instance restart, or load rebalancing will cause context loss—the model will repeat completed work or forget key constraints. Moving state out to object storage, a cache service, or a database may look simple, but it involves a series of design decisions: serialization format, consistency boundaries, write timing, and concurrent overwrites.
Orchestrating asynchronous and long-running tasks. Real tasks often span minutes to hours and include uncertain waits such as human approvals and callbacks from external systems. The synchronous request-response model cannot carry this; you must introduce task queues, state machines, timeout and retry policies. Tool calls also need idempotency: if a write operation is retried twice, the result must not be two writes.
One participant noted that many teams only discover, at the scaling stage, that the harness—where they invested the most effort—is not the bottleneck; what actually blocks the release cadence is this “invisible foundation.” This also explains why managed agent capabilities become a platform-level need—rather than having every team stumble through the same infrastructure pitfalls, it is better to have the platform integrate file systems, skill extensions, and memory capabilities uniformly in the cloud.
3. Trend Reversal: From a Generic Harness to Tight Harness-Model Coupling
Another notable observation from the interview was the shift in engineering focus over a year.
A few months ago, the mainstream idea was to build a generic harness: make the tool layer and prompt layer abstract enough that you could freely switch between models, with the model treated as a replaceable “inference backend.” This approach made sense when model capabilities did not differ much, and it maximized the reuse of engineering investment.
But now the technical routes and optimization priorities of the major labs have clearly diverged—inference strategies, tool-call protocols, and context management approaches all differ. To get the best results from a specific model, the harness must be adapted to it. A reverse trend has emerged: the harness is highly paired with the model; the generic abstraction layer is broken, replaced by deep tuning for a single model.
This shift has direct implications for architecture. If the harness is tightly bound to the model, then “replaceable models” is no longer a free property but an engineering capability that must be explicitly designed. Teams need to clearly separate two kinds of code:
# Counter-example: model-specific behavior leaks into business logic, tightly coupleddef handle_request(user_input):prompt = f"""You are a helpful assistant.IMPORTANT: Always output valid JSON.Think step by step before answering.""" + user_inputreturn model.generate(prompt, temperature=0.2)# Recommended: converge model adaptation in an adapter layer, keep business logic neutralclass ModelAdapter:"""Wraps model-specific behavior: prompt templates, structured output, retry policy"""def complete(self, messages, tools, schema): ...class AgentCore:"""Depends only on an abstract interface; indifferent to which inference backend is behind it"""def __init__(self, adapter: ModelAdapter, sandbox, memory): ...def run(self, task):for step in self.plan(task):result = self.adapter.complete(step.messages, tools, step.schema)self.memory.commit(step, result)
Once the adapter layer is abstracted out, the cost of switching models drops from “rewriting business logic” to “implementing one adapter,” while preserving room for deep optimization for a specific model.
4. Multi-Agent Orchestration: From a Single Loop to a Topology
Managed agent capabilities emphasize multi-agent orchestration because many tasks cannot be completed with a single “think-act” loop. Once the harness is tightly coupled with the model, the orchestration layer becomes the main testing ground for different harness techniques. Several patterns mentioned in the interview are representative:
Separating the executor from the advisor. One agent performs the actual operation while another reviews its approach and offers suggestions. Their prompts, contexts, and tool permissions are deliberately different, which effectively decouples “doing” and “reviewing” into two cognitive modes. Compared with letting the same model self-check, this external review more easily finds blind spots.
Adversarial generation and review. Content production scenarios often use this topology: one agent produces output, another reviews it with the goal of finding faults, and the two iterate within a limited number of rounds until acceptance criteria are met or the round limit is hit. The engineering key is setting a clear termination condition and round budget; otherwise the two agents will fall into meaningless back-and-forth.
Swarm-style parallel exploration. Tasks such as diagnosing defects, searching code, and gathering evidence are naturally parallelizable. You can dispatch multiple lightweight agents to approach the problem from different angles, then have an aggregation agent deduplicate, cross-verify, and produce a conclusion. The benefits and costs of this pattern are both direct: parallelism reduces latency but increases token consumption and adds arbitration cost when results conflict.
Independent result acceptance. Beyond orchestration, “how to determine that a task is truly complete” is also an infrastructure problem. Verifiability requires that a task have observable intermediate states and clear completion criteria, rather than relying on the model to say “I have finished.”
From an architectural perspective, multi-agent orchestration splits control flow that was originally concentrated in a single process into a distributed collaboration problem spanning processes and sessions—which returns us to infrastructure: message passing, state synchronization, failure propagation, and overall timeout control.
5. Managed Capabilities a Platform Should Cover
Overall, an agent hosting platform aimed at production needs to provide at least the following categories of general capabilities so that developers do not have to rebuild them:
- Managed execution environments: isolated sandboxes that can be elastically created and reclaimed, support file read/write and command execution, with resource quotas and tenant isolation.
- Externalized state and memory: persistence of session history, intermediate task artifacts, and long-term memory, with a cache layer to control access latency.
- Skill and tool registration management: a unified entry point for tool descriptions, parameter validation, permission scopes, and version management, so each project does not build its own.
- Long-running task scheduling: task queues, state machines, timeout and retry, checkpoint resume, and the suspension and resumption of human-in-the-loop nodes.
- Multi-agent orchestration primitives: task distribution, result aggregation, round control, and topology definition.
- Identity and permission wrapping: what identity the agent uses to access external systems, how permission boundaries are constrained, and how sensitive credentials are managed. This item was specifically mentioned in the interview—the platform wants to first encapsulate foundational components like “agent identity” in a safer way at the starting stage, rather than rushing to pile on upper-layer forms.
- Observability: call-chain tracing, log collection, metric monitoring, and alerting, used to locate hard-to-reproduce behavioral deviations in multi-agent systems.
The common feature of these seven capabilities is that they are unrelated to specific business logic, yet missing any one of them will create a hard blockage in a production environment. This is precisely what “the infrastructure barrier” concretely refers to.
6. The One-Year Judgment and Advice for Now
On the question of “whether harness engineering will still be needed a year from now,” the interview’s direction is extreme simplification: a large amount of scaffolding code will be deleted, the need for prompt engineering will drop significantly, and building tools will no longer require handcrafting each one. This judgment is credible in direction—once a platform standardizes execution environments, state, skills, and scheduling, developers can indeed shift their energy from “patching scaffolds” to “defining tasks and acceptance criteria.”
But two caveats are worth raising. First, harness engineering will not disappear; it will move up the stack: from “hand-writing prompts and patches” to “configuring orchestration topologies, defining acceptance criteria, and constraining permission boundaries”—the nature of the work changes rather than the total dropping to zero. Second, as long as the trend of tight harness-model coupling persists, the need for deep tuning will always exist, just concentrated in fewer hands.
For teams currently building agent applications, there are three actionable recommendations:
- Do an infrastructure audit before feature development. At the prototype stage, ask clearly: how are sandboxes reclaimed, where is state stored, and how does a task recover after interruption? The answers to these three questions determine the ceiling of the architecture.
- Define clear model adaptation boundaries. Even if you only use one model for now, you should converge model-specific behavior into an independent adapter layer, leaving room for later switching or deep tuning.
- Invest as much effort in designing for acceptance as in designing for generation. A multi-agent system without reliable criteria grows in complexity faster than in benefit; every layer of the orchestration topology should be bound to observable completion conditions.
Baidu AI Cloud’s work on agent-related platform capabilities likewise centers on general directions such as managed execution environments, state persistence, tool and skill management, task scheduling, and observability, with the goal of letting developers focus on business logic and acceptance criteria rather than repeatedly building the underlying foundation.
