agent-sandbox-deploy
Skill52 starsChanged 7 days agoMITView on GitHub
Stand up the upstream kubernetes-sigs agent-sandbox backend and the separately deployed orka-workspace Sandbox provider on a local kind cluster, then validate class-backed ACP workspace Tasks and the external proof harnesses. Use when the user asks to install, enable, deploy, configure, validate, demo, or troubleshoot agent-sandbox execution workspaces for Orka (Task.spec.execution.workspace.classRef backed by the Sandbox provider).
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/autoreview/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-substrate-deploySkill
- autoreviewSkill
- delete-commentSkill
- frontend-designSkill
- kindctlSkill
- orka-kind-deploySkill
- pr-closeoutSkill
- vekil-reverse-proxy-deploySkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 59
Use $kindctl so the kubeconfig stays scoped to this repo/worktree and never touches ~/.kube/config.
- Very specific: line 155
Create the profile and class: Follow providers/sandbox/README.md and website/docs/concepts/agent-sandbox.md: a SandboxProviderConfig, a …
- Very specific: line 175
When no vekil deployment exists and the deploy helper is available, the installer calls it with --skip-wait, which can start a GitHub …
- Very specific: line 215
Read references/validate.md before treating anything as proven.
- Distinctive: line 245
No secrets in logs or status: Never print provider credentials or paste tokens into prompts.
- Very specific: line 247
kindctl invariant: Never run bare kubectl/kind against a kindctl cluster, and never read/write/switch ~/.kube/config.
- Very specific: line 254
Read references/troubleshooting.md when a step fails.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Sandbox Deploy
Stand up the experimental kubernetes-sigs/agent-sandbox
backend and the external orka-workspace-sandbox provider against an Orka
controller on a local kind cluster. Orka core has no Agent Sandbox flag or
in-tree provider. The provider, its CRDs, and its proof harnesses live in the
orka-workspace repository at
the revision pinned in this repository's go.mod.
This skill is for local/kind evaluation and validation, not production.
Orka does not install or manage upstream agent-sandbox CRDs, controllers,
templates, or warm pools. See website/docs/concepts/agent-sandbox.md for the
design and website/docs/reference/configuration.md#workspace-providers for the
controller flags.
What this skill orchestrates (do not retype)
- Backend:
hack/demos/cluster/install-agent-sandbox.shinstalls the pinned agent-sandbox release (ORKA_AGENT_SANDBOX_VERSION, defaultv1.0.3) and theorka-live-templateSandboxTemplate. WithAGENTIC=1(default) it also builds the archived demo runtime and router images and prepares vekil, the model Secret, the Git Secret, and the API client ServiceAccount. It does not change Orka controller flags and does not install the provider or a class. - Provider: the orka-workspace shared bundle (
config/) and Sandbox bundle (providers/sandbox/config), installed as described in itsdocs/external-providers.mdandproviders/sandbox/README.md. - Proofs: orka-workspace
scripts/external-sandbox-e2e.sh(installed backend persistence) andscripts/external-workspace-e2e.sh core(real Core RuntimeSession through an external provider). Drive these in place.
Existing v0.5 installations must complete the upstream storage migration before applying v1. The installer does not run or preflight that migration. After a v1 install it removes only the four obsolete namespaced conversion-webhook resources documented by upstream.
Ordering
- Cluster — via
$kindctl(see below) or an existing kind cluster. - Orka controller — via
$orka-kind-deploy, with the generic workspace path enabled:--enable-workspace-provider-api,--acp-workspace-dispatch-enabled,--workspace-class-use-admission-enabled=true, and Task provenance admission (--task-provenance-admission-enabled=trueor--task-provenance-admission-external=true). Without dispatch, class-backed workspace Tasks fail closed. - agent-sandbox backend — this skill's installer.
- Shared workspace bundle and Sandbox provider — from orka-workspace.
- Profile and class —
SandboxProviderConfig,SandboxWorkspaceProfile, and anExecutionWorkspaceClassrequiringacp.runtime.v2. - Model proxy (model-backed smoke only) — reuse or deploy vekil; a human completes device-code login when required.
Standard workflow (kindctl-scoped)
Use $kindctl so the kubeconfig stays scoped to this repo/worktree and never
touches ~/.kube/config. Resolve the binary first:
kindctl="${KINDCTL_BIN:-$(command -v kindctl || true)}"
if [ -z "$kindctl" ] && [ -x .agents/skills/kindctl/bin/kindctl ]; then
kindctl=.agents/skills/kindctl/bin/kindctl
fi
test -x "$kindctl"Create the repo-scoped cluster.
Registry precondition for
AGENTIC=1: do this before cluster create. The agentic layerdocker pushes tolocalhost:${KIND_REGISTRY_PORT}(default5001) and expects the kind node to pull from it as a containerd mirror. A default kindctl cluster has no such image registry. Either commit a repo.kind/cluster.yaml+.kind/setup.shthat wires alocalhost:5001registry before"$kindctl" create, or run the installer withAGENTIC=0."$kindctl" create "$kindctl" kubectl get nodesDeploy the Orka controller with
$orka-kind-deploy, passing the kindctl context explicitly and enabling the workspace flags listed under Ordering:orka_kind_deploy="${ORKA_KIND_DEPLOY_BIN:-.agents/skills/orka-kind-deploy/scripts/deploy_orka_kind.sh}" test -x "$orka_kind_deploy" "$kindctl" exec -- "$orka_kind_deploy" \ --context "$("$kindctl" kubectl config current-context)"The script runs
make deploy, which enables none of these flags. Add them to the controller afterwards.--enable-workspace-provider-apirefuses to start without--workspace-class-use-admission-enabled, and that flag makes the manager start its own webhook server.make deploymounts no certificate for it, so the controller crash-loops onopen /tmp/k8s-webhook-server/serving-certs/tls.crtunless you mount the existingorka-admission-tlsSecret and pass--webhook-cert-path. Every webhook configuration inconfig/targetsorka-admission, so this server only has to start:"$kindctl" kubectl -n orka-system patch deployment orka-controller-manager --type=json -p '[ {"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--enable-workspace-provider-api=true"}, {"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--acp-workspace-dispatch-enabled=true"}, {"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--workspace-class-use-admission-enabled=true"}, {"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--task-provenance-admission-external=true"}, {"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--webhook-cert-path=/var/run/orka/webhook-tls"}, {"op":"add","path":"/spec/template/spec/volumes/-","value":{"name":"webhook-tls","secret":{"secretName":"orka-admission-tls","items":[{"key":"tls.crt","path":"tls.crt"},{"key":"tls.key","path":"tls.key"}]}}}, {"op":"add","path":"/spec/template/spec/containers/0/volumeMounts/-","value":{"name":"webhook-tls","mountPath":"/var/run/orka/webhook-tls","readOnly":true}} ]' "$kindctl" kubectl -n orka-system rollout status deployment/orka-controller-manager --timeout=180smake deployalso installs theorka-admissionwebhook configuration, which is why provenance uses--task-provenance-admission-external. Rerunning the deploy script reapplies the controller manifest and drops the added arguments, so add them again afterwards. Confirm the controller arguments include the workspace provider API, ACP dispatch, class-use admission, and provenance admission before continuing.Install the agent-sandbox backend against the kindctl kubeconfig:
eval "$("$kindctl" env)" # exports scoped KUBECONFIG kube="$("$kindctl" path)" ORKA_DEMO_CLUSTER="$(basename "$kube" .kubeconfig)" \ AGENTIC=0 \ bash hack/demos/cluster/install-agent-sandbox.shThe script selects
kind-${ORKA_DEMO_CLUSTER}whenkind get clusterslists it and otherwise uses the current context, which the exportedKUBECONFIGmakes the kindctl cluster. Verify the selected context in its logs.Install the shared bundle and the Sandbox provider from an orka-workspace checkout at the revision this repository pins:
workspace_rev="$(go list -m -f '{{.Version}}' github.com/orka-agents/orka-workspace)" workspace_src=/path/to/orka-workspace # checked out at ${workspace_rev} eval "$("$kindctl" env)" (cd "$workspace_src" && kubectl apply --server-side -k config)Bind the core-admission and operator roles from
config/rbac/as the orka-workspace installation guide describes. Buildproviders/sandbox/Dockerfile, publish it to a registry the kind node can pull from, replace the example Deployment image with the digest, then applyproviders/sandbox/configwithkubectl apply --server-side -k. Wait for the provider registration to report its supported contracts.- Create the profile and class. Follow
providers/sandbox/README.mdandwebsite/docs/concepts/agent-sandbox.md: aSandboxProviderConfig, a same-namespaceSandboxWorkspaceProfile, and anExecutionWorkspaceClassthat references the registration and profile and requiresacp.runtime.v2. AllowSuspendonly when the profile enables it. Optional: model proxy (vekil) — pause for the human. Skip this for model-free validation, which can run class-backed Tasks on orka-workspace's deterministic fixture agent instead (see "Model-free class-backed Tasks" in
references/validate.md). For a model-backed smoke, satisfy the registry precondition, then rerun the installer withAGENTIC=1:eval "$("$kindctl" env)" kube="$("$kindctl" path)" ORKA_DEMO_CLUSTER="$(basename "$kube" .kubeconfig)" \ AGENTIC=1 \ bash hack/demos/cluster/install-agent-sandbox.shWhen no vekil deployment exists and the deploy helper is available, the installer calls it with
--skip-wait, which can start a GitHub device-code login. Verifydeployment/vekilexists before continuing. If login is required, surface the login URL and code to the user and wait for their confirmation; never complete the login on their behalf. This mirrors the$vekil-reverse-proxy-deployguardrail.Login race (verified live 2026-06): disarm vekil's liveness probe before surfacing the code. vekil binds its port only after login, so its
livenessProberestarts the pod about every 60s and each restart mints a new device code. Remove the probe and collapse to one pod first:"$kindctl" kubectl -n vekil-system get deploy vekil >/dev/null if "$kindctl" kubectl -n vekil-system get deploy vekil \ -o jsonpath='{.spec.template.spec.containers[0].livenessProbe.httpGet.path}' | grep -q .; then "$kindctl" kubectl -n vekil-system patch deploy vekil \ --type=json -p '[{"op":"remove","path":"/spec/template/spec/containers/0/livenessProbe"}]' fi "$kindctl" kubectl -n vekil-system scale deploy/vekil --replicas=0 for _ in $(seq 1 60); do [ -z "$("$kindctl" kubectl -n vekil-system get pod -l app.kubernetes.io/name=vekil,app.kubernetes.io/instance=vekil -o name 2>/dev/null)" ] && break sleep 2 done "$kindctl" kubectl -n vekil-system scale deploy/vekil --replicas=1 "$kindctl" kubectl -n vekil-system logs deploy/vekil | grep 'login/device'Device codes expire in about 15 minutes; bounce the pod for a fresh code rather than waiting.
Then wait for readiness before any model-backed Task:
"$kindctl" kubectl -n vekil-system exec deploy/vekil -- \ wget -qO- http://127.0.0.1:1337/readyz
Validate
Read references/validate.md before treating anything as proven. A Task
selects only a class; provider, template, pool, and native selectors never
belong in a Task:
spec:
type: agent
execution:
workspace:
classRef:
name: sandbox-coding
reusePolicy: noneWith dispatch enabled and the class admitted, the Task binds a dedicated
single-session acp-ws-* RuntimePool whose Sandbox hosts the supervisor. Task
status stays provider-neutral; read the ExecutionWorkspace, RuntimePool, and
upstream agent-sandbox resources for lifecycle detail.
Guardrails
- Local/kind eval only. Orka does not own upstream agent-sandbox lifecycle in production.
- Reference, don't fork. Drive the installer and the orka-workspace bundles
and proofs in place; override pins via env (
ORKA_AGENT_SANDBOX_VERSION,AGENTIC,KIND_REGISTRY_PORT,ORKA_SANDBOX_RUNTIME_IMAGE). - Pinned provider revision. Install orka-workspace from the revision in
go.mod; a different revision can change the shared schema. - Human-in-the-loop vekil login. Surface the device-code URL + code and wait for confirmation. Never complete the GitHub login yourself.
- No secrets in logs or status. Never print provider credentials or paste tokens into prompts.
- kindctl invariant. Never run bare
kubectl/kindagainst a kindctl cluster, and never read/write/switch~/.kube/config. Usekindctl kubectl/kindctl exec, or exportKUBECONFIGviakindctl envfor child scripts.
Troubleshooting
Read references/troubleshooting.md when a step fails.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

