diff --git a/docs/reading-cost.md b/docs/reading-cost.md index f240976b..4cbc768f 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -2396,3 +2396,20 @@ Read most (opens and searches): - `bin/transcript_archive/test_transcript_archive.py` 3 - `skills/larv-review/SKILL.md` 3 - `bin/loop_claude/loop/close.py` 2 + +## Reading cost, chunk f7dbc8c79fac, finished 2026-11-17T01:44:51Z + +100764 new input tokens before the first commit. + +Read most (opens and searches): + +- `docs/decisions.md` 12 +- `README.md` 6 +- `bin/judge_replay/main.py` 6 +- `bin/judge_replay/test_judge_replay.py` 6 +- `bin/review_replay/main.py` 5 +- `bin/review_replay/test_review_replay.py` 4 +- `bin/claude_code/test_claude_code.py` 3 +- `bin/loop_claude/cycle/judge.py` 3 +- `bin/rung_replay/test_rung_replay.py` 3 +- `bin/claude_code/entries.py` 2 diff --git a/todo.md b/todo.md index 1bc3a4c8..7a457d84 100644 --- a/todo.md +++ b/todo.md @@ -17,13 +17,13 @@ | 338 | 0.12.0 | | owner | **Script each step that 0.9.0's chunks repeated by hand and a program can compute, filing one item per step, and file this audit again for the next release.** | 1 | 2 | 1 | 2 | 2 | 1.4 by 3, 1.5 by 3 | 2.3 | | 288 | 0.12.0 | | | **Point the two reading-cost decisions at code health and goal 1.4's counter-signal, in place of the goal 1.1 they cite.** | 1 | 2 | 1 | 2 | 1 | code health by 1, 1.4 by 1 | 2.2 | | 391 | 0.12.0 | | | **Read and write a Jira epic issue's description and a Confluence record page through the lossless pair, so saving an unedited document leaves it unchanged.** | 3 | 2 | 3 | 6 | 5 | 1.6 by 6, 1.1 by 3 | 1.9 | -| 319 | 0.12.0 | | | **Start a fresh session with a brief of the chunk when a rung step changes the worker's model, in place of resuming the old session.** | 3 | 2 | 3 | 6 | 4 | 1.1 by 2, 1.4 by 2 | 1.2 | | 309 | 0.12.0 | | | **Run a scoring run's second pass on one head with two seats in place of four, once `larv-review agreement` shows the seats agree with each other more than a run agrees with its rerun.** | 2 | 2 | 2 | 4 | 2 | 1.4 by 3 | 1.2 | | 299 | 0.12.0 | | | **Replay the archived judge verdicts through code rules and a classifier trained locally on the archive, and file an item for each verdict kind one of them decides with no missed interrupt.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 3 | 1.0 | | 311 | 0.12.0 | | | **Hand each worker's claude a Bash output ceiling that saves longer output to a file, and refuse a Read of a session transcript under `~/.claude/projects`.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 3 | 1.0 | | 316 | 0.12.0 | | | **Launch comprehension seats as an agent type of their own under `agents/`, without `CLAUDE.md` and the skill and agent listings a general-purpose subagent carries.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 3 | 1.0 | | 339 | 0.12.0 | | | **Lower the reading cost of the files a chunk reads most before its first commit.** | 2 | 2 | 1 | 3 | 3 | 1.4 by 3 | 1.0 | | 341 | 0.12.0 | | | **Hand each worker's claude a lower Read limit through `CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS`, kept only where replays of the archived review rounds find what two unchanged replays find.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 3 | 1.0 | +| 319 | 0.12.0 | | | **Start a fresh session with a brief of the chunk when a rung step changes the worker's model, in place of resuming the old session.** | 4 | 2 | 3 | 7 | 5 | 1.1 by 2, 1.4 by 2 | 0.9 | | 310 | 0.12.0 | | | **Compact a waiting worker's session shortly before its prompt cache expires, only when the human has not answered an interrupt by then.** | 3 | 2 | 3 | 6 | 4 | 1.4 by 3 | 0.9 | | 393 | 0.12.0 | | decision | **Step an L 3 worker one rung up and an L 4 worker two up from the project's rung, as lilleman ruled on 2026-11-14.** | 2 | 1 | 3 | 4 | 4 | 1.4 by 3 | 0.9 | | 298 | 0.12.0 | | | **Send the judge only the decision entries and the transcript tail a verdict needs, and keep the cut only where `judge-replay` changes no verdict kind.** | 3 | 3 | 3 | 7 | 4 | 1.4 by 2, 1.5 by 1 | 0.9 | @@ -142,20 +142,6 @@ Touches: - `bin/plan_store/test_jira_epic.py`: `Editing`, `Filing` - `bin/record_store/test_confluence_page.py`: `ConfluencePageTest` -### 319. Start a fresh session with a brief of the chunk when a rung step changes the worker's model, in place of resuming the old session. - -On SWE-bench Verified with Haiku 4.5 and Opus 4.7, handing the strong model the weak model's transcript solved 69.2% at $1.61 a task; starting the strong model fresh solved 79.2% at $0.90 (arXiv 2608.24358, The Handoff Tax). A model switch also rereads the whole context uncached (Claude Code prompt caching docs). A worker that steps from Sonnet 5.5 to Opus 5.5 by `--resume` is the raw handoff; an effort-only step within one model keeps the cache and isn't. The escalated subagent, which starts fresh with the trigger's evidence, already follows the pattern that won. - -Bench it first on `workflow-bench`: resume against a fresh start with a brief. The brief is the chunk's item, its branch and diff, open findings and the trigger. lilleman approved on 2026-11-11. Revise the decision `routing: a worker whose run ends asking for a higher rung…`. - -Touches: -- `bin/loop_claude/cycle/run.py`: `Cycle`, `run_cycle`, `worker_start` -- `bin/loop_claude/cycle/prompts.py`: `resumed`, `stepped_to` -- `bin/loop_claude/cycle/worker.py`: `worker_args` -- `bin/loop_claude/cycle/states.py` -- `bin/loop_claude/test_loop_claude.py`: `Cycles`, `WorkerArgs` -- `workflow-bench/bench.py`: `run`, `main` - ### 309. Run a scoring run's second pass on one head with two seats in place of four, once `larv-review agreement` shows the seats agree with each other more than a run agrees with its rerun. Seats cost $1,143 of the $9,154 measured from 2026-09-30 to 2026-11-11 (12.5%), scoring runs $470 of that. A scoring run today is four seats, run twice on one head: eight seat runs. Two seats on the second pass make it six, and two on both passes four. @@ -242,6 +228,20 @@ Touches: - `bin/review_replay/test_review_replay.py` - `bin/loop_claude/test_loop_claude.py`: `Cycles` (small), `HelpLimits` (small) +### 319. Start a fresh session with a brief of the chunk when a rung step changes the worker's model, in place of resuming the old session. + +On SWE-bench Verified with Haiku 4.5 and Opus 4.7, handing the strong model the weak model's transcript solved 69.2% at $1.61 a task; starting the strong model fresh solved 79.2% at $0.90 (arXiv 2608.24358, The Handoff Tax). A model switch also rereads the whole context uncached (Claude Code prompt caching docs). A worker that steps from Sonnet 5.5 to Opus 5.5 by `--resume` is the raw handoff; an effort-only step within one model keeps the cache and isn't. The escalated subagent, which starts fresh with the trigger's evidence, already follows the pattern that won. + +Bench it first on `workflow-bench`: resume against a fresh start with a brief. The brief is the chunk's item, its branch and diff, open findings and the trigger. lilleman approved on 2026-11-11. Revise the decision `routing: a worker whose run ends asking for a higher rung…`. + +Touches: +- `bin/loop_claude/cycle/run.py`: `Cycle`, `run_cycle`, `worker_start` +- `bin/loop_claude/cycle/prompts.py`: `resumed`, `stepped_to` +- `bin/loop_claude/cycle/worker.py`: `worker_args` +- `bin/loop_claude/cycle/states.py` +- `bin/loop_claude/test_loop_claude.py`: `Cycles`, `WorkerArgs` +- `workflow-bench/bench.py`: `run`, `main` + ### 310. Compact a waiting worker's session shortly before its prompt cache expires, only when the human has not answered an interrupt by then. 281 worker resumes after the 1-hour cache expired rewrote a whole context, $379 of the $9,154 measured from 2026-09-30 to 2026-11-11 (4.1%). A compaction while the cache is warm reads the context at a twentieth of the input price and leaves about 20k tokens to rewrite later.