Answer stability round 2: 0 🔴, 1 🟡; assert archived_route says nothing when it reads a route or finds none

This commit is contained in:
2026-10-22 22:18:33 +02:00
parent 23730a991d
commit 6e481939bf
2 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ def run_judge(root: str, args: list[str], prompt: str, grounds: Grounds, effects
def quotes_checked(verdict: Verdict, grounds: Grounds) -> Verdict:
"""The verdict with its quoted answer and its escalation checked, as Grounds says; a quoted answer put to the human keeps the escalation it carried."""
if isinstance(verdict, QuotedAnswer) and not verbatim(verdict.answer, grounds.quotable):
verdict = Interrupt(verdict.evidence, verdict.question, verdict.escalation, verdict.highest_likelihood_taken_in)
verdict = Interrupt(verdict.evidence, verdict.question, escalation=verdict.escalation, highest_likelihood_taken_in=verdict.highest_likelihood_taken_in)
if isinstance(verdict, Interrupt | QuotedAnswer | Unfinished) and verdict.escalation and not (verbatim(verdict.escalation, grounds.since_step) and verbatim(verdict.escalation, grounds.shown)):
return dataclasses.replace(verdict, escalation="")
return verdict