# spore · 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: [spore](https://ai-agents-review.com/runtime/spore.md)
- Column: [Confinement](https://ai-agents-review.com/column/confinement.md) (Execution controls)
- Mark: 3 s
- Default deployment: 3
- Best supported configuration: 3
- Page: https://ai-agents-review.com/cell/spore/confinement

## Rationale

Default Landlock+seccomp+namespaces, fatal on failure; L4 unmet: outbound network and unix sockets reachable

## 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

Built in, Linux only, kernel-enforced by default. The agent runs under Landlock (reads limited to system/runtime/workspace paths, narrow write roots); `exec` gets a narrower Landlock plus seccomp; each turn has its own user/PID/mount namespaces. A confinement failure is fatal. Outbound network and visible unix sockets stay reachable (an accepted risk in SECURITY.md). No per-call approvals. [opt: `unconfined: true`; `contain off`]. [X139][X140][X141][X142][X143][X144] Note X-6

## Evidence cited by the mark

- [X139] spore — https://github.com/RHIZOGRIP/spore/blob/4a9db7982fda3ae2f30a817fa0037c92e246f97f/rust/runner/src/main.rs#L795-L843 — agent started through confine unless unconfined; env_clear — [S]
- [X140] spore — https://github.com/RHIZOGRIP/spore/blob/4a9db7982fda3ae2f30a817fa0037c92e246f97f/packages/spore/src/isolation/sandbox.js#L79-L113 — Landlock applied; failure is fatal SANDBOX_FAILED — [S]
- [X142] spore — https://github.com/RHIZOGRIP/spore/blob/4a9db7982fda3ae2f30a817fa0037c92e246f97f/packages/spore/src/tools/make-tools.js#L230-L241 — exec runs confined with tmp write root; model socket passed to commands — [S]

## Evidence also cited by the review finding

- [X141] spore — https://github.com/RHIZOGRIP/spore/blob/4a9db7982fda3ae2f30a817fa0037c92e246f97f/packages/spore/src/isolation/confine.c#L172-L206 — seccomp refuses namespace/mount/keyctl/bpf/io_uring/module calls — [S]
- [X143] spore — https://github.com/RHIZOGRIP/spore/blob/4a9db7982fda3ae2f30a817fa0037c92e246f97f/rust/runner/src/main.rs#L309-L318 — containment checked per turn; CONTAIN_FAILED — [S]
- [X144] spore — https://github.com/RHIZOGRIP/spore/blob/4a9db7982fda3ae2f30a817fa0037c92e246f97f/SECURITY.md#L61-L76 — accepted risks: unix sockets reachable, UDP/egress open — [D]

## Grading record

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