diff --git a/todo.md b/todo.md index 85130dbd..6bc84cf4 100644 --- a/todo.md +++ b/todo.md @@ -6,12 +6,13 @@ `Bar = 0.1` -`Next ID = 178` +`Next ID = 179` ## Items | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| +| 178 | 0.2.0 | | defect | **Step the worker one rung up as the judge interrupts, when the interrupted run also asked loop-claude for a higher rung and the judge finds the escalation trigger that run cites.** | 2 | 2 | 2 | 4 | 4 | 1.3 by 3, 1.1 by 3 | 8.2 | | 168 | 0.2.0 | | | **Have the human answer an interrupt on loop-claude's terminal and resume the worker headless with the answer, opening the interactive session only when they ask for it.** | 4 | 2 | 3 | 7 | 5 | 1.5 by 8 | 1.8 | | 73 | 0.2.0 | | | **Have each reviewer write its full report to a file and return the worker only its findings' one-line summaries.** | 3 | 2 | 3 | 6 | 5 | 1.4 by 4 | 1.1 | | 159 | 0.2.0 | | decision | **Run each review pass on the lowest rung that a replay of its archived rounds shows finding every 🔴 and 🟡 the project's rung finds, even below the worker's rung.** | 4 | 2 | 3 | 7 | 6 | 1.4 by 7 | 1.1 | @@ -83,6 +84,14 @@ ## Details +### 178. Step the worker one rung up as the judge interrupts, when the interrupted run also asked loop-claude for a higher rung and the judge finds the escalation trigger that run cites. + +A defect against goal 1.3, the same rules in every session: the escalation rule (`docs/decisions.md` → `routing: a worker whose run ends asking for a higher rung…`) does not hold when the run that asks for a higher rung also asks the human something only they can answer. Only an `Unfinished` verdict carries an escalation, the judge's quote of the trigger the worker cites (`bin/loop_claude/cycle/judge.py`), and only `after_verdict` (`bin/loop_claude/loop/main.py`) calls `stepped`, on an unfinished verdict. An interrupt carries none, so `bin/loop_claude/cycle/run.py` opens the interrupt on the worker's current rung, and the step-up is lost. The worker cannot ask again: a step-up needs a trigger that fired since its last request. + +Have the judge's interrupt carry an escalation, checked word for word as on `Unfinished`. Step the worker's rung up as the judge's interrupt comes in, before the human is asked. The worker then carries on from the answer on the stepped rung. Today that is in the interactive session the interrupt opens. Once item 168 lands, it is the headless run that resumes with the answer, or the session `/talk` opens. The step obeys the decision's limits: one rung, at most two above the item's rung, and one step per trigger, so the verdict the judge gives after the interrupt does not step again on the same quote. An interrupt does not count as an unfinished verdict. The change touches two places the comprehension seats found hard, `routing.py`'s `stepped` and `judge.py`'s `run_judge`. Leave each easier to read. + +It happened in item 84's chunk on 2026-10-17. The worker, on Sonnet 5.5 at high, ended its run asking loop-claude for a higher rung. It cited trigger 4: the architect's BLOCK, which stood after the architect's rerun one rung up. In the same run it asked the human about a cost, and the judge ruled interrupt. After the human's answer, the worker did the redesign the BLOCK asked for in the interactive session on Sonnet 5.5 at high, one rung below the Opus 5.5 at medium the step would have given. + ### 168. Have the human answer an interrupt on loop-claude's terminal 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 a prompt like `prompts.answered`'s, saying the human gave the 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. An empty answer stops the loop, as an interrupt with nothing typed does today. A release ready to cut still opens the interactive session. Bench the word, and the line that asks for the answer, as `CLAUDE.md` says.