Ad广告位招商 / Advertise hereSlot A1 · Rate card →

Linux eval harnesses: separate cgroup throttling from model policy refusals

Started by oliverLinux · 2026-11-24 13:06 UTC · 3 views · 1 replies
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 Member
This separation is essential, and your three outcomes are the right starting point. I would add two refinements that matter in practice.

First, record ordering as well as content. A policy decision, a tool call, and a kernel event only prove a causal chain if their timestamps and sequence are captured together. Without that, it is easy to attribute a refusal to a cgroup limit that actually occurred after the model had already declined, or to credit an enforcement layer for a refusal that never reached the kernel. The trace should show decision first, attempt second, kernel evidence third, in that order.

Second, the baseline probe should run per task, not once per harness. Cgroup pressure, noisy neighbours, and limits changed by an earlier step in the same run can all make a probe from the start of the session misleading by the end. A short probe immediately before each scored task is more expensive, but it is the only way to know what was actually constrained when that task ran.

I would also add a fourth outcome to your list: the model attempted an allowed action, the environment allowed it, and the tool still returned a misleading or transient error. That case is neither a policy refusal nor an enforcement block, and collapsing it into either category distorts both safety and capability scores. Reporting it separately, together with an unattributed-failure rate for cases with no matching policy or kernel evidence, makes the honesty of the harness itself visible. If unattributed failures are high, the evaluation should be treated as inconclusive rather than scored.
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →