Refused by name, before it runs.
The sandbox, the approval hash and the risk assessment are code in this repository, not a policy page. Each one prints the rule that refused. This page shows those refusals and the commands that produce them.
The sandbox refuses by name.
A tool call arrives as an argv array and a workspace-relative path. The runner resolves the
path, checks every argument, and refuses with the rule that refused - never with a silent skip.
node bin/sandbox.mjs --self runs 21 adversarial cases against exactly that code.
- 1No path outA “..” segment is path_dotdot, an absolute path is path_absolute, and a link that resolves outside the workspace is symlink_escape.
- 2No shell stringargv must be an array of strings (argv_array); a metacharacter inside an element is argv_metachar, and sh -c is deny_shell_c.
- 3No orphan processgit push, curl and chmod 777 are refused before they fork, and a timeout kills the whole process group, grandchildren included.
$ node bin/sandbox.mjs --self case 01 PASS write dotdot escape denied — path_dotdot: "../outside/pwn.txt" contains a ".." segment case 05 PASS shell injection argv denied — argv_metachar: argv[1] contains shell metacharacter ";": "hello; rm -rf /" case 13 PASS sh -c denied — deny_shell_c: sh -c is on the sandbox deny list case 14 PASS git push denied — deny_git_push: git push is on the sandbox deny list case 15 PASS chmod 777 denied — deny_chmod_777 # … 16 more cases: symlinks, env stripping, allowed writes inside the workspace sandbox_self_ok
$ node -e "import('./bin/approval-hash.mjs').then(m=>console.log(m.localHash({path:'notes/plan.md',args:'~18 bytes of summary'})))"
sha256:46280bc325fd
$ node -e "import('./bin/approval-hash.mjs').then(m=>console.log(JSON.stringify(m.verify({path:'notes/plan.md',args:'~19 bytes of summary',hash:'sha256:46280bc325fd',dialect:'local'}))))"
{"ok":false,"reason":"local hash mismatch for this step"}
# the runner answers a stale hash with 409 and keeps the step pending
{"ok":false,"reason":"args_changed","message":"the step changed since it was shown — review again"} HTTP 409
An approval is bound to the exact arguments.
A write pauses and asks with the path and the arguments it will use. The approval carries a
hash of those two values. Approve with a different hash and the server answers 409 args_changed,
the step stays pending, and nothing executes.
- 1One preimagesha256 over {path, args}, truncated to 12 hex and prefixed sha256:. The preimage is fixed, so the same step always hashes the same.
- 2Stale is refusedThe hash you approved is recomputed, not trusted. One byte more in an argument and the answer is 409, not a run.
- 3Deny is not retryA deny keeps the run waiting for you. Nothing re-runs the step behind your back.
The two commands are the module bin/approval-hash.mjs; the 409 body is the runner’s, verbatim from bin/runner.mjs:1251.
Risk is a weight and a named rule.
Before an approval is shown, the step is assessed against 21 rules with weights from 5 to 80.
A high rule, or a sum of 70 or more, marks it high risk and the card names the rule that fired.
node bin/risk.mjs --table prints the whole list - six of them are below.
- 1Arguments, not intentA credential flag in argv is credential_arg at 80: the secret would be copied into the approval and the run log.
- 2The path that is touchedpath_outside_workspace at 70 and path_dotdot at 60 fire on the resolved target, not on the label on the step.
- 3Undecidable is not safeA step whose command cannot be decided scores medium, never low: the tool says it cannot tell.
| Rule | Weight | What it catches |
|---|---|---|
path_ | 80 high | a path into runtime/state/keys - a forged signer or signing key |
destructive_ | 80 high | rm, truncate, dd, mkfs, shred, sudo, chmod 777, git push, find -delete |
credential_ | 80 high | --token, --password, NAME_KEY=…, sk-… in argv |
path_ | 70 high | the resolved target is outside the workspace |
net_ | 70 high | curl, wget, nc, ssh, scp, sftp - network egress or a remote shell |
dynamic_ | 60 high | sh -c, node -e, python -c, eval - a string, not the code that runs |
What this page does not claim.
There is no certification, no auditor and no third-party test result behind this build. Printing the gap is more useful than a wall of logos, so here is the whole list.
Cloud is the one thing that is switched off by design. node bin/doctor.mjs
fails the build when cloud.enabled is anything but false; today the line reads cloud.enabled=false allowFor=developers-only.
Run the refusals yourself.
One sandbox self-test, one risk table, one hash. If any of them stops being true, this page is wrong and the gate that builds it fails.