From 1c72ea2c6a7319caba1ff1ef3fab62cc03b03c7f Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 26 Nov 2026 02:55:35 +0100 Subject: [PATCH 1/2] Record why task-bench keeps Haiku's Rust file where the planted file's test modules can't be told apart --- bin/task_bench/rust_test_modules.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/task_bench/rust_test_modules.py b/bin/task_bench/rust_test_modules.py index cdb5381e..f78c0a2b 100644 --- a/bin/task_bench/rust_test_modules.py +++ b/bin/task_bench/rust_test_modules.py @@ -85,6 +85,9 @@ def with_tests_of(planted: bytes, copy: bytes) -> bytes: planted has some and copy's cannot be told apart, or copy lacks one of planted's, planted is returned: Haiku's file has no module to put them in.""" before, after = modules(planted), modules(copy) + # Haiku's file stands where the planted file's modules can't be told apart: that file isn't the mutant's, whose file is passed over + # in that case, and a guess at which module is which could swap a test for another. Haiku's file is what the bench checked before + # it kept Rust test modules, so a fix that passed then still passes. if before is None or (after is None and not before): return copy if after is None or before.keys() - after.keys(): -- 2.52.0 From 82ff0c3db97824956528c348e5d07a5543d89c4f Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 26 Nov 2026 02:57:34 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1=20(0=20misread);=20reword=20th?= =?UTF-8?q?e=20comment=20as=20the=20reviewer=20did?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/task_bench/rust_test_modules.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/task_bench/rust_test_modules.py b/bin/task_bench/rust_test_modules.py index f78c0a2b..aa2b13d2 100644 --- a/bin/task_bench/rust_test_modules.py +++ b/bin/task_bench/rust_test_modules.py @@ -85,9 +85,9 @@ def with_tests_of(planted: bytes, copy: bytes) -> bytes: planted has some and copy's cannot be told apart, or copy lacks one of planted's, planted is returned: Haiku's file has no module to put them in.""" before, after = modules(planted), modules(copy) - # Haiku's file stands where the planted file's modules can't be told apart: that file isn't the mutant's, whose file is passed over - # in that case, and a guess at which module is which could swap a test for another. Haiku's file is what the bench checked before - # it kept Rust test modules, so a fix that passed then still passes. + # Haiku's file stands where planted's modules can't be told apart. The bench never plants a bug in such a file, and a guess at + # which module is which could swap one test for another. Haiku's file is also what the check took before the bench put back + # planted test modules, so a fix that passed then still passes. if before is None or (after is None and not before): return copy if after is None or before.keys() - after.keys(): -- 2.52.0