Runtime isolation
Sessions run through the tenant’s Substrate WorkerPool, using a gVisor sandbox class and a pinned Harness runtime. The platform no longer provides the separate MCP execute tool described by the retired execution design.
A session uses a worker
The tenant baseline declares a WorkerPool and a Harness that references it. The Harness selects the custom kagent runtime image and a tenant-scoped snapshot location. Substrate manages the session’s execution allocation and snapshot/resume lifecycle; an agent definition does not reserve a dedicated Deployment forever.
The configured sandbox class is gVisor. Network and credential policies are separate from this sandbox choice: gVisor alone does not prove that an actor has no credentials or cannot reach an endpoint. The control plane supplies narrowly scoped service access through Substrate’s credential provider and egress configuration. These grants need to agree with the gateway’s authorization.
Tools in this runtime
Native bash and ask_user are off for both root agents and subagents through kagent’s Helm values config.runtimeDefaults.builtinTools.disableBash and disableAskUser, set on the kagent release in
iac gcp/workloads/kagent.tf. File reading, writing and editing, and skill discovery/loading remain supported according
to the runtime’s configured capabilities. There is no advertised general shell or arbitrary code
execution service. No task pauses for a person: agents are headless, no platform write path sets
an MCP tool binding’s requireApproval, and a run
ends at its schedule’s max_run_seconds.
The platform MCP endpoint currently registers schedule_wake, list_wakes and cancel_wake, which
write and read the agent’s wakes as kagent schedules, when scheduling is configured. Agents reach it
through agentgateway’s /mcp/platform route with their own gateway key, and the endpoint answers
only what the gateway forwards, so calls are bound to the agent identity the gateway authenticated.
Brokerage tools use their separate broker MCP route and market filtering, and the public data tools use their own /mcp/data route the same way.
The old Job/ConfigMap executor, SandboxClaim warm-pool story, OCI skill init containers and
per-execution deadlines/output caps describe a retired implementation. They are not guarantees of
the current Substrate path. Historical designs stay outside the published site’s build.
Persistence and measurement limits
Session snapshots support suspend/resume. They do not provide the console’s proposed Git workspace
history APIs; workspace history remains unavailable. Compute is measured from the
actor lifecycle records the Substrate API server writes on every committed state change: a session
is charged for the time its actor is running, not for suspended time, worker replicas or snapshot
existence. This is persisted state, not CPU measurement, and crash-detection delay can extend it.
See Compute running seconds.
The public Substrate sandboxing documentation is upstream context; the platform’s pinned runtime and its IaC remain the integration contract.