Why General-Purpose Cloud Primitives Force SaaS Teams to Hand-Roll Per-User Agent Isolation
Compute, state, and credentials must be isolated together, and cloud primitives don't do it.

Per-user persistent AI agent deployment at scale requires isolation across compute, state, credentials, and tool execution, with memory that survives between sessions. General-purpose cloud primitives do not provide that whole boundary, so SaaS teams must assemble it themselves. Teams can instead use infrastructure with per-agent isolation built in, so they do not have to connect separate safeguards across every layer.
Why the cloud stack was built for packing, not per-agent isolation
The original cloud stack was built for one application serving millions of people. Virtual servers, file storage, managed databases, and load balancers supported a stateless application tier, with durable state pushed into a database. Requests shared machines to improve throughput and utilization. Idle capacity was waste, so packing was the goal. That was a sound design for the workload.
Containers and short-lived functions built on that model and kept its core assumption. Workloads were still expected to be stateless, predictable, and broadly uniform. Agents invert that assumption by needing isolated execution, state that outlives a task, and capacity for bursts of uneven duration and resource consumption. The optimization target changes with the workload. Isolation, persistent memory, and cold-start times become central requirements, but the original primitives do not expose them as one per-agent environment.
What agents actually need from a compute environment that containers cannot provide
An agent is not just a longer web request. It can execute arbitrary or LLM-generated code, change in-memory state across turns, invoke tools with real-world effects, and pass context into model calls. Doing those things requires compute, state, credentials, and tool execution to be isolated at the same time. Shared-kernel containers have no hardware-level boundary around those parts. Docker/runc namespace separation can work for trusted, low-risk code, but it is not enough for code that nobody reviewed before it ran.
That difference matters when generated code deletes files, installs malicious packages, or opens arbitrary network connections. Packaging the code leaves it with the same authority. The OWASP Top 10 for LLM Applications identifies Excessive Agency, designated LLM06:2025, as the risk created when an LLM system has more functionality or permissions than its task requires. A sandbox therefore has to contain execution, while permission controls limit what that execution can reach. Neither replaces the other.
The isolation spectrum reflects different trust assumptions. AsyncLocalStorage binding addresses accidental state leakage in trusted first-party code. gVisor provides security isolation without full VM cost, at roughly 8–15% overhead versus native execution, while Firecracker microVMs provide a hardware boundary for multi-user platforms running AI-generated code. Startup latency remains a separate operational concern. Production systems need warm pools of pre-initialized sandboxed pods to absorb it, adding per-tenant lifecycle management that general cloud schedulers do not provide as a complete primitive.
Where Kubernetes and shared pods break down for per-user agent workloads
Kubernetes schedules workloads efficiently across a shared cluster. Its bin-packing model fits shared application capacity, but it does not by itself provide a dedicated execution boundary for each user's agent. Namespace-per-tenant isolation separates workloads logically. A misconfigured network policy or shared-node exposure can undermine that separation.
Duco illustrates how much infrastructure remains outside that boundary. Duco's Amazon EKS clusters used namespace-per-tenant isolation and Kubernetes network segregation, but the rules for regulated financial services required each tenant to have its own dedicated data infrastructure. That included an Aurora MySQL database, S3 bucket, KMS keys, SES/SQS messaging, ElastiCache, and a Cognito user pool. No data infrastructure was shared across clients. Kubernetes managed the workloads, but the tenant boundary depended on a larger stack assembled around it.
Token consumption follows a heavy-tailed distribution, so a power-user session can use far more tokens as tasks get more complex, tool-call depth grows, and retry loops increase. Fixed capacity can leave demanding sessions short of resources or waste margin across the fleet. Meanwhile, conversational history, planning state, and tool context persist through a re-entrant session, so a misconfigured execution graph can propagate corrupted state into later calls. Teams therefore add warm-pool management, per-tenant network policies, and per-session resource limits on top of the scheduler.
Why pool-model databases leak context across tenants when agents retrieve and reason
In a pool-model database, customers share tables, and tenant_id filtering keeps their records separate. It improves utilization and simplifies operations, but a validated tenant ID at the gateway does not protect every later retrieval. An agent's context window is another contamination surface. Internal tool calls, sub-agent retrieval chains, and memory queries can all happen after the original check, and each must keep the same scope.
A missing metadata filter in a sub-agent's retrieval call can return fragments from the wrong customer's index. Semantic retrieval need not reject those fragments. Instead, the agent can weave them into a plausible answer without an error code or stack trace. The request appears to have succeeded. This silent contamination differs from failures that announce themselves at an API or query boundary, because the wrong data can look like useful evidence.
If the agent becomes the principal for data access without preserving the user's identity, a user from tenant A can trick it into serving tenant B's data. The correct pattern propagates tenant ID and role claims from a validated JWT through to the data access layer, where the database enforces row-level security. The model's reasoning is not an access-control boundary.
Pool isolation therefore depends on scoped identifiers, access policies, and data partitioning throughout the execution path. A gateway filter alone cannot do that work. Once leakage is discovered, remediation is not just a configuration change, because every retrieval operation, tool executor, and memory manager needs an audit. That work can take months. Choosing an isolation model before the first customer avoids treating this audit as the migration plan after tenants already share the system.
How credentials and tool execution add a third entangled boundary
Even with isolated compute and database row-level security, the action boundary is at risk if an agent gets the wrong credentials. Tools act with the authority they are given. An agent can be isolated and still reach another tenant's downstream services, messaging systems, or files through shared credentials or an inherited service account. The compute boundary contains the process, but not the authority granted to it. With too many permissions, the damage can spread to every system those credentials can reach.
Tool access must also respect the roles that users have within a tenant. An admin user's agent may need permission to modify data while a staff user's agent must not have it. Enforcement belongs at tool execution. Amazon Bedrock AgentCore's Policy component provides a managed boundary for agent actions. Without such a primitive, teams write permission enforcement for each tool and keep it aligned with the user's identity.
Axonius uses a separate AgentCore runtime for each customer, with a dedicated elastic network interface inside that customer's VPC and subnet. That design gives one customer's agent no network path to another customer's data. Sensitive cybersecurity asset inventories drove the choice of deterministic microVM session isolation.
The three isolation models teams converge on and the structural cost each carries
Silo, Pool, and Bridge make different exchanges between isolation and cost. Silo gives each tenant a separate runtime, vector index, and API endpoint, creating hard partitions at the highest infrastructure cost. It suits HIPAA, SOC 2, and FedRAMP workloads and enterprise deployments with large seat counts. Duco's dedicated data stack illustrates this model. Provisioning and teardown are expensive operationally, but an infrastructure-level rollback offers a remediation path rather than a multi-month audit through a shared execution graph.
In Pool, tenants share infrastructure, and queries are filtered by tenant_id. It has the lowest cost and suits PII-free, low-risk workloads with small tenant counts. Shared updates, patches, and backups reduce operational work, while a common database configuration avoids drift between tenants. The tradeoff moves into application enforcement. Every retrieval path, tool executor, and memory manager must retain tenant scope, and a failure can require the broadest remediation audit of the three models.
Bridge uses Pool for low-risk tenants and Silo for high-risk tenants. Most platforms above a moderate tenant count end up operating this tiered model because customer requirements do not fit one uniform boundary. Designing for Bridge from the start, even when launching with Pool, avoids retrofitting scope into retrieval paths that never had it. Shared tiers can also distinguish Basic from Premium through model access, tool availability, and rate limits without duplicating infrastructure for every customer. That flexibility requires maintaining both isolation approaches and routing between them.
These are rational choices for different workloads. Silo spends more on dedicated infrastructure, Pool spends more engineering effort on pervasive scope enforcement, and Bridge adds the obligation to operate both correctly. General-purpose cloud primitives leave that coordination to the team. Yet imposing the strongest isolation requirement on every tenant is also an anti-pattern, because it can make lower-risk use cases unaffordable. The boundary must match the risk without creating an unmanageable collection of exceptions.
Why the hand-roll tax compounds with each new tenant boundary
The expensive failures happen where isolation layers meet. Long-lived state gives an agent more turns to incorporate and amplify a fragment retrieved from the wrong tenant. A credential-scope error can turn that contaminated context into an unauthorized tool action. Each safeguard therefore relies on the others to keep the same tenant and role boundaries in place. Each new layer needs setup work and adds connections that teams must keep working.
Cost controls have the same dependency problem. Because of heavy-tailed token consumption, teams need ongoing per-tenant instrumentation for long-lived sessions, even after they have chosen how much capacity to provide. A compromised session can consume a disproportionate share of the token budget before anyone notices. Without adequate metering, that consumption can resemble normal usage until the invoice arrives. Session lifecycle, resource limits, and cost attribution have to work together.
Compute and sandboxing, memory, tools, model routing, orchestration, and observability are not independent workstreams, because each layer's isolation requirements constrain the others. By a moderate tenant count, scope logic can be distributed across the gateway, API middleware, retrieval chains, memory managers, tool executors, and credential stores. Changing one can require auditing the rest. The maintenance obligation grows through those connections and through the number of customers provisioned.
The alternative is an infrastructure layer that owns the complete isolation boundary. Its design gives each agent task a machine, persistent and resumable state scoped to that machine, credentials tied to the user's identity, and contained tool execution. Firecracker microVMs provide the hardware mechanism, with separate memory, filesystem, and network interfaces. Snapshot-restore preserves state across pause and resume without rebooting. Credential propagation and tool policy still need to be part of the surrounding infrastructure.
That design also changes the economics of dedicated execution. Per-second billing and no idle compute charges for sleeping machines tie compute cost to actual use rather than reserved capacity, although saved-state storage remains billable. Persistent agents can then sleep between sessions and keep their isolation boundary. Human takeover of an agent's desktop adds an oversight path that connects autonomous execution to accountability. The defining requirement is infrastructure that manages the relationships between the agent's boundaries, freeing each SaaS team from rebuilding them.


