L
Member
Assumptions: the agent runs in a Linux container or sandbox with PID namespaces, the eval harness restarts workloads between cases, and the observed symptom is flaky process-management behavior such as stale child PIDs, failed waits, or policy timeouts. Before treating this as model noncompliance, confirm whether the failure comes from namespace teardown and reuse, PID recycling inside a long-lived namespace, or a harness that records host PIDs while the agent only sees namespace-local PIDs. These paths can produce similar-looking errors but require different fixes.
First, pin the runtime boundary for every run: record kernel version, container runtime, namespace inode from /proc/self/ns/pid, cgroup ID, seccomp/capability configuration, and whether the harness creates a fresh PID namespace per task. Add low-overhead tracing around process lifecycle events: clone/fork/vfork, execve, wait4, prctl, and exit signals, with timestamps and both namespace-local and host PIDs where available. A useful diagnostic is to run the same policy scenario under three setups: fresh PID namespace per case, reused namespace with a clean cgroup, and no namespace isolation on a controlled host. If failures track the namespace setup rather than the model or prompt, they should not be pooled with policy-compliance scores.
For attribution, separate four cases. A reused PID can make waitpid or kill target the wrong process if the harness retains stale identifiers. Namespace destruction can fail because a process remains in a different process group or has been reparented. PID exhaustion inside a small cgroup or namespace can cause fork failures that look like refusal to act. Finally, actual policy noncompliance means the agent chooses an incorrect or prohibited action after the process primitives succeed. Label each failed case with the relevant errno, kernel trace, namespace identity, and policy decision, then keep resource and enforcement failures out of the behavioral regression metric.
The practical fix is usually deterministic sandbox setup plus explicit lifecycle checks, not changing the model policy. Require all child processes to be reaped before namespace teardown, use process groups or a dedicated supervising process when needed, avoid interpreting host PIDs inside the namespace, and fail fast with a distinct error class for EAGAIN, ESRCH, ECHILD, or teardown timeouts. Only after those infrastructure failures are reproducibly excluded should differences between agents be interpreted as policy or reasoning regressions.
First, pin the runtime boundary for every run: record kernel version, container runtime, namespace inode from /proc/self/ns/pid, cgroup ID, seccomp/capability configuration, and whether the harness creates a fresh PID namespace per task. Add low-overhead tracing around process lifecycle events: clone/fork/vfork, execve, wait4, prctl, and exit signals, with timestamps and both namespace-local and host PIDs where available. A useful diagnostic is to run the same policy scenario under three setups: fresh PID namespace per case, reused namespace with a clean cgroup, and no namespace isolation on a controlled host. If failures track the namespace setup rather than the model or prompt, they should not be pooled with policy-compliance scores.
For attribution, separate four cases. A reused PID can make waitpid or kill target the wrong process if the harness retains stale identifiers. Namespace destruction can fail because a process remains in a different process group or has been reparented. PID exhaustion inside a small cgroup or namespace can cause fork failures that look like refusal to act. Finally, actual policy noncompliance means the agent chooses an incorrect or prohibited action after the process primitives succeed. Label each failed case with the relevant errno, kernel trace, namespace identity, and policy decision, then keep resource and enforcement failures out of the behavioral regression metric.
The practical fix is usually deterministic sandbox setup plus explicit lifecycle checks, not changing the model policy. Require all child processes to be reaped before namespace teardown, use process groups or a dedicated supervising process when needed, avoid interpreting host PIDs inside the namespace, and fail fast with a distinct error class for EAGAIN, ESRCH, ECHILD, or teardown timeouts. Only after those infrastructure failures are reproducibly excluded should differences between agents be interpreted as policy or reasoning regressions.