State in outcome.py what the loop does with each outcome

This commit is contained in:
2026-09-29 10:31:48 +02:00
parent d9058d2d7e
commit 80edf5e695
2 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -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
-1
View File
@@ -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`.