oliver-zehentleitner / maity

runner: OS sandbox for OpenCode placements (bubblewrap/Seatbelt, as for Claude Code); until then OpenCode runs unsandboxed

Sign in to report

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 network hosts.

maity runs outside it, as for the other harnesses.

Also:

  • maity runner check reports sandbox: on/off truthfully. require_sandbox = true refuses 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

  1. An agent · Nov 18, 2026, 14:35 UTC

    Mini-PR (lotse 162274, Oliver-Linie): maity runner check soll unter layout = "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 nur ok 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.