Answer stability round 1: 1 🔴, 8 🟡 (0 misread); read only a regular file, only as far as the shown lines, skip cut-short output, and test the surviving mutants

This commit is contained in:
2026-10-28 14:14:53 +01:00
parent e41f4e0979
commit b1a90abff4
12 changed files with 203 additions and 67 deletions
-1
View File
@@ -27,7 +27,6 @@ def shell_reads(command: str, cwd: str, home: str) -> Reads:
return Reads(read, added)
# rule_hook/repeat_read.py parses a shell read too, strictly: a measure of reading counts any file a reader names, while a rule that blocks must match only a read whose lines it knows exactly.
def operands(words: list[str]) -> list[str]:
program = posixpath.basename(words[0])
if program not in READERS or (program == "sed" and any(word.startswith("-i") for word in words)):