Repository navigation
Description
Problem or Motivation
The jobs of the Service run code that a model writes: the implement runner, the planner run Job (#4003), the in-cluster browser (#5356, Chromium with --no-sandbox) and crawl4ai. The boundary of each is the container of the pod. ADR 0018 accepts this boundary and says that a defect of the kernel of the host stays a risk. It also says that a gVisor RuntimeClass can close that risk later with no change of the tool.
The owner decided on 2026-11-13 to use gVisor (runsc). The cluster declares no RuntimeClass for runsc today. k3s finds some runtimes on the node by itself, but runsc is not one of them, so the cluster needs a RuntimeClass object in git.
Proposed Solution
- Add
k8s/runtimeclass-gvisor.yaml: RuntimeClassgvisor(node.k8s.io/v1) with handlerrunscandscheduling.nodeSelectorsandbox.devops.io/gvisor: "true". The label uses the same project prefix as thellm.devops.io/*labels. - Add the file to the resources of the root kustomization
k8s/kustomization.yaml. Argo CD Applicationbasesyncs that path, anddevops k8s deploy-stackapplies it first on a cluster with no Argo CD. - Pin the object with an invariant test in
tests/invariants/test_k8s_argocd_apps.py, in the form oftest_mattermost_operator_limitrange. - Document the class in
k8s/README.md: what it does, the node label, that the infra repository installsrunscand sets the label, how a pod uses it (runtimeClassName: gvisor), and its limits. Underrunsc, the seccomp profile of the pod is not loaded, and the host filter of the gVisor Sentry applies in its place. A measurement must prove that the CPU and memory limits of the pod hold before a runner uses the class. - Add a dated line to the Status History of ADR 0018, because its fact "the cluster declares no RuntimeClass for
runsc" becomes wrong.
The infra repository installs a pinned runsc on one node and sets the label in its own pull request. No workload uses the class in this item. Before a node has the label, a pod of the class stays Pending and never runs on another node.
Acceptance Criteria
-
kubectl kustomize k8srenders one RuntimeClassgvisorwith handlerrunscand the node selectorsandbox.devops.io/gvisor: "true", and no tolerations. - An invariant test pins the object and its place in the root kustomization. The test fails before the manifest exists.
-
k8s/README.mdhas a section for the class with the two limits above. - ADR 0018 gets one Status History line in a form of
docs/adr/README.md, and itsbody-hashdoes not change. - No workload sets
runtimeClassName: gvisorin this item.
Existing Tool Considered
gVisor (runsc, Apache-2.0) and the Kubernetes RuntimeClass API are the open tools. This item adds one manifest, one test and documents, and it builds no code. Cost: about 60k tokens to build and less than 5k tokens each year to keep; about 1 hour of elapsed time. The kubernetes-sigs/agent-sandbox controller is the other option of ADR 0018, and #2695 owns its measurement.
Related
- feat(roadmap): run the implement agent shell in a real sandbox #2695: the real sandbox of the implement agent and the measurement.
- ADR 0018:
docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.md. - feat(k8s): manifest and admission policy for planner sandboxed run job #4003 (the planner run Job) and feat(k8s): run a pinned Playwright browser server in namespace devops #5356 (the in-cluster browser) can use the class after the measurement.
Source: #2695
Activity
dan-petty commentedon Nov 13, 2026
Both serve sandboxed execution of untrusted code, but the candidate adds the RuntimeClass object while #4003 adds the planner Job that would consume it.devops-cli-service commentedon Nov 13, 2026
Released in v0.130.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.130.0
devops-cli-service commentedon Nov 13, 2026
Live since 2026-11-13 18:17 UTC