Answer stability round 1: 1 🔴, 5 🟡 (0 misread); imports sorted, the replay cuts the task and the rules from its grounds and fails on a missing heading, outcome parameters keyword-only, the mtime order dropped
This commit is contained in:
@@ -394,12 +394,12 @@ Worker: {OFF_LADDER}
|
||||
self.assertEqual(run.run_cycle(self.cycle(fake)).verdict, Finished("working"))
|
||||
prompts = [stdin for args, stdin in fake.made("claude")[:3]]
|
||||
[chunk] = self.archive.iterdir()
|
||||
kept = "\n".join(path.read_text() for path in sorted(chunk.glob("*.outcomes.md"), key=lambda path: path.stat().st_mtime_ns))
|
||||
kept = "\n".join(path.read_text() for path in chunk.glob("*.outcomes.md"))
|
||||
named = re.findall(r"^Judge run: (judge/[0-9a-f]{64}\.json)$", kept, re.MULTILINE)
|
||||
self.assertEqual(len(named), 3, kept)
|
||||
runs = [json.loads((chunk / name).read_text()) for name in named]
|
||||
self.assertEqual([found["prompt"] for found in runs], prompts)
|
||||
self.assertEqual([found["reply"] for found in runs], [json.loads(reply.stdout) for reply in (rejected, interrupted, finished)])
|
||||
self.assertEqual(sorted(found["prompt"] for found in runs), sorted(prompts))
|
||||
self.assertEqual(sorted(json.dumps(found["reply"]) for found in runs), sorted(json.dumps(json.loads(reply.stdout)) for reply in (rejected, interrupted, finished)))
|
||||
self.assertEqual(sorted(path.name for path in (chunk / "judge").iterdir()), sorted(name.removeprefix("judge/") for name in named))
|
||||
|
||||
def test_stops_when_a_judge_run_cannot_be_archived(self):
|
||||
|
||||
Reference in New Issue
Block a user