Answer round one: the bench runs the security pass in a subagent, an unavailable skill is reported, the answer's strictness explained where it is checked, prose nits

This commit is contained in:
2026-10-03 15:54:42 +02:00
parent b39bf5065e
commit 61b7b44243
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -90,7 +90,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 | QuotedAnswer) else ""))
# Not a Failure: a misquote would otherwise exit an unattended loop.
# Not a Failure: a misquote would otherwise exit an unattended loop. Never elided: stitched fragments can say what the records do not.
if isinstance(verdict, QuotedAnswer) and not verbatim(verdict.answer, quotable):
return Interrupt(verdict.evidence, verdict.question)
return verdict
@@ -127,7 +127,7 @@ def verdict_from(output: object) -> Verdict | Failure:
def grounded(evidence: str, rendered_transcript: str) -> bool:
# The judge joins passages with an ellipsis though told to quote one; an elided answer stays rejected, since stitched fragments can say what the records do not.
# The judge joins passages with an ellipsis though told to quote one.
fragments = [fragment.strip() for fragment in re.split(r"\.\.\.|…", plain(evidence)) if fragment.strip()]
transcript = plain(rendered_transcript)
at = 0