Engineering · November 19, 2026 · 7 min read
Your agent failed. Or did your infrastructure?
Why failure attribution is the most important field in an eval result, and how we decide whose fault a failure is.
By Kalworks engineering
An eval score is a fraction. The top is tasks the agent solved. The bottom is tasks the agent attempted. If your infrastructure quietly fails 2% of tasks and those count as agent failures, a model that really scores 61% will score 59.8%. That's bigger than the gap between most model versions you'll compare this year.
So the most important field we return isn't passed. It's who failed.
Three outcomes, not two
Every task in a fleet ends in one of these:
- Passed / failed. The machine did its job. Your grader ran and gave a verdict. This is the only outcome that should affect a score.
- Interrupted. The machine didn't do its job. It never became ready, the host died, the disk or network broke inside our boundary, or our agent lost contact. Not billed, and safe to retry.
- Stopped. You cancelled the task or the fleet, or a timeout you set fired. Billed until the stop, and never counted as ours.
How we decide whose fault it is
Attribution has to be decided by evidence the machine can't fake, not by guessing from exit codes. We record four signals per task:
- Readiness. Did the in-guest agent pass its health check? If not, it's ours. Your code never ran.
- Heartbeat. The guest agent sends a heartbeat every 2 s over a virtio channel the workload can't reach. If it stops while the host is healthy, the guest crashed. If the host stopped too, it's ours.
- Host events. Kernel panics, out-of-memory kills of the VMM process, disk errors and network partitions on the host are logged outside the guest and linked to every task on that host.
- Exit path. A clean process exit, whatever the code, means your tests finished. A non-zero exit is your verdict, not our failure.
If the signals disagree, we mark the task interrupted and don't bill it. Being wrong in your favour costs us a few cents. Being wrong in ours costs you a wrong score.
Retry only what we broke
Because attribution happens per task, retries can be per task too:
summary = fleet.wait()
print(summary.counts)
# {'passed': 2873, 'failed': 1103, 'interrupted': 24}
retry = fleet.retry(outcome="interrupted")
retry.wait()
The retried tasks start from the same pinned image with the same inputs, so the result is the same experiment, not a new one. Your 2,873 passes and 1,103 failures stay as they were.
What we don't do
We don't grade your evals, and we don't retry failures for you. A test that fails because your agent wrote bad code is a result, and hiding results is how leaderboards drift. If you want flaky-test retries, that belongs in your harness, where you can see and report it.
What to ask any sandbox provider
- When a task fails, can you tell me whether my code ran?
- Do I pay for tasks that failed before my code started?
- Can I retry only the tasks you broke?
If the answer to any of these is no, your eval numbers have an error bar you can't see.