Plant bugs for task-bench in Python from the mutants mutmut kills
CI / tests (pull_request) Failing after 3m46s

This commit is contained in:
2026-11-23 21:31:00 +01:00
parent cb6aedd603
commit c6cdd2f850
15 changed files with 968 additions and 401 deletions
+57 -4
View File
@@ -6,7 +6,7 @@
`Bar = 0.1`
`Next ID = 526`
`Next ID = 530`
## Renamed
@@ -16,11 +16,15 @@
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 508 | 0.16.0 | | owner | **Plant bugs for `task-bench` in Python, Rust, TypeScript and PHP, from the mutants `mutate-changes` runs for each, so this repo benches itself.** | 4 | 2 | 1 | 5 | 6 | 1.1 by 3, code health by 2 | 1.8 |
| 508 | 0.16.0 | | owner | **Plant bugs for `task-bench` in Python, from the mutants mutmut kills, and re-apply every language's mutant as changed lines.** | 4 | 2 | 1 | 5 | 6 | 1.1 by 3, code health by 2 | 1.8 |
| 506 | 0.16.0 | | owner | **Go over the bench features in each release review: reapply each reference patch, drop a feature that no longer breaks a goal, and add features until they cover the places the seats find hardest.** | 2 | 2 | 2 | 4 | 3 | 1.1 by 3 | 1.1 |
| 512 | 0.16.0 | | | **Make stability-reviewer check that keys built from path segments, or matched by prefix, cannot collide.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.9 |
| 529 | 0.16.0 | 508 | owner | **Document a `task-bench` command for this repo in the README, with an image that holds what its tests need, so each scoring run benches it.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 2 | 0.7 |
| 507 | 0.16.0 | | owner | **Bench rebuilding a feature the project shipped: revert its commit at the head, hand Haiku its item tagline, and check with the tests that commit added.** | 3 | 2 | 1 | 4 | 5 | 1.1 by 3 | 0.7 |
| 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 |
| 526 | 0.16.0 | 508 | owner | **Plant bugs for `task-bench` in Rust, from the mutants cargo-mutants kills.** | 3 | 2 | 1 | 4 | 4 | 1.1 by 1 | 0.3 |
| 527 | 0.16.0 | 508 | owner | **Plant bugs for `task-bench` in TypeScript, from the mutants Stryker kills.** | 3 | 2 | 1 | 4 | 4 | 1.1 by 1 | 0.3 |
| 528 | 0.16.0 | 508 | owner | **Plant bugs for `task-bench` in PHP, from the mutants Infection kills.** | 3 | 2 | 1 | 4 | 4 | 1.1 by 1 | 0.3 |
| 525 | 0.16.0 | | owner | **Write fejkdata's first five source-data tasks for `task-bench`, each a seeded register for a made-up country, a spec, a checker and a reference patch, in the `bench-tasks` folder its config names.** | 3 | 2 | 1 | 4 | 7 | 1.1 by 3 | 0.3 |
| 477 | 0.17.0 | | question | **Rewrite `## Goals` and `## Audience` for a setup others install and run apart from their own `~/.claude`.** | 1 | 1 | 2 | 2 | 2 | | 0.0 |
| 478 | 0.17.0 | | question | **Name the project, its repo and its two commands, today proposed as `do-release` and `do-epic`.** | 1 | 1 | 2 | 2 | 1 | | 0.0 |
@@ -112,9 +116,11 @@
## Details
### 508. Plant bugs for `task-bench` in Python, Rust, TypeScript and PHP, from the mutants `mutate-changes` runs for each, so this repo benches itself.
### 508. Plant bugs for `task-bench` in Python, from the mutants mutmut kills, and re-apply every language's mutant as changed lines.
Each tool reports a killed mutant by file and line, and some by column; the planter re-applies it from that report, as it does Gremlins'.
A killed mutant is the lines it changes and what it puts in their place, so one planter re-applies Gremlins' and mutmut's alike. Each language has a module that runs its mutation tool and reads its test runner's failure. Rust, TypeScript and PHP are items of their own, each blocked by this one; so is the bench command this repo documents for itself.
Split from the item for all four languages when a re-score put that at L 4: a milestone is split before it starts, and Python is the one language this repo can check for real.
### 506. Go over the bench features in each release review: reapply each reference patch, drop a feature that no longer breaks a goal, and add features until they cover the places the seats find hardest.
@@ -127,6 +133,14 @@ An outside reviewer found two bugs in one chunk that our stability round passed.
Touches:
- `agents/stability-reviewer.md`: `### 5. Edge Cases & Input Validation` (small)
### 529. Document a `task-bench` command for this repo in the README, with an image that holds what its tests need, so each scoring run benches it.
The bench runs the tests in an image without network, and this repo's tests run on the host through `uvx`, so no image holds pytest, git and tmux today. Build one, pinned, and name it in the command. A scoring run starts the bench the README documents, so from then on each one spends Haiku runs.
Touches:
- `README.md`
- `task-bench-image/Dockerfile`
### 507. Bench rebuilding a feature the project shipped: revert its commit at the head, hand Haiku its item tagline, and check with the tests that commit added.
Such tasks cost nothing to write and are realistic. A commit whose revert doesn't apply cleanly at both the base and the head is skipped.
@@ -144,6 +158,45 @@ The second part of item 504, which says what a bench feature is and when a run c
Done when `task-bench` counts a run of each: its acceptance tests fail at fejkdata's base and head and pass with its reference patch. The six land in fejkdata's checkout or its config folder, wherever its `bench-tasks` setting points, so the item changes no file of this repo and carries no `Touches:` list. About 1,000 lines of Go and specs.
### 526. Plant bugs for `task-bench` in Rust, from the mutants cargo-mutants kills.
cargo-mutants runs over the changed lines only today. Run it over the files that hold the seats' places, at the tree's top without git, and turn each killed mutant into the lines it changes, read from the diffs it writes under `mutants.out`. Tell Haiku the failure `cargo test` prints, without the test's name or file. Check the module against the tool's real output on a small project in a container, since this repo holds no Rust.
Touches:
- `bin/task_bench/rust_bugs.py`
- `bin/task_bench/test_rust_bugs.py`
- `bin/task_bench/plant.py`: `LANGUAGES`
- `bin/task_bench/test_plant.py`: `ShippedLanguagesTest`
- `bin/mutate_changes/in_diff_tools.py`: `run_cargo_mutants`
- `bin/task_bench/main.py`: lines 14-40, lines 100-110, `bugs_planner`
- `README.md`: lines 231-231, lines 281-281
### 527. Plant bugs for `task-bench` in TypeScript, from the mutants Stryker kills.
Stryker runs over the changed lines only today. Run it over the files that hold the seats' places, at the tree's top without git, and turn each killed mutant into the lines it changes, read from its JSON report. Tell Haiku the failure the project's test runner prints, without the test's name or file. Check the module against the tool's real output on a small project in a container, since this repo holds no TypeScript.
Touches:
- `bin/task_bench/typescript_bugs.py`
- `bin/task_bench/test_typescript_bugs.py`
- `bin/task_bench/plant.py`: `LANGUAGES`
- `bin/task_bench/test_plant.py`: `ShippedLanguagesTest`
- `bin/mutate_changes/in_diff_tools.py`: `run_stryker`
- `bin/task_bench/main.py`: lines 14-40, lines 100-110, `bugs_planner`
- `README.md`: lines 231-231, lines 281-281
### 528. Plant bugs for `task-bench` in PHP, from the mutants Infection kills.
Infection runs over the changed lines only today. Run it over the files that hold the seats' places, at the tree's top without git, and turn each killed mutant into the lines it changes, read from its JSON log. Tell Haiku the failure PHPUnit prints, without the test's name or file. Check the module against the tool's real output on a small project in a container, since this repo holds no PHP.
Touches:
- `bin/task_bench/php_bugs.py`
- `bin/task_bench/test_php_bugs.py`
- `bin/task_bench/plant.py`: `LANGUAGES`
- `bin/task_bench/test_plant.py`: `ShippedLanguagesTest`
- `bin/mutate_changes/in_diff_tools.py`: `run_infection`
- `bin/task_bench/main.py`: lines 14-40, lines 100-110, `bugs_planner`
- `README.md`: lines 231-231, lines 281-281
### 525. Write fejkdata's first five source-data tasks for `task-bench`, each a seeded register for a made-up country, a spec, a checker and a reference patch, in the `bench-tasks` folder its config names.
The second part of item 505, which says what a source-data task is and when a run counts. The country code of each comes from ISO 3166-1's user-assigned range (AA, QM–QZ, XA–XZ, ZZ), leaving out XK, which the EU and others use for Kosovo, so no task meets real data. Each register has the quirks real ones publish.