From 280f7521d07547672845c4731df7b80eea73e88a Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 24 Nov 2026 02:09:49 +0100 Subject: [PATCH 1/9] Bench a shipped feature whose branch landed by fast-forward from the commits after the item shipped before it --- README.md | 2 +- bin/task_bench/main.py | 8 ++-- bin/task_bench/shipped_features.py | 35 ++++++++++------ bin/task_bench/test_shipped_features.py | 53 ++++++++++++++++++------- docs/reading-cost.md | 12 ++++++ 5 files changed, 78 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 02eb8079..46dfe067 100644 --- a/README.md +++ b/README.md @@ -228,7 +228,7 @@ Install puts only `loop-claude` on `PATH`; call the others by their path, such a - `settings_filter.py` is git's clean filter for `settings.json`: it drops `"model"` and sorts the keys. `.gitattributes` sets the filter `settings` on `settings.json`, and Install's `git config` line makes this script that filter. - `statusline.py` renders Claude Code's status line; `settings.json` → `statusLine` runs it. - `subagent-rung [--plan] ` prints the Agent tool's model and effort for a subagent's task, picked by its L from the project's model on the project's routing ladder, and with `--plan` never below the project's rung; `subagent-rung --help` states the rule. -- `task-bench --image --test []` plants bugs that the tests catch, in the Go and Python files that hold the places the comprehension seats found hardest, has Haiku fix each at the base and at the head, and prints how often the fix passes and what it took. It needs docker and a token from `claude setup-token`; `task-bench --help` says how it plants, runs and checks. It leaves a digest of why runs failed. With `--tasks features` it has Haiku build each feature in the folder the config names as `bench-tasks` instead, from its spec, and checks the build with acceptance tests Haiku never sees. With `--tasks data-sources` it has Haiku add each data source there: a folder that also holds `generate-register`, the seeded script whose made-up register Haiku imports. With `--tasks shipped-features` it has Haiku rebuild features the project shipped: it takes each one's change out of the code, tells Haiku the tagline of the plan item, and checks the build with the tests that change holds. It passes over a feature whose branch landed by fast-forward. With `--record-figures`, a bench that finishes appends its figures over every task to the comprehension history. A scoring run starts the bench that way where the project's README documents its `task-bench` command. `task-bench gather` starts a claude on the project's rung, which files a plan item for each place the digest shows to be hard; then gather removes the bench's folder, digest and streams. +- `task-bench --image --test []` plants bugs that the tests catch, in the Go and Python files that hold the places the comprehension seats found hardest, has Haiku fix each at the base and at the head, and prints how often the fix passes and what it took. It needs docker and a token from `claude setup-token`; `task-bench --help` says how it plants, runs and checks. It leaves a digest of why runs failed. With `--tasks features` it has Haiku build each feature in the folder the config names as `bench-tasks` instead, from its spec, and checks the build with acceptance tests Haiku never sees. With `--tasks data-sources` it has Haiku add each data source there: a folder that also holds `generate-register`, the seeded script whose made-up register Haiku imports. With `--tasks shipped-features` it has Haiku rebuild features the project shipped: it takes each one's change out of the code, tells Haiku the tagline of the plan item, and checks the build with the tests that change holds. Where a feature's branch landed by fast-forward, its change runs from the commit after the one that took the previous item out of the plan. With `--record-figures`, a bench that finishes appends its figures over every task to the comprehension history. A scoring run starts the bench that way where the project's README documents its `task-bench` command. `task-bench gather` starts a claude on the project's rung, which files a plan item for each place the digest shows to be hard; then gather removes the bench's folder, digest and streams. - `todo-item` reads and changes a project's plan, whatever holds it: `list` prints the items in the plan's order and `show ` one item's row and detail; `add …` files an item under the next free ID, `edit …` sets an item's cells or detail, and `move --release ` sets an item's release; `finish ` removes a finished item and adds the bullet passed with `--changelog` to `CHANGELOG.md`, except for a plan kept in Jira. Each change ranks a markdown plan. `todo-item --help` states the flags. - `touch-predictions record ...` appends what a chunk's items were predicted to touch, under `Touches:` in their details, beside the files and parts its branch touched, to the record the config names as `touch-predictions`; `touch-predictions --help` shows the spelling and how a part is named. `chunk-preflight` reads the same predictions to name the items that may start chunks at once. - `wait-for [] [--timeout ]` waits until a file a background job writes holds a line matching the pattern, and prints it. diff --git a/bin/task_bench/main.py b/bin/task_bench/main.py index fc66729b..58e2e1f1 100644 --- a/bin/task_bench/main.py +++ b/bin/task_bench/main.py @@ -91,9 +91,11 @@ them, 5 by default, count. For each: - Haiku is told the tagline of the item, or of each item the chunk shipped; - the acceptance tests are the test files the change touched, and its files under a `testdata` folder, each as the head holds it; - the reference patch is the change itself. -With those, a shipped feature counts, and a build passes, as for a feature. The bench also passes over three kinds: -- one whose branch landed by fast-forward. Its commits keep a commit time each, so the history doesn't say which of them - built it; +With those, a shipped feature counts, and a build passes, as for a feature. Where its branch landed by fast-forward, its +commits keep a commit time each, so the history doesn't mark the feature's start. Its change then runs from the commit after +the one that took the previous item out of the plan, and a commit between two features that belongs to neither joins the later +one; the acceptance check still holds. The bench also passes over three kinds: +- one whose branch landed by fast-forward, with no feature shipped before it to start from; - one whose change doesn't come out of both trees cleanly, as where a later chunk rewrote its lines; - one whose change touched no test the head still holds. The report says which and why. The table has a row per shipped feature and side, named by its items, as `item 7`. diff --git a/bin/task_bench/shipped_features.py b/bin/task_bench/shipped_features.py index dcbc97b3..ac94dcbb 100644 --- a/bin/task_bench/shipped_features.py +++ b/bin/task_bench/shipped_features.py @@ -14,15 +14,15 @@ from branch_chunks.read import cut_with_shipped, unsupported from failure import Failure from git_cli.git_repo import Git from plan.todo_table import Item, tagline_text -from branch_chunks.cut import Landing from project_config.main import located from task_bench.runs import of_tests from project_config.settings import RECORDS from task_bench.figures import Side, SIDES -# Why a feature whose chunk landed by fast-forward is passed over. Each of its commits is a chunk of its own to branch_chunks, -# so the chunk that took the item out holds the branch's last commit alone. -FAST_FORWARDED = "its branch landed by fast-forward, so the history doesn't say which commits built it" +# Why a feature whose chunk landed by fast-forward and has no earlier feature before it is passed over. Each of its commits is a +# chunk of its own to branch_chunks, so the chunk that took the item out holds the branch's last commit alone, and only the commit +# of the feature shipped before it says where the branch starts. +FAST_FORWARDED = "its branch landed by fast-forward, and no feature shipped before it to say which commits built it" # The options that keep the checkout's diff config out of a patch. --no-renames writes a renamed file as one file removed and # one added, so `git apply` doesn't have to detect the rename again. @@ -31,13 +31,13 @@ PLAIN_DIFF = ("--no-color", "--no-ext-diff", "--no-textconv", "--no-renames", "- class Shipped(typing.NamedTuple): """A feature the project shipped: the name the report gives it, such as `item 7`, the tagline of each item its chunk took out - of the plan, a paragraph each, the commits its chunk's change runs between, and how the chunk landed.""" + of the plan, a paragraph each, and the commits its change runs between. before is None where the history doesn't say where + the change starts.""" name: str told: str - before: str + before: str | None tip: str - landing: Landing class ShippedFeatures(typing.NamedTuple): @@ -62,11 +62,20 @@ def read_shipped(home: pathlib.Path, checkout: str, base: str, git: Git) -> Ship if isinstance(cut, Failure): return cut branch, shipped = cut - found = [ - Shipped(named(items), "\n\n".join(tagline_text(item.tagline) for item in items), chunk.before, chunk.tip, chunk.landing) - for chunk, items in zip(branch.chunks, shipped) - if items and chunk.before - ] + found: list[Shipped] = [] + # The oldest chunk first, so each feature knows the commit the one before it shipped at. + shipped_at = None + for chunk, items in reversed(list(zip(branch.chunks, shipped))): + if not items: + continue + if chunk.before: + # A fast-forwarded branch keeps a commit time per commit, so branch_chunks cuts each commit into a chunk of its own, and + # this chunk holds only the commit that took the item out. The feature is every commit since the last item shipped. + starts = shipped_at if chunk.landing == "push" else chunk.before + told = "\n\n".join(tagline_text(item.tagline) for item in items) + found.append(Shipped(named(items), told, starts, chunk.tip)) + shipped_at = chunk.tip + found.reverse() if not found: return Failure("No chunk on the base's history took an item out of todo.md, so that history holds no shipped feature to rebuild.") return ShippedFeatures(found, [path for path in map(config.tracked, ("plan", *RECORDS)) if path]) @@ -89,7 +98,7 @@ def shipped_tasks(bench: Bench, shipped: ShippedFeatures, count: int) -> Planned break # A feature passed over leaves no folder, so the next one tried takes the same number. folder = bench.folder / "shipped-features" / str(len(tasks) + 1) - taken_out = FAST_FORWARDED if feature.landing == "push" else on_disk(f"take {feature.name} out of the trees in {folder}", lambda: without(bench, feature, shipped.records, folder)) + taken_out = FAST_FORWARDED if feature.before is None else on_disk(f"take {feature.name} out of the trees in {folder}", lambda: without(bench, feature, shipped.records, folder)) why = taken_out if not isinstance(taken_out, TakenOut) else why_passed_over(bench, taken_out.trees, taken_out.feature) if isinstance(why, Failure): return why diff --git a/bin/task_bench/test_shipped_features.py b/bin/task_bench/test_shipped_features.py index a6488716..8fddbf40 100644 --- a/bin/task_bench/test_shipped_features.py +++ b/bin/task_bench/test_shipped_features.py @@ -92,6 +92,22 @@ class ShippedFeaturesCase(BenchOfTasksCase): self.env.pop(name, None) + def fast_forwarded_item_11(self): + """Item 11 lands as a fast-forward leaves a branch: a plan commit, the feature and the commit that takes the item out, each + with the time it was written at, so each is a chunk of its own to branch_chunks. The head leaves the default branch after.""" + self.git("checkout", "--quiet", "main") + self.plan(11) + self.landed(6, "Plan an item", written_then=True) + (self.repo / "third.go").write_text("package calc\n") + (self.repo / "third_test.go").write_text("test -e third.go\n") + self.landed(7, "Add Third", written_then=True) + self.plan() + self.landed(8, "Finish item 11 in the plan", written_then=True) + self.git("checkout", "--quiet", "-B", "item-1") + (self.repo / "calc.go").write_text(HEAD_CODE) + self.commit("Head") + + class ShippedFeatureBenchTest(ShippedFeaturesCase): def test_has_haiku_rebuild_each_shipped_feature_from_its_tagline_and_checks_it_with_the_tests_its_change_added(self): report = self.bench() @@ -175,23 +191,13 @@ class ShippedFeatureBenchTest(ShippedFeaturesCase): self.assertEqual(report.reason, "No shipped feature on the base's history counts; the lines above say why.") self.assertIn("task-bench: passed over the shipped feature item 8: its revert doesn't apply at the head.", self.progress.getvalue().splitlines()) - def test_passes_over_a_feature_whose_branch_landed_by_fast_forward(self): - # Each commit keeps the time it was written at, so the commit that takes the item out is a chunk of its own. - self.git("checkout", "--quiet", "main") - self.plan(11) - self.landed(6, "Plan an item") - (self.repo / "third.go").write_text("package calc\n") - (self.repo / "third_test.go").write_text("test -e third.go\n") - self.landed(7, "Add Third", written_then=True) - self.plan() - self.landed(8, "Finish item 11 in the plan", written_then=True) - # The bench's base is where the head left the default branch, so the head leaves it after item 11. - self.git("checkout", "--quiet", "-B", "item-1") - (self.repo / "calc.go").write_text(HEAD_CODE) - self.commit("Head") + def test_rebuilds_a_feature_whose_branch_landed_by_fast_forward_from_the_commits_after_the_item_shipped_before_it(self): + self.fast_forwarded_item_11() report = self.bench(**{"--shipped": "1"}) self.assertNotIsInstance(report, Failure, report) - self.assertEqual(report[1], "Passed over the shipped feature item 11: its branch landed by fast-forward, so the history doesn't say which commits built it.") + # Nothing is passed over, and the feature has a row at each side. + self.assertEqual(report[1], "") + self.assertEqual([line[:23] for line in report if line.startswith("| 1: item 11")], ["| 1: item 11 | base | 0", "| 1: item 11 | head | 0"]) def test_fails_before_docker_runs_where_the_history_shipped_no_item(self): self.git("branch", "--quiet", "--force", "main", "main~8") @@ -221,6 +227,23 @@ class ReadShippedTest(ShippedFeaturesCase): ]) self.assertEqual(shipped.records, ["todo.md", "decisions.md", "score-anchors.md", "docs/comprehension-history.md", "docs/reading-cost.md", "changelog.md"]) + def test_a_fast_forwarded_feature_starts_after_the_chunk_that_shipped_the_item_before_it(self): + self.fast_forwarded_item_11() + newest = self.read().found[0] + self.assertEqual((newest.name, newest.before, newest.tip), ("item 11", self.git("rev-parse", "main~3"), self.git("rev-parse", "main"))) + + def test_a_fast_forwarded_feature_with_no_item_shipped_before_it_has_no_start(self): + self.git("checkout", "--quiet", "--orphan", "fresh") + self.git("rm", "--quiet", "-r", "-f", ".") + self.plan(11) + self.landed(1, "Plan an item", written_then=True) + (self.repo / "third.go").write_text("package calc\n") + self.landed(2, "Add Third", written_then=True) + self.plan() + self.landed(3, "Finish item 11 in the plan", written_then=True) + self.git("branch", "--quiet", "--force", "main", "fresh") + self.assertEqual([(feature.name, feature.before) for feature in self.read().found], [("item 11", None)]) + def test_a_chunk_that_shipped_two_items_is_one_feature_told_by_both_taglines(self): self.git("checkout", "--quiet", "main") self.plan(7, 8) diff --git a/docs/reading-cost.md b/docs/reading-cost.md index 3df0d017..f2efc71c 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -3558,3 +3558,15 @@ Read most (opens and searches): - `README.md` 1 - `bin/task_bench/python_bugs.py` 1 - `bin/task_bench/test_planted_mutant.py` 1 + +## Reading cost, chunk be78ef577b52, finished 2026-11-24T01:07:00Z + +102199 new input tokens before the first commit. + +Read most (opens and searches): + +- `bin/task_bench/feature_tasks.py` 3 +- `bin/task_bench/main.py` 2 +- `bin/task_bench/registers.py` 1 +- `bin/task_bench/runs.py` 1 +- `bin/task_bench/tasks.py` 1 -- 2.52.0 From f025bc65cdec236d87a729ce0a179b3c6f41d59d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 24 Nov 2026 02:30:12 +0100 Subject: [PATCH 2/9] Test that a fast-forwarded feature with no earlier feature is passed over --- bin/task_bench/test_shipped_features.py | 32 ++++++++++++++++++------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/bin/task_bench/test_shipped_features.py b/bin/task_bench/test_shipped_features.py index 8fddbf40..c09e1102 100644 --- a/bin/task_bench/test_shipped_features.py +++ b/bin/task_bench/test_shipped_features.py @@ -107,6 +107,19 @@ class ShippedFeaturesCase(BenchOfTasksCase): (self.repo / "calc.go").write_text(HEAD_CODE) self.commit("Head") + def fast_forwarded_item_11_alone(self): + """Makes the default branch a history of its own, where item 11 is the one item shipped, by fast-forward.""" + self.git("checkout", "--quiet", "--orphan", "fresh") + self.git("rm", "--quiet", "-r", "-f", ".") + self.plan(11) + (self.repo / "calc_test.go").write_text("exit 0\n") + self.landed(1, "Plan an item", written_then=True) + (self.repo / "third.go").write_text("package calc\n") + self.landed(2, "Add Third", written_then=True) + self.plan() + self.landed(3, "Finish item 11 in the plan", written_then=True) + self.git("branch", "--quiet", "--force", "main", "fresh") + class ShippedFeatureBenchTest(ShippedFeaturesCase): def test_has_haiku_rebuild_each_shipped_feature_from_its_tagline_and_checks_it_with_the_tests_its_change_added(self): @@ -199,6 +212,15 @@ class ShippedFeatureBenchTest(ShippedFeaturesCase): self.assertEqual(report[1], "") self.assertEqual([line[:23] for line in report if line.startswith("| 1: item 11")], ["| 1: item 11 | base | 0", "| 1: item 11 | head | 0"]) + def test_passes_over_a_fast_forwarded_feature_where_no_item_shipped_before_it(self): + self.fast_forwarded_item_11_alone() + self.git("checkout", "--quiet", "-B", "item-1") + (self.repo / "calc.go").write_text(HEAD_CODE) + self.commit("Head") + report = self.bench(**{"--shipped": "1"}) + self.assertEqual(report.reason, "No shipped feature on the base's history counts; the lines above say why.") + self.assertIn("task-bench: passed over the shipped feature item 11: its branch landed by fast-forward, and no feature shipped before it to say which commits built it.", self.progress.getvalue().splitlines()) + def test_fails_before_docker_runs_where_the_history_shipped_no_item(self): self.git("branch", "--quiet", "--force", "main", "main~8") report = self.bench() @@ -233,15 +255,7 @@ class ReadShippedTest(ShippedFeaturesCase): self.assertEqual((newest.name, newest.before, newest.tip), ("item 11", self.git("rev-parse", "main~3"), self.git("rev-parse", "main"))) def test_a_fast_forwarded_feature_with_no_item_shipped_before_it_has_no_start(self): - self.git("checkout", "--quiet", "--orphan", "fresh") - self.git("rm", "--quiet", "-r", "-f", ".") - self.plan(11) - self.landed(1, "Plan an item", written_then=True) - (self.repo / "third.go").write_text("package calc\n") - self.landed(2, "Add Third", written_then=True) - self.plan() - self.landed(3, "Finish item 11 in the plan", written_then=True) - self.git("branch", "--quiet", "--force", "main", "fresh") + self.fast_forwarded_item_11_alone() self.assertEqual([(feature.name, feature.before) for feature in self.read().found], [("item 11", None)]) def test_a_chunk_that_shipped_two_items_is_one_feature_told_by_both_taglines(self): -- 2.52.0 From 4328a13ad8a45b2929a3e9a8e66be5b6cb8ed46f Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 24 Nov 2026 02:48:41 +0100 Subject: [PATCH 3/9] =?UTF-8?q?Answer=20stability=20round=201:=202=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20a=20fast-fo?= =?UTF-8?q?rwarded=20feature=20starts=20after=20the=20latest=20earlier=20c?= =?UTF-8?q?hunk=20of=20another=20feature,=20a=20merge=20of=20the=20default?= =?UTF-8?q?=20branch=20into=20a=20feature=20branch=20marks=20no=20start,?= =?UTF-8?q?=20and=20the=20types=20hold?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- bin/task_bench/main.py | 15 ++++++----- bin/task_bench/shipped_features.py | 35 +++++++++++++------------ bin/task_bench/test_shipped_features.py | 31 +++++++++++++++++++--- 4 files changed, 55 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 46dfe067..d08329dd 100644 --- a/README.md +++ b/README.md @@ -228,7 +228,7 @@ Install puts only `loop-claude` on `PATH`; call the others by their path, such a - `settings_filter.py` is git's clean filter for `settings.json`: it drops `"model"` and sorts the keys. `.gitattributes` sets the filter `settings` on `settings.json`, and Install's `git config` line makes this script that filter. - `statusline.py` renders Claude Code's status line; `settings.json` → `statusLine` runs it. - `subagent-rung [--plan] ` prints the Agent tool's model and effort for a subagent's task, picked by its L from the project's model on the project's routing ladder, and with `--plan` never below the project's rung; `subagent-rung --help` states the rule. -- `task-bench --image --test []` plants bugs that the tests catch, in the Go and Python files that hold the places the comprehension seats found hardest, has Haiku fix each at the base and at the head, and prints how often the fix passes and what it took. It needs docker and a token from `claude setup-token`; `task-bench --help` says how it plants, runs and checks. It leaves a digest of why runs failed. With `--tasks features` it has Haiku build each feature in the folder the config names as `bench-tasks` instead, from its spec, and checks the build with acceptance tests Haiku never sees. With `--tasks data-sources` it has Haiku add each data source there: a folder that also holds `generate-register`, the seeded script whose made-up register Haiku imports. With `--tasks shipped-features` it has Haiku rebuild features the project shipped: it takes each one's change out of the code, tells Haiku the tagline of the plan item, and checks the build with the tests that change holds. Where a feature's branch landed by fast-forward, its change runs from the commit after the one that took the previous item out of the plan. With `--record-figures`, a bench that finishes appends its figures over every task to the comprehension history. A scoring run starts the bench that way where the project's README documents its `task-bench` command. `task-bench gather` starts a claude on the project's rung, which files a plan item for each place the digest shows to be hard; then gather removes the bench's folder, digest and streams. +- `task-bench --image --test []` plants bugs that the tests catch, in the Go and Python files that hold the places the comprehension seats found hardest, has Haiku fix each at the base and at the head, and prints how often the fix passes and what it took. It needs docker and a token from `claude setup-token`; `task-bench --help` says how it plants, runs and checks. It leaves a digest of why runs failed. With `--tasks features` it has Haiku build each feature in the folder the config names as `bench-tasks` instead, from its spec, and checks the build with acceptance tests Haiku never sees. With `--tasks data-sources` it has Haiku add each data source there: a folder that also holds `generate-register`, the seeded script whose made-up register Haiku imports. With `--tasks shipped-features` it has Haiku rebuild features the project shipped: it takes each one's change out of the code, tells Haiku the tagline of the plan item, and checks the build with the tests that change holds. With `--record-figures`, a bench that finishes appends its figures over every task to the comprehension history. A scoring run starts the bench that way where the project's README documents its `task-bench` command. `task-bench gather` starts a claude on the project's rung, which files a plan item for each place the digest shows to be hard; then gather removes the bench's folder, digest and streams. - `todo-item` reads and changes a project's plan, whatever holds it: `list` prints the items in the plan's order and `show ` one item's row and detail; `add …` files an item under the next free ID, `edit …` sets an item's cells or detail, and `move --release ` sets an item's release; `finish ` removes a finished item and adds the bullet passed with `--changelog` to `CHANGELOG.md`, except for a plan kept in Jira. Each change ranks a markdown plan. `todo-item --help` states the flags. - `touch-predictions record ...` appends what a chunk's items were predicted to touch, under `Touches:` in their details, beside the files and parts its branch touched, to the record the config names as `touch-predictions`; `touch-predictions --help` shows the spelling and how a part is named. `chunk-preflight` reads the same predictions to name the items that may start chunks at once. - `wait-for [] [--timeout ]` waits until a file a background job writes holds a line matching the pattern, and prints it. diff --git a/bin/task_bench/main.py b/bin/task_bench/main.py index 58e2e1f1..8c7eead8 100644 --- a/bin/task_bench/main.py +++ b/bin/task_bench/main.py @@ -83,19 +83,20 @@ such as QZ, and never XK, which is Kosovo's in practice. The table has a row per --tasks shipped-features benches rebuilding features the project shipped, so nobody writes a task. A shipped feature is a chunk on the base's first-parent history that took an item out of `todo.md`. A chunk is a merge commit with what it merged, or the commits a rebase landed together, which share a commit time. A chunk with a commit whose title opens `Drop item :` took -that item out unbuilt, so it didn't ship it. The bench goes through the shipped features newest first, until --shipped of +that item out unbuilt, so it didn't ship it. Commits fast-forwarded onto the branch keep a commit time each, so each is a chunk +of its own, and the chunk that took the item out holds only the feature's last commit. The feature then starts after the latest +earlier chunk that took an item out or landed by a merge or a rebase, leaving out a merge of the default branch into a feature +branch, titled `Merge ... into `. A commit between two features that belongs to neither joins the later one; it counts +only where its tests fail after the revert and pass with the reference patch, as for any feature. A fast-forwarded feature with +no such chunk before it is passed over. The bench goes through the shipped features newest first, until --shipped of them, 5 by default, count. For each: -- it takes the chunk's change out of a copy of each side's tree, as `git apply -R` does. The plan and the project's records stay +- it takes the feature's change out of a copy of each side's tree, as `git apply -R` does. The plan and the project's records stay as the side holds them, since later chunks added to them. The records are the changelog, the comprehension history, the decisions, the reading cost and the score anchors. So Haiku can read there what the changelog says of the feature; - Haiku is told the tagline of the item, or of each item the chunk shipped; - the acceptance tests are the test files the change touched, and its files under a `testdata` folder, each as the head holds it; - the reference patch is the change itself. -With those, a shipped feature counts, and a build passes, as for a feature. Where its branch landed by fast-forward, its -commits keep a commit time each, so the history doesn't mark the feature's start. Its change then runs from the commit after -the one that took the previous item out of the plan, and a commit between two features that belongs to neither joins the later -one; the acceptance check still holds. The bench also passes over three kinds: -- one whose branch landed by fast-forward, with no feature shipped before it to start from; +With those, a shipped feature counts, and a build passes, as for a feature. The bench also passes over two kinds: - one whose change doesn't come out of both trees cleanly, as where a later chunk rewrote its lines; - one whose change touched no test the head still holds. The report says which and why. The table has a row per shipped feature and side, named by its items, as `item 7`. diff --git a/bin/task_bench/shipped_features.py b/bin/task_bench/shipped_features.py index ac94dcbb..a62f9b4b 100644 --- a/bin/task_bench/shipped_features.py +++ b/bin/task_bench/shipped_features.py @@ -5,6 +5,7 @@ is checked.""" import functools import os import pathlib +import re import shutil import typing @@ -19,10 +20,11 @@ from task_bench.runs import of_tests from project_config.settings import RECORDS from task_bench.figures import Side, SIDES -# Why a feature whose chunk landed by fast-forward and has no earlier feature before it is passed over. Each of its commits is a -# chunk of its own to branch_chunks, so the chunk that took the item out holds the branch's last commit alone, and only the commit -# of the feature shipped before it says where the branch starts. -FAST_FORWARDED = "its branch landed by fast-forward, and no feature shipped before it to say which commits built it" +# Why a feature that landed by fast-forward is passed over where no earlier chunk says where its commits start. +FAST_FORWARDED = "its branch landed by fast-forward, and nothing earlier marks where its commits start" +# What git titles a merge of the default branch into a feature branch. Such a merge sits inside the feature's own commits, so it +# doesn't mark where the feature starts. +SYNC_MERGE = re.compile(r"Merge .* into (?!main$|master$)\S+") # The options that keep the checkout's diff config out of a patch. --no-renames writes a renamed file as one file removed and # one added, so `git apply` doesn't have to detect the rename again. @@ -63,18 +65,17 @@ def read_shipped(home: pathlib.Path, checkout: str, base: str, git: Git) -> Ship return cut branch, shipped = cut found: list[Shipped] = [] - # The oldest chunk first, so each feature knows the commit the one before it shipped at. - shipped_at = None + # The oldest chunk first, so each feature knows the commit that ends the chunk before it. + marked = None for chunk, items in reversed(list(zip(branch.chunks, shipped))): - if not items: - continue - if chunk.before: - # A fast-forwarded branch keeps a commit time per commit, so branch_chunks cuts each commit into a chunk of its own, and - # this chunk holds only the commit that took the item out. The feature is every commit since the last item shipped. - starts = shipped_at if chunk.landing == "push" else chunk.before + if items: + # A fast-forwarded feature's commits are a chunk each, and this chunk holds only the last. The earlier ones follow the + # commit that ends the latest earlier chunk of another feature. + starts = marked if chunk.landing == "push" else chunk.before told = "\n\n".join(tagline_text(item.tagline) for item in items) found.append(Shipped(named(items), told, starts, chunk.tip)) - shipped_at = chunk.tip + if (items or chunk.landing != "push") and not SYNC_MERGE.fullmatch(branch.commits[chunk.tip].title): + marked = chunk.tip found.reverse() if not found: return Failure("No chunk on the base's history took an item out of todo.md, so that history holds no shipped feature to rebuild.") @@ -98,7 +99,7 @@ def shipped_tasks(bench: Bench, shipped: ShippedFeatures, count: int) -> Planned break # A feature passed over leaves no folder, so the next one tried takes the same number. folder = bench.folder / "shipped-features" / str(len(tasks) + 1) - taken_out = FAST_FORWARDED if feature.before is None else on_disk(f"take {feature.name} out of the trees in {folder}", lambda: without(bench, feature, shipped.records, folder)) + taken_out = FAST_FORWARDED if feature.before is None else on_disk(f"take {feature.name} out of the trees in {folder}", functools.partial(without, bench, feature, feature.before, shipped.records, folder)) why = taken_out if not isinstance(taken_out, TakenOut) else why_passed_over(bench, taken_out.trees, taken_out.feature) if isinstance(why, Failure): return why @@ -126,12 +127,12 @@ class TakenOut(typing.NamedTuple): feature: Feature -def without(bench: Bench, shipped: Shipped, records: list[str], folder: pathlib.Path) -> TakenOut | str | Failure: - """shipped taken out of a copy of each side's tree, under folder, where its patch and its acceptance tests go too; or why it +def without(bench: Bench, shipped: Shipped, before: str, records: list[str], folder: pathlib.Path) -> TakenOut | str | Failure: + """shipped, as the commits from before to its tip, taken out of a copy of each side's tree, under folder, where its patch and its acceptance tests go too; or why it cannot be, which ends a sentence that opens with its name. A Failure where git fails. Raises OSError where a file cannot be copied.""" - change = (shipped.before, shipped.tip, "--", ".", *(f":(exclude,literal){path}" for path in records)) + change = (before, shipped.tip, "--", ".", *(f":(exclude,literal){path}" for path in records)) # A name that is not UTF-8 is read with U+FFFD in it. The head's tree holds no file of that name, so the file is left out. names = bench.git("diff", "--name-only", "-z", *change, cwd=bench.checkout, errors="replace") if isinstance(names, Failure): diff --git a/bin/task_bench/test_shipped_features.py b/bin/task_bench/test_shipped_features.py index c09e1102..a0fc4d72 100644 --- a/bin/task_bench/test_shipped_features.py +++ b/bin/task_bench/test_shipped_features.py @@ -94,7 +94,7 @@ class ShippedFeaturesCase(BenchOfTasksCase): def fast_forwarded_item_11(self): """Item 11 lands as a fast-forward leaves a branch: a plan commit, the feature and the commit that takes the item out, each - with the time it was written at, so each is a chunk of its own to branch_chunks. The head leaves the default branch after.""" + with the time it was written at, so each is a chunk of its own to branch_chunks. The head branches off after them.""" self.git("checkout", "--quiet", "main") self.plan(11) self.landed(6, "Plan an item", written_then=True) @@ -108,7 +108,7 @@ class ShippedFeaturesCase(BenchOfTasksCase): self.commit("Head") def fast_forwarded_item_11_alone(self): - """Makes the default branch a history of its own, where item 11 is the one item shipped, by fast-forward.""" + """Makes the default branch a history of its own, where item 11 is the one item shipped, and it landed by fast-forward.""" self.git("checkout", "--quiet", "--orphan", "fresh") self.git("rm", "--quiet", "-r", "-f", ".") self.plan(11) @@ -219,7 +219,7 @@ class ShippedFeatureBenchTest(ShippedFeaturesCase): self.commit("Head") report = self.bench(**{"--shipped": "1"}) self.assertEqual(report.reason, "No shipped feature on the base's history counts; the lines above say why.") - self.assertIn("task-bench: passed over the shipped feature item 11: its branch landed by fast-forward, and no feature shipped before it to say which commits built it.", self.progress.getvalue().splitlines()) + self.assertIn("task-bench: passed over the shipped feature item 11: its branch landed by fast-forward, and nothing earlier marks where its commits start.", self.progress.getvalue().splitlines()) def test_fails_before_docker_runs_where_the_history_shipped_no_item(self): self.git("branch", "--quiet", "--force", "main", "main~8") @@ -258,6 +258,31 @@ class ReadShippedTest(ShippedFeaturesCase): self.fast_forwarded_item_11_alone() self.assertEqual([(feature.name, feature.before) for feature in self.read().found], [("item 11", None)]) + def fast_forwarded_item_11_around_a_merge(self, title): + """Item 11's commits, fast-forwarded, with a merge of a commit from a side branch between them under title. Returns the merge's hash.""" + self.git("checkout", "--quiet", "main") + self.git("branch", "--quiet", "side") + self.git("checkout", "--quiet", "side") + (self.repo / "other.go").write_text("package calc\n") + self.landed(5, "Other work") + self.git("checkout", "--quiet", "main") + self.plan(11) + self.landed(6, "Plan an item", written_then=True) + (self.repo / "third.go").write_text("package calc\n") + self.landed(7, "Add Third", written_then=True) + self.git("merge", "--quiet", "--no-ff", "--message", title, "side") + self.plan() + self.landed(9, "Finish item 11 in the plan", written_then=True) + return self.git("rev-parse", "main~1") + + def test_a_fast_forwarded_feature_starts_before_a_merge_of_the_default_branch_into_its_branch(self): + self.fast_forwarded_item_11_around_a_merge("Merge remote-tracking branch 'origin/main' into item-11") + self.assertEqual(self.read().found[0].before, self.git("rev-parse", "main~4")) + + def test_a_fast_forwarded_feature_starts_after_a_chunk_that_landed_by_a_merge_and_shipped_no_item(self): + merge = self.fast_forwarded_item_11_around_a_merge("Merge pull request 'Release review' (#7) from release-review into main") + self.assertEqual(self.read().found[0].before, merge) + def test_a_chunk_that_shipped_two_items_is_one_feature_told_by_both_taglines(self): self.git("checkout", "--quiet", "main") self.plan(7, 8) -- 2.52.0 From 7f4c312021f47cbfa8aed0ff91c27f02e41fe5fb Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 24 Nov 2026 02:48:50 +0100 Subject: [PATCH 4/9] =?UTF-8?q?Answer=20product-owner=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20the=20start?= =?UTF-8?q?=20now=20also=20stops=20at=20a=20merge=20or=20rebase=20chunk=20?= =?UTF-8?q?that=20shipped=20no=20item,=20in=20the=20commit=20before?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 7d58002fdd151078f050b95b18854cd5d2721c47 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 24 Nov 2026 02:48:50 +0100 Subject: [PATCH 5/9] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=206=20=F0=9F=9F=A1=20(0=20misread);=20the=20help,?= =?UTF-8?q?=20README,=20constant,=20comments=20and=20test=20docstrings=20a?= =?UTF-8?q?re=20reworded=20in=20the=20commit=20before?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 767a9e1217e3c121141f4a814f535e722f0035f2 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 24 Nov 2026 03:08:47 +0100 Subject: [PATCH 6/9] Test that a rebased feature starts at its own chunk --- bin/task_bench/test_shipped_features.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/task_bench/test_shipped_features.py b/bin/task_bench/test_shipped_features.py index a0fc4d72..b3b5a82f 100644 --- a/bin/task_bench/test_shipped_features.py +++ b/bin/task_bench/test_shipped_features.py @@ -293,6 +293,14 @@ class ReadShippedTest(ShippedFeaturesCase): self.assertEqual((newest.name, newest.told), ("items 7, 8", "Add `Halve`, which halves a whole number.\n\nMultiply in `Twice`.")) self.assertEqual((newest.before, newest.tip), (self.git("rev-parse", "main~3"), self.git("rev-parse", "main"))) + def test_a_feature_that_landed_by_a_rebase_starts_at_its_own_chunk_whatever_was_fast_forwarded_before_it(self): + self.git("checkout", "--quiet", "main") + self.plan(11) + self.landed(6, "Plan an item", written_then=True) + self.plan() + self.landed(7, "Build it", "Finish item 11 in the plan") + self.assertEqual(self.read().found[0].before, self.git("rev-parse", "main~2")) + def test_an_item_a_commit_title_drops_is_not_shipped(self): self.git("checkout", "--quiet", "main") self.plan(8) -- 2.52.0 From a030a8eee9ffbdecb253e1147cf670d2d56b8437 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 24 Nov 2026 03:13:35 +0100 Subject: [PATCH 7/9] Say in the changelog where a fast-forwarded feature starts --- CHANGELOG.md | 2 +- bin/task_bench/main.py | 11 ++++----- bin/task_bench/shipped_features.py | 30 ++++++++++++++++--------- bin/task_bench/test_shipped_features.py | 7 +++--- 4 files changed, 30 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b0b1f8c..eaf7597c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- `task-bench --tasks shipped-features` benches rebuilding features the project shipped: it takes each one's change out of the code, tells Haiku the tagline of its plan item, and checks the build with the tests that change holds. `--shipped ` sets how many it takes, and a feature whose branch landed by fast-forward is passed over. +- `task-bench --tasks shipped-features` benches rebuilding features the project shipped: it takes each one's change out of the code, tells Haiku the tagline of its plan item, and checks the build with the tests that change holds. `--shipped ` sets how many it takes, and a feature whose branch landed by fast-forward starts after the latest earlier chunk that shipped an item or landed by a merge or a rebase, and is passed over where none comes before it or its branch merged the default branch into itself. - `task-bench` plants a Python mutant in a file whose lines end in CRLF, which it could not re-apply before, and a Go mutant there keeps applying. - This repo documents its own `task-bench` command in the README → Test, with `task-bench-image/Dockerfile`, an image that holds pytest, git and tmux, so each scoring run in `larv-review` benches claude-config and records its figures. - The stability reviewer now checks a lookup key built by joining path segments, or matched by prefix, for two inputs that give one key, such as a column named like its own table or the namespaces `ns` and `ns.sub`. diff --git a/bin/task_bench/main.py b/bin/task_bench/main.py index 8c7eead8..1eec166d 100644 --- a/bin/task_bench/main.py +++ b/bin/task_bench/main.py @@ -85,11 +85,12 @@ on the base's first-parent history that took an item out of `todo.md`. A chunk i commits a rebase landed together, which share a commit time. A chunk with a commit whose title opens `Drop item :` took that item out unbuilt, so it didn't ship it. Commits fast-forwarded onto the branch keep a commit time each, so each is a chunk of its own, and the chunk that took the item out holds only the feature's last commit. The feature then starts after the latest -earlier chunk that took an item out or landed by a merge or a rebase, leaving out a merge of the default branch into a feature -branch, titled `Merge ... into `. A commit between two features that belongs to neither joins the later one; it counts -only where its tests fail after the revert and pass with the reference patch, as for any feature. A fast-forwarded feature with -no such chunk before it is passed over. The bench goes through the shipped features newest first, until --shipped of -them, 5 by default, count. For each: +earlier chunk that took an item out or landed by a merge or a rebase. A commit between two features that belongs to neither +joins the later one; it counts only where its tests fail after the revert and pass with the reference patch, as for any feature. +A fast-forwarded feature is passed over where no such chunk comes before it, and where its branch merged the default branch into +itself, since its commits then hold the changes of the features that merge brought in. A merge titled +`Merge remote-tracking branch '...' into ` is read as that, whatever the branch. The bench goes through the shipped +features newest first, until --shipped of them, 5 by default, count. For each: - it takes the feature's change out of a copy of each side's tree, as `git apply -R` does. The plan and the project's records stay as the side holds them, since later chunks added to them. The records are the changelog, the comprehension history, the decisions, the reading cost and the score anchors. So Haiku can read there what the changelog says of the feature; diff --git a/bin/task_bench/shipped_features.py b/bin/task_bench/shipped_features.py index a62f9b4b..cabefdd4 100644 --- a/bin/task_bench/shipped_features.py +++ b/bin/task_bench/shipped_features.py @@ -20,11 +20,13 @@ from task_bench.runs import of_tests from project_config.settings import RECORDS from task_bench.figures import Side, SIDES -# Why a feature that landed by fast-forward is passed over where no earlier chunk says where its commits start. -FAST_FORWARDED = "its branch landed by fast-forward, and nothing earlier marks where its commits start" -# What git titles a merge of the default branch into a feature branch. Such a merge sits inside the feature's own commits, so it -# doesn't mark where the feature starts. -SYNC_MERGE = re.compile(r"Merge .* into (?!main$|master$)\S+") +# Why a feature that landed by fast-forward is passed over: no earlier chunk says where its commits start, or its branch merged +# the default branch into itself, so its commits hold what other features built. +NO_START = "its branch landed by fast-forward, and nothing earlier marks where its commits start" +MERGED_IN = "its branch landed by fast-forward after merging the default branch into itself, so its commits hold other features' changes" +# What git titles a merge of the default branch into a feature branch, other than into main or master, which git leaves out of +# the title. A person's merge of a branch into another default branch has the same title; its feature is then passed over. +SYNC_MERGE = re.compile(r"Merge (?:remote-tracking )?branch '[^']+' into (?!main$|master$)\S+") # The options that keep the checkout's diff config out of a patch. --no-renames writes a renamed file as one file removed and # one added, so `git apply` doesn't have to detect the rename again. @@ -34,12 +36,13 @@ PLAIN_DIFF = ("--no-color", "--no-ext-diff", "--no-textconv", "--no-renames", "- class Shipped(typing.NamedTuple): """A feature the project shipped: the name the report gives it, such as `item 7`, the tagline of each item its chunk took out of the plan, a paragraph each, and the commits its change runs between. before is None where the history doesn't say where - the change starts.""" + the change starts, and passed_over then says why.""" name: str told: str before: str | None tip: str + passed_over: str = "" class ShippedFeatures(typing.NamedTuple): @@ -67,15 +70,20 @@ def read_shipped(home: pathlib.Path, checkout: str, base: str, git: Git) -> Ship found: list[Shipped] = [] # The oldest chunk first, so each feature knows the commit that ends the chunk before it. marked = None + merged_in = False for chunk, items in reversed(list(zip(branch.chunks, shipped))): if items: # A fast-forwarded feature's commits are a chunk each, and this chunk holds only the last. The earlier ones follow the # commit that ends the latest earlier chunk of another feature. - starts = marked if chunk.landing == "push" else chunk.before + starts, why = chunk.before, "" + if chunk.landing == "push": + starts, why = (None, NO_START) if marked is None else (None, MERGED_IN) if merged_in else (marked, "") told = "\n\n".join(tagline_text(item.tagline) for item in items) - found.append(Shipped(named(items), told, starts, chunk.tip)) - if (items or chunk.landing != "push") and not SYNC_MERGE.fullmatch(branch.commits[chunk.tip].title): - marked = chunk.tip + found.append(Shipped(named(items), told, starts, chunk.tip, why)) + if SYNC_MERGE.fullmatch(branch.commits[chunk.tip].title): + merged_in = True + elif items or chunk.landing != "push": + marked, merged_in = chunk.tip, False found.reverse() if not found: return Failure("No chunk on the base's history took an item out of todo.md, so that history holds no shipped feature to rebuild.") @@ -99,7 +107,7 @@ def shipped_tasks(bench: Bench, shipped: ShippedFeatures, count: int) -> Planned break # A feature passed over leaves no folder, so the next one tried takes the same number. folder = bench.folder / "shipped-features" / str(len(tasks) + 1) - taken_out = FAST_FORWARDED if feature.before is None else on_disk(f"take {feature.name} out of the trees in {folder}", functools.partial(without, bench, feature, feature.before, shipped.records, folder)) + taken_out = feature.passed_over if feature.before is None else on_disk(f"take {feature.name} out of the trees in {folder}", functools.partial(without, bench, feature, feature.before, shipped.records, folder)) why = taken_out if not isinstance(taken_out, TakenOut) else why_passed_over(bench, taken_out.trees, taken_out.feature) if isinstance(why, Failure): return why diff --git a/bin/task_bench/test_shipped_features.py b/bin/task_bench/test_shipped_features.py index b3b5a82f..5e9c0555 100644 --- a/bin/task_bench/test_shipped_features.py +++ b/bin/task_bench/test_shipped_features.py @@ -17,8 +17,8 @@ from task_bench.test_task_bench import BASE_CODE, HEAD_CODE from failure import Failure from git_cli.git_repo import git from task_bench import main +from task_bench.shipped_features import MERGED_IN, read_shipped from branch_chunks.read import READ_AT -from task_bench.shipped_features import read_shipped HEADER = "| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves |\n|---|---|---|---|---|---|---|---|---|---|---|\n" ROWS = { @@ -275,9 +275,10 @@ class ReadShippedTest(ShippedFeaturesCase): self.landed(9, "Finish item 11 in the plan", written_then=True) return self.git("rev-parse", "main~1") - def test_a_fast_forwarded_feature_starts_before_a_merge_of_the_default_branch_into_its_branch(self): + def test_passes_over_a_fast_forwarded_feature_whose_branch_merged_the_default_branch_into_itself(self): self.fast_forwarded_item_11_around_a_merge("Merge remote-tracking branch 'origin/main' into item-11") - self.assertEqual(self.read().found[0].before, self.git("rev-parse", "main~4")) + newest = self.read().found[0] + self.assertEqual((newest.name, newest.before, newest.passed_over), ("item 11", None, MERGED_IN)) def test_a_fast_forwarded_feature_starts_after_a_chunk_that_landed_by_a_merge_and_shipped_no_item(self): merge = self.fast_forwarded_item_11_around_a_merge("Merge pull request 'Release review' (#7) from release-review into main") -- 2.52.0 From 2a9ac974e88d061b3e80b179377e77d92e78fbbd Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 25 Nov 2026 23:21:48 +0100 Subject: [PATCH 8/9] =?UTF-8?q?Answer=20stability=20round=202:=201=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20a=20fast-fo?= =?UTF-8?q?rwarded=20feature=20whose=20branch=20merged=20the=20default=20b?= =?UTF-8?q?ranch=20into=20itself=20is=20passed=20over,=20and=20the=20merge?= =?UTF-8?q?'s=20title=20is=20read=20for=20a=20remote-tracking=20branch=20a?= =?UTF-8?q?lone,=20in=20the=20commit=20before?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 5c759f9dee72041b4e7f90837119bb9a3a496dc9 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 25 Nov 2026 23:49:03 +0100 Subject: [PATCH 9/9] Finish item 531 in the plan --- todo.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/todo.md b/todo.md index aef17c4b..a2e401ed 100644 --- a/todo.md +++ b/todo.md @@ -14,7 +14,6 @@ |---|---|---|---|---|---|---|---|---|---|---|---| | 540 | 0.16.0 | | | **Review once more each prose fix that rewrites a checkable claim, such as a claim about generated output, a number or a licence term, so no such rewrite reaches the merge unreviewed.** | 2 | 2 | 3 | 5 | 3 | 1.1 by 4 | 1.5 | | 539 | 0.16.0 | | defect | **Start a chunk's worker on a fresh session where its session's transcript is empty, in place of resuming a session claude cannot find.** | 1 | 2 | 3 | 4 | 2 | 1.5 by 3 | 1.1 | -| 531 | 0.16.0 | | | **Bench the shipped features of a branch that landed by fast-forward: take as the feature the commits from the one after the item finished before it, up to the commit that took its item out of the plan.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 3 | 1.1 | | 524 | 0.16.0 | | owner | **Write fejkdata's first six bench features, each a spec, acceptance tests in Go and a reference patch that builds it, in the `bench-tasks` folder its config names.** | 3 | 2 | 1 | 4 | 6 | 1.1 by 3 | 0.5 | | 532 | 0.16.0 | | | **Leave out of a `task-bench` fix a change Haiku makes to a Rust test that stands in the file of the code it tests.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 1 | 0.4 | | 527 | 0.16.0 | | owner | **Plant bugs for `task-bench` in TypeScript, from the mutants Stryker kills.** | 3 | 2 | 1 | 4 | 4 | 1.1 by 1 | 0.3 | @@ -138,19 +137,6 @@ Touches: - `bin/claude_code/session.py`: `session_open` (small) - `bin/claude_code/test_claude_code.py` -### 531. Bench the shipped features of a branch that landed by fast-forward: take as the feature the commits from the one after the item finished before it, up to the commit that took its item out of the plan. - -Today `task-bench --tasks shipped-features` passes such a feature over. A fast-forwarded branch's commits keep a commit time each, so `branch_chunks` cuts each commit into a chunk of its own, and the chunk that took the item out of the plan holds only the feature's last commit. This project landed 114 of its 260 shipped features that way, and none of those can be benched. A squash-merged feature whose one commit was authored and committed at the same time would be passed over too; whether a forge writes such commits is not checked. - -The tagline's rule is a recommendation, not yet checked on a real history: a commit between two chunks that belongs to neither, such as a direct push, would join the later feature. The acceptance check still guards that: a feature counts only where its tests fail after the revert and pass with the reference patch. - -Touches: - -- `bin/task_bench/shipped_features.py`: `read_shipped`, `shipped_tasks` (small), `FAST_FORWARDED` -- `bin/task_bench/test_shipped_features.py` -- `bin/task_bench/main.py`: `(module)` (small) -- `README.md`: `## Tools` (small) - ### 524. Write fejkdata's first six bench features, each a spec, acceptance tests in Go and a reference patch that builds it, in the `bench-tasks` folder its config names. The second part of item 504, which says what a bench feature is and when a run counts. A stronger model than the project's writes the six, once. Each breaks one of fejkdata's goals while it would suit another audience: -- 2.52.0