Archive every cycle's transcript and its session folder, however the cycle ends
This commit is contained in:
@@ -22,6 +22,7 @@ class Interrupting:
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Finishing:
|
||||
transcript_path: str
|
||||
verdict: Finished | Unfinished
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
@@ -62,10 +63,8 @@ def transition(state: State, event: Event) -> State:
|
||||
return Judging(transcript_path)
|
||||
case Judging(transcript_path), Ruled(Interrupt(question=question)):
|
||||
return Interrupting(transcript_path, question)
|
||||
case Judging(transcript_path), Ruled(Finished()):
|
||||
return Finishing(transcript_path)
|
||||
case Judging(), Ruled(Unfinished()):
|
||||
return Ended()
|
||||
case Judging(transcript_path), Ruled(Finished() | Unfinished() as verdict):
|
||||
return Finishing(transcript_path, verdict)
|
||||
# The human works in the interrupt's claude session, so the judge rules again on the transcript it leaves.
|
||||
case Interrupting(transcript_path), Answered():
|
||||
return Judging(transcript_path)
|
||||
|
||||
Reference in New Issue
Block a user