{"abstract":"Engines sending d4 or pass get \"invalid\".","category":"Go territory scoring","checks":8,"contract":"Input [size, text]. Case-insensitive, surrounding blanks ignored; \"pass\" -> \"pass\". Column letters A..Z skipping I; row numbers count from 1 at the bottom. Return [row_from_top, col] or \"invalid\".","contract_signature":"x","evaluation_group":"w2-go-territory-scoring-gtp-vertex","failed_approach":"Upper-casing without stripping still rejects vertices padded with spaces.","family":"w2-go-territory-scoring-gtp-vertex-case-and-blank-normalisation","id":"FA-82981","implementations":{"attempt":{"sha256":"84a221788e98c5c4c903b672ba94881ae2678690ab3dec1d7bce0d6b7f67c4d1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    size, text = x\n    t = text.upper()\n    if t == 'PASS':\n        return 'pass'\n    if len(t) < 2 or not t[1:].isdigit():\n        return 'invalid'\n    letters = 'ABCDEFGHJKLMNOPQRSTUVWXYZ'\n    if t[0] not in letters:\n        return 'invalid'\n    col = letters.index(t[0])\n    num = int(t[1:])\n    if col >= size or num < 1 or num > size:\n        return 'invalid'\n    return [size - num, col]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[[[9, 'd4'], [5, 3]], [[9, 'pass'], 'pass'], [[9, 'PASS'], 'pass'], [[9, ' Pass'], 'pass'], [[9, 'Z1'], 'invalid'], [[9, 'A0'], 'invalid'], [[9, 'A9'], [0, 0]], [[25, ' D4 '], [21, 3]]], [[[9, 'A10'], 'invalid'], [[9, 'K1'], 'invalid'], [[9, 'O3'], 'invalid'], [[9, 'Q16'], 'invalid'], [[9, 'X'], 'invalid'], [[9, ''], 'invalid'], [[9, 'j9'], [0, 8]], [[13, ' Pass'], 'pass']], [[[9, ' D4 '], [5, 3]], [[9, 'Y25'], 'invalid'], [[9, 'N13'], 'invalid'], [[9, 'M9'], 'invalid'], [[13, 'D4'], [9, 3]], [[13, 'd4'], [9, 3]], [[13, ' D4 '], [9, 3]], [[13, ' Pass'], 'pass']], [[[13, 'A1'], [12, 0]], [[13, 'T19'], 'invalid'], [[13, 'J10'], [3, 8]], [[13, 'I5'], 'invalid'], [[13, 'H8'], [5, 7]], [[13, 'pass'], 'pass'], [[19, 'pass'], 'pass'], [[19, ' Pass'], 'pass']], [[[13, ' D4 '], [9, 3]], [[13, 'Z1'], 'invalid'], [[13, 'A0'], 'invalid'], [[13, 'A13'], [0, 0]], [[13, 'A14'], 'invalid'], [[13, 'K1'], [12, 9]], [[13, 'O3'], 'invalid'], [[25, 'd4'], [21, 3]]]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"vertex case %d\" % i, solve(args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"fc8872268e0a2c877e03514f659232014d57df0bb6a24486ded10ed3fbd7e8a1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    size, text = x\n    t = text.strip()\n    if t == 'PASS':\n        return 'pass'\n    if len(t) < 2 or not t[1:].isdigit():\n        return 'invalid'\n    letters = 'ABCDEFGHJKLMNOPQRSTUVWXYZ'\n    if t[0] not in letters:\n        return 'invalid'\n    col = letters.index(t[0])\n    num = int(t[1:])\n    if col >= size or num < 1 or num > size:\n        return 'invalid'\n    return [size - num, col]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[[[9, 'd4'], [5, 3]], [[9, 'pass'], 'pass'], [[9, 'PASS'], 'pass'], [[9, ' Pass'], 'pass'], [[9, 'Z1'], 'invalid'], [[9, 'A0'], 'invalid'], [[9, 'A9'], [0, 0]], [[25, ' D4 '], [21, 3]]], [[[9, 'A10'], 'invalid'], [[9, 'K1'], 'invalid'], [[9, 'O3'], 'invalid'], [[9, 'Q16'], 'invalid'], [[9, 'X'], 'invalid'], [[9, ''], 'invalid'], [[9, 'j9'], [0, 8]], [[13, ' Pass'], 'pass']], [[[9, ' D4 '], [5, 3]], [[9, 'Y25'], 'invalid'], [[9, 'N13'], 'invalid'], [[9, 'M9'], 'invalid'], [[13, 'D4'], [9, 3]], [[13, 'd4'], [9, 3]], [[13, ' D4 '], [9, 3]], [[13, ' Pass'], 'pass']], [[[13, 'A1'], [12, 0]], [[13, 'T19'], 'invalid'], [[13, 'J10'], [3, 8]], [[13, 'I5'], 'invalid'], [[13, 'H8'], [5, 7]], [[13, 'pass'], 'pass'], [[19, 'pass'], 'pass'], [[19, ' Pass'], 'pass']], [[[13, ' D4 '], [9, 3]], [[13, 'Z1'], 'invalid'], [[13, 'A0'], 'invalid'], [[13, 'A13'], [0, 0]], [[13, 'A14'], 'invalid'], [[13, 'K1'], [12, 9]], [[13, 'O3'], 'invalid'], [[25, 'd4'], [21, 3]]]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"vertex case %d\" % i, solve(args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"Small rectangular toy boards given as strings of B, W and dot; a bounded teaching model of one scoring or bookkeeping rule, not a complete rules engine or server implementation. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w2-go-territory-scoring-gtp-vertex-case-and-blank-normalisation","generated_at":"2026-09-29T14:50:17.218740+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Go servers and scoring tools compute this value automatically; a wrong answer changes a game result.","root_cause":"The text is only stripped, not upper-cased.","sha256":"66a5c46a9acd4c991cee491889bad4a0914ccebf29fe09b48bdcc75eb4ce97f4","title":"Lower-case vertices and \"pass\" are rejected · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":39.771,"exit_code":1,"observations":[{"actual":[5,3],"check":"vertex case 0","expected":[5,3],"passed":true},{"actual":"pass","check":"vertex case 1","expected":"pass","passed":true},{"actual":"pass","check":"vertex case 2","expected":"pass","passed":true},{"actual":"invalid","check":"vertex case 3","expected":"pass","passed":false},{"actual":"invalid","check":"vertex case 4","expected":"invalid","passed":true},{"actual":"invalid","check":"vertex case 5","expected":"invalid","passed":true},{"actual":[0,0],"check":"vertex case 6","expected":[0,0],"passed":true},{"actual":"invalid","check":"vertex case 7","expected":[21,3],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"vertex case 0\", \"actual\": [5, 3], \"expected\": [5, 3], \"passed\": true}, {\"check\": \"vertex case 1\", \"actual\": \"pass\", \"expected\": \"pass\", \"passed\": true}, {\"check\": \"vertex case 2\", \"actual\": \"pass\", \"expected\": \"pass\", \"passed\": true}, {\"check\": \"vertex case 3\", \"actual\": \"invalid\", \"expected\": \"pass\", \"passed\": false}, {\"check\": \"vertex case 4\", \"actual\": \"invalid\", \"expected\": \"invalid\", \"passed\": true}, {\"check\": \"vertex case 5\", \"actual\": \"invalid\", \"expected\": \"invalid\", \"passed\": true}, {\"check\": \"vertex case 6\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}, {\"check\": \"vertex case 7\", \"actual\": \"invalid\", \"expected\": [21, 3], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.517,"exit_code":1,"observations":[{"actual":"invalid","check":"vertex case 0","expected":[5,3],"passed":false},{"actual":"invalid","check":"vertex case 1","expected":"pass","passed":false},{"actual":"pass","check":"vertex case 2","expected":"pass","passed":true},{"actual":"invalid","check":"vertex case 3","expected":"pass","passed":false},{"actual":"invalid","check":"vertex case 4","expected":"invalid","passed":true},{"actual":"invalid","check":"vertex case 5","expected":"invalid","passed":true},{"actual":[0,0],"check":"vertex case 6","expected":[0,0],"passed":true},{"actual":[21,3],"check":"vertex case 7","expected":[21,3],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"vertex case 0\", \"actual\": \"invalid\", \"expected\": [5, 3], \"passed\": false}, {\"check\": \"vertex case 1\", \"actual\": \"invalid\", \"expected\": \"pass\", \"passed\": false}, {\"check\": \"vertex case 2\", \"actual\": \"pass\", \"expected\": \"pass\", \"passed\": true}, {\"check\": \"vertex case 3\", \"actual\": \"invalid\", \"expected\": \"pass\", \"passed\": false}, {\"check\": \"vertex case 4\", \"actual\": \"invalid\", \"expected\": \"invalid\", \"passed\": true}, {\"check\": \"vertex case 5\", \"actual\": \"invalid\", \"expected\": \"invalid\", \"passed\": true}, {\"check\": \"vertex case 6\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}, {\"check\": \"vertex case 7\", \"actual\": [21, 3], \"expected\": [21, 3], \"passed\": true}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}