From 38544dd2d384ab5fd7bea0ca83b625801a2ecf18 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 17 Nov 2026 01:25:07 +0100 Subject: [PATCH] Kill the task heading mutant of the archived prompt's split --- bin/judge_replay/test_judge_replay.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/judge_replay/test_judge_replay.py b/bin/judge_replay/test_judge_replay.py index 99dfcab6..44c43b31 100644 --- a/bin/judge_replay/test_judge_replay.py +++ b/bin/judge_replay/test_judge_replay.py @@ -309,6 +309,10 @@ class JudgeArchivedRuns(unittest.TestCase): quoting = self.PROMPT.replace("Worker chose", f"Quoted: {TRANSCRIPT_HEADING}Worker chose", 1) self.assertIsInstance(self.judged(quoting, evidence="Quoted:")[0], Unfinished) + def test_splits_the_prompt_at_the_first_task_heading(self): + quoting = self.PROMPT.replace("Do it.", f"Quote:\n\n{TASK_HEADING}Ship slowly.", 1) + self.assertIsInstance(self.judged(quoting, answer="Ship fast.", question="Which?")[0], QuotedAnswer) + def test_fails_before_the_judge_runs_on_a_prompt_without_a_heading(self): for prompt in ("No headings at all.", f"{TASK_HEADING}Do it.", f"\n\n{TASK_HEADING}Do it.\n\nNo transcript heading."): with self.subTest(prompt=prompt):