Answer prose round 1: 0 🔴, 5 🟡 (0 misread); drop the clashing rule, name the quoted answer's source, reword the docstrings and changelog

This commit is contained in:
2026-11-08 23:36:26 +01:00
parent 1d2bbacb24
commit 380b4e9b41
+2 -2
View File
@@ -243,7 +243,7 @@ def misquoted_evidence(verdict: Verdict) -> Failure:
def answer_checked(verdict: Verdict, quotable: str) -> Verdict:
"""The verdict, or an Interrupt on the same question where it is a quoted answer that README.md and the records don't hold."""
"""The verdict; where it is a quoted answer that README.md and the records don't hold, an Interrupt on the same question instead."""
if isinstance(verdict, QuotedAnswer) and not verbatim(verdict.answer, quotable):
return Interrupt(verdict.evidence, verdict.question, escalation=verdict.escalation, taken_in=verdict.taken_in)
return verdict
@@ -266,7 +266,7 @@ def judge_prompt(brief: Brief) -> tuple[str, Grounds]:
def grounded(evidence: str, rendered_transcript: str) -> bool:
"""Whether the transcript holds the evidence word for word, once plain flattens both. The judge joins passages with an ellipsis though told to quote one, so each fragment between ellipses must come after the one before it."""
"""Whether the transcript holds the evidence word for word, once emphasis marks are stripped and whitespace is reflowed in both. The judge joins passages with an ellipsis though told to quote one, so each fragment between ellipses must come after the one before it."""
transcript = plain(rendered_transcript)
fragments = [fragment.strip() for fragment in re.split(r"\.\.\.|…", plain(evidence)) if fragment.strip()]
after = 0