From aa9a4cb78be2dab8494c38825187d86831407296 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 23:42:24 +0200 Subject: [PATCH] =?UTF-8?q?Answer=20product-owner=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1;=20keep=20the=20help's=20rung?= =?UTF-8?q?=20definition=20and=20the=20routing=20qualifier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- bin/loop_claude/loop/main.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf054637..2c129982 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- `loop-claude --help` now describes routing in one short paragraph for the person running the loop, and points to `bin/loop_claude/routing.py`, `bin/loop_claude/cycle/prompts.py` and `bin/routing_figures/measure.py` for the rules. The rules it used to repeat are now stated once, in the docstrings of the code that enforces them. +- `loop-claude --help` now describes routing in two short paragraphs for the person running the loop, and points to `bin/loop_claude/routing.py`, `bin/loop_claude/cycle/prompts.py` and `bin/routing_figures/measure.py` for the rules. The rules it used to repeat are now stated once, in the docstrings of the code that enforces them. - loop-claude now archives the route on each `Worker:` line as a JSON record, such as `{"model": "claude-opus-5-5", "effort": "high", "item": 3, "likelihood": 4, "escape_and_impact": 5, "escalated_at": 12}`, and reads it back field by field. The line used to be a sentence, such as `claude-opus-5-5 at high effort, routed by item 3's L of 4 and E + I of 5`, which loop-claude parsed back word for word: rewording the sentence in the code would have made every archived line unreadable, and a rerun would have routed the open chunk afresh. A rerun and the routing figures still read the sentences archived since loop-claude routed on L. A rerun that finds a `Worker:` line it can't read now says so on stderr. The judge's reply now names the levels the worker took in `highest_likelihood_taken_in` and `highest_escape_and_impact_taken_in`, in place of `bundled` and `bundled_escape_and_impact`. - A chunk now takes every unblocked item of its release that fires the same review passes, whatever its purpose: one PR title no longer has to state what the items achieve together. An item with R above 5 ships alone. `chunk-preflight` says so for such an item, and never lists one as an item that may join another. - A branch whose name is not UTF-8 now shows no branch in the status line, in place of a name with replacement characters. diff --git a/bin/loop_claude/loop/main.py b/bin/loop_claude/loop/main.py index 205ecd9c..faf05235 100644 --- a/bin/loop_claude/loop/main.py +++ b/bin/loop_claude/loop/main.py @@ -45,9 +45,11 @@ then each verdict, quoted answer, rejected judge reply, step-up and stop, each o time. The layout, and when a copy is replaced, are in bin/transcript_archive/__init__.py. Every claude loop-claude starts runs the project's model, saved per in -~/.claude/loop-claude-models.json and read each cycle; a project without an entry, as on its first -run, is asked for one. LOOP_CLAUDE_JUDGE_MODEL overrides it for the judge, LOOP_CLAUDE_WORKER_MODEL -for the worker and the session /talk opens; with both set, nothing is asked. +~/.claude/loop-claude-models.json and read each cycle, unless routing, below, puts the worker, +the session /talk opens and the judge on another rung, a model at an effort. A project without an +entry, as on its first run, is asked for one. LOOP_CLAUDE_JUDGE_MODEL overrides it for the judge, +LOOP_CLAUDE_WORKER_MODEL for the worker and the session /talk opens; with both set, nothing is +asked. Where the project's model is on the routing ladder (bin/model_routing/ladder.py), the worker and the session /talk opens run on the rung that the chunk's todo.md item picks, and the judge of some