Codex Engineering fails when the runner's paths are under /tmp open
Found while staging cfe54cfc on 2026-11-30.
What happened: the staging suite was run with TMPDIR=/tmp/g (from an old note about unix socket path length, now corrected). The suite runner then kept its state, bindings and the Codex runtime home under /tmp/g.
Codex Engineering's Bash command failed inside Codex's own sandbox:
bwrap: Can't bind mount /bindfilekTWjvv on /newroot/tmp/g: Unable to mount source on destination: No such file or directory
Codex asked to retry outside its sandbox, Equipo refused that correctly, and the step ended tools_refused.
Cause: those runner paths are deny entries in Codex's permissions. Codex may write to /tmp, so it tries to mask them inside its sandbox. /tmp/g doesn't exist there, so the bind mount fails. This mechanism is inferred from the error. The evidence is direct: two runs pinned to Codex with TMPDIR=/tmp/g failed, and a control run on the same build and account with an on-disk TMPDIR passed.
Impact: production is not affected, because its runner paths are under ~/.local/share. Any runner whose state, bindings or account homes live under /tmp would break Codex Engineering the same way.
What to decide:
- Refuse to start a runner whose roots are under
/tmp(or under whatever Codex lets a command write), with a clear message. - Or create the masked paths inside Codex's sandbox before binding.
- Or keep the deny entries out of Codex's writable places.
Option 1 is the smallest change and the easiest to keep honest.
Evidence: .superpowers/sdd/2026-11-28-mac-runners-slice-f/codex-diagnostic-report.md in the slice F worktree on docs-t1. It is not committed.