Tenant Isolation Architecture Decisions That Compound When Computer-Use Agents Move From Pilot to Product

Pilot shortcuts in compute, memory, and auth become cross-tenant leaks.

· 9 min read
Cover illustration for “Tenant Isolation Architecture Decisions That Compound When Computer-Use Agents Move From Pilot to Product”
Agent Patterns · November 23, 2026 · 9 min read · 1,958 words

Per-user persistent AI agent deployment at scale requires isolation across compute, storage, memory, and authorization. Session-level microVMs and persistent file systems are the base on which agents run, and tenant identity must control every data and memory access below the model. Choices that seem harmless in a pilot can give real users paths into each other’s data when they arrive.

Why the pilot-to-production transition is a structural problem, not a configuration one

A computer-use agent can click, type, read the screen, and act through a full desktop. Its exposed surface is the operating system. That changes what a tenant boundary must contain. Files, browser sessions, credentials, clipboard contents, and background work can all outlive the action that created them. An API permission check does not cover that whole environment.

A pilot hides much of this problem. One tenant, a narrow task, and a human ready to intervene limit the consequences of weak boundaries. Those conditions can make an incomplete architecture look sound, because there is little opportunity for one customer’s state to reach another. Production removes that protection. Each underspecified boundary now extends across users, sessions, operating systems, and regulated data.

The resulting failures are not simply configuration mistakes. They follow from decisions that depended on pilot conditions, such as sharing an OS environment or leaving tenant selection to a tool argument. Changing one setting cannot add a missing security boundary. The architectural map therefore has four layers, which are compute, storage, memory, and authorization.

Why shared-kernel containers are the wrong compute boundary for multi-tenant agent workloads

The ability to write and execute code changes the compute threat model. LLM-generated and user-supplied code must be treated as hostile regardless of intent. Docker/runc containers share the host kernel, making them an insufficient boundary for this workload. An execution-layer vulnerability or reachable privileged daemon can expose the host. Correct container configuration does not turn a shared kernel into a separate one.

Pillar Security’s 2026 research documented sandbox bypasses involving Codex CLI, Cursor, and Gemini CLI through a reachable Docker socket. The escapes did not break the sandboxes directly. Instead, code inside them reached a privileged host daemon. The distinction is important because restricting the agent’s immediate environment does not help if that environment can still ask a more powerful service to act.

gVisor intercepts Linux system calls in user space, moving enforcement further from the workload but without a fully separate kernel boundary. Kata Containers gives each workload a dedicated microVM and guest kernel, with cgroups and namespaces applied inside it. Firecracker uses KVM-backed hardware virtualization and its own guest kernel for high-volume untrusted execution.

Startup latency is a real but bounded objection. Pre-booted machines and snapshot restore largely remove the latency argument for containers, although snapshot design introduces its own obligations. Amazon Bedrock AgentCore illustrates the session-level approach by launching lightweight microVMs with isolated file systems. Its persistent file systems are a separate opt-in feature, so dedicated execution and remembered state remain distinct architectural choices.

How tenant scope set at the prompt layer instead of the identity layer becomes a structural hole

The Stochastic Deputy describes an authorization problem that goes deeper than an agent ignoring instructions. If the model can supply tenant identity, tenant selection depends on generated output. Its 2026 study found 12 trials in which agents escaped the interface by forging writable scope. An incorrect tenant ID in a curl command need not come from deliberate malice. Sampling, prompt injection, or a misguided debugging attempt can be enough.

The defense starts before the model acts. Tenant scope must enter through the identity provider and flow downward, with no route for agent output to change it. Removing a tenant argument from tool schemas closes one route, and stripping client-supplied scope headers at the gateway closes another. Both restrictions are still needed even with a prompt telling the agent to stay within its tenant.

A production stack then needs enforcement beyond the interface. A required boundary object binds data access to tenant ID, workspace ID, role, allowed tool IDs, allowed datasource IDs, and memory namespace. An authorization proxy strips and reinjects the correct credentials on every outbound call, keeping raw credentials away from the agent. OS-level egress restrictions add a final boundary that does not depend on the layers above.

These controls must block on uncertainty. Any function that touches customer data without a valid boundary object is too powerful. Otherwise, one missed call path can undo the limits set everywhere else.

Memory as the most overlooked cross-tenant leak surface

Filtering retrieval results after ranking is the wrong boundary. In a shared vector index, approximate semantic search can surface another tenant’s candidates before a later filter removes them. Tenant and workspace filters belong at query time, before ranking. Out-of-scope candidates must never reach the model, even as intermediate retrieval results. A final answer that looks properly scoped does not prove that its input was.

This is harder to spot in memory than in ordinary file access. Chat history, retrieved documents, planner scratchpads, and user corrections accumulate across sessions and may enter later prompts. Tool call history, browser sessions, and background job state add to the context that is kept. The leak can therefore happen long after the original interaction. Persistence is useful because it keeps information at hand, but it also lets a weak boundary last.

The enforcement point belongs in the memory client wrapper. Hierarchical keys should encode tenant ID, workspace ID, and user ID, with every read and write requiring valid boundary context. When key strings are built by hand throughout the application code, each caller has to get isolation right. The wrapper makes scoping a condition of access instead.

Shared indexes with metadata filters can work for low-sensitivity content, but bugs in those filters can expose candidates. Separate tenant namespaces are the usual pattern for most B2B applications, but regulated or high-value data needs separate physical indexes. None of those choices removes the need to scope retrieval before ranking.

How the OS surface multiplies when agents must run on Windows and Android, not just Linux

The actual evaluation surface already extends beyond Linux. OSWorld primarily uses Ubuntu but also supports Windows and macOS. WindowsAgentArena has a Windows benchmark, and another benchmark has Android tasks. Training, evaluation, and data generation in production must therefore work across more than one operating system. The isolation architecture must account for the environments the work actually uses.

Each OS brings different hypervisor paths, licensing requirements, and isolation primitives. Android’s emulator layer also limits some execution and inspection capabilities available on Linux. Process boundaries, credential stores, and clipboards differ across these environments, but each can expose tenant state that has been kept. Supporting another OS is consequently more than getting the agent’s clicks to work.

Clinical workflows make the consequences especially concrete. An agent reading an EHR or payer portal sends screenshots to a model, and those screenshots contain PHI. A BAA must cover the model endpoint, screenshot store, and every log, and the EHR or portal’s terms must allow screen automation. The delivery path does not remove those obligations.

Citrix is the dominant delivery layer for legacy clinical applications and signs BAAs for eligible services. Organizations must execute an agreement specifying covered products, data locations, subprocessors, and breach notification terms before transmitting or storing PHI through a Citrix-mediated session. But a delivery boundary is not a compute boundary. A shared desktop can retain clipboard contents, temporary files, or screen buffers for the next session, making OS support a compliance and isolation problem as well as a compatibility one.

Persistent state and snapshot architecture as both a performance feature and an isolation hazard

Firecracker snapshot restore makes session-level VM isolation practical at scale. A first cold boot takes roughly one second, while subsequent snapshot-based spawns take a fraction of that time. This is the mechanism behind the warm-pool answer to startup latency.

A snapshot saves all the contents of memory, the CPU registers, and the device state. On restore, Firecracker memory-maps the snapshot file, loads CPU state, and resumes where execution stopped. The guest does not know it was paused. Differential snapshots support incremental checkpoints by saving microVM state and at least the memory accessed since the previous snapshot in a sparse file, potentially including more pages because of tracking limits.

That continuity also creates a control-plane hazard. Firecracker closes every guest vsock connection on resume, so a long-lived control channel does not survive the checkpoint cycle intact. Persistent agent sessions therefore need reconnect logic. Without it, the control plane can lose visibility into an agent mid-task even though the guest has resumed.

Snapshot reuse introduces a separate tenant boundary problem. A shared base image holds whatever state was there when it was captured, including cached credentials, signed-in browser sessions, and temporary files. Fast restoration faithfully restores that state too. Base snapshots must therefore be credential-free and session-state-free before reuse across tenants, while customer-specific persistent state remains scoped to its own session.

What isolation breaks mean when agent sessions run as swarms, not single instances

During evaluations, RL rollouts, or batch automation, a misconfigured namespace or shared credential can expose all sessions using it at once. This is no longer a single-session incident.

VeriGen synthesizes verifiable GUI tasks with executable rewards from live OS environments at 100+ parallel workers. In that setting, a contaminated observation from one worker can corrupt the training signal for the entire batch. Isolation protects the validity of the work and the confidentiality of its inputs.

The scheduler must enforce the boundary before the work starts. When workers claim pre-booted machines, it determines their snapshots, network namespaces, and credentials. An agent that cannot influence those choices cannot accidentally rewrite its own isolation boundary. Elastic sandbox pools can then scale to zero when idle and supply warm machines in milliseconds without introducing new per-agent isolation decisions.

AgentCore’s Silo, Pool, and Bridge patterns make this an explicit tiering choice. Silo gives each tenant a dedicated runtime and the strongest noisy-neighbor protection, while Pool shares infrastructure with strict in-process context propagation. Bridge shares common workflow steps but isolates tenant-specific logic. Those patterns define where sharing occurs rather than leaving it to emerge as workload volume grows.

Diagram: AgentCore's Three Sharing Tiers: Silo, Pool, Bridge. Visualizes: The article describes three explicit multi-tenant architecture tiers from Amazon Bedrock AgentCore: Silo (dedicated runtime per tenant, strongest noisy-neighbor protection)…

What does per-user persistent AI agent deployment at scale require across all four layers?

Diagram: Four Isolation Layers: From Compute to Authorization. Visualizes: The article defines exactly four mandatory layers for per-user persistent AI agent deployment at scale: compute, storage, memory, and authorization.

Production readiness depends on satisfying all four layers together. The compute criteria are VM-grade isolation per session, a persistent file system scoped to that session, warm-pool restoration, and clean base snapshots. Storage adds a workspace-per-tenant model, with every file operation linked to a workspace ID at ingestion, establishing ownership before retrieval filtering. The distinction is when ownership becomes binding. It must precede access.

Memory reads and writes require valid boundary context, enforced through the wrapper, with audit records keyed to tenant, workspace, and request ID. Authorization requires identity-derived scope, credential mediation on outbound calls, and OS-level network restrictions such as user-identifier-based iptables or an equivalent. A failure or uncertainty must block access. Otherwise, the system’s safest path is optional.

For teams deploying thousands of persistent agents without rebuilding the execution infrastructure, managed persistent agent boxes are an architectural option. The category includes Firecracker microVMs billed per second, sleeping when idle and waking in roughly one to two seconds, with per-session file systems and human takeover capability. These services address compute and storage directly. They do not remove the application’s responsibility for memory scoping or authorization, where customer-specific rules live.

The remaining design decision is how much infrastructure tenants share. AgentCore’s design guide treats Silo, Pool, and Bridge as an explicit multi-tenant architecture choice to make before deployment. The same discipline applies to every boundary in the stack. Deferred isolation decisions harden into the production system, where resolving them at incident time costs far more than choosing them at design time.

Sources

  1. The Stochastic Deputy: Structural Tenant Isolation for Tool-Using LLM Agents
  2. Cross-Interface Authorization for AI Computer-Use Agents
  3. TClone: Low-Latency Forking of Live GUI Environments for Computer-Use Agents
  4. AgentBay: A Hybrid Interaction Sandbox for Seamless Human-AI Intervention in Agentic Systems
Filed underAgent Patterns

More in Agent Patterns