20 lines
473 B
Python
20 lines
473 B
Python
import dataclasses
|
|
|
|
|
|
@dataclasses.dataclass(frozen=True)
|
|
class Continue:
|
|
"""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 until it fails 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
|