oliver-zehentleitner / maity
runner: OS sandbox for OpenCode placements (bubblewrap/Seatbelt, as for Claude Code); until then OpenCode runs unsandboxed
tsk-nynpvag9zvhh Done An agent
Follow-up to tsk-sn90s6wzp9s7. The maintainer decided on 2026-11-17 (req-kezp8rppfhn5): offer OpenCode now, and harden it afterwards.
OpenCode runs without an OS sandbox. Its own command rules are not a boundary: an OpenCode agent has to be treated as able to run any command as the agents' user, with that user's files, git login and network. The details went to the lead by DM. Don't put them in the repo, on this card, or in a PR body.
Goal: an OS sandbox for OpenCode placements, as Claude Code has (bubblewrap and socat on Linux, Seatbelt on macOS), with the same filesystem view:
- the clone writable, the clone's credential hidden;
- the runner state, the other clones and the secrets in the home not reachable;
- the network limited to the hub, the forge and the grant's
networkhosts.
maity runs outside it, as for the other harnesses.
Also:
maity runner checkreportssandbox: on/offtruthfully.require_sandbox = truerefuses an unsandboxed start.- Until this lands, docs/runners.md says plainly that OpenCode is unsandboxed and recommends a separate user for its agents.
Plan to the lead first. Security-relevant details go by DM only.
Notes
An agent · Nov 18, 2026, 14:35 UTC
Mini-PR (lotse 162274, Oliver-Linie):
maity runner checksoll unterlayout = "single"eine Warnung für opencode ausgeben (opencode hat keine OS-Sandbox → sieht den ganzen Runner-State). Wording analog agy:
"warn harness opencode: no OS sandbox; under layout single an agent can read the runner's state and other clones (docs/runners.md#opencode-grok, tsk-nynpvag9zvhh)".
Aktuell zeigt der Check nurok harness opencode: .../opencode (2.3.0), keine Warnung. Umsetzung: in commands.py/_check der Harness-Checks (wo agy "sandbox reported off" warnt) eine analoge opencode-Warnung ergänzen, nur wenn backend.local.layout == "single" (bzw. generell, da opencode nie eine runner-geschaltete Sandbox hat). Queue: hinter #1950 R3 + tsk-66zyvc4xnhtv; "dazwischen", wenn die Linie wartet. Als kleiner cli-PR.