FA-83276 / Go territory scoring / Open access
Prisoners are filled into their captor territory · case 01
Each side loses territory for stones it captured.
ROOT CAUSE
The fill subtracts own captures instead of opponent captures.
THE FAILURE
The fill subtracts own captures instead of opponent captures.
Unsuccessful approach: Adding prisoners to the captor keeps the margin but reports wrong remaining counts.
Case contract
Input [terr_b, terr_w, prisoners_taken_by_b, prisoners_taken_by_w, komi_tenths]. Prisoners are filled into the opponent territory. Return [remaining_b, remaining_w, result] with result "B+x.y", "W+x.y" or "Jigo".
Why this case matters
Go servers and scoring tools compute this value automatically; a wrong answer changes a game result.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
tb, tw, capb, capw, komi = x
rb = tb - capb
rw = tw - capw
margin = (rb - rw) * 10 - komi
if margin > 0:
return [rb, rw, 'B+%d.%d' % (margin // 10, margin % 10)]
if margin < 0:
return [rb, rw, 'W+%d.%d' % (-margin // 10, -margin % 10)]
return [rb, rw, 'Jigo']
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[[[11, 20, 1, 10, 0], [1, 19, 'W+18.0']], [[12, 55, 12, 9, 65], [3, 43, 'W+46.5']], [[20, 16, 5, 13, 55], [7, 11, 'W+9.5']], [[7, 12, 1, 1, 0], [6, 11, 'W+5.0']], [[57, 51, 11, 14, 60], [43, 40, 'W+3.0']], [[14, 2, 6, 14, 55], [0, -4, 'W+1.5']], [[10, 29, 4, 12, 0], [-2, 25, 'W+27.0']], [[17, 11, 9, 5, 65], [12, 2, 'B+3.5']]], [[[33, 30, 8, 6, 60], [27, 22, 'W+1.0']], [[57, 51, 11, 14, 60], [43, 40, 'W+3.0']], [[50, 59, 12, 13, 65], [37, 47, 'W+16.5']], [[32, 52, 11, 8, 60], [24, 41, 'W+23.0']], [[25, 7, 1, 2, 55], [23, 6, 'B+11.5']], [[30, 17, 12, 4, 55], [26, 5, 'B+15.5']], [[16, 26, 14, 6, 55], [10, 12, 'W+7.5']], [[49, 59, 5, 1, 0], [48, 54, 'W+6.0']]], [[[12, 55, 12, 9, 65], [3, 43, 'W+46.5']], [[50, 59, 12, 13, 65], [37, 47, 'W+16.5']], [[16, 18, 10, 1, 0], [15, 8, 'B+7.0']], [[17, 45, 8, 5, 65], [12, 37, 'W+31.5']], [[58, 37, 7, 9, 65], [49, 30, 'B+12.5']], [[4, 43, 4, 8, 55], [-4, 39, 'W+48.5']], [[21, 46, 14, 12, 60], [9, 32, 'W+29.0']], [[29, 34, 10, 3, 65], [26, 24, 'W+4.5']]], [[[20, 16, 5, 13, 55], [7, 11, 'W+9.5']], [[49, 59, 5, 1, 0], [48, 54, 'W+6.0']], [[36, 8, 7, 10, 0], [26, 1, 'B+25.0']], [[6, 35, 1, 11, 0], [-5, 34, 'W+39.0']], [[59, 43, 8, 7, 60], [52, 35, 'B+11.0']], [[28, 47, 10, 7, 55], [21, 37, 'W+21.5']], [[47, 35, 0, 13, 55], [34, 35, 'W+6.5']], [[54, 46, 14, 3, 60], [51, 32, 'B+13.0']]], [[[10, 29, 4, 12, 0], [-2, 25, 'W+27.0']], [[4, 43, 4, 8, 55], [-4, 39, 'W+48.5']], [[16, 9, 5, 2, 0], [14, 4, 'B+10.0']], [[28, 30, 7, 3, 0], [25, 23, 'B+2.0']], [[31, 9, 0, 3, 55], [28, 9, 'B+13.5']], [[48, 31, 13, 10, 65], [38, 18, 'B+13.5']], [[39, 29, 11, 0, 0], [39, 18, 'B+21.0']], [[49, 19, 13, 0, 65], [49, 6, 'B+36.5']]]]
for i, (args, expected) in enumerate(fixtures[N-1]):
check("counting case %d" % i, solve(args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| counting case 0 | [10, 10, 'Jigo'] | [1, 19, 'W+18.0'] | Failed |
| counting case 1 | [0, 46, 'W+52.5'] | [3, 43, 'W+46.5'] | Failed |
| counting case 2 | [15, 3, 'B+6.5'] | [7, 11, 'W+9.5'] | Failed |
| counting case 3 | [6, 11, 'W+5.0'] | [6, 11, 'W+5.0'] | Passed |
| counting case 4 | [46, 37, 'B+3.0'] | [43, 40, 'W+3.0'] | Failed |
| counting case 5 | [8, -12, 'B+14.5'] | [0, -4, 'W+1.5'] | Failed |
| counting case 6 | [6, 17, 'W+11.0'] | [-2, 25, 'W+27.0'] | Failed |
| counting case 7 | [8, 6, 'W+4.5'] | [12, 2, 'B+3.5'] | Failed |
SHA-256 / c54fc3c8f8e1ff8a94d43c8ee51708d5dbe473b117d5f62e9c63b5003567f657
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
tb, tw, capb, capw, komi = x
rb = tb + capb
rw = tw + capw
margin = (rb - rw) * 10 - komi
if margin > 0:
return [rb, rw, 'B+%d.%d' % (margin // 10, margin % 10)]
if margin < 0:
return [rb, rw, 'W+%d.%d' % (-margin // 10, -margin % 10)]
return [rb, rw, 'Jigo']
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[[[11, 20, 1, 10, 0], [1, 19, 'W+18.0']], [[12, 55, 12, 9, 65], [3, 43, 'W+46.5']], [[20, 16, 5, 13, 55], [7, 11, 'W+9.5']], [[7, 12, 1, 1, 0], [6, 11, 'W+5.0']], [[57, 51, 11, 14, 60], [43, 40, 'W+3.0']], [[14, 2, 6, 14, 55], [0, -4, 'W+1.5']], [[10, 29, 4, 12, 0], [-2, 25, 'W+27.0']], [[17, 11, 9, 5, 65], [12, 2, 'B+3.5']]], [[[33, 30, 8, 6, 60], [27, 22, 'W+1.0']], [[57, 51, 11, 14, 60], [43, 40, 'W+3.0']], [[50, 59, 12, 13, 65], [37, 47, 'W+16.5']], [[32, 52, 11, 8, 60], [24, 41, 'W+23.0']], [[25, 7, 1, 2, 55], [23, 6, 'B+11.5']], [[30, 17, 12, 4, 55], [26, 5, 'B+15.5']], [[16, 26, 14, 6, 55], [10, 12, 'W+7.5']], [[49, 59, 5, 1, 0], [48, 54, 'W+6.0']]], [[[12, 55, 12, 9, 65], [3, 43, 'W+46.5']], [[50, 59, 12, 13, 65], [37, 47, 'W+16.5']], [[16, 18, 10, 1, 0], [15, 8, 'B+7.0']], [[17, 45, 8, 5, 65], [12, 37, 'W+31.5']], [[58, 37, 7, 9, 65], [49, 30, 'B+12.5']], [[4, 43, 4, 8, 55], [-4, 39, 'W+48.5']], [[21, 46, 14, 12, 60], [9, 32, 'W+29.0']], [[29, 34, 10, 3, 65], [26, 24, 'W+4.5']]], [[[20, 16, 5, 13, 55], [7, 11, 'W+9.5']], [[49, 59, 5, 1, 0], [48, 54, 'W+6.0']], [[36, 8, 7, 10, 0], [26, 1, 'B+25.0']], [[6, 35, 1, 11, 0], [-5, 34, 'W+39.0']], [[59, 43, 8, 7, 60], [52, 35, 'B+11.0']], [[28, 47, 10, 7, 55], [21, 37, 'W+21.5']], [[47, 35, 0, 13, 55], [34, 35, 'W+6.5']], [[54, 46, 14, 3, 60], [51, 32, 'B+13.0']]], [[[10, 29, 4, 12, 0], [-2, 25, 'W+27.0']], [[4, 43, 4, 8, 55], [-4, 39, 'W+48.5']], [[16, 9, 5, 2, 0], [14, 4, 'B+10.0']], [[28, 30, 7, 3, 0], [25, 23, 'B+2.0']], [[31, 9, 0, 3, 55], [28, 9, 'B+13.5']], [[48, 31, 13, 10, 65], [38, 18, 'B+13.5']], [[39, 29, 11, 0, 0], [39, 18, 'B+21.0']], [[49, 19, 13, 0, 65], [49, 6, 'B+36.5']]]]
for i, (args, expected) in enumerate(fixtures[N-1]):
check("counting case %d" % i, solve(args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| counting case 0 | [12, 30, 'W+18.0'] | [1, 19, 'W+18.0'] | Failed |
| counting case 1 | [24, 64, 'W+46.5'] | [3, 43, 'W+46.5'] | Failed |
| counting case 2 | [25, 29, 'W+9.5'] | [7, 11, 'W+9.5'] | Failed |
| counting case 3 | [8, 13, 'W+5.0'] | [6, 11, 'W+5.0'] | Failed |
| counting case 4 | [68, 65, 'W+3.0'] | [43, 40, 'W+3.0'] | Failed |
| counting case 5 | [20, 16, 'W+1.5'] | [0, -4, 'W+1.5'] | Failed |
| counting case 6 | [14, 41, 'W+27.0'] | [-2, 25, 'W+27.0'] | Failed |
| counting case 7 | [26, 16, 'B+3.5'] | [12, 2, 'B+3.5'] | Failed |
SHA-256 / 9194528a00a608cf0bb4831fc63069acab2d43d3549bdcdc08869e5330966bd5
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 8 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.
Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.
Member access is invitation-based. Sign in with your invited account to inspect the repair.
Sign in to the archive ↗Verification & scope
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.
Observations recorded using Python 3.12.14 at 2026-09-29T14:50:20.044928+00:00.
Case digest / 33a035ebd05ce4eceac4fd5f1ed8d8cf05d4e953566e6a4c8808f826f3004277