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

## Rationale

Local default host execution, NeverConfirm; container workspaces run all tools inside the container; open bridge network, so not L4

## 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 enforced boundary in the local default: terminal, file editor (any absolute path) and browser run on the host. `confirmation_policy` defaults to `NeverConfirm` and the analyzer is off. [opt: AlwaysConfirm/ConfirmRisky; blocking PreToolUse hooks]. [opt: DockerWorkspace: open bridge network, no cap-drop, passwordless-sudo image]. [opt: server docker runtime: cap-drop ALL, no-new-privileges, resource limits, host bind mounts]. [X124][X125][X126][X127][X128][X129][X130]

## Evidence cited by the mark

- [X124] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/conversation/state.py#L162-L186 — max_iterations 500, max_budget_per_run None (accumulated conversation cost), NeverConfirm, analyzer None — [S]
- [X126] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-tools/openhands/tools/file_editor/editor.py#L96-L125 — absolute paths required, no workspace containment — [S]
- [X128] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-workspace/openhands/workspace/docker/workspace.py#L214-L262 — [opt DockerWorkspace] loopback port, default bridge network, no cap-drop — [S]

## Evidence also cited by the review finding

- [X125] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/security/confirmation_policy.py#L27-L61 — AlwaysConfirm/NeverConfirm/ConfirmRisky policies — [S]
- [X127] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/hooks/conversation_hooks.py#L150-L175 — PreToolUse hooks can block actions — [S]
- [X129] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-agent-server/openhands/agent_server/docker/Dockerfile#L516 — agent image grants passwordless sudo — [S]
- [X130] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-agent-server/openhands/agent_server/docker_runtime/registry.py#L707-L770 — [opt server docker runtime] host binds, cap-drop ALL, no-new-privileges, pids limit — [S]

## Grading record

- Grader A (default / best): 0 / 2
- Grader B (default / best): 0 / 3
- Adjudication: disagreement. Local default host execution, NeverConfirm; container workspaces run all tools inside the container; open bridge network, so not L4
