Skip to main content
This recipe explains every failed run of a Harbor job from its steps and the verifier’s failed tests, then finds what the failures have in common per task and across the job. The full script is examples/failure_modes.py.

1. Small facts with plain Python

2. A note per step

3. Roll up per trial, per task and overall

reward and failed_tests have one value per trial, so the per-trial reduce gets each once rather than once per step. tp.collect runs all three tables in one pass and shares the work they have in common.

Run it

Add --replay to feed the same job in as a simulated stream; the final rows match.

Next steps

Terminal-Bench taxonomies

Label failures with a fixed taxonomy instead.

Concepts

Drill from a failure mode back to its steps with lineage.