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