# goose · 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: [goose](https://ai-agents-review.com/runtime/goose.md)
- Column: [Confinement](https://ai-agents-review.com/column/confinement.md) (Execution controls)
- Mark: 0→2 [opt: --container (stdio/goose-mcp extensions only)] s
- Default deployment: 0
- Best supported configuration: 2 (opt: --container (stdio/goose-mcp extensions only))
- Page: https://ai-agents-review.com/cell/goose/confinement

## Rationale

Default Auto allows all calls, no OS boundary; --container confines only a subset, developer shell/edit stay on host

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

No OS boundary by default; tools run as the user with full filesystem and network access. Default `GOOSE_MODE=auto` allows every call in the permission inspector before user `NeverAllow` rules are read. [opt: approve/smart_approve; PreToolUse hooks, fail-open unless `on_failure: block`; `--container` docker exec for stdio and goose-mcp extensions, but not developer shell/edit]. [X18][X19][X20][X21][X22][X23][X24][X25] Note X-2

## Evidence cited by the mark

- [X18] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/config/base.rs#L1330-L1338 — GOOSE_MODE unset resolves to Auto — [S]
- [X19] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/permission/permission_inspector.rs#L155-L190 — Auto returns Allow before user permission rules; Approve/SmartApprove consult them — [S]
- [X23] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/agents/services.rs#L384-L403 — platform extensions (incl. developer) excluded from container path, run in-process — [S]

## Evidence also cited by the review finding

- [X20] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/agents/platform_extensions/developer/shell.rs#L575-L625 — shell spawned with inherited env, only AGENT/GOOSE_TERMINAL/AGENT_SESSION_ID added — [S]
- [X21] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/agents/platform_extensions/developer/edit.rs#L178-L189 — file edit accepts any absolute path — [S]
- [X22] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/oi-kit-agent/src/mcp/stdio.rs#L24-L57 — [opt --container] stdio extensions via docker exec; no env_clear — [S]
- [X24] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/hooks/mod.rs#L683-L790 — PreToolUse hooks can block; fail open unless on_failure: block — [S]
- [X25] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/documentation/blog/2026-02-23-goose-v1-25-0/index.md#L22 — macOS seatbelt sandbox removed; server process not OS-sandboxed — [D]

## Grading record

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