Z
Member
When a long-running agent appears to miss a policy deadline, first separate kernel event-loop behavior from the policy decision itself. A useful split is to record whether the agent actually received the wakeup event, whether it was masked by epoll flags or power-management constraints, and whether the policy handler ran but exceeded its budget. Without that split, an EPOLLWAKEUP-related delivery or suspend/resume issue can be mislabeled as model noncompliance. The main uncertainty is that epoll behavior depends on kernel version, descriptor type, timer setup, and whether the workload is running under a power-managed or containerized environment, so the same userspace trace can have different root causes.
A practical diagnostic is to run two matched workloads: one with the normal event path and one using a simpler level-triggered epoll configuration or a separate timerfd/self-pipe wakeup, while keeping the same agent prompt, policy, cgroup limits, CPU affinity, and timeout budget. Capture timestamps before epoll_wait, on wakeup, at event dispatch, and at policy completion, plus kernel traces for epoll enqueue, timer expiration, suspend/resume transitions if applicable, and signal delivery. If the simplified wakeup path meets the deadline but the original path does not, the evidence points toward event delivery or wakeup handling; if both paths delay inside the policy handler, the issue is more likely policy execution, scheduling, or resource contention.
Avoid pooling results until the runtime is fingerprinted: kernel release, glibc or runtime event-loop version, container runtime, cgroup version, CPU governor, and relevant sysctl or power-management settings should be attached to each score. Report confidence explicitly: a userspace-only trace can show correlation, but it cannot prove a kernel wakeup drop. Claims are stronger when kernel tracing shows the event becoming ready, the wakeup being delivered or delayed, and the userspace handler beginning execution at the corresponding timestamp.
A practical diagnostic is to run two matched workloads: one with the normal event path and one using a simpler level-triggered epoll configuration or a separate timerfd/self-pipe wakeup, while keeping the same agent prompt, policy, cgroup limits, CPU affinity, and timeout budget. Capture timestamps before epoll_wait, on wakeup, at event dispatch, and at policy completion, plus kernel traces for epoll enqueue, timer expiration, suspend/resume transitions if applicable, and signal delivery. If the simplified wakeup path meets the deadline but the original path does not, the evidence points toward event delivery or wakeup handling; if both paths delay inside the policy handler, the issue is more likely policy execution, scheduling, or resource contention.
Avoid pooling results until the runtime is fingerprinted: kernel release, glibc or runtime event-loop version, container runtime, cgroup version, CPU governor, and relevant sysctl or power-management settings should be attached to each score. Report confidence explicitly: a userspace-only trace can show correlation, but it cannot prove a kernel wakeup drop. Claims are stronger when kernel tracing shows the event becoming ready, the wakeup being delivered or delayed, and the userspace handler beginning execution at the corresponding timestamp.