From 80059eb6842c77ee74a24e19f2bb27711bcb8e3e Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 16 Oct 2026 18:01:19 +0200 Subject: [PATCH] Plan answering an interrupt at loop-claude's own prompt and resuming the worker headless --- todo.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 658b5878..62a88bef 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 168` +`Next ID = 169` ## Items @@ -20,6 +20,7 @@ | 153 | 0.2.0 | | decision | **Run the judge on the rung the highest R + C in its chunk picks, an item the worker takes in included.** | 3 | 4 | 5 | 1.2 by 5 | 3.0 | | 161 | 0.2.0 | | | **Have loop-claude run a preflight script before each fresh worker and put its findings in the worker's prompt, so the worker no longer spends tool calls finding the chunk's mechanical facts.** | 4 | 6 | 5 | 1.1 by 4, 1.4 by 6, 1.5 by 6 | 2.9 | | 84 | 0.2.0 | | | **Check, at each release's scoring run, that seats in a paired ruling agree more often than two scoring runs on near-identical code do, as the paired-ruling decision assumes.** | 2 | 4 | 5 | 1.4 by 5 | 2.3 | +| 168 | 0.2.0 | | | **Have the human answer an interrupt at loop-claude's own prompt and resume the worker headless with the answer, opening the interactive session only when they ask for it.** | 4 | 5 | 4 | 1.5 by 8 | 1.8 | | 159 | 0.2.0 | | | **Run the prose pass on the lowest rung that a replay of archived prose rounds shows finding every 🔴 and 🟡 the project's rung finds, even below the worker's rung.** | 3 | 5 | 5 | 1.4 by 5 | 1.4 | | 73 | 0.2.0 | | | **Have each reviewer write its full report to a file and return the worker only its findings' one-line summaries.** | 4 | 5 | 5 | 1.4 by 4 | 1.1 | | 80 | 0.3.0 | | defect | **State in README → Install that every machine taking this checkout must be a sandbox, as `settings.json`'s auto mode assumes.** | 1 | 1 | 1 | 2 by 4 | 17.5 | @@ -141,6 +142,12 @@ Compute these in one tool and give loop-claude's prompt its output as facts, so Raised by the principles audit of PR #228: the `review: the comprehension check records …` entry in `docs/decisions.md` is valid only while that holds, and `docs/comprehension-history.md` keeps every vote, yet nothing reads the agreement rate. Scoring runs on near-identical code are rare now, so compare with those already in the history, such as PR #224's and PR #225's, or make a second run for the check. +### 168. Have the human answer an interrupt at loop-claude's own prompt and resume the worker headless with the answer, opening the interactive session only when they ask for it. + +Today an interrupt runs `claude --resume` on the terminal and waits for it to exit (`bin/loop_claude/cycle/interrupt.py`). Once the human answers, the worker carries on in that interactive session, so the loop waits until the human exits it, often for the rest of the chunk. Instead, the loop prints the question and reads the answer on its own terminal. The next cycle resumes the worker headless with it, as `prompts.answered` does for a quoted answer. A word typed in place of an answer, such as `/talk`, opens today's interactive session, for when the human wants to read the diff or discuss first. Bench that word and the prompt's wording as `CLAUDE.md` says. An empty answer stops the loop, as an interrupt with nothing typed does today. A release ready to cut keeps its interrupt. + +The judge must read an answer the loop passes on as the human's. It labels a prompt from the loop `[loop]` (`bin/loop_claude/cycle/judge.py`'s `run_judge`), and it holds a chunk open until each answer the human typed is recorded. The change touches two places the comprehension seats found hard: `run_judge` and `bin/loop_claude/loop/main.py`'s help. Leave each easier to read. + ### 159. Run the prose pass on the lowest rung that a replay of archived prose rounds shows finding every 🔴 and 🟡 the project's rung finds, even below the worker's rung. lilleman asked, on 2026-10-16, for the prose pass to run on the worker's rung or lower. Today `bin/loop_claude/cycle/prompts.py`'s `off_the_projects_rung` keeps every reviewer on the project's rung while the worker runs below it, so a docs-only chunk such as item 140's, routed to Haiku 5.5, runs its prose reviewer on Opus 5.5.