Bench a model step's handoff, and keep resuming the session #575

Merged
lilleman merged 12 commits from item-319 into main 2026-11-17 04:06:55 +01:00
Showing only changes of commit 4875e07f98 - Show all commits
+1 -1
View File
@@ -19,7 +19,7 @@ def result_line(**fields):
class StoppedAtBudget(unittest.TestCase):
def test_holds_where_the_first_result_is_the_budget_stop(self):
self.assertTrue(handoff_bench.stopped_at_budget(["not json", result_line(subtype="error_max_budget_usd", is_error=True)]))
self.assertTrue(handoff_bench.stopped_at_budget(["not json", '{"type": "assistant"}', result_line(subtype="error_max_budget_usd", is_error=True)]))
def test_fails_where_the_worker_finished_within_the_budget(self):
self.assertFalse(handoff_bench.stopped_at_budget([result_line()]))