{"abstract":"Clean words with an odd number of data/check ones are misclassified.","category":"Error-correcting codes","checks":8,"contract":"Extended Hamming (8,4) SECDED decoder. r[0] is the overall parity bit; r[1..7] are Hamming positions 1..7 with data at 3, 5, 6, 7. s is the XOR of set positions 1..7 and p the parity of all eight bits. s=0,p=0: \"clean\"; p=1: single error at position s (s=0 means the overall parity bit) - \"corrected\"; s!=0,p=0: [\"double\", None]. Return [status, data]. Non-binary or wrong-length input returns None.","evaluation_group":"w2-error_correcting_codes-secded-8-4","failed_approach":"Using r[0] alone as the parity indicator ignores the other seven bits.","family":"w2-error_correcting_codes-secded-8-4-overall-parity-span","id":"FA-71876","implementations":{"attempt":{"sha256":"537a7935061a0883465f1be745304525e9c735d238d402ffdb29efbebfd58c1c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(r):\n    if len(r) != 8 or any(b not in (0, 1) for b in r):\n        return None\n    s = 0\n    for pos in range(1, 8):\n        if r[pos]:\n            s ^= pos\n    p = r[0]\n    c = list(r)\n    if s == 0 and p == 0:\n        status = 'clean'\n    elif p == 1:\n        status = 'corrected'\n        c[s] ^= 1\n    else:\n        return ['double', None]\n    return [status, [c[3], c[5], c[6], c[7]]]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['regression [[1, 0, 1, 0, 1, 0, 1, 0]]', [[1, 0, 1, 0, 1, 0, 1, 0]], ['clean', [0, 0, 1, 0]]], ['regression [[1, 0, 1, 0, 1, 1, 1, 0]]', [[1, 0, 1, 0, 1, 1, 1, 0]], ['corrected', [0, 0, 1, 0]]], ['partial-repair [[0, 1, 0, 0, 0, 0, 0, 0]]', [[0, 1, 0, 0, 0, 0, 0, 0]], ['corrected', [0, 0, 0, 0]]], ['partial-repair [[0, 1, 1, 0, 1, 1, 0, 1]]', [[0, 1, 1, 0, 1, 1, 0, 1]], ['corrected', [0, 0, 0, 1]]], ['control [[0, 0, 0, 0, 0, 0, 0, 0]]', [[0, 0, 0, 0, 0, 0, 0, 0]], ['clean', [0, 0, 0, 0]]], ['control [[0, 0, 0, 0, 0, 0, 1, 1]]', [[0, 0, 0, 0, 0, 0, 1, 1]], ['double', None]], ['control [[0, 1, 1, 0, 1, 0, 0, 1]]', [[0, 1, 1, 0, 1, 0, 0, 1]], ['clean', [0, 0, 0, 1]]], ['control [[0, 1, 0, 1, 1, 0, 0, 1]]', [[0, 1, 0, 1, 1, 0, 0, 1]], ['double', None]]], [['regression [[1, 1, 0, 0, 0, 0, 1, 1]]', [[1, 1, 0, 0, 0, 0, 1, 1]], ['clean', [0, 0, 1, 1]]], ['regression [[1, 1, 1, 0, 0, 0, 1, 1]]', [[1, 1, 1, 0, 0, 0, 1, 1]], ['corrected', [0, 0, 1, 1]]], ['partial-repair [[1, 0, 0, 1, 1, 0, 1, 0]]', [[1, 0, 0, 1, 1, 0, 1, 0]], ['double', None]], ['control [[0, 0, 1, 0, 0, 0, 1, 0]]', [[0, 0, 1, 0, 0, 0, 1, 0]], ['double', None]], ['control [[0, 0, 0, 0, 1, 1, 1, 1]]', [[0, 0, 0, 0, 1, 1, 1, 1]], ['clean', [0, 1, 1, 1]]], ['control [[0, 0, 0, 0, 0, 1, 1, 0]]', [[0, 0, 0, 0, 0, 1, 1, 0]], ['double', None]], ['control [[0, 1, 0, 1, 1, 0, 1, 0]]', [[0, 1, 0, 1, 1, 0, 1, 0]], ['clean', [1, 0, 1, 0]]], ['control [[0, 1, 1, 1, 0, 0, 1, 0]]', [[0, 1, 1, 1, 0, 0, 1, 0]], ['double', None]]], [['regression [[1, 1, 0, 0, 1, 1, 0, 0]]', [[1, 1, 0, 0, 1, 1, 0, 0]], ['clean', [0, 1, 0, 0]]], ['regression [[1, 1, 1, 0, 1, 1, 0, 0]]', [[1, 1, 1, 0, 1, 1, 0, 0]], ['corrected', [0, 1, 0, 0]]], ['partial-repair [[1, 0, 0, 0, 1, 0, 0, 0]]', [[1, 0, 0, 0, 1, 0, 0, 0]], ['double', None]], ['control [[0, 0, 1, 1, 0, 0, 1, 1]]', [[0, 0, 1, 1, 0, 0, 1, 1]], ['clean', [1, 0, 1, 1]]], ['control [[0, 0, 1, 1, 0, 1, 1, 0]]', [[0, 0, 1, 1, 0, 1, 1, 0]], ['double', None]], ['control [[0, 0, 1, 1, 1, 1, 0, 0]]', [[0, 0, 1, 1, 1, 1, 0, 0]], ['clean', [1, 1, 0, 0]]], ['control [[0, 0, 1, 0, 1, 0, 0, 0]]', [[0, 0, 1, 0, 1, 0, 0, 0]], ['double', None]], ['control [[0, 1, 0, 1, 0, 1, 0, 1]]', [[0, 1, 0, 1, 0, 1, 0, 1]], ['clean', [1, 1, 0, 1]]]], [['regression [[1, 0, 1, 0, 0, 1, 0, 1]]', [[1, 0, 1, 0, 0, 1, 0, 1]], ['clean', [0, 1, 0, 1]]], ['regression [[1, 0, 1, 0, 0, 1, 1, 1]]', [[1, 0, 1, 0, 0, 1, 1, 1]], ['corrected', [0, 1, 0, 1]]], ['partial-repair [[1, 0, 1, 1, 0, 1, 1, 1]]', [[1, 0, 1, 1, 0, 1, 1, 1]], ['double', None]], ['partial-repair [[0, 1, 1, 0, 0, 0, 1, 0]]', [[0, 1, 1, 0, 0, 0, 1, 0]], ['corrected', [0, 1, 1, 0]]], ['control [[0, 1, 1, 1, 0, 1, 0, 0]]', [[0, 1, 1, 1, 0, 1, 0, 0]], ['double', None]], ['control [[0, 1, 1, 0, 0, 0, 0, 0]]', [[0, 1, 1, 0, 0, 0, 0, 0]], ['double', None]], ['control [[0, 0, 0, 0, 0, 0, 0, 0]]', [[0, 0, 0, 0, 0, 0, 0, 0]], ['clean', [0, 0, 0, 0]]], ['control [[0, 0, 0, 0, 0, 0, 1, 1]]', [[0, 0, 0, 0, 0, 0, 1, 1]], ['double', None]]], [['regression [[1, 1, 1, 1, 0, 0, 0, 0]]', [[1, 1, 1, 1, 0, 0, 0, 0]], ['clean', [1, 0, 0, 0]]], ['regression [[1, 1, 0, 1, 0, 1, 0, 0]]', [[1, 1, 0, 1, 0, 1, 0, 0]], ['double', None]], ['partial-repair [[0, 1, 1, 1, 0, 0, 0, 0]]', [[0, 1, 1, 1, 0, 0, 0, 0]], ['corrected', [1, 0, 0, 0]]], ['control [[0, 1, 0, 1, 1, 0, 0, 1]]', [[0, 1, 0, 1, 1, 0, 0, 1]], ['double', None]], ['control [[0, 1, 1, 0, 0, 1, 1, 0]]', [[0, 1, 1, 0, 0, 1, 1, 0]], ['clean', [0, 1, 1, 0]]], ['control [[0, 0, 1, 0, 0, 0, 1, 0]]', [[0, 0, 1, 0, 0, 0, 1, 0]], ['double', None]], ['control [[0, 0, 0, 0, 1, 1, 1, 1]]', [[0, 0, 0, 0, 1, 1, 1, 1]], ['clean', [0, 1, 1, 1]]], ['control [[0, 0, 0, 0, 0, 1, 1, 0]]', [[0, 0, 0, 0, 0, 1, 1, 0]], ['double', None]]]]\nfor label, args, expected in fixtures[N - 1]:\n    check(label, 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":"ba058e82e8a94bffa730e091743c4ec1ad93beecd5c586f717364c9c7bc49396","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(r):\n    if len(r) != 8 or any(b not in (0, 1) for b in r):\n        return None\n    s = 0\n    for pos in range(1, 8):\n        if r[pos]:\n            s ^= pos\n    p = sum(r[1:]) % 2\n    c = list(r)\n    if s == 0 and p == 0:\n        status = 'clean'\n    elif p == 1:\n        status = 'corrected'\n        c[s] ^= 1\n    else:\n        return ['double', None]\n    return [status, [c[3], c[5], c[6], c[7]]]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['regression [[1, 0, 1, 0, 1, 0, 1, 0]]', [[1, 0, 1, 0, 1, 0, 1, 0]], ['clean', [0, 0, 1, 0]]], ['regression [[1, 0, 1, 0, 1, 1, 1, 0]]', [[1, 0, 1, 0, 1, 1, 1, 0]], ['corrected', [0, 0, 1, 0]]], ['partial-repair [[0, 1, 0, 0, 0, 0, 0, 0]]', [[0, 1, 0, 0, 0, 0, 0, 0]], ['corrected', [0, 0, 0, 0]]], ['partial-repair [[0, 1, 1, 0, 1, 1, 0, 1]]', [[0, 1, 1, 0, 1, 1, 0, 1]], ['corrected', [0, 0, 0, 1]]], ['control [[0, 0, 0, 0, 0, 0, 0, 0]]', [[0, 0, 0, 0, 0, 0, 0, 0]], ['clean', [0, 0, 0, 0]]], ['control [[0, 0, 0, 0, 0, 0, 1, 1]]', [[0, 0, 0, 0, 0, 0, 1, 1]], ['double', None]], ['control [[0, 1, 1, 0, 1, 0, 0, 1]]', [[0, 1, 1, 0, 1, 0, 0, 1]], ['clean', [0, 0, 0, 1]]], ['control [[0, 1, 0, 1, 1, 0, 0, 1]]', [[0, 1, 0, 1, 1, 0, 0, 1]], ['double', None]]], [['regression [[1, 1, 0, 0, 0, 0, 1, 1]]', [[1, 1, 0, 0, 0, 0, 1, 1]], ['clean', [0, 0, 1, 1]]], ['regression [[1, 1, 1, 0, 0, 0, 1, 1]]', [[1, 1, 1, 0, 0, 0, 1, 1]], ['corrected', [0, 0, 1, 1]]], ['partial-repair [[1, 0, 0, 1, 1, 0, 1, 0]]', [[1, 0, 0, 1, 1, 0, 1, 0]], ['double', None]], ['control [[0, 0, 1, 0, 0, 0, 1, 0]]', [[0, 0, 1, 0, 0, 0, 1, 0]], ['double', None]], ['control [[0, 0, 0, 0, 1, 1, 1, 1]]', [[0, 0, 0, 0, 1, 1, 1, 1]], ['clean', [0, 1, 1, 1]]], ['control [[0, 0, 0, 0, 0, 1, 1, 0]]', [[0, 0, 0, 0, 0, 1, 1, 0]], ['double', None]], ['control [[0, 1, 0, 1, 1, 0, 1, 0]]', [[0, 1, 0, 1, 1, 0, 1, 0]], ['clean', [1, 0, 1, 0]]], ['control [[0, 1, 1, 1, 0, 0, 1, 0]]', [[0, 1, 1, 1, 0, 0, 1, 0]], ['double', None]]], [['regression [[1, 1, 0, 0, 1, 1, 0, 0]]', [[1, 1, 0, 0, 1, 1, 0, 0]], ['clean', [0, 1, 0, 0]]], ['regression [[1, 1, 1, 0, 1, 1, 0, 0]]', [[1, 1, 1, 0, 1, 1, 0, 0]], ['corrected', [0, 1, 0, 0]]], ['partial-repair [[1, 0, 0, 0, 1, 0, 0, 0]]', [[1, 0, 0, 0, 1, 0, 0, 0]], ['double', None]], ['control [[0, 0, 1, 1, 0, 0, 1, 1]]', [[0, 0, 1, 1, 0, 0, 1, 1]], ['clean', [1, 0, 1, 1]]], ['control [[0, 0, 1, 1, 0, 1, 1, 0]]', [[0, 0, 1, 1, 0, 1, 1, 0]], ['double', None]], ['control [[0, 0, 1, 1, 1, 1, 0, 0]]', [[0, 0, 1, 1, 1, 1, 0, 0]], ['clean', [1, 1, 0, 0]]], ['control [[0, 0, 1, 0, 1, 0, 0, 0]]', [[0, 0, 1, 0, 1, 0, 0, 0]], ['double', None]], ['control [[0, 1, 0, 1, 0, 1, 0, 1]]', [[0, 1, 0, 1, 0, 1, 0, 1]], ['clean', [1, 1, 0, 1]]]], [['regression [[1, 0, 1, 0, 0, 1, 0, 1]]', [[1, 0, 1, 0, 0, 1, 0, 1]], ['clean', [0, 1, 0, 1]]], ['regression [[1, 0, 1, 0, 0, 1, 1, 1]]', [[1, 0, 1, 0, 0, 1, 1, 1]], ['corrected', [0, 1, 0, 1]]], ['partial-repair [[1, 0, 1, 1, 0, 1, 1, 1]]', [[1, 0, 1, 1, 0, 1, 1, 1]], ['double', None]], ['partial-repair [[0, 1, 1, 0, 0, 0, 1, 0]]', [[0, 1, 1, 0, 0, 0, 1, 0]], ['corrected', [0, 1, 1, 0]]], ['control [[0, 1, 1, 1, 0, 1, 0, 0]]', [[0, 1, 1, 1, 0, 1, 0, 0]], ['double', None]], ['control [[0, 1, 1, 0, 0, 0, 0, 0]]', [[0, 1, 1, 0, 0, 0, 0, 0]], ['double', None]], ['control [[0, 0, 0, 0, 0, 0, 0, 0]]', [[0, 0, 0, 0, 0, 0, 0, 0]], ['clean', [0, 0, 0, 0]]], ['control [[0, 0, 0, 0, 0, 0, 1, 1]]', [[0, 0, 0, 0, 0, 0, 1, 1]], ['double', None]]], [['regression [[1, 1, 1, 1, 0, 0, 0, 0]]', [[1, 1, 1, 1, 0, 0, 0, 0]], ['clean', [1, 0, 0, 0]]], ['regression [[1, 1, 0, 1, 0, 1, 0, 0]]', [[1, 1, 0, 1, 0, 1, 0, 0]], ['double', None]], ['partial-repair [[0, 1, 1, 1, 0, 0, 0, 0]]', [[0, 1, 1, 1, 0, 0, 0, 0]], ['corrected', [1, 0, 0, 0]]], ['control [[0, 1, 0, 1, 1, 0, 0, 1]]', [[0, 1, 0, 1, 1, 0, 0, 1]], ['double', None]], ['control [[0, 1, 1, 0, 0, 1, 1, 0]]', [[0, 1, 1, 0, 0, 1, 1, 0]], ['clean', [0, 1, 1, 0]]], ['control [[0, 0, 1, 0, 0, 0, 1, 0]]', [[0, 0, 1, 0, 0, 0, 1, 0]], ['double', None]], ['control [[0, 0, 0, 0, 1, 1, 1, 1]]', [[0, 0, 0, 0, 1, 1, 1, 1]], ['clean', [0, 1, 1, 1]]], ['control [[0, 0, 0, 0, 0, 1, 1, 0]]', [[0, 0, 0, 0, 0, 1, 1, 0]], ['double', None]]]]\nfor label, args, expected in fixtures[N - 1]:\n    check(label, 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"},"fixed":{"sha256":"ca6cd9e352b2f88d7e56b52dbdf55f4a6f60b238bb5054d5a50598314ddfbb58","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(r):\n    if len(r) != 8 or any(b not in (0, 1) for b in r):\n        return None\n    s = 0\n    for pos in range(1, 8):\n        if r[pos]:\n            s ^= pos\n    p = sum(r) % 2\n    c = list(r)\n    if s == 0 and p == 0:\n        status = 'clean'\n    elif p == 1:\n        status = 'corrected'\n        c[s] ^= 1\n    else:\n        return ['double', None]\n    return [status, [c[3], c[5], c[6], c[7]]]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['regression [[1, 0, 1, 0, 1, 0, 1, 0]]', [[1, 0, 1, 0, 1, 0, 1, 0]], ['clean', [0, 0, 1, 0]]], ['regression [[1, 0, 1, 0, 1, 1, 1, 0]]', [[1, 0, 1, 0, 1, 1, 1, 0]], ['corrected', [0, 0, 1, 0]]], ['partial-repair [[0, 1, 0, 0, 0, 0, 0, 0]]', [[0, 1, 0, 0, 0, 0, 0, 0]], ['corrected', [0, 0, 0, 0]]], ['partial-repair [[0, 1, 1, 0, 1, 1, 0, 1]]', [[0, 1, 1, 0, 1, 1, 0, 1]], ['corrected', [0, 0, 0, 1]]], ['control [[0, 0, 0, 0, 0, 0, 0, 0]]', [[0, 0, 0, 0, 0, 0, 0, 0]], ['clean', [0, 0, 0, 0]]], ['control [[0, 0, 0, 0, 0, 0, 1, 1]]', [[0, 0, 0, 0, 0, 0, 1, 1]], ['double', None]], ['control [[0, 1, 1, 0, 1, 0, 0, 1]]', [[0, 1, 1, 0, 1, 0, 0, 1]], ['clean', [0, 0, 0, 1]]], ['control [[0, 1, 0, 1, 1, 0, 0, 1]]', [[0, 1, 0, 1, 1, 0, 0, 1]], ['double', None]]], [['regression [[1, 1, 0, 0, 0, 0, 1, 1]]', [[1, 1, 0, 0, 0, 0, 1, 1]], ['clean', [0, 0, 1, 1]]], ['regression [[1, 1, 1, 0, 0, 0, 1, 1]]', [[1, 1, 1, 0, 0, 0, 1, 1]], ['corrected', [0, 0, 1, 1]]], ['partial-repair [[1, 0, 0, 1, 1, 0, 1, 0]]', [[1, 0, 0, 1, 1, 0, 1, 0]], ['double', None]], ['control [[0, 0, 1, 0, 0, 0, 1, 0]]', [[0, 0, 1, 0, 0, 0, 1, 0]], ['double', None]], ['control [[0, 0, 0, 0, 1, 1, 1, 1]]', [[0, 0, 0, 0, 1, 1, 1, 1]], ['clean', [0, 1, 1, 1]]], ['control [[0, 0, 0, 0, 0, 1, 1, 0]]', [[0, 0, 0, 0, 0, 1, 1, 0]], ['double', None]], ['control [[0, 1, 0, 1, 1, 0, 1, 0]]', [[0, 1, 0, 1, 1, 0, 1, 0]], ['clean', [1, 0, 1, 0]]], ['control [[0, 1, 1, 1, 0, 0, 1, 0]]', [[0, 1, 1, 1, 0, 0, 1, 0]], ['double', None]]], [['regression [[1, 1, 0, 0, 1, 1, 0, 0]]', [[1, 1, 0, 0, 1, 1, 0, 0]], ['clean', [0, 1, 0, 0]]], ['regression [[1, 1, 1, 0, 1, 1, 0, 0]]', [[1, 1, 1, 0, 1, 1, 0, 0]], ['corrected', [0, 1, 0, 0]]], ['partial-repair [[1, 0, 0, 0, 1, 0, 0, 0]]', [[1, 0, 0, 0, 1, 0, 0, 0]], ['double', None]], ['control [[0, 0, 1, 1, 0, 0, 1, 1]]', [[0, 0, 1, 1, 0, 0, 1, 1]], ['clean', [1, 0, 1, 1]]], ['control [[0, 0, 1, 1, 0, 1, 1, 0]]', [[0, 0, 1, 1, 0, 1, 1, 0]], ['double', None]], ['control [[0, 0, 1, 1, 1, 1, 0, 0]]', [[0, 0, 1, 1, 1, 1, 0, 0]], ['clean', [1, 1, 0, 0]]], ['control [[0, 0, 1, 0, 1, 0, 0, 0]]', [[0, 0, 1, 0, 1, 0, 0, 0]], ['double', None]], ['control [[0, 1, 0, 1, 0, 1, 0, 1]]', [[0, 1, 0, 1, 0, 1, 0, 1]], ['clean', [1, 1, 0, 1]]]], [['regression [[1, 0, 1, 0, 0, 1, 0, 1]]', [[1, 0, 1, 0, 0, 1, 0, 1]], ['clean', [0, 1, 0, 1]]], ['regression [[1, 0, 1, 0, 0, 1, 1, 1]]', [[1, 0, 1, 0, 0, 1, 1, 1]], ['corrected', [0, 1, 0, 1]]], ['partial-repair [[1, 0, 1, 1, 0, 1, 1, 1]]', [[1, 0, 1, 1, 0, 1, 1, 1]], ['double', None]], ['partial-repair [[0, 1, 1, 0, 0, 0, 1, 0]]', [[0, 1, 1, 0, 0, 0, 1, 0]], ['corrected', [0, 1, 1, 0]]], ['control [[0, 1, 1, 1, 0, 1, 0, 0]]', [[0, 1, 1, 1, 0, 1, 0, 0]], ['double', None]], ['control [[0, 1, 1, 0, 0, 0, 0, 0]]', [[0, 1, 1, 0, 0, 0, 0, 0]], ['double', None]], ['control [[0, 0, 0, 0, 0, 0, 0, 0]]', [[0, 0, 0, 0, 0, 0, 0, 0]], ['clean', [0, 0, 0, 0]]], ['control [[0, 0, 0, 0, 0, 0, 1, 1]]', [[0, 0, 0, 0, 0, 0, 1, 1]], ['double', None]]], [['regression [[1, 1, 1, 1, 0, 0, 0, 0]]', [[1, 1, 1, 1, 0, 0, 0, 0]], ['clean', [1, 0, 0, 0]]], ['regression [[1, 1, 0, 1, 0, 1, 0, 0]]', [[1, 1, 0, 1, 0, 1, 0, 0]], ['double', None]], ['partial-repair [[0, 1, 1, 1, 0, 0, 0, 0]]', [[0, 1, 1, 1, 0, 0, 0, 0]], ['corrected', [1, 0, 0, 0]]], ['control [[0, 1, 0, 1, 1, 0, 0, 1]]', [[0, 1, 0, 1, 1, 0, 0, 1]], ['double', None]], ['control [[0, 1, 1, 0, 0, 1, 1, 0]]', [[0, 1, 1, 0, 0, 1, 1, 0]], ['clean', [0, 1, 1, 0]]], ['control [[0, 0, 1, 0, 0, 0, 1, 0]]', [[0, 0, 1, 0, 0, 0, 1, 0]], ['double', None]], ['control [[0, 0, 0, 0, 1, 1, 1, 1]]', [[0, 0, 0, 0, 1, 1, 1, 1]], ['clean', [0, 1, 1, 1]]], ['control [[0, 0, 0, 0, 0, 1, 1, 0]]', [[0, 0, 0, 0, 0, 1, 1, 0]], ['double', None]]]]\nfor label, args, expected in fixtures[N - 1]:\n    check(label, 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":"A deterministic, bounded teaching model of the named code under the stated contract; not a production codec. 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-error_correcting_codes-secded-8-4-overall-parity-span","generated_at":"2026-09-29T14:48:33.534326+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"ECC DRAM controllers must distinguish correctable single-bit errors from uncorrectable double-bit errors.","repair":"Compute the overall parity over all eight bits.","root_cause":"p is computed over r[1:] only.","sha256":"194c543de41f19282c9a15ca5aa19b547f068a75e526f03e0e88f3f9de917d6a","title":"SECDED overall parity ignores the parity bit itself · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":39.424,"exit_code":1,"observations":[{"actual":["corrected",[0,0,1,0]],"check":"regression [[1, 0, 1, 0, 1, 0, 1, 0]]","expected":["clean",[0,0,1,0]],"passed":false},{"actual":["corrected",[0,0,1,0]],"check":"regression [[1, 0, 1, 0, 1, 1, 1, 0]]","expected":["corrected",[0,0,1,0]],"passed":true},{"actual":["double",null],"check":"partial-repair [[0, 1, 0, 0, 0, 0, 0, 0]]","expected":["corrected",[0,0,0,0]],"passed":false},{"actual":["double",null],"check":"partial-repair [[0, 1, 1, 0, 1, 1, 0, 1]]","expected":["corrected",[0,0,0,1]],"passed":false},{"actual":["clean",[0,0,0,0]],"check":"control [[0, 0, 0, 0, 0, 0, 0, 0]]","expected":["clean",[0,0,0,0]],"passed":true},{"actual":["double",null],"check":"control [[0, 0, 0, 0, 0, 0, 1, 1]]","expected":["double",null],"passed":true},{"actual":["clean",[0,0,0,1]],"check":"control [[0, 1, 1, 0, 1, 0, 0, 1]]","expected":["clean",[0,0,0,1]],"passed":true},{"actual":["double",null],"check":"control [[0, 1, 0, 1, 1, 0, 0, 1]]","expected":["double",null],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression [[1, 0, 1, 0, 1, 0, 1, 0]]\", \"actual\": [\"corrected\", [0, 0, 1, 0]], \"expected\": [\"clean\", [0, 0, 1, 0]], \"passed\": false}, {\"check\": \"regression [[1, 0, 1, 0, 1, 1, 1, 0]]\", \"actual\": [\"corrected\", [0, 0, 1, 0]], \"expected\": [\"corrected\", [0, 0, 1, 0]], \"passed\": true}, {\"check\": \"partial-repair [[0, 1, 0, 0, 0, 0, 0, 0]]\", \"actual\": [\"double\", null], \"expected\": [\"corrected\", [0, 0, 0, 0]], \"passed\": false}, {\"check\": \"partial-repair [[0, 1, 1, 0, 1, 1, 0, 1]]\", \"actual\": [\"double\", null], \"expected\": [\"corrected\", [0, 0, 0, 1]], \"passed\": false}, {\"check\": \"control [[0, 0, 0, 0, 0, 0, 0, 0]]\", \"actual\": [\"clean\", [0, 0, 0, 0]], \"expected\": [\"clean\", [0, 0, 0, 0]], \"passed\": true}, {\"check\": \"control [[0, 0, 0, 0, 0, 0, 1, 1]]\", \"actual\": [\"double\", null], \"expected\": [\"double\", null], \"passed\": true}, {\"check\": \"control [[0, 1, 1, 0, 1, 0, 0, 1]]\", \"actual\": [\"clean\", [0, 0, 0, 1]], \"expected\": [\"clean\", [0, 0, 0, 1]], \"passed\": true}, {\"check\": \"control [[0, 1, 0, 1, 1, 0, 0, 1]]\", \"actual\": [\"double\", null], \"expected\": [\"double\", null], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.044,"exit_code":1,"observations":[{"actual":["corrected",[0,0,1,0]],"check":"regression [[1, 0, 1, 0, 1, 0, 1, 0]]","expected":["clean",[0,0,1,0]],"passed":false},{"actual":["double",null],"check":"regression [[1, 0, 1, 0, 1, 1, 1, 0]]","expected":["corrected",[0,0,1,0]],"passed":false},{"actual":["corrected",[0,0,0,0]],"check":"partial-repair [[0, 1, 0, 0, 0, 0, 0, 0]]","expected":["corrected",[0,0,0,0]],"passed":true},{"actual":["corrected",[0,0,0,1]],"check":"partial-repair [[0, 1, 1, 0, 1, 1, 0, 1]]","expected":["corrected",[0,0,0,1]],"passed":true},{"actual":["clean",[0,0,0,0]],"check":"control [[0, 0, 0, 0, 0, 0, 0, 0]]","expected":["clean",[0,0,0,0]],"passed":true},{"actual":["double",null],"check":"control [[0, 0, 0, 0, 0, 0, 1, 1]]","expected":["double",null],"passed":true},{"actual":["clean",[0,0,0,1]],"check":"control [[0, 1, 1, 0, 1, 0, 0, 1]]","expected":["clean",[0,0,0,1]],"passed":true},{"actual":["double",null],"check":"control [[0, 1, 0, 1, 1, 0, 0, 1]]","expected":["double",null],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression [[1, 0, 1, 0, 1, 0, 1, 0]]\", \"actual\": [\"corrected\", [0, 0, 1, 0]], \"expected\": [\"clean\", [0, 0, 1, 0]], \"passed\": false}, {\"check\": \"regression [[1, 0, 1, 0, 1, 1, 1, 0]]\", \"actual\": [\"double\", null], \"expected\": [\"corrected\", [0, 0, 1, 0]], \"passed\": false}, {\"check\": \"partial-repair [[0, 1, 0, 0, 0, 0, 0, 0]]\", \"actual\": [\"corrected\", [0, 0, 0, 0]], \"expected\": [\"corrected\", [0, 0, 0, 0]], \"passed\": true}, {\"check\": \"partial-repair [[0, 1, 1, 0, 1, 1, 0, 1]]\", \"actual\": [\"corrected\", [0, 0, 0, 1]], \"expected\": [\"corrected\", [0, 0, 0, 1]], \"passed\": true}, {\"check\": \"control [[0, 0, 0, 0, 0, 0, 0, 0]]\", \"actual\": [\"clean\", [0, 0, 0, 0]], \"expected\": [\"clean\", [0, 0, 0, 0]], \"passed\": true}, {\"check\": \"control [[0, 0, 0, 0, 0, 0, 1, 1]]\", \"actual\": [\"double\", null], \"expected\": [\"double\", null], \"passed\": true}, {\"check\": \"control [[0, 1, 1, 0, 1, 0, 0, 1]]\", \"actual\": [\"clean\", [0, 0, 0, 1]], \"expected\": [\"clean\", [0, 0, 0, 1]], \"passed\": true}, {\"check\": \"control [[0, 1, 0, 1, 1, 0, 0, 1]]\", \"actual\": [\"double\", null], \"expected\": [\"double\", null], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":36.971,"exit_code":0,"observations":[{"actual":["clean",[0,0,1,0]],"check":"regression [[1, 0, 1, 0, 1, 0, 1, 0]]","expected":["clean",[0,0,1,0]],"passed":true},{"actual":["corrected",[0,0,1,0]],"check":"regression [[1, 0, 1, 0, 1, 1, 1, 0]]","expected":["corrected",[0,0,1,0]],"passed":true},{"actual":["corrected",[0,0,0,0]],"check":"partial-repair [[0, 1, 0, 0, 0, 0, 0, 0]]","expected":["corrected",[0,0,0,0]],"passed":true},{"actual":["corrected",[0,0,0,1]],"check":"partial-repair [[0, 1, 1, 0, 1, 1, 0, 1]]","expected":["corrected",[0,0,0,1]],"passed":true},{"actual":["clean",[0,0,0,0]],"check":"control [[0, 0, 0, 0, 0, 0, 0, 0]]","expected":["clean",[0,0,0,0]],"passed":true},{"actual":["double",null],"check":"control [[0, 0, 0, 0, 0, 0, 1, 1]]","expected":["double",null],"passed":true},{"actual":["clean",[0,0,0,1]],"check":"control [[0, 1, 1, 0, 1, 0, 0, 1]]","expected":["clean",[0,0,0,1]],"passed":true},{"actual":["double",null],"check":"control [[0, 1, 0, 1, 1, 0, 0, 1]]","expected":["double",null],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression [[1, 0, 1, 0, 1, 0, 1, 0]]\", \"actual\": [\"clean\", [0, 0, 1, 0]], \"expected\": [\"clean\", [0, 0, 1, 0]], \"passed\": true}, {\"check\": \"regression [[1, 0, 1, 0, 1, 1, 1, 0]]\", \"actual\": [\"corrected\", [0, 0, 1, 0]], \"expected\": [\"corrected\", [0, 0, 1, 0]], \"passed\": true}, {\"check\": \"partial-repair [[0, 1, 0, 0, 0, 0, 0, 0]]\", \"actual\": [\"corrected\", [0, 0, 0, 0]], \"expected\": [\"corrected\", [0, 0, 0, 0]], \"passed\": true}, {\"check\": \"partial-repair [[0, 1, 1, 0, 1, 1, 0, 1]]\", \"actual\": [\"corrected\", [0, 0, 0, 1]], \"expected\": [\"corrected\", [0, 0, 0, 1]], \"passed\": true}, {\"check\": \"control [[0, 0, 0, 0, 0, 0, 0, 0]]\", \"actual\": [\"clean\", [0, 0, 0, 0]], \"expected\": [\"clean\", [0, 0, 0, 0]], \"passed\": true}, {\"check\": \"control [[0, 0, 0, 0, 0, 0, 1, 1]]\", \"actual\": [\"double\", null], \"expected\": [\"double\", null], \"passed\": true}, {\"check\": \"control [[0, 1, 1, 0, 1, 0, 0, 1]]\", \"actual\": [\"clean\", [0, 0, 0, 1]], \"expected\": [\"clean\", [0, 0, 0, 1]], \"passed\": true}, {\"check\": \"control [[0, 1, 0, 1, 1, 0, 0, 1]]\", \"actual\": [\"double\", null], \"expected\": [\"double\", null], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}