From 4172e4024f75a43b30837fed72b308fa48e23986 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 8 Nov 2026 14:06:06 +0100 Subject: [PATCH 1/5] Record item 170's start before 50 chunks and its measured proposal --- docs/reading-cost.md | 17 +++++++++++++++++ todo.md | 14 +++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/docs/reading-cost.md b/docs/reading-cost.md index 03a47608..93eaee7e 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -991,3 +991,20 @@ Read most (opens and searches): - `bin/chunk_preflight/gathered.py` 1 - `bin/chunk_preflight/main.py` 1 - `bin/loop_claude/cycle/prompts.py` 1 + +## Reading cost, chunk e3e09719dd25, finished 2026-11-08T10:18:57Z + +57098 new input tokens before the first commit. + +Read most (opens and searches): + +- `bin/run_heavy/test_run_heavy.py` 4 +- `CHANGELOG.md` 3 +- `bin/rule_hook/rules.py` 3 +- `bin/shell_command.py` 3 +- `docs/decisions.md` 3 +- `todo.md` 3 +- `README.md` 2 +- `AGENTS.md` 1 +- `bin/rule_hook/test_rule_hook.py` 1 +- `bin/run_heavy/capped_docker.py` 1 diff --git a/todo.md b/todo.md index 75a2a7cd..a7de350b 100644 --- a/todo.md +++ b/todo.md @@ -88,7 +88,19 @@ The README line covers the bench's transcripts in `workflow-bench/logs/` too (go ### 170. 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. -`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. +`docs/decisions.md` → `routing: one ladder…` calls the steps a first guess. lilleman decided on 2026-11-08 to start before 50 chunks had shipped one item each: 54 `item-*` branches had merged since PR #339 set today's steps, 36 of them as chunks that shipped one item scored with L, E and I. Those 36 measured, by the item's L, mean review rounds past each pass's first and share of chunks with a 🔴: + +- L 1: 1.57 rounds, 1 of 7 (all on Sonnet 5.5 at high effort); L 2: 2.15, 6 of 12 (same rung); L 3: 2.75, 2 of 12; L 4: 3.50, 1 of 3. +- E + I 3: 1.60 rounds, 3 of 5; 4: 2.83, 4 of 11; 5: 2.44, 3 of 17; 6: 0.00, 0 of 1. No chunk scored 7 or more. +- Rank correlations: L with rounds +0.19, with 🔴 +0.02; E + I with rounds -0.06, with 🔴 -0.27 (the +0.45 and -0.08 that `score-outcomes` shows for all 57 scored chunks include those before the steps). + +Proposal for lilleman, whose call it is: keep `WORKER_STEPS` and `REVIEW_STEPS` as they are. + +- L orders review rounds (1.57 up to 3.50), but L 1 and L 2 sit on one rung and differ in 🔴 (1 of 7, 6 of 12), so the 🔴 comes from the item and the data can't tell the rung's share. Telling it would take L 2 at step 0 for about 15 chunks. +- E + I doesn't order 🔴 or rounds between 3 and 5, and no chunk reached the steps for 6 to 8, so nothing here supports changing them. Re-tune again once 10 chunks score E + I of 6 or more. +- The routed-chunks table of `routing-figures.md` (Sonnet 5.5 at high effort 0.6 rounds, Opus 5.5 at medium effort 1.0, Opus 5.5 at high effort 2.6) reflects what each rung was given, not the rung's effect. + +When lilleman answers, apply the answer to `bin/model_routing/ladder.py`, record it in `docs/decisions.md` → `routing: one ladder…` in place of "first guess", and delete this item. ### 218. Drop `LEGACY_WORKER` from `bin/model_routing/route.py`, so `route_from` reads only JSON worker lines. -- 2.52.0 From df510e967f253181531c96acc83175b324ff10b9 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 8 Nov 2026 14:18:18 +0100 Subject: [PATCH 2/5] Keep the routing steps and drop item 170, with its measurement in the decision --- docs/decisions.md | 2 +- todo.md | 21 ++------------------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/docs/decisions.md b/docs/decisions.md index 34bd1e03..b70f78eb 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -378,7 +378,7 @@ Valid while the archived verdicts show what a judge should return, and until a n The rungs, least competent first: Sonnet 5.5 at high; Opus 5.5 at medium, high, xhigh and max; Fable 5.1 at max. The 2026-10-29 note below took Haiku 5.5 off. They first were: Haiku 5.5 at low, medium, high, xhigh and max; Sonnet 5.5 at high; Opus 5.5 at medium, high, xhigh and max; Fable 5.1 at max. The order and the cut come from the Artificial Analysis Intelligence Index (https://artificialanalysis.ai/leaderboards/models, read 2026-10-14), which scores each model at each effort and gives a cost per task. A rung stays only where no cheaper rung scores as high, so a step up always buys more score (goal 1.4). That cut drops Sonnet 5.5 at low, medium, xhigh and max, Opus 5.5 at low, and every Fable 5.1 rung, and every tie in the index falls among the dropped rungs. lilleman put Fable 5.1 at max back on top: the index scores it under Opus 5.5 at high, but Anthropic's model catalog names Fable the most capable model, and for the hardest tasks lilleman wants the highest quality at any price. -A project's rung is its model's cheapest rung, which for Opus 5.5 is its default effort, medium. A model off the ladder routes nothing: claude runs it at the effort its settings give. A task's L steps its worker from the project's rung: 1 and 2 one down, 3 none, 4 one up. Its E + I steps its reviewers up from the project's rung: 4 or less none, 5 one up, 6 two up, 7 three up, 8 four up. A step past either end stops there. A worker errs more the more it changes and the newer that is, which L scores; review must look harder the further a defect would escape and the more it would break, which E + I scores (goals 1.1 and 1.4). Size raises L, so a large change runs its worker higher. The steps spread the values this repo's plan held when rescored on 2026-10-16, L 1 to 4 and E + I 2 to 7, so a worker on most items runs at or below the project's rung, and a review climbs only where a defect would escape far or break much. lilleman approved the first steps on 2026-10-16 as a guess: `score-outcomes` reports how well L, E and I each order finished chunks by review rounds and 🔴 findings, and `todo.md` item 170 re-tunes the steps once 50 chunks have shipped under the steps that hold today. A change to the ladder or the steps is lilleman's. +A project's rung is its model's cheapest rung, which for Opus 5.5 is its default effort, medium. A model off the ladder routes nothing: claude runs it at the effort its settings give. A task's L steps its worker from the project's rung: 1 and 2 one down, 3 none, 4 one up. Its E + I steps its reviewers up from the project's rung: 4 or less none, 5 one up, 6 two up, 7 three up, 8 four up. A step past either end stops there. A worker errs more the more it changes and the newer that is, which L scores; review must look harder the further a defect would escape and the more it would break, which E + I scores (goals 1.1 and 1.4). Size raises L, so a large change runs its worker higher. The steps spread the values this repo's plan held when rescored on 2026-10-16, L 1 to 4 and E + I 2 to 7, so a worker on most items runs at or below the project's rung, and a review climbs only where a defect would escape far or break much. lilleman approved the steps on 2026-10-16, and on 2026-11-08 kept them after 36 chunks that each shipped one item had measured under them: L ordered review rounds from 1.57 at L 1 to 3.50 at L 4, E + I ordered neither rounds nor 🔴 findings between 3 and 5, and no chunk scored 7 or more. L 1 and L 2 share a rung yet differ in 🔴 (1 of 7 chunks, 6 of 12), so the data can't separate the item's share from the rung's, and nothing supports a change. `score-outcomes` reports how well L, E and I each order finished chunks. A change to the ladder or the steps is lilleman's. 2026-10-21, lilleman, settling the routing calls stamped 2026-10-21T20:33:29Z: L 1 steps one rung down, not two as before, so an Opus 5.5 project runs no worker on Haiku 5.5. A delegated subagent takes the same steps, so an L 1 search moves off Haiku 5.5 too: lilleman chose one set of steps for chunk workers and subagents alike, so loop-claude, `subagent-rung` and rule-hook read one table (code health). No figure yet shows whether Sonnet 5.5 searches better than Haiku 5.5, so this costs more per search for a gain nobody has measured (goal 1.4). The calls came from loop-claude's routing figures, measured at cycle 165 over 46 chunks. Chunks started on Haiku 5.5 at max took a mean 7.8 review rounds past each pass's first, against 2.8 on Sonnet 5.5 at high, and 0.2 unfinished verdicts, against 0.1. The figures also called for moving workers off Sonnet 5.5 at high, whose chunks took 0.1 unfinished verdicts against 0.0 on Opus 5.5 at medium. lilleman kept L 2 on Sonnet 5.5, since that gap rests on one or two verdicts. diff --git a/todo.md b/todo.md index a7de350b..d5c5dde9 100644 --- a/todo.md +++ b/todo.md @@ -13,8 +13,7 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| | 1 | 0.7.0 | | question | **Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume.** | 1 | 2 | 1 | 2 | 1 | | 0.0 | -| 170 | 0.7.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.7.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 | +| 218 | 0.7.0 | | | **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 | | 219 | 0.7.0 | | | **Name the project's rung `project` in `bin/judge_replay/main.py`, `bin/subagent_rung/main.py` and `bin/review_replay/main.py`, in place of `anchor`, as `bin/model_routing/ladder.py` and `bin/loop_claude` name it.** | 1 | 1 | 3 | 3 | 2 | code health by 2 | 12.0 | | 224 | 0.7.0 | | | **Split `docs/decisions.md` → `todo.md: one table of items, …`'s 420-word scoring paragraph into one paragraph per choice, and drop the sentences that tell how the goal weights changed.** | 1 | 1 | 1 | 1 | 2 | code health by 2 | 12.0 | | 123 | 0.7.0 | | | **Have `bin/comprehension_history.py` parse each history entry once into seats, votes and places, so `latest_places`, `worse_places` and `worse_votes` neither depend on table order nor split a label to find a seat.** | 2 | 1 | 2 | 3 | 5 | code health by 5, 1.4 by 5 | 11.0 | @@ -86,25 +85,9 @@ It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost The README line covers the bench's transcripts in `workflow-bench/logs/` too (goal 3). -### 170. 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. - -`docs/decisions.md` → `routing: one ladder…` calls the steps a first guess. lilleman decided on 2026-11-08 to start before 50 chunks had shipped one item each: 54 `item-*` branches had merged since PR #339 set today's steps, 36 of them as chunks that shipped one item scored with L, E and I. Those 36 measured, by the item's L, mean review rounds past each pass's first and share of chunks with a 🔴: - -- L 1: 1.57 rounds, 1 of 7 (all on Sonnet 5.5 at high effort); L 2: 2.15, 6 of 12 (same rung); L 3: 2.75, 2 of 12; L 4: 3.50, 1 of 3. -- E + I 3: 1.60 rounds, 3 of 5; 4: 2.83, 4 of 11; 5: 2.44, 3 of 17; 6: 0.00, 0 of 1. No chunk scored 7 or more. -- Rank correlations: L with rounds +0.19, with 🔴 +0.02; E + I with rounds -0.06, with 🔴 -0.27 (the +0.45 and -0.08 that `score-outcomes` shows for all 57 scored chunks include those before the steps). - -Proposal for lilleman, whose call it is: keep `WORKER_STEPS` and `REVIEW_STEPS` as they are. - -- L orders review rounds (1.57 up to 3.50), but L 1 and L 2 sit on one rung and differ in 🔴 (1 of 7, 6 of 12), so the 🔴 comes from the item and the data can't tell the rung's share. Telling it would take L 2 at step 0 for about 15 chunks. -- E + I doesn't order 🔴 or rounds between 3 and 5, and no chunk reached the steps for 6 to 8, so nothing here supports changing them. Re-tune again once 10 chunks score E + I of 6 or more. -- The routed-chunks table of `routing-figures.md` (Sonnet 5.5 at high effort 0.6 rounds, Opus 5.5 at medium effort 1.0, Opus 5.5 at high effort 2.6) reflects what each rung was given, not the rung's effect. - -When lilleman answers, apply the answer to `bin/model_routing/ladder.py`, record it in `docs/decisions.md` → `routing: one ladder…` in place of "first guess", and delete this item. - ### 218. Drop `LEGACY_WORKER` from `bin/model_routing/route.py`, so `route_from` reads only JSON worker lines. -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. +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 `Reset` in `routing-calls-raised.md` after PR #357's merge makes the figures count only chunks whose worker lines are JSON; the one stamped 2026-10-29T19:49:09Z does. Item 170 left the steps as they were on 2026-11-08, so it appended none. 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. ### 219. Name the project's rung `project` in `bin/judge_replay/main.py`, `bin/subagent_rung/main.py` and `bin/review_replay/main.py`, in place of `anchor`, as `bin/model_routing/ladder.py` and `bin/loop_claude` name it. -- 2.52.0 From af589aea9aa89902201864c06a832bc580fc649e Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 8 Nov 2026 14:19:32 +0100 Subject: [PATCH 3/5] File item 273 for the E + I steps from 6 to 8 and cite it in the routing decision --- docs/decisions.md | 2 +- todo.md | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/decisions.md b/docs/decisions.md index b70f78eb..ae172232 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -378,7 +378,7 @@ Valid while the archived verdicts show what a judge should return, and until a n The rungs, least competent first: Sonnet 5.5 at high; Opus 5.5 at medium, high, xhigh and max; Fable 5.1 at max. The 2026-10-29 note below took Haiku 5.5 off. They first were: Haiku 5.5 at low, medium, high, xhigh and max; Sonnet 5.5 at high; Opus 5.5 at medium, high, xhigh and max; Fable 5.1 at max. The order and the cut come from the Artificial Analysis Intelligence Index (https://artificialanalysis.ai/leaderboards/models, read 2026-10-14), which scores each model at each effort and gives a cost per task. A rung stays only where no cheaper rung scores as high, so a step up always buys more score (goal 1.4). That cut drops Sonnet 5.5 at low, medium, xhigh and max, Opus 5.5 at low, and every Fable 5.1 rung, and every tie in the index falls among the dropped rungs. lilleman put Fable 5.1 at max back on top: the index scores it under Opus 5.5 at high, but Anthropic's model catalog names Fable the most capable model, and for the hardest tasks lilleman wants the highest quality at any price. -A project's rung is its model's cheapest rung, which for Opus 5.5 is its default effort, medium. A model off the ladder routes nothing: claude runs it at the effort its settings give. A task's L steps its worker from the project's rung: 1 and 2 one down, 3 none, 4 one up. Its E + I steps its reviewers up from the project's rung: 4 or less none, 5 one up, 6 two up, 7 three up, 8 four up. A step past either end stops there. A worker errs more the more it changes and the newer that is, which L scores; review must look harder the further a defect would escape and the more it would break, which E + I scores (goals 1.1 and 1.4). Size raises L, so a large change runs its worker higher. The steps spread the values this repo's plan held when rescored on 2026-10-16, L 1 to 4 and E + I 2 to 7, so a worker on most items runs at or below the project's rung, and a review climbs only where a defect would escape far or break much. lilleman approved the steps on 2026-10-16, and on 2026-11-08 kept them after 36 chunks that each shipped one item had measured under them: L ordered review rounds from 1.57 at L 1 to 3.50 at L 4, E + I ordered neither rounds nor 🔴 findings between 3 and 5, and no chunk scored 7 or more. L 1 and L 2 share a rung yet differ in 🔴 (1 of 7 chunks, 6 of 12), so the data can't separate the item's share from the rung's, and nothing supports a change. `score-outcomes` reports how well L, E and I each order finished chunks. A change to the ladder or the steps is lilleman's. +A project's rung is its model's cheapest rung, which for Opus 5.5 is its default effort, medium. A model off the ladder routes nothing: claude runs it at the effort its settings give. A task's L steps its worker from the project's rung: 1 and 2 one down, 3 none, 4 one up. Its E + I steps its reviewers up from the project's rung: 4 or less none, 5 one up, 6 two up, 7 three up, 8 four up. A step past either end stops there. A worker errs more the more it changes and the newer that is, which L scores; review must look harder the further a defect would escape and the more it would break, which E + I scores (goals 1.1 and 1.4). Size raises L, so a large change runs its worker higher. The steps spread the values this repo's plan held when rescored on 2026-10-16, L 1 to 4 and E + I 2 to 7, so a worker on most items runs at or below the project's rung, and a review climbs only where a defect would escape far or break much. lilleman approved the steps on 2026-10-16, and on 2026-11-08 kept them after 36 chunks that each shipped one item had measured under them: L ordered review rounds from 1.57 at L 1 to 3.50 at L 4, E + I ordered neither rounds nor 🔴 findings between 3 and 5, and no chunk scored 7 or more. L 1 and L 2 share a rung yet differ in 🔴 (1 of 7 chunks, 6 of 12), so the data can't separate the item's share from the rung's, and nothing supports a change. `todo.md` item 273 re-tunes the E + I steps once 10 chunks score 6 or more. `score-outcomes` reports how well L, E and I each order finished chunks. A change to the ladder or the steps is lilleman's. 2026-10-21, lilleman, settling the routing calls stamped 2026-10-21T20:33:29Z: L 1 steps one rung down, not two as before, so an Opus 5.5 project runs no worker on Haiku 5.5. A delegated subagent takes the same steps, so an L 1 search moves off Haiku 5.5 too: lilleman chose one set of steps for chunk workers and subagents alike, so loop-claude, `subagent-rung` and rule-hook read one table (code health). No figure yet shows whether Sonnet 5.5 searches better than Haiku 5.5, so this costs more per search for a gain nobody has measured (goal 1.4). The calls came from loop-claude's routing figures, measured at cycle 165 over 46 chunks. Chunks started on Haiku 5.5 at max took a mean 7.8 review rounds past each pass's first, against 2.8 on Sonnet 5.5 at high, and 0.2 unfinished verdicts, against 0.1. The figures also called for moving workers off Sonnet 5.5 at high, whose chunks took 0.1 unfinished verdicts against 0.0 on Opus 5.5 at medium. lilleman kept L 2 on Sonnet 5.5, since that gap rests on one or two verdicts. diff --git a/todo.md b/todo.md index d5c5dde9..6cb0e8f8 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 273` +`Next ID = 274` ## Items @@ -42,6 +42,7 @@ | 101 | 0.7.0 | | principle | **Have `larv_review/history_commands.py`'s `read_seats` take the time, the commit check and the history as inputs, so it parses and decides without effects.** | 2 | 1 | 2 | 3 | 3 | 1.1 by 5 | 5.3 | | 12 | 0.7.0 | | | **Run the test suite in CI on every PR, or record in `docs/decisions.md` why the local run is enough.** | 3 | 2 | 1 | 4 | 4 | 1.1 by 6 | 4.2 | | 272 | 0.7.0 | | owner | **Make `deploy-release --cut` say when each step finishes, end on one line saying the release is cut and `~/.claude` is on it, and delete the merged release branch.** | 1 | 1 | 1 | 1 | 2 | 1.5 by 3 | 3.9 | +| 273 | 0.8.0 | | decision | **Re-tune the E + I steps of `REVIEW_STEPS` for 6 to 8 once 10 finished chunks have scored an E + I of 6 or more, from how well E + I orders their review rounds and 🔴 findings.** | 1 | 2 | 2 | 3 | 2 | 1.1 by 2, 1.4 by 3 | 6.8 | | 102 | 0.8.0 | | | **Give loop-claude's retry delay, and the file it reads the machine's memory from, environment overrides, so the black-box test stops replacing `time.sleep` and `machine_load.memory.MEMINFO` through `sitecustomize`.** | 1 | 1 | 2 | 2 | 3 | 1.1 by 4 | 4.2 | | 135 | 0.8.0 | | | **Fingerprint only the modules loop-claude imports, so editing another tool's code no longer reloads a running loop.** | 2 | 2 | 3 | 5 | 3 | 1.1 by 4 | 4.2 | | 270 | 0.8.0 | | | **Compare each review pass's share of chunks that go to a second round, and move each check stability repeats across chunks into the worker's pre-review gate.** | 2 | 2 | 3 | 5 | 3 | 1.1 by 2, 1.4 by 2 | 4.1 | @@ -217,6 +218,10 @@ When CI runs a rule check, such as one of `bin/rule-hook`'s, let `