Files

142 lines
5.1 KiB
JSON

[
{
"id": "M1",
"file": "scripts/case1-accept.sh",
"old": " # WORK is root's private mktemp directory. The dropped uid cannot write it.",
"new": " # WORK is root's private mktemp directory. The dropped uid cannot write it.\n [ \"$tag\" != talk ] || TESTER_SUPERVISOR='shift 3; exec \"$@\"'",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 talk legacy inner timeout"
},
{
"id": "M2",
"file": "scripts/case1-accept.sh",
"old": "LC_ALL=C \"$TS_TIMEOUT\" --verbose --signal=KILL \"${outer}s\" \"$TS_BASH\" -c '\n errors=",
"new": "LC_ALL=C \"$TS_BASH\" -c '\n errors=",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 precheck outer bound"
},
{
"id": "M3",
"file": "scripts/case1-accept.sh",
"old": "\"$setsid_bin\" \"$@\" & child=$!",
"new": "\"$@\" & child=$!",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 talk legacy inner timeout"
},
{
"id": "M4",
"file": "scripts/case1-accept.sh",
"old": "if [ \"$rc\" = 87 ] && [ \"$valid\" = 1 ] && [ \"$display\" -gt 0 ]; then\n printf '%s\\n' \"$display\" > \"$WORK/legacy-$tag.rc\"\n exit 87",
"new": "if [ \"$rc\" = 87 ] && [ \"$valid\" = 1 ] && [ \"$display\" -ge 0 ]; then\n printf '%s\\n' \"$display\" > \"$WORK/legacy-$tag.rc\"\n exit \"$display\"",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 earlier forged trailer"
},
{
"id": "M5",
"file": "scripts/case1-accept.sh",
"old": "process.exitCode=code;",
"new": "process.exitCode=0;",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 legacy streams and display status"
},
{
"id": "M6",
"file": "scripts/case1-accept.sh",
"old": "&& [ \"${BASH_REMATCH[1]}\" -le 255 ]; then",
"new": "; then",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 trailer grammar"
},
{
"id": "M7",
"file": "scripts/case1-accept.sh",
"old": "(0|[1-9][0-9]{0,2})$'\\n'$",
"new": "([0-9]{1,3})$'\\n'$",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 trailer grammar"
},
{
"id": "M8",
"file": "scripts/case1-accept.sh",
"old": "(0|[1-9][0-9]{0,2})$'\\n'$",
"new": "(0|[1-9][0-9]{0,2})$'\\n'?$",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 trailer grammar"
},
{
"id": "M9",
"file": "scripts/case1-accept.sh",
"old": " printf '%s' \"$raw\" >&2",
"new": " : # dropped stderr",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 legacy streams and display status"
},
{
"id": "M10",
"file": "scripts/case1-accept.sh",
"old": "[ \"${st% *}\" = 0 ] && [[ \"${st#* }\" =~ ^[0-7]{3,4}$ ]] && (( (8#${st#* } & 8#022) == 0 )) || return 1",
"new": "[ \"${st% *}\" = 0 ] && [[ \"${st#* }\" =~ ^[0-7]{3,4}$ ]] || return 1",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 case1 capture and legacy tools"
},
{
"id": "M11",
"file": "scripts/case1-accept.sh",
"old": "[ \"$(wc -c < \"$file\")\" -le \"$maximum\" ] || exit 83",
"new": ": # dropped capture byte limit",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row253 C4 acceptance query overflow"
},
{
"id": "M12",
"file": "scripts/case1-accept.sh",
"old": "if [ \"$rc\" = 0 ] && [ \"$v\" = \"$CLAUDE_PIN (Claude Code)\" ];",
"new": "if [ \"$v\" = \"$CLAUDE_PIN (Claude Code)\" ];",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 version and PM checks"
},
{
"id": "M13",
"file": "scripts/case1-accept.sh",
"old": "if [ \"$rc\" = 0 ] && [[ \"$out\" =~ ^ok\\ ",
"new": "if [[ \"$out\" =~ ^ok\\ ",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 version and PM checks"
},
{
"id": "M14",
"file": "scripts/case1-accept.sh",
"old": "if [ \"$rc\" = 0 ] && [ \"$v\" = \"$NODE_PIN\" ];",
"new": "if [ \"$v\" = \"$NODE_PIN\" ];",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 version and PM checks"
},
{
"id": "M15",
"file": "scripts/case1-accept.sh",
"old": "\"$TS_TAIL\" -c 65536 -- \"$errors\"",
"new": "\"$TS_TAIL\" -c 999999999 -- \"$errors\"",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 stderr retention is bounded"
},
{
"id": "M16",
"file": "scripts/case1-accept.sh",
"also_files": [
"scripts/case2-unit.sh"
],
"old": "IFS= read -r -d '' raw 2>/dev/null < \"/proc/$pid/stat\" || :",
"new": "IFS= read -r -d '' raw < \"/proc/$pid/stat\" 2>/dev/null || :",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 vanished pid stat read"
},
{
"id": "M17",
"file": "scripts/case1-accept.sh",
"old": "exec \"$@\" > \"$output\" 2> \"$errors\"",
"new": "exec \"$@\" 2> \"$errors\"",
"killer": "packages/cli/tests/case1-accept.test.mjs",
"pattern": "row276 precheck outer bound"
}
]