Answer product-owner round 1: 1 🔴, 0 🟡 (0 misread); the help shows one prefix that runs both tools and says which runner --test must run

This commit is contained in:
2026-11-23 22:31:03 +01:00
parent c43d9e9bae
commit fe6d119183
+16 -6
View File
@@ -15,9 +15,10 @@ No model judges anything: the bench runs programs, and reads Haiku's own stream.
prints, the ones the comprehension seats found hardest: Gremlins over the Go files, as `gremlins unleash`, and mutmut 3 over
the Python files, as `mutmut run`. It takes the mutants the tests kill in the order --seed sets, 1 by default, until --bugs of
them, 5 by default, have become bugs. A mutant becomes a bug where the lines it changes stand unchanged at the head, and where,
planted at each side, a test fails and prints a message that says more than the test's name. Any other mutant is passed over,
so a change to the very lines of a bug is not benched. The message is the one `go test` prints for a Go file, and pytest for
a Python file. Go and Python are the languages so far.
planted at each side, a test fails and prints a message that says more than the test's name. The bench reads that message
from `go test`'s output for a Go file and from pytest's for a Python file, so --test must run the tests of each language the
places name, with that runner: pytest as it prints by default, or with --tb=short. Any other mutant is passed over, so a
change to the very lines of a bug is not benched. Go and Python are the languages so far.
- Run. Haiku fixes each bug --runs times at each side, 5 by default, the sides in turn. A fix starts from a copy of that side's
tree with the bug in it, committed once, so git doesn't show which line the bug is on. In the copy, in a container, `claude -p
--strict-mcp-config --disable-slash-commands --no-session-persistence --model claude-haiku-5-5 --effort low` works with every
@@ -32,14 +33,23 @@ so the image needs curl and bash; the result names the version. Haiku works in t
the copy's top, with no network, so the image must hold what the tests would otherwise download.
--prefix is shell text that runs the mutation tool, on the host, as mutate-changes' --prefix does: sh runs `<prefix> "$@"` with
the tool's command as "$@", such as `gremlins unleash ...` or `mutmut run ...`. Gremlins runs in the copy of the base, and mutmut
in a copy of the folder there that holds its settings; $PWD names either. Without --prefix, the bench runs the `gremlins` or
the `mutmut` on the host's PATH. For example, for Go and then for Python:
in a copy of the folder there that holds its settings; $PWD is the folder the tool runs in. Without --prefix, the bench runs
the `gremlins` or the `mutmut` on the host's PATH. For example, for Go and then for Python:
docker run --rm --memory 16g --memory-swap 16g -v "$PWD:$PWD" -w "$PWD" golang:1.27.4 \
sh -c 'shift; exec go run github.com/go-gremlins/gremlins/cmd/gremlins@v0.6.0 "$@"' sh
uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4"
Where the places name files in both languages, the one prefix gets both tools' commands, Gremlins' first, and a tool it
cannot run fails the bench. Such a prefix picks the tool by "$1", which is `gremlins` or `mutmut`:
sh -c 'case "$1" in
gremlins) shift; exec docker run --rm --memory 16g --memory-swap 16g -v "$PWD:$PWD" -w "$PWD" golang:1.27.4 \
go run github.com/go-gremlins/gremlins/cmd/gremlins@v0.6.0 "$@" ;;
*) exec uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4" "$@" ;;
esac' sh
--tasks features benches features instead of bugs; --tasks bugs is the default. The features are the folders in the folder the
project's config names as `bench-tasks`, in the order of their names. Each holds:
- `spec.md`, all that Haiku is told of the feature;
@@ -102,7 +112,7 @@ Each bench empties its own folder first, and removes the folder every earlier be
not, unless a bench or a gather is using it. So gather a bench before the next one starts.
Exit 1, saying why, on an unknown or repeated argument, a missing --image or --test, a --seed, --bugs or --runs that is no whole
number from 1, a --tasks that is none of bugs, features and data-sources, or no token; and where git, docker or the mutation tool
number from 1, a --tasks that is none of bugs, features and data-sources, or no token; and where git, docker or a mutation tool
fails, the seats' places don't name any Go or Python file, the tests fail at a side without a bug, or no mutant becomes a bug. With --tasks
features or data-sources it exits 1 on a --seed, --bugs or --prefix; where no config names the checkout or its config sets no
`bench-tasks`, or the folder holds no task of that kind, one that lacks a part, or a `generate-register` that is no executable