Answer stability round 1: 0 🔴, 6 🟡; name no rung without evidence, test the prompt's task, premises and records and the replay's edges, and name a copy and its outcomes file in one module

This commit is contained in:
2026-10-15 09:16:11 +02:00
parent 5d49c24397
commit 015e39ae97
13 changed files with 94 additions and 36 deletions
+11 -4
View File
@@ -40,7 +40,10 @@ class Replay:
def case_from(root: str, outcomes: str, transcript: pathlib.Path) -> Case | None:
"""The first verdict an outcomes file holds: the judge ruled on the transcript copy beside it as the copy stands. None when it holds none."""
"""The first verdict an outcomes file holds: the judge ruled on the transcript copy beside it as the copy stands. None when it holds none.
A quoted answer past the cycle's cap is archived as the interrupt it became, so the reference judge's quoted answer sets it aside, holding no rung to it.
"""
task, verdict = task_of(outcomes), first_verdict(outcomes)
if task is None or verdict is None:
return None
@@ -84,8 +87,9 @@ def replayed(cases: list[Case], reference: Rung, candidates: list[Rung], rule_al
return ruled
reproduced = [found for found, kind in zip(cases, ruled) if kind == found.on_record]
unreproduced = [(found, kind) for found, kind in zip(cases, ruled) if kind != found.on_record]
tried = []
for rung in candidates:
tried: list[Tried] = []
# With no verdict to hold a rung to, every rung would miss none.
for rung in candidates if reproduced else []:
ruled = rule_all(reproduced, rung)
if isinstance(ruled, Limited):
return ruled
@@ -104,7 +108,10 @@ def report(model: str, reference: Rung, cases: list[Case], replay: Replay) -> st
]
for tried in replay.tried:
lines += [f"{tried.rung} missed {len(tried.missed)}{':' if tried.missed else '.'}", *missed_lines(tried.missed)]
lines.append(f"Cheapest rung that returns every verdict the reference judge reproduces: {replay.cheapest or 'none up to the project rung'}")
if not replay.tried:
lines.append("No rung tried: the reference judge reproduced no verdict to hold one to.")
else:
lines.append(f"Cheapest rung that returns every verdict the reference judge reproduces: {replay.cheapest or 'none up to the project rung'}")
return "\n".join(lines)