Title each decision by what holds now, and make the small fixes filed against bin/, the README, .gitignore and stability-reviewer

This commit is contained in:
2026-10-01 22:32:44 +02:00
parent c260a24ff7
commit 471b86db5e
15 changed files with 73 additions and 46 deletions
+3 -1
View File
@@ -67,7 +67,9 @@ def run_judge(root, args, prompt, transcript) -> Verdict | Failure:
if proc.returncode != 0:
return Failure(proc.stderr.strip() or f"the judge exited {proc.returncode}")
verdict = verdict_from(structured_output(proc.stdout))
if isinstance(verdict, Verdict) and not grounded(verdict, transcript):
if isinstance(verdict, Failure):
return Failure(f"{verdict.reason}; it replied: {proc.stdout.strip()}")
if not grounded(verdict, transcript):
return Failure(f"the judge quoted {verdict.evidence!r}, nothing in the transcript" + (f", for the question: {verdict.question}" if verdict.interrupt else ""))
return verdict