From 7f5275506603706d510926da634bd4ff798b1d20 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 24 Sep 2026 23:06:23 +0200 Subject: [PATCH] Pin the judge's third-failure message --- bin/test_loop_claude.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/test_loop_claude.py b/bin/test_loop_claude.py index b6e3d82e..a8aeb5cd 100644 --- a/bin/test_loop_claude.py +++ b/bin/test_loop_claude.py @@ -194,7 +194,7 @@ class RunCycle(unittest.TestCase): open(verdicts, "w").write(plan) with self.assertRaises(SystemExit) as stopped: loop.run_cycle("task", "premises", "A name", SESSION_ID) - self.assertNotEqual(stopped.exception.code, 2) + self.assertTrue(stopped.exception.code.startswith("the judge ")) self.assertEqual(open(verdicts).read(), "") starts = [args[args.index("-p") + 1:][:3] for args in map(json.loads, open(calls)) if "--json-schema" not in args] self.assertEqual([start[1] for start in starts], ["--name", "--resume", "--name", "--resume", "--resume"])