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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user