Keep a worker's shells that run a busy tool, name the shell's real command and fix the review's prose findings

This commit is contained in:
2026-11-18 17:20:13 +01:00
parent 72ffb9f748
commit abae3a0559
8 changed files with 96 additions and 50 deletions
+7 -5
View File
@@ -48,11 +48,6 @@ failure, keeps its window, with its last lines, and its chunk keeps its items; t
claude session is named "A <key> loop-claude <window>", so a rerun resumes a chunk left open, and is
deleted when the chunk finishes. A fresh worker is told the items the project's other chunks hold,
running or stopped: each one's own and those on its latest `Chunk items:` line, and leaves them out.
A worker whose claude printed its final result and still waits on a background shell that has
written nothing for 3 minutes loses that shell, found at the next 5-minute check. A shell that
writes, or holds a run-heavy slot, keeps the worker alive. Each stop is printed and appended to
lingering-workers.md in the project's transcript archive
(bin/loop_claude/cycle/lingering_workers.py).
A question only the human can answer is an interrupt (bin/loop_claude/cycle/interrupt.py).
loop-claude prints the question in the chunk's window and rings its bell. Until it is answered the
@@ -83,6 +78,13 @@ transcript is copied into a folder per chunk under $LOOP_CLAUDE_TRANSCRIPTS/<key
then each verdict, quoted answer, rejected judge reply, step-up and stop, each opened by its UTC
time. The layout, and when a copy is replaced, are in bin/transcript_archive/__init__.py.
A worker's claude can print its final result and then keep waiting on a background shell that
never ends. Every 5 minutes without output from that claude, loop-claude stops each of its shells
and what runs below them, once the result is over 3 minutes old and no shell has written output in
the last 3 minutes or runs run-heavy or chunk-pr. It prints each stop and appends it, with the UTC
time, to lingering-workers.md at the project's folder in that archive
(bin/loop_claude/cycle/lingering_workers.py).
Before each worker starts, loop-claude waits until at least a quarter of the machine's memory is
available (bin/machine_load/memory.py).