diff --git a/bin/loop_claude/outcome.py b/bin/loop_claude/outcome.py index a4044b75..302362f5 100644 --- a/bin/loop_claude/outcome.py +++ b/bin/loop_claude/outcome.py @@ -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 diff --git a/todo.md b/todo.md index d76d7369..e3d4a35e 100644 --- a/todo.md +++ b/todo.md @@ -8,7 +8,6 @@ The rebuild lifts every dimension, one chunk per item, until the last item opens The places the panel on `rebuild` at 7f9de5c named (`docs/decisions.md`), capping dimension first: -- **State once, in `outcome.py`, that a `Failure` is retried and a `Stop` exits.** Three seats inferred it from `run_loop`. - **Define a round once, in larv-review's "Round cap", and link it from `review-findings.md` → "Rounds", the Vocabulary and the auto-reviewer's step.** All four seats held §3, "Rounds" and the Vocabulary open together to settle whether a launch counts. - **Give `project` one meaning: rename `Paths.projects` and `Session.projects` for Claude Code's transcript directory.** Two seats: it also names the package, the key and `~/.claude.json`'s object. - **Name `human.py` for the exit-2 stops it holds.** One seat looked there for the prompts, which live in `models.py` and `interrupt.py`.