Dev.to AI 🤖 Ai 👁 0 📖 14 min read

The Harness Is the New Runtime: Running AI Agents as First-Class Kubernetes Workloads

At KubeCon + CloudNativeCon North America 2026, one of the conversations that caught my attention was The Harness Is the New Runtime by Idit Levine and Keith Babo (Solo.io). As AI agents move from developer laptops into

The Harness Is the New Runtime: Running AI Agents as First-Class Kubernetes Workloads

At KubeCon + CloudNativeCon North America 2026, one of the conversations that caught my attention was The Harness Is the New Runtime by Idit Levine and Keith Babo (Solo.io). As AI agents move from developer laptops into production environments, the cloud-native community is facing a new infrastructure challenge: we can no longer treat agents as just another container running inside a Kubernetes Pod. These workloads are stateful, unpredictable, tool-driven, and capable of interacting with systems that carry real production risk. The question is no longer simply how to deploy an AI agent, but how to isolate it, manage its lifecycle, control its network access, preserve its state, and scale it without keeping expensive compute running while it waits. This is where concepts like Agent Substrate, Actors, sandboxed execution, and agentgateway become particularly important. For Kubernetes, Platform Engineering, and SRE communities, this represents a significant shift in how we think about workload orchestration, runtime security, and infrastructure ownership in the age of agentic AI

Spotify

**From local agent loops to isolated, policy-enforced, suspendable

workloads on Kubernetes.**

A developer runs Claude Code, Codex, or a VS Code agent loop on their
laptop. It reads files, executes shell commands, modifies source code,
calls external APIs, connects to MCP servers, and occasionally makes
decisions that would make a security engineer uncomfortable. It works remarkably well on a developer's machine.

Then someone asks the obvious question: Can we run this on Kubernetes?

The first instinct is familiar. Package the agent into a container,
write a Deployment manifest, attach a ServiceAccount, configure resource limits, and let the cluster scheduler take care of the rest.

That approach misses the actual problem.

An AI agent isn't simply another HTTP service waiting for requests. It
is an execution environment that wakes up, reasons, invokes tools,
modifies state, waits for external input, and eventually goes idle. Its
security boundary, lifecycle, persistence requirements, and network
behavior are fundamentally different from those of a conventional
microservice.

The architectural question is no longer just how to containerize an
agent. It is how to give an agent a runtime that understands its
lifecycle and constrains what it can do.

This was the central idea behind The Harness Is the New Runtime, the KubeCon + CloudNativeCon North America 2026 keynote by Idit Levine and Keith Babo of Solo.io.

Watch the keynote alongside this breakdown:

Official CNCF YouTube keynote

The Harness Is the New Runtime --- Idit Levine and Keith
Babo

1. The Next Workload Migration: From Monoliths to Agents

There is a useful historical parallel here.

We moved from monolithic applications running on individual servers to
microservices running in containers. Eventually, containers moved from
developer laptops and standalone Docker hosts into shared Kubernetes
infrastructure.

The application packaging model changed, but so did the operational
model. Scheduling, networking, service discovery, resource management,
and security became platform responsibilities. Agent harnesses are approaching the same transition.

Consider what a modern coding agent actually contains:

  • Model: The reasoning engine, whether Claude, GPT, Gemini, or another model.
  • Tools: Shell access, Git, HTTP clients, APIs, databases, and other executable capabilities.
  • Skills: Reusable instructions and domain-specific workflows.
  • Plugins: Extensions that introduce additional capabilities.
  • Filesystem: Workspace, source code, configuration, history, and intermediate artifacts.
  • Execution loop: The mechanism that interprets the objective, selects tools, executes actions, and evaluates results.

The important distinction is that the harness is not the model itself.

An agent harness is an execution shell that connects a model to its
tools, skills, plugins, and working environment. Most of what makes an
agent useful is available through its filesystem and the capabilities
exposed to it.

This is why Claude Code, Codex, and similar agent environments are
interesting from a platform engineering perspective. They are
increasingly general-purpose execution environments rather than simple
chat interfaces.

And once developers start running them against production repositories,
cloud APIs, internal services, and infrastructure code, the platform
team inherits a new responsibility.It needs to manage the harness as a workload, not merely deploy an application that happens to call an LLM.

The KubeCon keynote makes this migration explicit: the harness becomes
the dominant runtime pattern, while Kubernetes provides the
infrastructure primitives needed to operate it.

2. Why a Standard Kubernetes Pod Is Not Enough

Kubernetes is not incapable of running AI agents. You can run an agent
inside a Deployment today. For simple, continuously running agents, that might be perfectly reasonable. The problem appears when you try to operate thousands or millions of independent agent sessions.

Traditional Kubernetes workloads generally follow a predictable
lifecycle:

  1. A Pod starts.
  2. The application initializes.
  3. It serves requests.
  4. It remains available.
  5. It terminates or gets replaced.

Agent workloads behave differently.

An agent might execute a tool for three seconds, wait twelve seconds for model inference, run another command, pause for a human approval, and remain idle for several minutes before receiving another instruction. That creates three infrastructure problems.

2.1 Idle agents consume expensive resources

Imagine 10,000 active agent sessions running as individual Pods.

Even if each agent is doing absolutely nothing while waiting for an
external response, its container still occupies memory and contributes
to scheduling and infrastructure overhead.

CPU utilization might be close to zero, but memory reservations do not
disappear. For an agent fleet, this is a particularly inefficient resource model. The workload needs to preserve its state without reserving an entire execution environment throughout every waiting period.

2.2 Agent startup is not equivalent to a container restart

A conventional microservice can often restart from its image and
reconnect to its database. An agent session is different.

It may have:

  • An active conversation and reasoning context.
  • An evolving filesystem workspace.
  • Partially completed tool operations.
  • Environment-specific configuration.
  • A pending human approval.
  • A specific execution identity.

Starting a completely new container does not automatically restore this
state. The infrastructure needs to distinguish between the lifecycle of the logical agent and the lifecycle of the compute resources executing it.

2.3 Human approval cannot be the security architecture

Many agent frameworks expose approval dialogs before executing
potentially dangerous operations. That is useful during development. It is not an adequate enterprise security boundary.

When developers receive dozens of approval prompts, alert fatigue
eventually takes over. People start approving operations without
understanding their consequences.

A production platform cannot depend on someone clicking the correct
button every time an agent attempts to access a sensitive API, execute a shell command, or modify infrastructure.

Security policy must be enforced by infrastructure, not delegated to
human attention.

This means agents need isolation, identity, and authorization that
operate independently of the model's decisions.

3. The Actor: A Better Primitive for Agent Execution

The architectural idea presented in the keynote is to treat an agent as
an Actor. An Actor is a logical execution unit with its own state, identity, and isolated environment.

Its infrastructure has two important components:

  1. Sandboxed execution.
  2. An Agent Gateway.

These two components address different problems and should be designed
as complementary security controls.

3.1 Sandboxed execution: Contain the workload

An agent can generate shell commands, install packages, execute scripts, and manipulate files. Even when the model is behaving as expected, generated code should be treated as untrusted.

A normal container provides useful isolation through namespaces,
cgroups, and filesystem boundaries. However, containers still share the
host kernel. For workloads executing model-generated code, that shared kernel deserves additional attention.

A stronger isolation boundary can be provided through technologies such
as:

  • gVisor: Uses a userspace application kernel to reduce direct exposure to the host kernel.
  • MicroVMs: Provide a separate virtualized kernel boundary, with technologies such as Cloud Hypervisor.

Each Actor receives a dedicated filesystem and execution environment. The objective is straightforward: if an agent executes malicious code,
gets prompt-injected, or behaves unexpectedly, its access should remain
confined to its own sandbox.

The filesystem should not expose unrelated workloads, host directories,
or other tenants' workspaces. Credentials require an equally strict approach.

The sandbox should not contain long-lived cloud credentials, Kubernetes
service-account tokens, or reusable API secrets. Instead, credentials
should be injected or exchanged at a controlled network boundary when an authorized request is made. This reduces the value of compromising the agent process.

It is worth being precise: a sandbox is not an absolute guarantee
against every escape or side channel. Isolation still requires kernel
hardening, runtime patching, resource limits, and a defensible threat
model.

3.2 Agent Gateway: Control what the Actor can reach

Filesystem isolation solves only half the problem.

An agent with a perfectly isolated filesystem can still cause damage if
it can freely communicate with internal APIs, cloud services, databases, and external endpoints.

That is where agentgateway fits.

Unlike a traditional reverse proxy that primarily routes HTTP requests,
an agent-aware gateway understands the protocols used by agentic
systems, including:

  • MCP (Model Context Protocol).
  • LLM provider traffic.
  • Agent-to-agent communication.
  • Tool invocation and related API interactions.

It becomes the enforcement point for agent ingress and egress.

The gateway can provide several important controls:

Capability Infrastructure responsibility

Identity Identify the Actor making a request
Authentication Verify incoming callers
Authorization Decide which tools and services are permitted
Egress policy Restrict destinations and operations
Credential mediation Obtain or inject authorized credentials
Observability Record requests, decisions, and failures

For example, an agent might need access to GitHub but should not have
unrestricted access to every internal service.

Instead of placing a GitHub token inside the sandbox, the agent sends a
request through the gateway using a placeholder credential or
identity-bound request.

The gateway evaluates the Actor's identity and policy, obtains the
appropriate credential from a credential provider, and forwards the
authorized request. The agent never receives the underlying reusable secret.

This is a significant architectural improvement over distributing API
keys across agent containers.

The principle is simple:

The agent decides what it wants to do. Infrastructure decides whether
it is allowed to do it.

The Solo.io implementation describes this combination of isolated
Actors, identity, and gateway-enforced traffic controls in its kagent
1.0 architecture.

4. Agent Substrate: Separating Agent Lifecycle from Pod Lifecycle

This is where the architecture becomes particularly interesting for
Kubernetes operators. Kubernetes already knows how to schedule containers, maintain desired state, replace failed Pods, and scale workloads. But managing individual agent sessions directly as Pods introduces unnecessary overhead.

Agent Substrate introduces an execution layer above Kubernetes that
manages Actors independently of the underlying worker Pod lifecycle.

The project was developed through collaboration involving Google,
Solo.io, Microsoft, and NVIDIA, and was accepted into the CNCF Sandbox.
Its 1.0 milestone was announced in November 2026.

4.1 The worker pool model

Instead of assigning one permanently running Pod to every agent, Agent
Substrate uses a pool of warm worker Pods. These workers provide the underlying compute capacity.

Actors are scheduled into isolated execution environments on those
workers. When an Actor becomes idle, its state can be checkpointed and
its compute resources released. When another request arrives, the Actor can be restored onto available infrastructure.

The distinction matters:

  • Kubernetes manages worker infrastructure.
  • Agent Substrate manages Actor execution and state.
  • The sandbox provides isolation.
  • The gateway enforces network access.
  • The agent harness performs the actual work.

This avoids forcing the Kubernetes control plane to manage every
individual agent interaction as a separate Pod lifecycle event.

4.2 Suspend and resume

Consider an agent working on a pull request.

It reads the repository, modifies three files, runs tests, and then
waits for a developer to review its proposed changes. Keeping the entire execution environment alive during that waiting period is wasteful.

With checkpoint and restore, the platform can:

  1. Capture the Actor's execution state.
  2. Persist its snapshot.
  3. Release the worker resources.
  4. Wait for the next event.
  5. Restore the Actor onto available compute.
  6. Continue execution from its previous state.

The published Agent Substrate architecture targets resume times below
500 milliseconds and reports support for very high-density execution,
including millions of sandboxes. These are project performance targets
and reported capabilities, not a guarantee for every workload or storage configuration.

Conceptual architecture --- not a deployment manifest

                 Developer / API / Event
                          |
                          v
                 +------------------+
                 |   Agent Gateway  |
                 | Identity / Policy|
                 | MCP / LLM / Audit|
                 +------------------+
                          |
                          v
                 +------------------+
                 |   kagent 1.0     |
                 | Agent Lifecycle  |
                 | Conversations    |
                 +------------------+
                          |
                          v
                 +------------------+
                 |  Agent Substrate |
                 | Actor Scheduler  |
                 | Checkpoint/Restore|
                 +------------------+
                          |
              +-----------+-----------+
              |                       |
              v                       v
       +--------------+        +--------------+
       | Warm Worker  |        | Warm Worker  |
       |              |        |              |
       | +----------+ |        | +----------+ |
       | | Sandbox A| |        | | Sandbox C| |
       | +----------+ |        | +----------+ |
       | +----------+ |        |              |
       | | Sandbox B| |        |              |
       | +----------+ |        |              |
       +--------------+        +--------------+
              |
              v
       Persistent Snapshots

The important design decision is that an Actor is not permanently
attached to one worker Pod. Its identity and logical state survive the movement between execution environments.

That is a much better fit for bursty workloads than a simple
one-Pod-per-agent model.

5. kagent 1.0 and the Developer-to-Cluster Experience

A new runtime is useful only if developers can actually use it without
rebuilding their entire workflow. This is where kagent 1.0 becomes relevant.

kagent provides the higher-level agent management and developer
experience on top of Agent Substrate. Rather than requiring every team
to build its own lifecycle management, agent definitions, and execution
integrations, it provides a Kubernetes-native way to define and operate
agents.

The architecture separates responsibilities:

  -----------------------------------------------------------------------
  Component                           Responsibility
  ----------------------------------- -----------------------------------
  Agent Desktop                       Local developer experience and
                                      governance

  kagent 1.0                          Agent definitions, conversations,
                                      tools, and orchestration

  Agent Substrate                     Actor lifecycle, scheduling, and
                                      checkpoint/restore

  agentgateway                        Identity-aware traffic routing and
                                      policy enforcement

  Kubernetes                          Worker infrastructure and
                                      underlying compute
  -----------------------------------------------------------------------

The idea behind Agent Desktop is particularly relevant to platform
teams: developers should be able to experiment with agents locally while remaining within governance boundaries that can be carried into shared infrastructure.

kagent 1.0 also supports bringing existing harnesses into the execution
model, including Claude Code and Codex, rather than forcing every
developer to adopt a completely different agent framework.

This matters because platform adoption usually fails when the platform
dictates an entirely new developer workflow.

Developers already have their preferred tools. The infrastructure should provide a secure execution environment around those tools, not force everyone to abandon them.

For more implementation details, Solo.io's announcement is worth
reading:

Agent Substrate in Production: Announcing kagent 1.0

There is also a companion discussion from KubeCon covering the
underlying Actor model:

Actors Give AI Agents Their Own Runtime on Kubernetes

6. Operational Trade-offs & Open Questions

The architecture makes sense on paper. Operating it reliably is another
matter. There are several areas where platform and SRE teams should be
particularly careful.

6.1 Debugging suspended and resumed state

Traditional Kubernetes debugging usually starts with Pod logs, events,
container state, and resource metrics. With Actors, that mental model becomes insufficient.

An agent can execute on one worker, become suspended, and resume on
another. The original container might no longer exist, but the logical
execution session continues. Observability needs to follow the Actor rather than the worker Pod.

At a minimum, I would want:

  • Stable Actor and conversation identifiers.
  • Snapshot creation and restoration timestamps.
  • Restore failure reasons.
  • Worker placement history.
  • Tool execution traces.
  • Correlation between gateway requests and agent execution.

Without this, debugging an intermittent failure across suspension
boundaries becomes unnecessarily painful.

6.2 Egress allow-list maintenance

Centralizing network access through agentgateway is a strong security
pattern, but policy maintenance can become operationally expensive.

Different agents require different permissions. A coding agent might
need GitHub, package registries, and an internal CI API. An
infrastructure agent might need access to a narrowly scoped cloud API.

A single broad egress policy defeats the purpose. Platform teams should maintain policies at the Actor or workload-class level, use default-deny rules, and introduce a controlled process for requesting additional access.

Also, hostname-based allow-listing alone is not sufficient for every
threat model. DNS rebinding, redirects, compromised upstream services,
and overly broad API permissions still require consideration.

6.3 Gateway latency and availability

Routing all ingress and egress traffic through an enforcement layer
introduces another dependency. That gateway needs to be highly available, observable, and capable of handling bursty traffic.

Measure:

  • Gateway-added p50, p95, and p99 latency.
  • Authentication and authorization overhead.
  • MCP tool invocation latency.
  • Connection reuse and upstream timeouts.
  • Gateway saturation during mass Actor wake-ups.

A gateway that becomes the bottleneck can eliminate the responsiveness
gained through sub-500ms Actor restoration.

6.4 Snapshot consistency and recovery

A snapshot is only useful if it restores a coherent execution state.

What happens if an agent is suspended while a tool operation is still
running? What if an external API processed a request but the Actor did
not persist the response? Restoring memory and filesystem state does not automatically provide exactly-once execution semantics.

Platform teams need to account for idempotency, external side effects,
durable conversation state, and recovery from partially completed
operations. I would also test snapshot storage costs, retention, encryption, and recovery when the original worker is unavailable.

6.5 Security boundaries still need continuous validation

Neither gVisor nor microVMs eliminate the need for security engineering.

Runtime patching, tenant isolation, resource quotas, image provenance,
credential rotation, and audit retention remain platform
responsibilities.

Likewise, an agent gateway cannot prevent every form of malicious
behavior inside an otherwise authorized API request. The gateway enforces infrastructure policy. Application-level authorization must still be implemented at the destination.

The important point is that a new runtime reduces operational
friction; it does not remove operational responsibility.

7. Three Things Platform Teams Should Test Next Week

Rather than immediately redesigning your Kubernetes platform around
Actors, I would start with three small experiments.

01 --- Run a coding harness inside an isolated sandbox

Deploy a small Claude Code or Codex workload against a disposable Git
repository. Use gVisor or a microVM-backed sandbox. Verify filesystem
isolation, non-root execution, resource limits, and the absence of
static cloud credentials.

02 --- Test Actor suspension and restoration

Install Agent Substrate in a non-production Kubernetes cluster and run a stateful agent session. Execute a few commands, modify files, suspend
the Actor, and resume it. Measure restoration latency and verify that
filesystem and execution state survive.

03 --- Put an agent gateway in front of tool access

Configure agentgateway with a default-deny egress policy. Allow access
to one MCP server and one external API. Introduce an unauthorized
destination and verify that the request is rejected and recorded. Test
credential injection without exposing the underlying secret to the
sandbox.

Measure the results rather than relying on a successful demo. Record
resume latency, memory reclaimed during suspension, gateway overhead,
denied requests, and recovery behavior.

Those measurements will tell you whether this architecture fits your
workloads and what needs further engineering before production adoption.

**The harness is becoming the new runtime, and Kubernetes needs an

execution model that reflects that reality.**

The next evolution of cloud-native infrastructure isn't simply about
scheduling more containers. It is about scheduling isolated, stateful,
short-lived execution environments with durable identities, controlled
connectivity, and predictable recovery.

Microservices taught us how to operate applications as distributed
workloads. Agentic systems are forcing us to rethink how we operate the
execution environments themselves.

For platform engineers, that is the interesting part of this transition.

The question is no longer whether an AI agent can run inside a
Kubernetes Pod. It is whether the infrastructure can safely manage
thousands of independent agents without treating every conversation as a permanently running server.

That is the problem the Actor model and Agent Substrate are attempting
to solve.

Twitter

Further Reading and References

  1. The Harness Is the New Runtime --- CNCF keynote.
  2. Actors Give AI Agents Their Own Runtime on Kubernetes.
  3. Google Cloud: Powering Open Infrastructure for Autonomous Agents.
  4. Solo.io: Agent Substrate in Production --- kagent 1.0.
  5. Agent Substrate --- GitHub Repository.
📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.