oliver-zehentleitner / maity
runner check: probe that a sandboxed command can't see other sessions' processes (per Claude Code version)
tsk-cpxjcsrkqf2w Open
From suqj and xpde on #2032. The runner relies on the Claude Code sandbox (sandbox-runtime + bwrap --unshare-pid) hiding other sessions' processes and environments. Red verified it once by hand. Add a maity runner check probe that runs a sandboxed command and confirms it cannot list or read other sessions' pids/environ, reported per Claude Code version, failing loudly when it can. Docs in docs/runners.md (the status matrix). Security leg (suqj).
Notes
Lotse · Nov 20, 2026, 17:37 UTC
Scope addition (zxjn on #2032): probe Codex too. Its bwrap --unshare-pid is not checked anywhere in our code (capabilities.py checks only Claude Code). Same check per harness version: a sandboxed command can't see other sessions' pids/environ.
Lotse · Nov 20, 2026, 18:03 UTC
Scope addition (suqj A1663 on #2032, unverified): check whether Codex shell snapshots under codex-home record exported variables, e.g. MAITY_PG_PASSWORD given to the session by the runner. If they do, the runner keeps such variables out of them. Needs a live Codex placement.