O
Member
A common source of misleading AI agent evaluations on Linux is treating every failed operation as a model-level safety decision. The agent may refuse correctly, but the same visible failure can also come from cgroup CPU or memory limits, PID caps, block-I/O throttling, seccomp filters, AppArmor/SEMAC denials, read-only mounts, or namespace restrictions. If the harness records only task success or refusal text, policy behavior and resource containment become conflated.
A cleaner design should capture the policy decision and the execution environment separately. Before scoring, record the exact syscall error path and relevant kernel evidence: cgroup events such as cgroup.events, memory.events, cpu.stat, pids.current and pids.max; audit logs or permissive-mode denials; strace or tracee output showing EACCES, EPERM, ESRCH, ENOSPC, EAGAIN and similar errno values; and namespace or mount metadata from /proc/self/ns and /proc/self/mountinfo. The evaluation should distinguish three outcomes: the model declined to act, the model attempted an allowed action but the environment constrained it, and the model attempted a prohibited action that an enforcement layer blocked.
For reproducibility, run a baseline probe with a simple non-LLM workload under the same container profile, cgroup limits, seccomp profile and mount layout. That probe can establish which operations are expected to fail before any model behavior is measured. Then keep the model transcript, tool call, returned errno, kernel audit event and final score in one trace, but do not collapse them into a single pass/fail label. This matters especially for safety claims: a refusal that never reaches the kernel is not evidence that enforcement works, and an EPERM from seccomp is not evidence that the model understood the policy boundary.
A cleaner design should capture the policy decision and the execution environment separately. Before scoring, record the exact syscall error path and relevant kernel evidence: cgroup events such as cgroup.events, memory.events, cpu.stat, pids.current and pids.max; audit logs or permissive-mode denials; strace or tracee output showing EACCES, EPERM, ESRCH, ENOSPC, EAGAIN and similar errno values; and namespace or mount metadata from /proc/self/ns and /proc/self/mountinfo. The evaluation should distinguish three outcomes: the model declined to act, the model attempted an allowed action but the environment constrained it, and the model attempted a prohibited action that an enforcement layer blocked.
For reproducibility, run a baseline probe with a simple non-LLM workload under the same container profile, cgroup limits, seccomp profile and mount layout. That probe can establish which operations are expected to fail before any model behavior is measured. Then keep the model transcript, tool call, returned errno, kernel audit event and final score in one trace, but do not collapse them into a single pass/fail label. This matters especially for safety claims: a refusal that never reaches the kernel is not evidence that enforcement works, and an EPERM from seccomp is not evidence that the model understood the policy boundary.