Reproduction
On an agent-box Codex session, follow the documented self-serve vhost flow:
- Write a valid
~/sites/*.caddy snippet.
- Run
sudo /run/current-system/sw/bin/systemctl reload caddy.service.
Both sudo and /run/wrappers/bin/sudo fail before policy evaluation with:
sudo: /nix/store/...-sudo-.../bin/sudo must be owned by uid 0 and have the setuid bit set
/run/wrappers/bin/sudo is present and mode -r-s--x--x, but appears as
nobody:nogroup within the Codex execution environment. This prevents the
documented Caddy reload, even after the vhost snippet was successfully written.
Expected
Codex should be able to use the existing narrowly scoped sudo rule to reload
Caddy, or agent-box should provide an equivalent safe reload path that works in
Codex's execution sandbox.
Environment
Reproduction
On an agent-box Codex session, follow the documented self-serve vhost flow:
~/sites/*.caddysnippet.sudo /run/current-system/sw/bin/systemctl reload caddy.service.Both
sudoand/run/wrappers/bin/sudofail before policy evaluation with:/run/wrappers/bin/sudois present and mode-r-s--x--x, but appears asnobody:nogroupwithin the Codex execution environment. This prevents thedocumented Caddy reload, even after the vhost snippet was successfully written.
Expected
Codex should be able to use the existing narrowly scoped sudo rule to reload
Caddy, or agent-box should provide an equivalent safe reload path that works in
Codex's execution sandbox.
Environment
edb9d9bc7e7033a6be7abd481a82b32a700ea977~/siteswrite-path problem, notthis sudo-wrapper failure.