Resume an unfinished chunk with the judge's quote of the work remaining
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user