From bfcff168c22cf94d1fe06af4830c951e417fdee3 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 19 Nov 2026 09:56:43 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20prose=20round=201:=200=20=F0=9F=94=B4,?= =?UTF-8?q?=205=20=F0=9F=9F=A1=20(0=20misread);=20rewrite=20the=20stuck=20?= =?UTF-8?q?check's=20help,=20docstring=20and=20prompt,=20put=20the=20verdi?= =?UTF-8?q?ct=20first,=20and=20drop=20the=20nothing-negations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/loop_claude/loop/usage.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bin/loop_claude/loop/usage.py b/bin/loop_claude/loop/usage.py index 51075eab..3c7b3727 100644 --- a/bin/loop_claude/loop/usage.py +++ b/bin/loop_claude/loop/usage.py @@ -89,12 +89,14 @@ the UTC time, to lingering-workers.md at the project's folder in that archive (bin/agent_cycle/lingering_workers.py). A worker can also stall before its result, on a command that hangs. Every 5 minutes without output -from its claude, where a shell has used no CPU since the last check and written nothing for 3 -minutes, or has run over 4 hours, and runs no chunk-pr or run-heavy, a headless claude on the -project's rung reads the shells' commands, processes and output. It judges the worker working, -waiting on a person or stuck, and names the process that holds it. loop-claude prints the verdict -with its evidence and appends it to stuck-workers.md beside lingering-workers.md. It kills nothing -yet (bin/agent_cycle/stuck_workers.py). +from its claude, loop-claude looks for a shell that may be stuck: one that used no CPU since the +last check and wrote no output for 3 minutes, or one that has run over 4 hours. A shell that runs +chunk-pr or run-heavy doesn't count, but one that holds a heavy slot does. Where a shell not judged +before counts, a headless claude on the project's rung reads every shell's command, processes and +output. It judges the worker working, waiting on a person or stuck, and names the process it waits +on. loop-claude prints the verdict and the shells that showed a sign, and appends them to +stuck-workers.md beside lingering-workers.md. It doesn't kill anything yet +(bin/agent_cycle/stuck_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).