oliver-zehentleitner / maity

runner: opt-in per runner to start Claude Code without its sandbox when the host doesn't allow it (documented tradeoff)

Sign in to report

tsk-yp2bprwv9whv Open

Oliver's decision (req-rv7gtbjda5vp, o1, 2026-11-18): agents must be startable even on hosts whose owner doesn't want to change the host (Ubuntu's AppArmor userns lock, see tsk-5b5x3k5zvg7x). Stage 1 (a weaker Claude sandbox setting) doesn't apply: neither sandbox.enableWeakerNestedSandbox nor allowNestedUserNamespaces addresses the error (ops nte-ywf2bq77cf1x). So stage 2:

  • A runner setting in runner.toml, e.g. [harness.claude-code] sandbox = "off-if-unavailable" (name to be decided in the PR), off by default.
  • Only when runner check detects the lock (#1949) and the setting is on: start Claude Code without its sandbox; protection then comes only from the placement's allow list, as for Antigravity today (sandbox_unavailable).
  • Visible: the placement reports sandbox_unavailable, the dashboard shows "Claude without sandbox", and runner check warns about it every time.
  • Documented in docs/runners.md as a tradeoff: what it costs (no isolation for allowed commands: files and network of the agents' user), why it's opt-in, and the better alternative (the host fix).
  • Contract first if the setting or the state changes the API; plan to lotse.