Answer the stability and product-owner reviews' first round

This commit is contained in:
2026-10-02 16:04:47 +02:00
parent 990963d586
commit b9f65aac20
8 changed files with 35 additions and 18 deletions
+4 -4
View File
@@ -20,7 +20,7 @@ class Interrupting:
@dataclasses.dataclass(frozen=True)
class Finishing:
class Closing:
transcript_path: str
verdict: Finished | Unfinished
@@ -30,7 +30,7 @@ class Ended:
"""The cycle is over."""
Active = Working | Judging | Interrupting | Finishing
Active = Working | Judging | Interrupting | Closing
State = Active | Ended
@@ -64,10 +64,10 @@ def transition(state: State, event: Event) -> State:
case Judging(transcript_path), Ruled(Interrupt(question=question)):
return Interrupting(transcript_path, question)
case Judging(transcript_path), Ruled(Finished() | Unfinished() as verdict):
return Finishing(transcript_path, verdict)
return Closing(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)
case Finishing(), Archived():
case Closing(), Archived():
return Ended()
raise ValueError(f"no transition from {state} on {event}")