Resume an unfinished chunk with the judge's quote of the work remaining

This commit is contained in:
2026-10-04 17:09:28 +02:00
parent f807bc8bd5
commit edbe3af024
9 changed files with 52 additions and 39 deletions
+3 -3
View File
@@ -36,7 +36,7 @@ class Closing:
@dataclasses.dataclass(frozen=True)
class Ended:
"""The cycle is over."""
verdict: Finished | Unfinished
Active = Working | Judging | Interrupting | Closing
@@ -79,6 +79,6 @@ def transition(state: State, event: Event) -> State:
# The human works in the interrupt's claude session, so the judge rules again on the transcript it leaves.
case Interrupting(transcript_path, _, quoted_answers), HumanAnswered():
return Judging(transcript_path, quoted_answers)
case Closing(), Archived():
return Ended()
case Closing(_, verdict), Archived():
return Ended(verdict)
raise ValueError(f"no transition from {state} on {event}")