AI Agent Memory and Parallel Collaboration: What Comes After the Execution Harness

    A joint survey from academic and cloud industry researchers argues that the agent execution harness, not the model itself, now sets the ceiling on agent capability. Reviewing the open-source ecosystem from 2022 to 2026, the survey proposes a seven-layer taxonomy in which execution and sandbox layers are the most numerous and mature, while context and memory management is the weakest, with few standalone components. This article examines why that imbalance exists, why memory needs to become a first-class component with layered design, and how a control plane plus execution plane architecture can let multiple isolated sandboxes share context and run long tasks in parallel.

    The center of gravity in the AI agent stack is shifting. Once the execution harness packages model capabilities into a standard layer that can be invoked and orchestrated, the real bottleneck is no longer the model but the glue layer that hosts the agent. A survey published jointly by academic researchers and a cloud vendor states plainly that the harness has become a key factor constraining the upper limit of agent capability. Reviewing the open-source ecosystem between 2022 and 2026, the survey distills a seven-layer taxonomy: execution and sandbox projects are the most numerous and the most mature, while context and memory management is the weakest, with very few standalone components and most implementations existing as add-on features of frameworks. The coexistence of “most mature” and “weakest” reveals two sides of the same problem.

    From Harness to Runtime: Where the Bottleneck Moves

    The harness answers how an agent calls tools and orchestrates steps. Once it exists, the industry inevitably asks a deeper question: if a model can run locally or in the cloud through a glue layer, can a single agent span both local and cloud environments to complete long-running tasks collaboratively? Can multiple agent instances that share context run in parallel across many isolated environments, compressing work that would otherwise take months or years?

    Both scenarios depend on the same engineering prerequisite: agents need a runtime that is stable, isolated, and elastically scalable. It is worth emphasizing that the underlying technologies supporting all of this—cloud computing, containers, virtualization, and distributed scheduling—matured well before the generative AI boom. This round of change is therefore not a rebuild of infrastructure but a shift in what infrastructure is used for: from serving stateless requests to hosting stateful, long-lived agent workloads.

    The Imbalance Between Execution Environments and Memory

    The execution environment answers where an agent runs; the memory system answers what an agent remembers. The two should work together, but the current ecosystem clearly favors the former.

    A typical pattern looks like this: an agent is assigned a cloud work machine where it can write code, access the network, and manipulate the file system. As soon as the task ends, the environment is destroyed, and the next run starts from zero. This is equivalent to giving someone a brand-new office every day, clearing all notes, files, and desktop layout, and leaving only a résumé. The person can still work, but cannot accumulate experience.

    Industry data confirms the change in workload shape. Data from one sandbox service platform shows that between 2024 and 2025, the average runtime of a single sandbox grew more than tenfold. Agents are moving from short tasks that finish in minutes to long tasks that run for hours or even days. Whether it is the early general-purpose agent cloud instances or the more recent cloud workspace products, the essence is the same: simulating a complete human workflow inside a virtual computer. Sandboxes have evolved from temporary tools into long-term workspaces, but memory systems have not evolved with them.

    Why the Memory Layer Is the Weakest: Three Structural Reasons

    First, the payoff of externalizing state is delayed. The value of an execution environment is immediate—if it runs, it produces output. The value of memory only appears after many tasks accumulate, is hard to quantify in the short term, and therefore attracts less investment.

    Second, consistency and isolation are inherently in conflict. Parallel multi-instance execution requires environments to be isolated from one another, while shared memory requires state to flow between them. Without clear read/write boundaries and version semantics, shared memory degrades into a source of race conditions and contamination.

    Third, there is no common abstraction. File systems, processes, and networks all have mature standards, whereas memory has long been baked into the prompt-concatenation logic of specific frameworks, making it hard to reuse or replace.

    Building Long-Term Workspaces That Accumulate Experience

    For agents to remember, memory must be promoted from an add-on feature to an independent first-class component, designed in layers:

    • Working memory: the context window and intermediate artifacts of the current task, reclaimed when the task ends;
    • Episodic memory: task traces, tool call results, and failure reasons, used for replay and retrieval;
    • Semantic memory: reusable knowledge entries, code snippets, and environment configuration baselines;
    • Procedural memory: successful paths solidified into replayable scripts or workflow templates.

    A sketch of a layered storage interface (pseudocode):

    1. class MemoryStore:
    2. def write(self, layer: str, key: str, value, ttl=None): ...
    3. def read(self, layer: str, key: str): ...
    4. def search(self, query: str, top_k: int = 5): ...
    5. def snapshot(self, env_id: str): ... # Environment state snapshot
    6. def restore(self, env_id: str, snap): ...

    Three practices are critical. First, take a state snapshot before the environment is destroyed, decoupling the “workspace” from the “runtime container”: the former is persisted to object storage or block storage, while the latter can be rebuilt at any time. Second, memory writes must carry provenance and confidence so that incorrect experience is not repeatedly amplified. Third, define retention and eviction policies for memory to prevent the context from growing without bound.

    Multi-Instance Parallelism and Shared Context

    Parallelism only becomes meaningful once memory can be persisted. A workable architecture separates the control plane from the execution plane: the control plane maintains shared memory and the task DAG, while the execution plane consists of many isolated sandboxes that each claim subtasks.

    1. Control plane: task decomposition → shared memory (read-heavy, partitioned writes)
    2. ├── Sandbox A: subtask 1 → output written to episodic memory
    3. ├── Sandbox B: subtask 2 → reads semantic memory to reuse baselines
    4. └── Sandbox C: subtask 3 → failure trace returned, triggering replanning

    Three classes of problems must be handled in engineering. The first is concurrent write conflicts, addressed with partitioning, leases, or version numbers. The second is context consistency, following the rule “shared read-only, local writable, validated on merge.” The third is cost elasticity: use the elastic scaling and queue-based peak shaving of container platforms to split long tasks into parallel short segments, and use logging services and monitoring alerts to track the trace and resource usage of each instance.

    Implementation Advice and Outlook

    For developers and enterprise users, a three-step path is recommended: first standardize the runtime environment (unified images, snapshots, and rebuild procedures); then turn memory into an independent service (layered, searchable, evictable); finally introduce parallel scheduling and a shared context protocol. Baidu AI Cloud, with general capabilities such as container platforms, object storage, logging, and monitoring, can serve as one infrastructure option for hosting such long-cycle agent workloads.

    The competition after the harness will shift from “can it run” to “can it remember” and “can it run together.” Whoever balances the tension between isolated environments and persistent memory will turn agents from one-off tools into productive units that accumulate over time and scale in parallel.