Answer architecture round 1: 1 🔴, 4 🟡 (0 misread); share the stop archiving, fix the limit at 6, reword the exit-2 contract, close the cycle in one step
This commit is contained in:
@@ -653,10 +653,10 @@ class Cycles(unittest.TestCase):
|
||||
six = [step for _ in range(6) for step in (worker(), judge())]
|
||||
run = checkout.run(six + [worker()])
|
||||
self.assertEqual((run.code, run.roles()), (2, ["worker", "judge"] * 6))
|
||||
self.assertEqual(run.stderr.strip().splitlines()[-1], "the human is needed to decide whether the chunk is finished, but the judge ruled it unfinished 6 cycles running; rerun loop-claude to give it 6 more")
|
||||
self.assertEqual(run.stderr.strip().splitlines()[-1], "the human is needed to decide whether the chunk is finished, but the judge ruled it unfinished 6 cycles running and loop-claude does not go on unasked; finish the chunk yourself, or rerun loop-claude to give it 6 more cycles")
|
||||
stops = [outcome for outcome in checkout.archived().values() if "Stopped: " in outcome]
|
||||
self.assertEqual(len(stops), 1)
|
||||
self.assertIn(f"<UTC> Stopped: the human is needed to decide whether the chunk is finished, but the judge ruled it unfinished 6 cycles running; rerun loop-claude to give it 6 more\n\nWorker: {OFF_LADDER}\n", stops[0])
|
||||
self.assertIn(f"<UTC> Stopped: the human is needed to decide whether the chunk is finished, but the judge ruled it unfinished 6 cycles running and loop-claude does not go on unasked; finish the chunk yourself, or rerun loop-claude to give it 6 more cycles\n\nWorker: {OFF_LADDER}\n", stops[0])
|
||||
run = checkout.run(six[:-2] + [worker()])
|
||||
self.assertEqual((run.code, run.roles()), (130, ["worker", "judge"] * 6))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user