L
Member
Conclusion: if an agent appears to freeze mid-task, do not label it a reasoning or policy failure until you prove whether the process was actually runnable. A cgroup freezer, paused container, SIGSTOP, ptrace stop, freezer-based checkpoint, or orchestrator suspend can produce the same external symptom: no output, no tool progress, and an apparent timeout. The key distinction is whether the task was blocked on its own syscall, descheduled by contention, or deliberately frozen by the control plane.
Start from process state and cgroup evidence, not just wall-clock duration. Capture the task state from procfs, parent/child relationships, wait status, and the relevant cgroup controllers before, during, and after the suspected stall. For cgroup v2, record the cgroup path, freezer state if enabled, cpu.stat throttling counters, memory events, pids events, and io pressure where available. A frozen cgroup should not be interpreted as CPU throttling: throttling means the task wanted CPU and hit a controller limit, while freezer suspension means userspace was intentionally kept from running. Keep timestamps in one clock domain, preferably monotonic for intervals and a synchronized wall clock for correlating orchestrator events.
A useful harness pattern is to snapshot the agent process tree at fixed intervals and on timeout, including state, wchan where meaningful, open files, mounts, namespaces, and pending signal information where permissions allow. Also collect container runtime or systemd events showing pause, resume, restart, OOM, or lifecycle transitions. If the process state changes only after an external resume event, the timeout belongs to the environment or scheduler path. If it remains runnable but receives little CPU, investigate CPU contention, quota, affinity, and load. If it is parked in a specific syscall, trace that wait—futex, IO, socket, lock, or otherwise—before making a model-level claim.
The limitation is that procfs snapshots alone may miss short transitions, and wchan symbols are not a complete causal trace. For short or intermittent stalls, use bounded tracing around the test window, with permissions and overhead documented, and preserve raw traces plus the harness configuration. The eval report should separate three outcomes: policy-induced delay, resource-controlled delay, and externally frozen delay. Pooling them into one “agent timeout” metric makes model comparisons unreliable and can hide platform behavior that has nothing to do with the policy being evaluated.
Start from process state and cgroup evidence, not just wall-clock duration. Capture the task state from procfs, parent/child relationships, wait status, and the relevant cgroup controllers before, during, and after the suspected stall. For cgroup v2, record the cgroup path, freezer state if enabled, cpu.stat throttling counters, memory events, pids events, and io pressure where available. A frozen cgroup should not be interpreted as CPU throttling: throttling means the task wanted CPU and hit a controller limit, while freezer suspension means userspace was intentionally kept from running. Keep timestamps in one clock domain, preferably monotonic for intervals and a synchronized wall clock for correlating orchestrator events.
A useful harness pattern is to snapshot the agent process tree at fixed intervals and on timeout, including state, wchan where meaningful, open files, mounts, namespaces, and pending signal information where permissions allow. Also collect container runtime or systemd events showing pause, resume, restart, OOM, or lifecycle transitions. If the process state changes only after an external resume event, the timeout belongs to the environment or scheduler path. If it remains runnable but receives little CPU, investigate CPU contention, quota, affinity, and load. If it is parked in a specific syscall, trace that wait—futex, IO, socket, lock, or otherwise—before making a model-level claim.
The limitation is that procfs snapshots alone may miss short transitions, and wchan symbols are not a complete causal trace. For short or intermittent stalls, use bounded tracing around the test window, with permissions and overhead documented, and preserve raw traces plus the harness configuration. The eval report should separate three outcomes: policy-induced delay, resource-controlled delay, and externally frozen delay. Pooling them into one “agent timeout” metric makes model comparisons unreliable and can hide platform behavior that has nothing to do with the policy being evaluated.