{"abstract":"Moves are mirrored across the main diagonal.","category":"Go territory scoring","checks":8,"contract":"Input [size, text]. \"\" is a pass; \"tt\" is also a pass on boards up to 19x19. Otherwise exactly two lower-case letters: first = column, second = row, both from the top-left. Return [row, col], \"pass\" or \"invalid\".","contract_signature":"x","evaluation_group":"w2-go-territory-scoring-sgf-point","failed_approach":"Flipping the row vertically mixes SGF top-left origin with GTP bottom-left origin.","family":"w2-go-territory-scoring-sgf-point-axis-order","id":"FA-82996","implementations":{"attempt":{"sha256":"78e45d97e84a4e1f976654b517e0b74f9c6432e69c0f9ab5d21ade8448acc61b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    size, text = x\n    if text == '':\n        return 'pass'\n    if text == 'tt' and size <= 19:\n        return 'pass'\n    if len(text) != 2:\n        return 'invalid'\n    col = ord(text[0]) - ord('a')\n    row = ord(text[1]) - ord('a')\n    if not (0 <= col < size and 0 <= row < size):\n        return 'invalid'\n    return [size - 1 - row, col]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[[[9, 'ab'], [1, 0]], [[9, 'Aa'], 'invalid'], [[9, 'aA'], 'invalid'], [[9, 'u'], 'invalid'], [[9, 'abc'], 'invalid'], [[9, 'ia'], [0, 8]], [[9, 'ai'], [8, 0]], [[9, 'ia'], [0, 8]]], [[[9, 'ai'], [8, 0]], [[9, 'at'], 'invalid'], [[9, 'pd'], 'invalid'], [[9, 'dp'], 'invalid'], [[9, 'ia'], [0, 8]], [[9, 'ja'], 'invalid'], [[9, 'ai'], [8, 0]], [[13, 'ba'], [0, 1]]], [[[13, 'dd'], [3, 3]], [[13, 'aa'], [0, 0]], [[13, 'ss'], 'invalid'], [[13, 'tt'], 'pass'], [[13, ''], 'pass'], [[13, 'ab'], [1, 0]], [[13, 'ba'], [0, 1]], [[13, 'am'], [12, 0]]], [[[13, 'jj'], [9, 9]], [[13, 'Aa'], 'invalid'], [[13, 'aA'], 'invalid'], [[13, 'u'], 'invalid'], [[13, 'abc'], 'invalid'], [[13, 'ia'], [0, 8]], [[13, 'ai'], [8, 0]], [[19, 'ba'], [0, 1]]], [[[13, 'ta'], 'invalid'], [[13, 'at'], 'invalid'], [[13, 'pd'], 'invalid'], [[13, 'dp'], 'invalid'], [[13, 'ma'], [0, 12]], [[13, 'na'], 'invalid'], [[19, 'ab'], [1, 0]], [[19, 'sa'], [0, 18]]]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"sgf point 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":"c687b25366d3107408bdfc3b36a7dbb217affc5f988be629ea1a0bd283b14882","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    size, text = x\n    if text == '':\n        return 'pass'\n    if text == 'tt' and size <= 19:\n        return 'pass'\n    if len(text) != 2:\n        return 'invalid'\n    col = ord(text[0]) - ord('a')\n    row = ord(text[1]) - ord('a')\n    if not (0 <= col < size and 0 <= row < size):\n        return 'invalid'\n    return [col, row]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[[[9, 'ab'], [1, 0]], [[9, 'Aa'], 'invalid'], [[9, 'aA'], 'invalid'], [[9, 'u'], 'invalid'], [[9, 'abc'], 'invalid'], [[9, 'ia'], [0, 8]], [[9, 'ai'], [8, 0]], [[9, 'ia'], [0, 8]]], [[[9, 'ai'], [8, 0]], [[9, 'at'], 'invalid'], [[9, 'pd'], 'invalid'], [[9, 'dp'], 'invalid'], [[9, 'ia'], [0, 8]], [[9, 'ja'], 'invalid'], [[9, 'ai'], [8, 0]], [[13, 'ba'], [0, 1]]], [[[13, 'dd'], [3, 3]], [[13, 'aa'], [0, 0]], [[13, 'ss'], 'invalid'], [[13, 'tt'], 'pass'], [[13, ''], 'pass'], [[13, 'ab'], [1, 0]], [[13, 'ba'], [0, 1]], [[13, 'am'], [12, 0]]], [[[13, 'jj'], [9, 9]], [[13, 'Aa'], 'invalid'], [[13, 'aA'], 'invalid'], [[13, 'u'], 'invalid'], [[13, 'abc'], 'invalid'], [[13, 'ia'], [0, 8]], [[13, 'ai'], [8, 0]], [[19, 'ba'], [0, 1]]], [[[13, 'ta'], 'invalid'], [[13, 'at'], 'invalid'], [[13, 'pd'], 'invalid'], [[13, 'dp'], 'invalid'], [[13, 'ma'], [0, 12]], [[13, 'na'], 'invalid'], [[19, 'ab'], [1, 0]], [[19, 'sa'], [0, 18]]]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"sgf point 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-sgf-point-axis-order","generated_at":"2026-09-29T14:50:17.276248+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 result lists the first letter first even though it is the column.","sha256":"0f0bdd1139e78aeae06e574ba2afc8d63c35aafd85ba45f12577f791262f0fa1","title":"SGF column and row are returned swapped · 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":40.185,"exit_code":1,"observations":[{"actual":[7,0],"check":"sgf point case 0","expected":[1,0],"passed":false},{"actual":"invalid","check":"sgf point case 1","expected":"invalid","passed":true},{"actual":"invalid","check":"sgf point case 2","expected":"invalid","passed":true},{"actual":"invalid","check":"sgf point case 3","expected":"invalid","passed":true},{"actual":"invalid","check":"sgf point case 4","expected":"invalid","passed":true},{"actual":[8,8],"check":"sgf point case 5","expected":[0,8],"passed":false},{"actual":[0,0],"check":"sgf point case 6","expected":[8,0],"passed":false},{"actual":[8,8],"check":"sgf point case 7","expected":[0,8],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"sgf point case 0\", \"actual\": [7, 0], \"expected\": [1, 0], \"passed\": false}, {\"check\": \"sgf point case 1\", \"actual\": \"invalid\", \"expected\": \"invalid\", \"passed\": true}, {\"check\": \"sgf point case 2\", \"actual\": \"invalid\", \"expected\": \"invalid\", \"passed\": true}, {\"check\": \"sgf point case 3\", \"actual\": \"invalid\", \"expected\": \"invalid\", \"passed\": true}, {\"check\": \"sgf point case 4\", \"actual\": \"invalid\", \"expected\": \"invalid\", \"passed\": true}, {\"check\": \"sgf point case 5\", \"actual\": [8, 8], \"expected\": [0, 8], \"passed\": false}, {\"check\": \"sgf point case 6\", \"actual\": [0, 0], \"expected\": [8, 0], \"passed\": false}, {\"check\": \"sgf point case 7\", \"actual\": [8, 8], \"expected\": [0, 8], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.989,"exit_code":1,"observations":[{"actual":[0,1],"check":"sgf point case 0","expected":[1,0],"passed":false},{"actual":"invalid","check":"sgf point case 1","expected":"invalid","passed":true},{"actual":"invalid","check":"sgf point case 2","expected":"invalid","passed":true},{"actual":"invalid","check":"sgf point case 3","expected":"invalid","passed":true},{"actual":"invalid","check":"sgf point case 4","expected":"invalid","passed":true},{"actual":[8,0],"check":"sgf point case 5","expected":[0,8],"passed":false},{"actual":[0,8],"check":"sgf point case 6","expected":[8,0],"passed":false},{"actual":[8,0],"check":"sgf point case 7","expected":[0,8],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"sgf point case 0\", \"actual\": [0, 1], \"expected\": [1, 0], \"passed\": false}, {\"check\": \"sgf point case 1\", \"actual\": \"invalid\", \"expected\": \"invalid\", \"passed\": true}, {\"check\": \"sgf point case 2\", \"actual\": \"invalid\", \"expected\": \"invalid\", \"passed\": true}, {\"check\": \"sgf point case 3\", \"actual\": \"invalid\", \"expected\": \"invalid\", \"passed\": true}, {\"check\": \"sgf point case 4\", \"actual\": \"invalid\", \"expected\": \"invalid\", \"passed\": true}, {\"check\": \"sgf point case 5\", \"actual\": [8, 0], \"expected\": [0, 8], \"passed\": false}, {\"check\": \"sgf point case 6\", \"actual\": [0, 8], \"expected\": [8, 0], \"passed\": false}, {\"check\": \"sgf point case 7\", \"actual\": [8, 0], \"expected\": [0, 8], \"passed\": false}], \"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."}}