The skill runner sandbox
Skill scripts never run inside the gateway and never on the agent’s machine. On
skills__run_script the Core Proxy sends the one script, its arguments and the skill’s
resources and assets to the skill runner (brutor-skill-runner), a separate container
whose only job is to run tenant-written code and return what it printed.
agent ──tools/call skills__run_script──▶ Core Proxy :8100 │ governance (access, guardrails, grants, quota, ...) │ POST /v1/runner/run_script + per-call JWT ▼ skill-runner :8210 (skill-runner-net only) │ python3 / node / tsx / bash, one subprocess ▼ stdout ──▶ output guardrail ──▶ agentThe runner has no database credentials, no platform secrets and no provider keys. The proxy holds the skill in PostgreSQL and sends a self-contained payload for each run, so there is nothing in the runner to steal but the run it is doing.
Container posture
Section titled “Container posture”As shipped in the trial bundle’s Docker Compose (the SaaS deployment uses the same posture on ECS):
| Property | Value |
|---|---|
| Network | Only skill-runner-net, an internal: true network whose one other member is the Core Proxy. No internet, no host gateway, no route to PostgreSQL, Redis, MinIO, Qdrant or Ollama |
| Port | 8210, not published to the host |
| Filesystem | Read-only root; a 64 MiB tmpfs at /tmp for workspaces |
| Privileges | cap_drop: ALL, no-new-privileges, Docker’s default seccomp profile, non-root user (uid 10001) |
| Resources | 1 CPU, 256 MiB memory, 64 processes |
| Auth | Every request carries an HS256 JWT minted by the proxy, bound to that run’s execution_id, 300-second lifetime. The runner only verifies tokens, it cannot sign them |
| Endpoints | POST /v1/runner/run_script, POST /v1/runner/execute (legacy whole-skill path), GET /health, GET /metrics |
Execution modes
Section titled “Execution modes”Each script has an execution_mode, set when it is created:
sandbox (default) |
trusted |
disabled |
|
|---|---|---|---|
| Runs | Yes | Yes | Never; left out of the manifest |
| Wall-clock limit | SKILL_RUNNER_SANDBOX_TIMEOUT_SECS, default 30 s |
SKILL_RUNNER_TRUSTED_TIMEOUT_SECS, default 120 s |
|
| Output cap | 1 MB | 10 MB | |
| Environment | PATH, HOME and TMPDIR (the workspace), LANG only |
The same, plus an allowlist: proxy variables (HTTP_PROXY, HTTPS_PROXY, NO_PROXY), OTEL_EXPORTER_OTLP_*, OTEL_SERVICE_NAME, LC_ALL, TZ, and any name in SKILL_RUNNER_TRUSTED_ENV_ALLOWLIST |
Neither mode inherits the runner’s own environment, so even a trusted script cannot read
SKILL_RUNNER_JWT_SECRET. A script that runs past its limit is killed together with its
whole process group, background children included, and its output is capped while it
streams.
Interpreters: python runs python3, javascript runs node, typescript runs tsx,
bash runs bash. Use the standard library or what the runner image ships: the runner has
no network to install packages from.
Session workspaces
Section titled “Session workspaces”Each skills__run_script runs in a session workspace, a directory under
SKILL_RUNNER_WORKSPACE_ROOT named for the tenant and the session. The session is the
request’s correlation id, so:
- calls that send the same
X-Correlation-IDshare one workspace: a file the first script writes is there for the second; - a call without that header gets a fresh correlation id, and so a fresh workspace.
Before each run the skill’s resources and assets are written into the workspace under their
bare filenames, so a script opens them by name (open("policy.md")). The script itself is
written under a generated name and removed after the run; files it produces stay. A
workspace is deleted after SKILL_RUNNER_WORKSPACE_TTL_SECS (default 3600 s), and a tenant
has at most 64 live sessions. Session and tenant names are escaped so they cannot leave the
workspace root, and filenames with /, \ or .. are refused.
The agent never sees the workspace. It receives the script’s stdout and nothing else.
What a failed run looks like
Section titled “What a failed run looks like”| Situation | The agent sees | The audit row |
|---|---|---|
| Script exits non-zero | isError: true, text = stderr or Script exited with code N |
200 (the call was allowed); the execution record is failed (script_error) |
| Script runs past its limit | isError: true, the runner’s timeout error |
execution failed |
| Runner unreachable or returns an error | isError: true, Skill runner error: ... |
502, execution failed (skill_runner_error) |
SKILL_RUNNER_JWT_SECRET unset on the proxy |
Skill runner error: SKILL_RUNNER_JWT_SECRET is unset ... |
502 |
Configuration
Section titled “Configuration”Runner (brutor-skill-runner):
| Variable | Default | Example |
|---|---|---|
SKILL_RUNNER_JWT_SECRET |
Required, at least 32 characters; the runner refuses to start without it | openssl rand -hex 32 output |
SKILL_RUNNER_LISTEN_ADDR |
0.0.0.0:8210 |
0.0.0.0:8210 |
SKILL_RUNNER_JWT_LEEWAY_SECS |
30 |
30 |
SKILL_RUNNER_MAX_REQUEST_BYTES |
16777216 (16 MiB); larger requests get 413 |
16777216 |
SKILL_RUNNER_SANDBOX_TIMEOUT_SECS |
30 |
30 |
SKILL_RUNNER_TRUSTED_TIMEOUT_SECS |
120 |
120 |
SKILL_RUNNER_WORKSPACE_ROOT |
<temp dir>/brutor-skill-workspaces |
/tmp/brutor-skill-workspaces |
SKILL_RUNNER_WORKSPACE_TTL_SECS |
3600 |
3600 |
SKILL_RUNNER_TRUSTED_ENV_ALLOWLIST |
empty | PIP_INDEX_URL,REQUESTS_CA_BUNDLE |
Core Proxy:
| Variable | Default | Example |
|---|---|---|
SKILL_RUNNER_URL |
http://skill-runner:8210 |
http://skill-runner:8210 |
SKILL_RUNNER_JWT_SECRET |
none; must equal the runner’s | the same value as above |
SKILL_RUNNER_JWT_TTL_SECS |
300 |
300 |
The proxy waits up to 180 seconds for the runner to answer; the runner’s own timeouts bound the script. Service placement is in Ports and services, and every variable is in Environment variables.

