{"abstract":"Numbers whose weighted sum is a multiple of 11 produce control value 11.","category":"Check-digit algorithms","checks":8,"contract":"Norwegian-style 11-digit national identity number with two mod-11 control digits. k1 uses weights 3,7,6,1,8,9,4,5,2 on digits 1-9; k2 uses 5,4,3,2,7,6,5,4,3,2 on digits 1-9 followed by the computed k1. Each is 11 - (sum mod 11) with 11 mapped to 0; a value of 10 means the base number is \"unassignable\". Non-11-digit input is \"malformed\". Return [k1, k2, whether digits 10 and 11 equal k1 and k2].","contract_signature":"s","evaluation_group":"w2-check_digit_algorithms-no-national-id","failed_approach":"Folding with % 10 turns 11 into 1 and also hides the unassignable value 10.","family":"w2-check_digit_algorithms-no-national-id-eleven-to-zero","id":"FA-72601","implementations":{"attempt":{"sha256":"3fe18fdedc78b629b72c772df9cdbcb888d51edbe1f0cc2bbad60341fcf210a6","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(s):\n    if len(s) != 11 or not s.isascii() or not s.isdigit():\n        return 'malformed'\n    d = [int(ch) for ch in s]\n    def ctrl(ws, ds):\n        r = 11 - sum(w * x for w, x in zip(ws, ds)) % 11\n        return r % 10\n    k1 = ctrl([3, 7, 6, 1, 8, 9, 4, 5, 2], d[:9])\n    if k1 == 10:\n        return 'unassignable'\n    k2 = ctrl([5, 4, 3, 2, 7, 6, 5, 4, 3, 2], d[:9] + [k1])\n    if k2 == 10:\n        return 'unassignable'\n    return [k1, k2, d[9] == k1 and d[10] == k2]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['regression [\"12060326049\"]', ['12060326049'], [0, 0, False]], ['regression [\"07030971548\"]', ['07030971548'], [0, 1, False]], ['partial-repair [\"05077807892\"]', ['05077807892'], 'unassignable'], ['partial-repair [\"28098179001\"]', ['28098179001'], 'unassignable'], ['control [\"15068218891\"]', ['15068218891'], [1, 8, False]], ['control [\"12026119886\"]', ['12026119886'], [2, 9, False]], ['control [\"03060130066\"]', ['03060130066'], [7, 7, False]], ['control [\"26096688213\"]', ['26096688213'], [7, 9, False]]], [['regression [\"15013338686\"]', ['15013338686'], [0, 1, False]], ['regression [\"18117616591\"]', ['18117616591'], [0, 5, False]], ['partial-repair [\"09117682532\"]', ['09117682532'], 'unassignable'], ['partial-repair [\"07030971548\"]', ['07030971548'], [0, 1, False]], ['control [\"20127609775\"]', ['20127609775'], [4, 9, False]], ['control [\"13094093660\"]', ['13094093660'], [4, 8, False]], ['control [\"27043193556\"]', ['27043193556'], [1, 7, False]], ['control [\"13114336351\"]', ['13114336351'], [5, 6, False]]], [['regression [\"23056929360\"]', ['23056929360'], [0, 4, False]], ['regression [\"20063518913\"]', ['20063518913'], [0, 6, False]], ['partial-repair [\"13128514961\"]', ['13128514961'], 'unassignable'], ['partial-repair [\"15013338686\"]', ['15013338686'], [0, 1, False]], ['control [\"23021493559\"]', ['23021493559'], [9, 7, False]], ['control [\"18115340042\"]', ['18115340042'], [5, 7, False]], ['control [\"23030552606\"]', ['23030552606'], [4, 4, False]], ['control [\"26042158718\"]', ['26042158718'], [3, 8, False]]], [['regression [\"12060326049\"]', ['12060326049'], [0, 0, False]], ['regression [\"07030971548\"]', ['07030971548'], [0, 1, False]], ['partial-repair [\"01117093517\"]', ['01117093517'], [1, 0, False]], ['partial-repair [\"23056929360\"]', ['23056929360'], [0, 4, False]], ['control [\"15076500565\"]', ['15076500565'], [6, 5, True]], ['control [\"1507650056\"]', ['1507650056'], 'malformed'], ['control [\"1507650056a\"]', ['1507650056a'], 'malformed'], ['control [\"01129955131\"]', ['01129955131'], [5, 1, False]]], [['regression [\"15013338686\"]', ['15013338686'], [0, 1, False]], ['regression [\"18117616591\"]', ['18117616591'], [0, 5, False]], ['partial-repair [\"00000000000\"]', ['00000000000'], [0, 0, True]], ['partial-repair [\"05077807892\"]', ['05077807892'], 'unassignable'], ['control [\"12026119886\"]', ['12026119886'], [2, 9, False]], ['control [\"03060130066\"]', ['03060130066'], [7, 7, False]], ['control [\"26096688213\"]', ['26096688213'], [7, 9, False]], ['control [\"08042619712\"]', ['08042619712'], [5, 3, False]]]]\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":"9baad1763ae10d4015d4189008ac4f5645885e7a5a6d5adbd68cd2c0b2b8dda8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(s):\n    if len(s) != 11 or not s.isascii() or not s.isdigit():\n        return 'malformed'\n    d = [int(ch) for ch in s]\n    def ctrl(ws, ds):\n        r = 11 - sum(w * x for w, x in zip(ws, ds)) % 11\n        return r\n    k1 = ctrl([3, 7, 6, 1, 8, 9, 4, 5, 2], d[:9])\n    if k1 == 10:\n        return 'unassignable'\n    k2 = ctrl([5, 4, 3, 2, 7, 6, 5, 4, 3, 2], d[:9] + [k1])\n    if k2 == 10:\n        return 'unassignable'\n    return [k1, k2, d[9] == k1 and d[10] == k2]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['regression [\"12060326049\"]', ['12060326049'], [0, 0, False]], ['regression [\"07030971548\"]', ['07030971548'], [0, 1, False]], ['partial-repair [\"05077807892\"]', ['05077807892'], 'unassignable'], ['partial-repair [\"28098179001\"]', ['28098179001'], 'unassignable'], ['control [\"15068218891\"]', ['15068218891'], [1, 8, False]], ['control [\"12026119886\"]', ['12026119886'], [2, 9, False]], ['control [\"03060130066\"]', ['03060130066'], [7, 7, False]], ['control [\"26096688213\"]', ['26096688213'], [7, 9, False]]], [['regression [\"15013338686\"]', ['15013338686'], [0, 1, False]], ['regression [\"18117616591\"]', ['18117616591'], [0, 5, False]], ['partial-repair [\"09117682532\"]', ['09117682532'], 'unassignable'], ['partial-repair [\"07030971548\"]', ['07030971548'], [0, 1, False]], ['control [\"20127609775\"]', ['20127609775'], [4, 9, False]], ['control [\"13094093660\"]', ['13094093660'], [4, 8, False]], ['control [\"27043193556\"]', ['27043193556'], [1, 7, False]], ['control [\"13114336351\"]', ['13114336351'], [5, 6, False]]], [['regression [\"23056929360\"]', ['23056929360'], [0, 4, False]], ['regression [\"20063518913\"]', ['20063518913'], [0, 6, False]], ['partial-repair [\"13128514961\"]', ['13128514961'], 'unassignable'], ['partial-repair [\"15013338686\"]', ['15013338686'], [0, 1, False]], ['control [\"23021493559\"]', ['23021493559'], [9, 7, False]], ['control [\"18115340042\"]', ['18115340042'], [5, 7, False]], ['control [\"23030552606\"]', ['23030552606'], [4, 4, False]], ['control [\"26042158718\"]', ['26042158718'], [3, 8, False]]], [['regression [\"12060326049\"]', ['12060326049'], [0, 0, False]], ['regression [\"07030971548\"]', ['07030971548'], [0, 1, False]], ['partial-repair [\"01117093517\"]', ['01117093517'], [1, 0, False]], ['partial-repair [\"23056929360\"]', ['23056929360'], [0, 4, False]], ['control [\"15076500565\"]', ['15076500565'], [6, 5, True]], ['control [\"1507650056\"]', ['1507650056'], 'malformed'], ['control [\"1507650056a\"]', ['1507650056a'], 'malformed'], ['control [\"01129955131\"]', ['01129955131'], [5, 1, False]]], [['regression [\"15013338686\"]', ['15013338686'], [0, 1, False]], ['regression [\"18117616591\"]', ['18117616591'], [0, 5, False]], ['partial-repair [\"00000000000\"]', ['00000000000'], [0, 0, True]], ['partial-repair [\"05077807892\"]', ['05077807892'], 'unassignable'], ['control [\"12026119886\"]', ['12026119886'], [2, 9, False]], ['control [\"03060130066\"]', ['03060130066'], [7, 7, False]], ['control [\"26096688213\"]', ['26096688213'], [7, 9, False]], ['control [\"08042619712\"]', ['08042619712'], [5, 3, False]]]]\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 scheme under the stated contract; not a certified validator. 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-check_digit_algorithms-no-national-id-eleven-to-zero","generated_at":"2026-09-29T14:48:39.933072+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Population registers validate national identity numbers and report which control digit disagrees.","root_cause":"ctrl returns 11 - 0 = 11 unchanged.","sha256":"8a2377dfeef4ec55aaa6b517b365513d4828eaee70cb3edccbe96ef431094e59","title":"Control digit eleven is not mapped to zero · 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.939,"exit_code":1,"observations":[{"actual":[1,9,false],"check":"regression [\"12060326049\"]","expected":[0,0,false],"passed":false},{"actual":[1,0,false],"check":"regression [\"07030971548\"]","expected":[0,1,false],"passed":false},{"actual":[0,4,false],"check":"partial-repair [\"05077807892\"]","expected":"unassignable","passed":false},{"actual":[3,0,false],"check":"partial-repair [\"28098179001\"]","expected":"unassignable","passed":false},{"actual":[1,8,false],"check":"control [\"15068218891\"]","expected":[1,8,false],"passed":true},{"actual":[2,9,false],"check":"control [\"12026119886\"]","expected":[2,9,false],"passed":true},{"actual":[7,7,false],"check":"control [\"03060130066\"]","expected":[7,7,false],"passed":true},{"actual":[7,9,false],"check":"control [\"26096688213\"]","expected":[7,9,false],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression [\\\"12060326049\\\"]\", \"actual\": [1, 9, false], \"expected\": [0, 0, false], \"passed\": false}, {\"check\": \"regression [\\\"07030971548\\\"]\", \"actual\": [1, 0, false], \"expected\": [0, 1, false], \"passed\": false}, {\"check\": \"partial-repair [\\\"05077807892\\\"]\", \"actual\": [0, 4, false], \"expected\": \"unassignable\", \"passed\": false}, {\"check\": \"partial-repair [\\\"28098179001\\\"]\", \"actual\": [3, 0, false], \"expected\": \"unassignable\", \"passed\": false}, {\"check\": \"control [\\\"15068218891\\\"]\", \"actual\": [1, 8, false], \"expected\": [1, 8, false], \"passed\": true}, {\"check\": \"control [\\\"12026119886\\\"]\", \"actual\": [2, 9, false], \"expected\": [2, 9, false], \"passed\": true}, {\"check\": \"control [\\\"03060130066\\\"]\", \"actual\": [7, 7, false], \"expected\": [7, 7, false], \"passed\": true}, {\"check\": \"control [\\\"26096688213\\\"]\", \"actual\": [7, 9, false], \"expected\": [7, 9, false], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.43,"exit_code":1,"observations":[{"actual":[11,11,false],"check":"regression [\"12060326049\"]","expected":[0,0,false],"passed":false},{"actual":[11,1,false],"check":"regression [\"07030971548\"]","expected":[0,1,false],"passed":false},{"actual":"unassignable","check":"partial-repair [\"05077807892\"]","expected":"unassignable","passed":true},{"actual":"unassignable","check":"partial-repair [\"28098179001\"]","expected":"unassignable","passed":true},{"actual":[1,8,false],"check":"control [\"15068218891\"]","expected":[1,8,false],"passed":true},{"actual":[2,9,false],"check":"control [\"12026119886\"]","expected":[2,9,false],"passed":true},{"actual":[7,7,false],"check":"control [\"03060130066\"]","expected":[7,7,false],"passed":true},{"actual":[7,9,false],"check":"control [\"26096688213\"]","expected":[7,9,false],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression [\\\"12060326049\\\"]\", \"actual\": [11, 11, false], \"expected\": [0, 0, false], \"passed\": false}, {\"check\": \"regression [\\\"07030971548\\\"]\", \"actual\": [11, 1, false], \"expected\": [0, 1, false], \"passed\": false}, {\"check\": \"partial-repair [\\\"05077807892\\\"]\", \"actual\": \"unassignable\", \"expected\": \"unassignable\", \"passed\": true}, {\"check\": \"partial-repair [\\\"28098179001\\\"]\", \"actual\": \"unassignable\", \"expected\": \"unassignable\", \"passed\": true}, {\"check\": \"control [\\\"15068218891\\\"]\", \"actual\": [1, 8, false], \"expected\": [1, 8, false], \"passed\": true}, {\"check\": \"control [\\\"12026119886\\\"]\", \"actual\": [2, 9, false], \"expected\": [2, 9, false], \"passed\": true}, {\"check\": \"control [\\\"03060130066\\\"]\", \"actual\": [7, 7, false], \"expected\": [7, 7, false], \"passed\": true}, {\"check\": \"control [\\\"26096688213\\\"]\", \"actual\": [7, 9, false], \"expected\": [7, 9, false], \"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."}}