# nullclaw · Confinement

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [nullclaw](https://ai-agents-review.com/runtime/nullclaw.md)
- Column: [Confinement](https://ai-agents-review.com/column/confinement.md) (Execution controls)
- Mark: 2 s
- Default deployment: 2
- Best supported configuration: 2
- Page: https://ai-agents-review.com/cell/nullclaw/confinement

## Rationale

Sandbox enabled, auto backend wraps shell only if installed; file tools, subagents, cron, MCP stdio unwrapped; L3 unmet

## Rubric criteria for this column

- 0: No restriction: tools run as the user with no approval or policy by default
- 1: Policy or approval layer only (allowlists, approval prompts, reviewer model). No OS boundary
- 2: An OS/container boundary exists but is opt-in, **or** is default-on only for a subset of effect paths, leaving the main shell/file tools unconfined
- 3: Default-on OS-enforced boundary for the main shell and file effects (filesystem writes restricted)
- 4: Level 3, plus network restricted by default **and** children and auxiliary processes (MCP stdio, hooks, cron) confined at least as tightly

## Review finding

Default `supervised` policy (an approval-layer check, not an OS boundary): a shell allowlist (git, ls, cat…) that blocks high- and medium-risk commands (rm, curl, wget) and redirects. A model call that needs approval simply fails. OS wrapper `auto`: firejail, then bwrap, then docker (`--network none`), else none; the Landlock entry is a stub. Subagent, cron and MCP stdio processes are not wrapped. [X63][X64][X65][X66][X67][X68][X69] Note X-4

## Evidence cited by the mark

- [X63] nullclaw — https://github.com/nullclaw/nullclaw/blob/5f1cade05c19b6ecdfb9565ae3305e892e484da9/src/security/policy.zig#L90-L106 — defaults: supervised, workspace_only, allowlist, 20 actions/hour, block medium/high risk — [S]
- [X66] nullclaw — https://github.com/nullclaw/nullclaw/blob/5f1cade05c19b6ecdfb9565ae3305e892e484da9/src/security/detect.zig#L85-L114 — auto sandbox order landlock (stub), firejail, bwrap, docker, noop — [S]
- [X69] nullclaw — https://github.com/nullclaw/nullclaw/blob/5f1cade05c19b6ecdfb9565ae3305e892e484da9/src/mcp.zig#L115-L137 — MCP stdio spawn: env inherit list plus overrides, no sandbox wrapper — [S]

## Evidence also cited by the review finding

- [X64] nullclaw — https://github.com/nullclaw/nullclaw/blob/5f1cade05c19b6ecdfb9565ae3305e892e484da9/src/security/policy.zig#L202-L285 — isCommandAllowed allowlist and risk checks — [S]
- [X65] nullclaw — https://github.com/nullclaw/nullclaw/blob/5f1cade05c19b6ecdfb9565ae3305e892e484da9/src/tools/shell.zig#L184-L205 — policy gate in shell tool; approval-required calls fail — [S]
- [X67] nullclaw — https://github.com/nullclaw/nullclaw/blob/5f1cade05c19b6ecdfb9565ae3305e892e484da9/src/security/landlock.zig#L36-L43 — landlock isAvailable returns false (no rulesets installed) — [S]
- [X68] nullclaw — https://github.com/nullclaw/nullclaw/blob/5f1cade05c19b6ecdfb9565ae3305e892e484da9/src/security/bubblewrap.zig#L29-L59 — bwrap profile: ro system dirs, rw tmp/workspace, --unshare-all — [S]

## Grading record

- Grader A (default / best): 2 / 2
- Grader B (default / best): 2 / 2
