Answer stability round 1: 0 🔴, 1 🟡 (0 misread); a loop takes the lowest free slot whose session is open first, so a rerun resumes a chunk left open

This commit is contained in:
2026-11-15 14:40:43 +01:00
parent 4854ea0624
commit e8988b5192
4 changed files with 32 additions and 17 deletions
+6 -5
View File
@@ -43,10 +43,11 @@ what it prints in the first prompt (prompts.preflight_facts in bin/loop_claude/c
chunk-preflight --help says what it finds and makes. A preflight that fails, or is still running
after 600 s and is stopped, leaves the worker to find the facts itself.
Each loop runs one chunk at a time, in a session named "A <key> loop-claude", where <key> is the
checkout's path relative to ~/code, or to / outside it. Loops of one project run side by side: each
holds the lowest slot no other holds, a file locked under ~/.local/state/loop-claude/<key>/, and
from the second slot on the session's name ends in the slot's number, as "A <key> loop-claude 2".
Loops of one project run side by side, each on one chunk at a time. Each holds a slot of the
project, the file slot-<n> under ~/.local/state/loop-claude/<key>/, locked while the loop runs.
<key> is the checkout's path relative to ~/code, or to / outside it. A loop takes the lowest free
slot whose session is open, so a rerun resumes a chunk left open, or else the lowest free slot.
slot-0's session is named "A <key> loop-claude", and slot-<n>'s "A <key> loop-claude <n+1>".
The session is deleted when its chunk finishes. At every
interrupt, and as every cycle ends, Ctrl-C and a failure included, the session's transcript is
copied into a folder per chunk under $LOOP_CLAUDE_TRANSCRIPTS/<key> (default root
@@ -127,4 +128,4 @@ Exit 2, when the human is needed to go on:
- the claude opened for /talk, or for a release ready to cut, ends without
anything typed
- the judge rules a chunk unfinished 6 cycles running; rerun to give it 6 more
Rerunning resumes the open session of the slot the rerun takes."""
Rerunning resumes an open session that no running loop holds, the lowest one first."""