From e2c02225c61ff538b8dafcc4dc40153d0dc53535 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Thu, 3 Dec 2026 10:50:08 +0100 Subject: [PATCH] File item 579: make mutate-changes run Infection releases before 0.27 --- todo.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 0831d742..04f3475f 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 579` +`Next ID = 580` ## Items @@ -31,6 +31,7 @@ | 487 | 0.20.0 | 483 | 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 | +| 579 | 0.20.0 | | | **Make `mutate-changes` run Infection releases before 0.27, which reject `--show-mutations=max`.** | 2 | 1 | 2 | 3 | 2 | 1.1 by 2 | 0.7 | | 489 | 0.21.0 | 498 | owner | **Run every model step through a harness interface whose operations are a headless run, a one-shot reply, an interactive run, resume and reading a transcript, with each harness declaring what it supports and Claude Code as the first adapter.** | 4 | 2 | 3 | 7 | 8 | 1.3 by 4, 6 by 7, code health by 3 | 1.5 | | 492 | 0.21.0 | 489 | owner | **Refuse to run a harness without pre-tool hooks in a project that sets an `env-file`, unless it runs in a sandbox that cannot read that file.** | 3 | 2 | 4 | 7 | 5 | 5 by 5 | 3.9 | | 510 | 0.21.0 | 489 | owner | **Run `task-bench`, its gather step included, through the harness interface, in place of calling `claude -p` directly.** | 2 | 2 | 1 | 3 | 3 | code health by 2, 6 by 3 | 3.2 | @@ -820,6 +821,19 @@ Part of the standalone-install plan lilleman approved on 2026-11-20. Keep the wo Part of the standalone-install plan lilleman approved on 2026-11-20. The skill becomes a thin call of the program, so `/larv-review` still works by hand. rule-hook keeps its guards on secrets, destructive commands and writes outside the worktree, and drops the checks of step order the program now owns. +### 579. Make `mutate-changes` run Infection releases before 0.27, which reject `--show-mutations=max`. + +`bin/mutate_changes/in_diff_tools.py` `run_infection` passes `--show-mutations=max`. Infection 0.26.x declares `--show-mutations` as a flag without a value, so it exits with `The "--show-mutations" option does not accept a value.` before it reports anything. 0.26.6 is the last Infection release that installs on PHP 7.4, so every PHP 7.4 project hits this. Found in a client project's chunk, where the README's own Infection command ran instead. + +Read the installed version with `vendor/bin/infection --version` and pass bare `--show-mutations` below 0.27, which lists every escaped mutant there; keep `=max` from 0.27 on, where a bare flag lists only the first 20. + +0.26.x also keeps only changed files under `src/` in `--git-diff-lines`, so a project with its code elsewhere gets `No files in diff found` and exit 0. Say in `mutate-changes --help` that such a project needs its own fix, as `mutate-changes` can't change it. + +Touches: +- `bin/mutate_changes/in_diff_tools.py`: `run_infection` +- `bin/mutate_changes/main.py`: `HELP` (small) +- `bin/mutate_changes/test_mutate_changes_runs.py`: `test_rust_php_and_typescript_go_to_cargo_mutants_and_infection_at_the_top_and_to_stryker_by_package` (small) + ### 489. Run every model step through a harness interface whose operations are a headless run, a one-shot reply, an interactive run, resume and reading a transcript, with each harness declaring what it supports and Claude Code as the first adapter. Part of the standalone-install plan lilleman approved on 2026-11-20. The `claude_code` package and the calls of `claude` in `bin/loop_effects/effects.py` move behind it. Capabilities to declare: subagents on their own model, pre-tool hooks, skills and path-scoped rules.