From eb354ab3ea9d69d503cf79112dfe1aa79ca0f1e8 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 4 Dec 2026 09:54:29 +0100 Subject: [PATCH] File items 589 and 590: count every turn of a bench run, and report how far its change reached --- todo.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 2b28b050..5bed8e4c 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 589` +`Next ID = 591` ## Items @@ -15,6 +15,8 @@ | 586 | 0.19.0 | | | **Keep the person's own skills, agents and commands out of the loop's Claude home where `HOME` names the home folder through a symlink.** | 2 | 3 | 2 | 5 | 3 | 3 by 4 | 5.0 | | 585 | 0.19.0 | | | **Give this repo an `AGENTS.md` like any project, and drop the decision and the rule that say it keeps none.** | 3 | 1 | 3 | 5 | 4 | code health by 3 | 3.1 | | 580 | 0.19.0 | | | **Call no scoring run for a release already cut whose last item the chunk moved to a later release.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 3, 1.5 by 3 | 1.6 | +| 589 | 0.19.0 | | | **Count every turn of a bench run in its figures: sum the tokens and turns of each `result` event in the stream, and time the run from its first event to its last.** | 2 | 2 | 1 | 3 | 2 | 1.1 by 3 | 1.0 | +| 590 | 0.19.0 | 589 | | **Report beside each bench run how far its change reached: the files and lines it changed, the files it changed outside the bug's file, and, for a bug, whether it restored the line the mutant changed.** | 2 | 2 | 1 | 3 | 4 | 1.1 by 4 | 1.0 | | 487 | 0.20.0 | | owner | **Run larv-review's passes from a program that picks them from the diff and the item, counts rounds against the cap and decides each rerun, with each reviewer returning its findings as JSON against a schema.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 5, 1.4 by 5 | 0.4 | | 498 | 0.20.0 | 487 | owner | **Drive each chunk as a state machine in `build-release`, from preflight through implementing, review, the pull request and the merge to finishing its items, with the worker as one model step that ends in a result that code checks.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 4, 1.4 by 4 | 0.3 | | 488 | 0.20.0 | 498 | owner | **Cut the larv-review skill, `CLAUDE.md` and rule-hook down to what `build-release` doesn't own: the judgement the model makes and the safety guards.** | 2 | 2 | 3 | 5 | 5 | 1.4 by 4, code health by 2 | 2.3 | @@ -144,6 +146,35 @@ Touches: - `bin/larv_review/test_larv_review.py`: `ScoringRunDue`, `LarvReviewTool` - `bin/larv_review/main.py`: `(module)` (small) +### 589. Count every turn of a bench run in its figures: sum the tokens and turns of each `result` event in the stream, and time the run from its first event to its last. + +Today `figures` in `bin/task_bench/figures/run_figures.py` reads only the last `result` event of a run's stream. Where Haiku starts a background task, such as a long `go test`, Claude Code ends the first turn with a result, then starts another turn when the task finishes and ends that with a second result. The bench then records only that second turn. + +Seen in fejkdata's pilot bench of 2026-12-03, `bug-1-base-1.jsonl`: the fix took 12 turns and 152 s, and the table showed 1 turn, 188 output tokens and 1.7 s. That skewed the head's change against the base by several hundred percent. + +Write the test first from that shape: a stream with two `result` events, whose figures are the sums of both. + +Touches: + +- `bin/task_bench/figures/run_figures.py`: `figures` +- `bin/task_bench/figures/test_run_figures.py` + +### 590. Report beside each bench run how far its change reached: the files and lines it changed, the files it changed outside the bug's file, and, for a bug, whether it restored the line the mutant changed. + +Pass or fail says whether a fix works, not whether it was the small, local change a readable codebase allows. These figures need no model and cost nothing to collect. A fix that edits several files to repair a one-line mutant, or rewrites the line in place of restoring it, points at code that is hard to change safely. + +For a feature, report the files changed outside those the reference patch touches, and the share of the reference patch's files the change touched. + +Add a column per figure to the table, with its median per side and its change, as the token columns have. A model review of each fix waits until these show whether they track anything. + +Touches: + +- `bin/task_bench/tasks.py` +- `bin/task_bench/figures/run_figures.py`: `Figures`, `Column`, `figures`, `table` +- `bin/task_bench/figures/test_run_figures.py` +- `bin/task_bench/test_task_bench.py` +- `bin/task_bench/main.py`: `(module)` (small) + ### 487. Run larv-review's passes from a program that picks them from the diff and the item, counts rounds against the cap and decides each rerun, with each reviewer returning its findings as JSON against a schema. Part of the standalone-install plan lilleman approved on 2026-11-20. It applies the decision `loop: a step whose result a program can check …` in `docs/decisions.md`. The reviewer briefs stay prose. Start here, since larv-review holds the most sequencing rules. -- 2.52.0