Answer the stability pass's second round: say why a misquote is no failure, rewrap --help

This commit is contained in:
2026-10-03 01:44:23 +02:00
parent 09fb7dcdd5
commit 80f1cc2dc9
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ def run_judge(root: str, args: list[str], prompt: str, rendered_transcript: str,
return Failure(f"{verdict.reason}; it replied: {proc.stdout.strip() or 'nothing'}")
if not grounded(verdict.evidence, rendered_transcript):
return Failure(f"the judge quoted {verdict.evidence!r}, which is not in the transcript" + (f", for the question: {verdict.question}" if isinstance(verdict, Interrupt | AnsweredFromRecords) else ""))
# An answer the records do not hold verbatim is dropped, and the question goes to the human.
# Not a Failure: a misquote would otherwise exit an unattended loop.
if isinstance(verdict, AnsweredFromRecords) and not grounded(verdict.answer, recorded):
return Interrupt(verdict.evidence, verdict.question)
return verdict