State in outcome.py what the loop does with each outcome
This commit is contained in:
@@ -3,15 +3,17 @@ import dataclasses
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Continue:
|
||||
pass
|
||||
"""The cycle ended; the loop starts the next."""
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Failure:
|
||||
"""A step failed and its caller decides: a worker or judge run is retried, up to three times running; anything else becomes a Stop or a warning."""
|
||||
reason: str
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Stop:
|
||||
"""loop-claude exits with code, printing reason."""
|
||||
code: int
|
||||
reason: str
|
||||
|
||||
Reference in New Issue
Block a user