From e3566f694acce7a5fca7dc0463c1e78abd515b52 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 23 Oct 2026 11:09:51 +0200 Subject: [PATCH] =?UTF-8?q?Answer=20prose=20round=201:=200=20=F0=9F=94=B4,?= =?UTF-8?q?=204=20=F0=9F=9F=A1;=20correct=20the=20decision's=20counts=20an?= =?UTF-8?q?d=20wording,=20and=20call=20the=20archived=20route=20a=20worker?= =?UTF-8?q?=20line=20in=20item=20218?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/model_routing/route.py | 2 +- bin/reading_cost/measure.py | 2 +- bin/score_outcomes/results.py | 2 +- todo.md | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/model_routing/route.py b/bin/model_routing/route.py index f7b4ac4d..8a34e67a 100644 --- a/bin/model_routing/route.py +++ b/bin/model_routing/route.py @@ -1,4 +1,4 @@ -"""A chunk's route: its worker's rung and the plan item that picked it. The archive keeps the route as JSON on the Worker: line beside each verdict.""" +"""A chunk's route: its worker's rung and the plan item that picked it. The archive keeps the route as JSON on the Worker: line that ends each outcome.""" import dataclasses import json import re diff --git a/bin/reading_cost/measure.py b/bin/reading_cost/measure.py index cca30f35..a5d35ce0 100644 --- a/bin/reading_cost/measure.py +++ b/bin/reading_cost/measure.py @@ -11,7 +11,7 @@ from shell_command import resolved, simple_commands @dataclasses.dataclass(frozen=True) class Reading: - """What the worker and its subagents took in before the worker's first commit: tokens counts the new input tokens, and files how often each tracked file was opened or searched, by its path in the checkout.""" + """What the worker and its subagents took in before the worker's first commit: tokens counts the new input tokens, and files counts how often each tracked file was opened or searched, by its path in the checkout.""" tokens: int files: collections.Counter[str] diff --git a/bin/score_outcomes/results.py b/bin/score_outcomes/results.py index f9a91bf5..8da50edf 100644 --- a/bin/score_outcomes/results.py +++ b/bin/score_outcomes/results.py @@ -19,7 +19,7 @@ Landing = typing.Literal["merge", "rebase", "push"] Chunk = tuple[str, str, int, Landing] -# The tool's name and report call a Result an outcome; the code doesn't: docs/decisions.md → `bin/: an outcome is an entry of a .outcomes.md file`. +# The tool's name and report call a Result an outcome, a word the code keeps for an entry of a `.outcomes.md` file: docs/decisions.md → `bin/: an outcome is an entry`. @dataclasses.dataclass(frozen=True) class Result: """What the chunk that shipped an item measured. findings holds the 🔴 and 🟡 counts, None where a round title lacks them or the branch has no round. landed says how the chunk reached the default branch: by a merge commit, by a rebase that replayed its commits, or by commits never replayed.""" diff --git a/todo.md b/todo.md index 8eab5112..6eb14710 100644 --- a/todo.md +++ b/todo.md @@ -65,7 +65,7 @@ | 197 | 0.5.0 | | | **Let the human edit what they type at loop-claude's terminal questions with the arrow keys, so Left moves the cursor in place of printing `^[[D`.** | 2 | 2 | 3 | 5 | 2 | 1.5 by 1 | 1.3 | | 52 | 0.5.0 | | principle | **Record why this checkout lives in Claude Code's own directory, or move it out and link it in.** | 4 | 3 | 4 | 9 | 6 | 1.1 by 4 | 0.9 | | 170 | 0.6.0 | | decision | **Re-tune `WORKER_STEPS` and `REVIEW_STEPS` once 50 chunks have shipped under them, from how well L, E and I order their review rounds and 🔴 findings.** | 2 | 2 | 3 | 5 | 2 | 1.1 by 3, 1.4 by 5 | 10.9 | -| 218 | 0.6.0 | 170 | | **Drop `LEGACY_WORKER` from `bin/model_routing/route.py`, so `route_from` reads only the JSON record.** | 1 | 2 | 1 | 2 | 1 | code health by 2 | 14.4 | +| 218 | 0.6.0 | 170 | | **Drop `LEGACY_WORKER` from `bin/model_routing/route.py`, so `route_from` reads only JSON worker lines.** | 1 | 2 | 1 | 2 | 1 | code health by 2 | 14.4 | ## Details @@ -327,6 +327,6 @@ The principles pass of PR #301 found that only `routed_by` in `bin/loop_claude/c `docs/decisions.md` → `routing: one ladder…` calls the steps a first guess. Start this item once 50 chunks have merged since PR #339 set today's steps, each shipping one item scored with L, E and I. By 2026-10-23, 15 had: those of items 117, 126, 122, 207, 130, 154, 186, 66, 121, 213, 137, 212, 214, 210 and 216. Then read `score-outcomes`' rank correlations for L, E and I and the routed-chunks table of `routing-figures.md`, and propose new steps to lilleman, whose call they are. -### 218. Drop `LEGACY_WORKER` from `bin/model_routing/route.py`, so `route_from` reads only the JSON record. +### 218. Drop `LEGACY_WORKER` from `bin/model_routing/route.py`, so `route_from` reads only JSON worker lines. -PR #357 archived the route as a JSON record, and kept `LEGACY_WORKER` to read the `Worker:` lines an older loop-claude wrote as sentences. The routing figures still count chunks whose archive holds such lines: 51 when PR #357 shipped, every chunk finished after the reset of 2026-10-21T22:16:41Z. A chunk that changes the routing steps has a `Reset` appended to `routing-calls-raised.md`, after which the figures count only chunks that hold records. This item waits for item 170 whether or not 170 changes the steps, as lilleman decided on 2026-10-23. Before starting, check that `routing-calls-raised.md` holds a `Reset` stamped after PR #357's merge; where none does, ask lilleman whether to append one. Delete `LEGACY_WORKER`, `legacy_fields`, the tests that read sentences (in `bin/loop_claude/test_loop_claude.py` and `bin/routing_figures/test_routing_figures.py`), and the sentence on them in "loop-claude --help". Reword `route_from`'s docstring, and the comment at `Rung.__str__` in `bin/model_routing/ladder.py`, which gives the old lines as a reason `parse` must keep reading that spelling. +PR #357 archived the route as JSON on each `Worker:` line, and kept `LEGACY_WORKER` to read the lines an older loop-claude wrote as sentences. The routing figures still count chunks whose archive holds such lines: 51 when PR #357 shipped, every chunk finished after the reset of 2026-10-21T22:16:41Z. A chunk that changes the routing steps has a `Reset` appended to `routing-calls-raised.md`, after which the figures count only chunks whose worker lines are JSON. This item waits for item 170 whether or not 170 changes the steps, as lilleman decided on 2026-10-23. Before starting, check that `routing-calls-raised.md` holds a `Reset` stamped after PR #357's merge; where none does, ask lilleman whether to append one. Delete `LEGACY_WORKER`, `legacy_fields`, the tests that read sentences (in `bin/loop_claude/test_loop_claude.py` and `bin/routing_figures/test_routing_figures.py`), and the sentence on them in "loop-claude --help". Reword `route_from`'s docstring, and the comment at `Rung.__str__` in `bin/model_routing/ladder.py`, which gives the old lines as a reason `parse` must keep reading that spelling.