0010. Agent-sandbox is the standard workspace runtime¶
- Status: Accepted
- Date: 2026-07-02
- Deciders: Ramazan Kara (maintainer)
Context¶
ADR 0009 adopted kubernetes-sigs/agent-sandbox as an optional, profile-gated
workspace runtime behind a sandbox.runtime toggle, defaulting to the older
namespace-only path. The rest of the platform is deliberately opinionated: Kyverno policies ship in Enforce,
namespaces are PSA-restricted, egress is default-deny, and images must be
signed. The workload that executes model-generated code, the very reason this
platform has a threat model, belongs on the strongest default isolation, and a
single path keeps the test matrix, the documentation, and the adopter's
decisions simple.
The controller installs from vendored, checksummed manifests in seconds on any
conformant cluster (confirmed on cgroup-v1 kind); only the kernel-isolation
runtime class (gVisor/Kata) is environment-dependent, and that stays a
separate, optional knob. Making the change early puts every adopter on one
path from the start.
Two adjacent duplications had accumulated around the same feature:
make agent-lab-upinstalled the workspace with a manual Helm release, overlapping the Argo CD-managedagent-workspaceApplication on resource ownership on GitOps-managed clusters.make sandbox-smoke(the request-tracing check for theai-sandboxnamespace) shared a name with the new agent-sandbox runtime smoke while testing request tracing; the Argo Application for that construct is calledtraceable-sandbox.
Decision¶
- The hardened agent-sandbox runtime is the only workspace runtime. The
sandbox.runtimetoggle is removed;deploy/charts/agent-workspacealways renders the hardenedSandbox.sandbox.runtimeClassNameremains the only environment-dependent option. This amends decision points 1 and 6 of ADR 0009; everything else in ADR 0009 stands. - The short-lived projected workspace credential is on by default
(
workspace.credentials.projectedToken.enabled: true), consistent with AgentWorkflows' short-lived-credentials stance. - The controller is a platform prerequisite, installed as an
agent-sandbox-controllerArgo CD Application (server-side apply, early sync wave) in both cluster overlays, and bymake agent-sandbox-installin the quickstart path. make agent-lab-upis removed. GitOps owns the workspace instance; bare-cluster and demo installs use a documented one-linehelm upgrade --install.make agent-smokevalidates the deployed instance, andmake agent-sandbox-smokeis validation-only for the same reason.make sandbox-smokeis renamedmake trace-smoke(script included) so "sandbox" unambiguously means the workspace runtime, matching thetraceable-sandboxApplication name.
Consequences¶
- One runtime path: half the chart test matrix, a single decision-guide path, and a default posture that equals the documented posture.
- Workspace clusters run the vendored controller, which installs on any conformant cluster; the tracing and tenant features run independently of it.
C-ISOLATEis mandated at every risk tier, and evidence packs require the controller to be present.- Existing local labs run one Argo sync (the controller Application) or
make agent-sandbox-installbefore the workspace Application converges. - The long-lived sandbox pod holds the RWO workspace PVC, and the
agent-smokeJob shares it on the same node. On multi-node clusters, schedule them together or use RWX storage.
Alternatives considered¶
- Deprecation window (flip default, keep fallback one release). Switching directly was chosen because, at this stage, it keeps a single test matrix from the first release.
- Keep the toggle indefinitely. A single path was chosen so the default matches AgentWorkflows' security posture.
- Also collapse the
platformumbrella chart into GitOps-only. OCI chart distribution stays, as a deliberate, separately recorded decision (ADR 0008) about how the platform is consumed.