diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bed484a..7cb19b6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ - `loop-claude` skips a transcript line it cannot parse, exits 1 naming a transcript it cannot read, and counts a `claude` it cannot start as a failed worker run. - `loop-claude`'s judge quotes the transcript for every verdict, and a verdict quoting nothing or interrupting without a question, or a `claude` the judge cannot start, is a failed judge run; a `claude` that cannot start for an interrupt exits 1. - `loop-claude`'s exit-2 message says what the human is needed for. -- `loop-claude` retries a failed worker within its cycle; a loop running the previous `loop-claude` exits 1 at its next cycle boundary, and rerunning `loop-claude ` resumes it. +- `loop-claude` retries a failed worker within its cycle. - `loop-claude` counts an interrupt reply starting with `<` as typed. - `loop-claude`'s judge sees a reply the human types while claude works, and an interrupt counts one as typed. - `loop-claude`'s archive holds the raw `.jsonl` transcript, one copy per distinct transcript, named by its SHA-256, with the verdict beside it in `.verdict.md`; a transcript it cannot archive exits 1. diff --git a/bin/loop_claude/main.py b/bin/loop_claude/main.py index 76bd3a0c..bd578364 100644 --- a/bin/loop_claude/main.py +++ b/bin/loop_claude/main.py @@ -12,10 +12,10 @@ Cycles continue until an exit below or Ctrl-C. Words: ~/.claude/CLAUDE.md → "V Exit 1: no task, not inside a checkout, no premises, a models file it cannot read or write, claude leaves no transcript or one it cannot read or archive, claude cannot start for an interrupt, a -reload with unreadable state, or the worker or the judge fails three times running. A worker fails -when claude cannot start, exits non-zero, is killed, or ends without a result event; a judge when -claude cannot start or exits non-zero, or its verdict misses or mistypes a field, interrupts without a -question, or quotes nothing in the transcript. +reload with unreadable state, or the worker or the judge fails three times running, retried a minute +apart within the cycle. A worker fails when claude cannot start, exits non-zero, is killed, or ends +without a result event; a judge when claude cannot start or exits non-zero, or its verdict misses or +mistypes a field, interrupts without a question, or quotes nothing in the transcript. Exit 2: the human is needed, to pick the model or answer an interrupt, and stdin or stdout is not a terminal, the input ends, or the interrupt ended with nothing typed. Rerunning resumes any open session.