Answer architecture round 1: 0 🔴, 6 🟡 (0 misread); count a release review only where it names the next release, split task_bench into bugs, features and figures, group README's packages
CI / tests (pull_request) Successful in 4m55s

This commit is contained in:
2026-11-27 11:23:08 +01:00
parent d1b01c76c8
commit b563a597f1
55 changed files with 293 additions and 198 deletions
View File
@@ -7,7 +7,7 @@ import re
from failure import Failure
from mutate_changes import in_diff_tools
from mutate_changes.changed_lines import is_test
from task_bench.planted_mutant import Mutant
from task_bench.bugs.planted_mutant import Mutant
from mutate_changes.tool_process import Run
# What each of Gremlins v0.6.0's mutators writes in place of a token: `tokenMutations` in its internal/engine/mappings.go, under the
@@ -7,8 +7,8 @@ import re
from mutate_changes.tool_process import failed, remove, Run
from failure import Failure
from mutate_changes import in_diff_tools
from task_bench.planted_mutant import Mutant
from task_bench.scratch_copy import scratch_copy
from task_bench.bugs.planted_mutant import Mutant
from task_bench.bugs.scratch_copy import scratch_copy
# Where Infection writes its JSON log, from the copy's top.
LOG = "infection-log.json"
@@ -6,9 +6,9 @@ import re
import typing
from failure import Failure
from task_bench import go_bugs, php_bugs, python_bugs, rust_bugs, typescript_bugs
from task_bench.bugs import go_bugs, php_bugs, python_bugs, rust_bugs, typescript_bugs
from mutate_changes.changed_lines import is_test, STRYKER
from task_bench.planted_mutant import Mutant
from task_bench.bugs.planted_mutant import Mutant
from mutate_changes.tool_process import Run
# A place as `larv-review places` prints it: `<path>:<line>` in backticks.
@@ -2,7 +2,7 @@
import re
import typing
from task_bench.figures import Side
from task_bench.figures.figures import Side
HUNK = re.compile(r"^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@", re.MULTILINE)
@@ -4,7 +4,7 @@ import re
from failure import Failure
from mutate_changes.mutmut_tool import killed_by_mutmut
from task_bench.planted_mutant import Mutant
from task_bench.bugs.planted_mutant import Mutant
from mutate_changes.tool_process import Run
# pytest's report of the failed tests, in its default form or with --tb=short: under this heading, a section per test.
@@ -5,7 +5,7 @@ import re
from failure import Failure
from mutate_changes import in_diff_tools
from task_bench.planted_mutant import Mutant
from task_bench.bugs.planted_mutant import Mutant
from mutate_changes.tool_process import remove, Run, scratch_folder
# What cargo-mutants 27.1.0 writes after the code it put in, as in `sum -= /* ~ changed by cargo-mutants ~ */ item;`. A planted
@@ -5,12 +5,12 @@ import sys
import tempfile
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from failure import Failure
from task_bench.go_bugs import go_files, killed_mutants, reapplied, task_text
from task_bench.bugs.go_bugs import go_files, killed_mutants, reapplied, task_text
from mutate_changes import in_diff_tools
from task_bench.planted_mutant import Mutant
from task_bench.bugs.planted_mutant import Mutant
from mutate_changes.tool_process import Ran
# go test's report of an assertion that failed in a subtest, then of one whose message runs over two lines.
@@ -8,11 +8,11 @@ import sys
import tempfile
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from task_bench.php_bugs import changed, killed_mutants, task_text
from task_bench.bugs.php_bugs import changed, killed_mutants, task_text
from failure import Failure
from task_bench.planted_mutant import Mutant, mutated
from task_bench.bugs.planted_mutant import Mutant, mutated
from mutate_changes.tool_process import Ran
PICK = """<?php
@@ -3,11 +3,11 @@ import pathlib
import sys
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from task_bench.plant import drawn, killed_mutants, Language, LANGUAGES, place_files, task_text
from task_bench.bugs.plant import drawn, killed_mutants, Language, LANGUAGES, place_files, task_text
from failure import Failure
from task_bench.planted_mutant import Mutant
from task_bench.bugs.planted_mutant import Mutant
PLACES = """## 2026-11-19T22:33:15Z, PR #646 at a357cc7b
@@ -3,9 +3,9 @@ import pathlib
import sys
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from task_bench.planted_mutant import bug_at_sides, line_at_head, Mutant, mutated
from task_bench.bugs.planted_mutant import bug_at_sides, line_at_head, Mutant, mutated
class MutatedTest(unittest.TestCase):
@@ -4,11 +4,11 @@ import sys
import tempfile
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from failure import Failure
from task_bench.python_bugs import killed_mutants, task_text
from task_bench.planted_mutant import Mutant, mutated
from task_bench.bugs.python_bugs import killed_mutants, task_text
from task_bench.bugs.planted_mutant import Mutant, mutated
from mutate_changes.tool_process import Ran
CALC = "def double(n):\n\treturn n * 2\n\n\ndef triple(n):\n\treturn (\n\t\tn * 3\n\t)\n"
@@ -8,11 +8,11 @@ import sys
import tempfile
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from task_bench.rust_bugs import changed, killed_mutants, task_text
from task_bench.bugs.rust_bugs import changed, killed_mutants, task_text
from failure import Failure
from task_bench.planted_mutant import Mutant, mutated
from task_bench.bugs.planted_mutant import Mutant, mutated
from mutate_changes.tool_process import Ran
PICK = b"""pub fn first(items: &[i32]) -> Option<i32> {
@@ -4,10 +4,10 @@ import sys
import textwrap
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from task_bench import rust_test_modules
from task_bench.rust_test_modules import tells_apart
from task_bench.bugs import rust_test_modules
from task_bench.bugs.rust_test_modules import tells_apart
LIB = textwrap.dedent("""\
pub fn add(a: i32, b: i32) -> i32 {
@@ -6,10 +6,10 @@ import sys
import tempfile
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from failure import Failure
from task_bench.scratch_copy import scratch_copy
from task_bench.bugs.scratch_copy import scratch_copy
class ScratchCopyTest(unittest.TestCase):
@@ -9,11 +9,11 @@ import sys
import tempfile
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from task_bench.typescript_bugs import changed, killed_mutants, task_text
from task_bench.bugs.typescript_bugs import changed, killed_mutants, task_text
from failure import Failure
from task_bench.planted_mutant import Mutant, mutated
from task_bench.bugs.planted_mutant import Mutant, mutated
from mutate_changes.tool_process import Ran
PICK = """export function pick(items: number[], floor: number): number {
@@ -7,8 +7,8 @@ import re
from mutate_changes.tool_process import failed, remove, Run
from failure import Failure
from mutate_changes import in_diff_tools
from task_bench.planted_mutant import Mutant
from task_bench.scratch_copy import scratch_copy
from task_bench.bugs.planted_mutant import Mutant
from task_bench.bugs.scratch_copy import scratch_copy
# Where Stryker 10.1.1's json reporter writes, from the folder it runs in. Only the project's own Stryker config can set another
# path, so the planter reads this one.
View File
@@ -3,7 +3,7 @@ that builds it, and acceptance tests Haiku never sees. A feature counts at the t
at both before it is built, and pass at both with the reference patch.
A data source Haiku adds is such a folder too, with a `generate-register` beside the three parts: the script that writes the
register Haiku imports, as task_bench.registers runs it. It counts as a feature does, in trees that hold its register."""
register Haiku imports, as task_bench.features.registers runs it. It counts as a feature does, in trees that hold its register."""
import itertools
import os
import pathlib
@@ -13,11 +13,11 @@ import typing
from task_bench.tasks import Bench, check_made, committed, DATA_SOURCE, FEATURE, Kind, on_disk, Planned, Task
from project_config.settings import BENCH_TASKS, CONFIG
from failure import Failure
from task_bench.registers import GENERATE, NotGenerated, registered_trees
from task_bench.features.registers import GENERATE, NotGenerated, registered_trees
from project_config.main import located
from mutate_changes.tool_process import Ran
from task_bench.runs import ran_tests, TimedOut
from task_bench.figures import Side, SIDES
from task_bench.figures.figures import Side, SIDES
SPEC = "spec.md"
PATCH = "reference.patch"
@@ -8,7 +8,7 @@ import shutil
from task_bench.tasks import Bench, committed, on_disk
from task_bench.runs import Containers, entries, in_tree, NotStarted, run_in_image, TimedOut
from failure import Failure
from task_bench.figures import Side, SIDES
from task_bench.figures.figures import Side, SIDES
# A panel of three readers, seated as the README's audience, picked the name on 2026-11-23: each had it first or second, over
# `register`, which reads as a data file, and `generate-source`, which two read as generating source code.
@@ -1,6 +1,6 @@
"""The features task-bench has Haiku rebuild: those the project shipped, read from its history. A shipped feature is a chunk on
the base's first-parent line that took an item out of the plan, as branch_chunks cuts that line. Once its change is out of each
side's tree, it is a feature as task_bench.feature_tasks has it. `task-bench --help` says what Haiku is told and how a rebuild
side's tree, it is a feature as task_bench.features.feature_tasks has it. `task-bench --help` says what Haiku is told and how a rebuild
is checked."""
import functools
import os
@@ -9,7 +9,7 @@ import re
import shutil
import typing
from task_bench.feature_tasks import ACCEPTANCE, Feature, PATCH, why_passed_over
from task_bench.features.feature_tasks import ACCEPTANCE, Feature, PATCH, why_passed_over
from task_bench.tasks import Bench, committed, on_disk, Planned, Task
from branch_chunks.read import cut_with_shipped, unsupported
from failure import Failure
@@ -18,7 +18,7 @@ from plan.todo_table import Item, tagline_text
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
from task_bench.figures.figures import Side, SIDES
# 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.
@@ -12,13 +12,13 @@ import tempfile
import textwrap
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from task_bench.tasks import Asked, Bench, FEATURE
from task_bench.test_task_bench import BASE_CODE, DOCKER, HEAD_CODE, InTurn, TESTS
from task_bench.runs import Containers, TimedOut
from failure import Failure
from task_bench.feature_tasks import Feature, features, why_passed_over
from task_bench.features.feature_tasks import Feature, features, why_passed_over
from test_env import isolated_env
from task_bench import main
from mutate_changes.tool_process import Ran
@@ -8,14 +8,14 @@ import tempfile
import textwrap
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from task_bench.test_feature_tasks import added, BenchOfTasksCase, feature
from task_bench.features.test_feature_tasks import added, BenchOfTasksCase, feature
from task_bench.tasks import Asked, Bench, DATA_SOURCE
from task_bench.runs import Containers, TimedOut
from failure import Failure
from task_bench.feature_tasks import features
from task_bench.registers import generated, NotGenerated, registered_trees
from task_bench.features.feature_tasks import features
from task_bench.features.registers import generated, NotGenerated, registered_trees
from task_bench import main
from mutate_changes.tool_process import Ran
@@ -10,14 +10,14 @@ import subprocess
import sys
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from task_bench.test_feature_tasks import ACCEPTANCE, BenchOfTasksCase
from task_bench.features.test_feature_tasks import ACCEPTANCE, BenchOfTasksCase
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 task_bench.features.shipped_features import MERGED_IN, read_shipped
from branch_chunks.read import READ_AT
HEADER = "| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves |\n|---|---|---|---|---|---|---|---|---|---|---|\n"
View File
@@ -8,7 +8,7 @@ import typing
from claude_code.entries import AssistantTurn, Entry, Text, tool_calls, ToolCall, ToolResult, ToolResults
from task_bench.runs import HOME, WORK
from reading_cost.measure import reads_of
from task_bench.figures import Side
from task_bench.figures.figures import Side
# A trace keeps the first TEXT_LINES lines of the model's text between two calls, and the first TEXT_WIDTH characters of each.
TEXT_LINES = 3
@@ -5,7 +5,7 @@ import typing
from review_rules.comprehension_history import appended
from task_bench.tasks import BUG, KINDS
from task_bench.gather import DIGEST
from task_bench.figures.gather import DIGEST
from failure import Failure
from git_cli.git_repo import Git
from record_store.held import Held
@@ -15,10 +15,10 @@ from text_files.utc_stamp import utc
# The digest's line that names the commits, as task_bench.digest.digest writes it.
SIDES = re.compile(r"^Base ([0-9a-f]{7,40}), head ([0-9a-f]{7,40})\.", re.M)
# How the table's three rows over every task open, as task_bench.figures.table writes them: the base, the head and the head's change.
# How the table's three rows over every task open, as task_bench.figures.figures.table writes them: the base, the head and the head's change.
OVER_ALL = "| All |"
COMMIT_LENGTH = 8
# What a bench's name says its tasks are, by how its table's header opens, as task_bench.figures.table writes it. A bench of
# What a bench's name says its tasks are, by how its table's header opens, as task_bench.figures.figures.table writes it. A bench of
# bugs has the bare name.
TASKS_NAMED = {f"| {kind.noun.capitalize()} |": f" {tasks}" for tasks, kind in KINDS.items() if kind is not BUG}
@@ -4,9 +4,9 @@ import pathlib
import sys
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from task_bench.digest import decoys, digest, Run, TaskRuns, trace
from task_bench.figures.digest import decoys, digest, Run, TaskRuns, trace
from claude_code.entries import entries_of, Entry
@@ -4,11 +4,11 @@ import pathlib
import sys
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from task_bench import figures as bench_figures
from task_bench.figures import figures as bench_figures
from failure import Failure
from task_bench.figures import Figures, Result, table
from task_bench.figures.figures import Figures, Result, table
from claude_code.entries import json_objects
from claude_code.tokens import Tokens
@@ -9,10 +9,10 @@ import sys
import tempfile
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from failure import Failure
from task_bench.gather import gather, PROMPT
from task_bench.figures.gather import gather, PROMPT
from test_env import isolated_env
from task_bench import main
@@ -6,9 +6,9 @@ import sys
import tempfile
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2]))
from task_bench.record_figures import bench_appended, bench_entry, recorded_bench
from task_bench.figures.record_figures import bench_appended, bench_entry, recorded_bench
from review_rules.comprehension_history import entries
from failure import Failure
from record_store.held import Held
+10 -10
View File
@@ -159,7 +159,7 @@ features the heading reads `task-bench features of <branch>: ...` instead, for o
of <branch>: ...`, and for one of shipped features `task-bench shipped-features of <branch>: ...`. No tool reads the entry as a ruling or a scoring run. The bench's last line says where the entry went. A bench that fails or stops doesn't record anything.
`task-bench gather`, run in the same checkout, turns the digest into plan items. It starts a claude on the project's rung, the
cheapest rung of the model loop-claude runs the project on, with the digest and the prompt in gather-prompt.md beside this file.
cheapest rung of the model loop-claude runs the project on, with the digest and the prompt in bin/task_bench/figures/gather-prompt.md.
That claude files an item with `todo-item add` for each place the runs show to be hard, and leaves the plan's file uncommitted.
gather prints that claude's answer and removes the bench's folder. Where claude fails, the folder stays, for another try.
@@ -197,27 +197,27 @@ import typing
import uuid
from task_bench.tasks import Asked, Bench, BUG, check_made, committed, Kind, KINDS, on_disk, Planned, SHIPPED, Task, tests_in_copy
from task_bench.planted_mutant import bug_at_sides, Mutant
from task_bench.bugs.planted_mutant import bug_at_sides, Mutant
from claude_code.reply import Claude
from task_bench.bench_folder import clear_left, held
from task_bench.runs import closed, Containers, docker_cli, fix_attempted, MEMORY_MIB, opened, ran_tests, TimedOut, TOKEN, WORK
from task_bench.digest import counted, digest, Run, TaskRuns
from task_bench.figures.digest import counted, digest, Run, TaskRuns
from machine_load.slots import CPUS_PER_SLOT
from git_cli.git_repo import default_ref, Git, top
from task_bench.gather import DIGEST, gather, run_claude
from task_bench.plant import drawn, killed_mutants, place_files, task_text
from task_bench.figures.gather import DIGEST, gather, run_claude
from task_bench.bugs.plant import drawn, killed_mutants, place_files, task_text
from claude_code.entries import entry_from, json_objects
from mutate_changes.tool_process import failed, Ran, run_tool
from failure import Failure
from task_bench.feature_tasks import feature_tasks, Features, read_features
from task_bench.figures import figures, Result, Side, SIDES, table
from task_bench.features.feature_tasks import feature_tasks, Features, read_features
from task_bench.figures.figures import figures, Result, Side, SIDES, table
from git_cli import git_repo
from review_rules.review_folder import made_review_folder, REPORTS
from larv_review.history_commands import read_places
from task_bench.shipped_features import read_shipped, shipped_tasks, ShippedFeatures
from task_bench.record_figures import recorded_bench
from task_bench.features.shipped_features import read_shipped, shipped_tasks, ShippedFeatures
from task_bench.figures.record_figures import recorded_bench
from run_heavy.capped_docker import SHARE_VARIABLE
from task_bench.rust_test_modules import tells_apart
from task_bench.bugs.rust_test_modules import tells_apart
USAGE = "usage: task-bench --image <image> --test <shell text> [--base <ref>] [--head <ref>] [--prefix <shell text>] [--seed <n>] [--bugs <n>] [--runs <n>] [--record-figures], or task-bench --tasks features|data-sources --image <image> --test <shell text> [--base <ref>] [--head <ref>] [--runs <n>] [--record-figures], or task-bench --tasks shipped-features --image <image> --test <shell text> [--base <ref>] [--head <ref>] [--shipped <n>] [--runs <n>] [--record-figures], or task-bench gather"
# A panel of three readers, seated as the README's audience, picked these options on 2026-11-21, each 3 to 0.
+1 -1
View File
@@ -12,7 +12,7 @@ from mutate_changes.tool_process import failed, Ran
from failure import Failure
from mutate_changes.changed_lines import is_test
from task_bench.api_proxy import PORT
from task_bench.rust_test_modules import with_tests_of
from task_bench.bugs.rust_test_modules import with_tests_of
MODEL = "claude-haiku-5-5"
# Where each run's container mounts its copy of the code, and its home folder: the paths in a run's stream start there.
+1 -1
View File
@@ -9,7 +9,7 @@ from task_bench.runs import checked_tree, Containers, ran_tests
from failure import Failure
from git_cli.git_repo import Git
from mutate_changes.tool_process import Ran
from task_bench.figures import Side
from task_bench.figures.figures import Side
# The one commit of a task's tree doesn't name anyone, and neither a hook nor a signing key of the caller's reaches it.
COMMIT = ["-c", "user.name=task-bench", "-c", "user.email=task-bench@localhost", "-c", "commit.gpgsign=false", "-c", "core.hooksPath=/dev/null", "commit", "--quiet", "--message", "Import"]
+3 -3
View File
@@ -18,11 +18,11 @@ sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from task_bench import api_proxy, bench_folder, main, runs
from test_env import assert_not_root, isolated_env
from task_bench.runs import checked_tree, closed, Containers, docker_cli, fix_attempted, opened, ran_tests, TimedOut
from task_bench.plant import drawn
from task_bench.bugs.plant import drawn
from claude_code.entries import Entry, entry_from
from failure import Failure
from task_bench.figures import Figures, Result
from task_bench.planted_mutant import Mutant
from task_bench.figures.figures import Figures, Result
from task_bench.bugs.planted_mutant import Mutant
from mutate_changes.tool_process import Ran
from claude_code.tokens import Tokens