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:
2026-11-17 01:13:39 +01:00
parent b5afb4c36a
commit 2600fbb254
11 changed files with 93 additions and 39 deletions
+4 -1
View File
@@ -27,6 +27,9 @@ class JudgeRun:
def read(path: pathlib.Path) -> "JudgeRun | Failure":
try:
kept = json.loads(path.read_text(encoding="utf-8"))
return JudgeRun(kept["prompt"], kept["reply"])
prompt, reply = kept["prompt"], kept["reply"]
except (OSError, ValueError, KeyError, TypeError) as failure:
return Failure(f"could not read the archived judge run {path}: {failure}")
if not (isinstance(prompt, str) and isinstance(reply, dict)):
return Failure(f"could not read the archived judge run {path}: its prompt is no string or its reply no object")
return JudgeRun(prompt, reply)