Job has no way to see rollouts that crashed mid-run and were graded (the CLI's "Failed mid-run, graded" count)
What were you building?
Evaluating agents on my own taskset with the Python SDK: job = await taskset.run(agent, runtime=DockerRuntime()), then reading job.reward and job.errors as docs/v6/reference/types.mdx shows. In one run (Nov 9, 20 KernelMind debugging tasks through the Harbor adapter, Claude Haiku via the gateway) four agent loops crashed: one context overflow and three gateway 403 errors. One of the four still scored 1.0, len(job.errors) was 0, and the mean reward included all four. I only found the crashes by printing every trace's status.
What got in the way?
Job has no way to say "N rollouts crashed mid-run and were graded on what they left". A rollout whose agent raises mid-run gets status="error" and is graded best-effort (hud/eval/run.py), so its grade.is_error is false. Job.errors only collects grade.is_error traces, and Job.reward averages everything else. The CLI already counts these (hud/cli/eval.py: "Failed mid-run, graded"), but SDK users get only the mean and an errors list that's empty.
Reproduction on main (b63b95c), no model calls: one Harbor task (Terminal-Bench regex-log), one job, three rollouts from a scripted agent. Script attached.
trace (behaviour) status trace.is_error grade.is_error reward
clean completed False False 1.0
solve-then-crash error True False 1.0
crash-immediately error True False 0.0
job.reward = 0.667
len(job.errors) = 0
The crash after the work counts as a success and the crash before any work counts as a model failure, and nothing on Job says so. For an RL loop or a model comparison, those are infrastructure outcomes mixed into the score.
What would have helped, smallest first:
- A
Jobproperty mirroring the CLI, e.g.job.failed_mid_run(traces withis_errorand a grade), plus a row in theJobtable intypes.mdx. - The docs saying
job.rewardincludes rollouts that crashed mid-run. Right nowtasks.mdxsays a crashed rollout "comes back as a failed Trace", which reads as excluded.
Happy to send a PR for (1) and the doc lines if that's the direction you want. crash_accounting.py