{"abstract":"The exact linear congruence solutions result violates the stated contract at solvability.","category":"Numerics","checks":8,"contract":"Input [a,b,m], m>0; sorted all x in [0,m) with a*x congruent b modulo m.","contract_signature":"x","evaluation_group":"s3-numerics-linear-congruence-solutions","failed_approach":"The partial repair b%m != 0 still violates the solvability invariant.","family":"s3-numerics-linear-congruence-solutions-solvability","id":"FA-14366","implementations":{"attempt":{"sha256":"cf8a655e7e0c2fc3eb2a9fbdbb13ab6532f0f8e65a79b59ba7ed6774d373fe84","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport itertools\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    a,b,m=x\n    g=math.gcd(a,m)\n    if b%m != 0: return []\n    q=m//g\n    r=((b//g)*pow(a//g,-1,q))%q if q>1 else 0\n    return sorted(r+k*q for k in range(g))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([1, -6, 1], [0]), ([1, -6, 4], [2]), ([11, 6, 12], [6]), ([1, -6, 2], [0]), ([1, -6, 3], [0]), ([1, -6, 5], [4]), ([1, -6, 6], [0]), ([1, -6, 7], [1])], [([1, -6, 2], [0]), ([1, -6, 8], [2]), ([1, -6, 1], [0]), ([11, 6, 12], [6]), ([1, -5, 6], [1]), ([1, -5, 7], [2]), ([1, -5, 8], [3]), ([1, -5, 9], [4])], [([1, -6, 3], [0]), ([1, -6, 11], [5]), ([1, -6, 1], [0]), ([11, 6, 12], [6]), ([1, -4, 11], [7]), ([1, -4, 12], [8]), ([1, -3, 1], [0]), ([1, -3, 2], [1])], [([1, -6, 4], [2]), ([1, -5, 3], [1]), ([1, -6, 1], [0]), ([11, 6, 12], [6]), ([1, -2, 4], [2]), ([1, -2, 5], [3]), ([1, -2, 6], [4]), ([1, -2, 7], [5])], [([1, -6, 5], [4]), ([1, -5, 7], [2]), ([1, -6, 1], [0]), ([11, 6, 12], [6]), ([1, -1, 9], [8]), ([1, -1, 10], [9]), ([1, -1, 11], [10]), ([1, -1, 12], [11])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"explicit oracle %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":"b3a532a22af9d570aa97fef4493209d9f42ffe8e6c8e80891aaa1f97fe312e49","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport itertools\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    a,b,m=x\n    g=math.gcd(a,m)\n    if b != 0: return []\n    q=m//g\n    r=((b//g)*pow(a//g,-1,q))%q if q>1 else 0\n    return sorted(r+k*q for k in range(g))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([1, -6, 1], [0]), ([1, -6, 4], [2]), ([11, 6, 12], [6]), ([1, -6, 2], [0]), ([1, -6, 3], [0]), ([1, -6, 5], [4]), ([1, -6, 6], [0]), ([1, -6, 7], [1])], [([1, -6, 2], [0]), ([1, -6, 8], [2]), ([1, -6, 1], [0]), ([11, 6, 12], [6]), ([1, -5, 6], [1]), ([1, -5, 7], [2]), ([1, -5, 8], [3]), ([1, -5, 9], [4])], [([1, -6, 3], [0]), ([1, -6, 11], [5]), ([1, -6, 1], [0]), ([11, 6, 12], [6]), ([1, -4, 11], [7]), ([1, -4, 12], [8]), ([1, -3, 1], [0]), ([1, -3, 2], [1])], [([1, -6, 4], [2]), ([1, -5, 3], [1]), ([1, -6, 1], [0]), ([11, 6, 12], [6]), ([1, -2, 4], [2]), ([1, -2, 5], [3]), ([1, -2, 6], [4]), ([1, -2, 7], [5])], [([1, -6, 5], [4]), ([1, -5, 7], [2]), ([1, -6, 1], [0]), ([11, 6, 12], [6]), ([1, -1, 9], [8]), ([1, -1, 10], [9]), ([1, -1, 11], [10]), ([1, -1, 12], [11])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"explicit oracle %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":"A deterministic bounded teaching model. Inputs are restricted to the explicit contract; this is not a production algebra library. 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":"s3-numerics-linear-congruence-solutions-solvability","generated_at":"2026-09-29T14:39:16.223138+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Exact discrete arithmetic with observable algorithmic state; no floating point approximation is used.","root_cause":"The solvability step uses b != 0 instead of b%g != 0.","sha256":"681029457eaa872caf9daf6326c1474f9cdc4e56e61111337d14eae34f4c87f0","title":"Linear congruence solutions: solvability · 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":45.951,"exit_code":1,"observations":[{"actual":[0],"check":"explicit oracle 0","expected":[0],"passed":true},{"actual":[],"check":"explicit oracle 1","expected":[2],"passed":false},{"actual":[],"check":"explicit oracle 2","expected":[6],"passed":false},{"actual":[0],"check":"explicit oracle 3","expected":[0],"passed":true},{"actual":[0],"check":"explicit oracle 4","expected":[0],"passed":true},{"actual":[],"check":"explicit oracle 5","expected":[4],"passed":false},{"actual":[0],"check":"explicit oracle 6","expected":[0],"passed":true},{"actual":[],"check":"explicit oracle 7","expected":[1],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": [0], \"expected\": [0], \"passed\": true}, {\"check\": \"explicit oracle 1\", \"actual\": [], \"expected\": [2], \"passed\": false}, {\"check\": \"explicit oracle 2\", \"actual\": [], \"expected\": [6], \"passed\": false}, {\"check\": \"explicit oracle 3\", \"actual\": [0], \"expected\": [0], \"passed\": true}, {\"check\": \"explicit oracle 4\", \"actual\": [0], \"expected\": [0], \"passed\": true}, {\"check\": \"explicit oracle 5\", \"actual\": [], \"expected\": [4], \"passed\": false}, {\"check\": \"explicit oracle 6\", \"actual\": [0], \"expected\": [0], \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": [], \"expected\": [1], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":45.059,"exit_code":1,"observations":[{"actual":[],"check":"explicit oracle 0","expected":[0],"passed":false},{"actual":[],"check":"explicit oracle 1","expected":[2],"passed":false},{"actual":[],"check":"explicit oracle 2","expected":[6],"passed":false},{"actual":[],"check":"explicit oracle 3","expected":[0],"passed":false},{"actual":[],"check":"explicit oracle 4","expected":[0],"passed":false},{"actual":[],"check":"explicit oracle 5","expected":[4],"passed":false},{"actual":[],"check":"explicit oracle 6","expected":[0],"passed":false},{"actual":[],"check":"explicit oracle 7","expected":[1],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": [], \"expected\": [0], \"passed\": false}, {\"check\": \"explicit oracle 1\", \"actual\": [], \"expected\": [2], \"passed\": false}, {\"check\": \"explicit oracle 2\", \"actual\": [], \"expected\": [6], \"passed\": false}, {\"check\": \"explicit oracle 3\", \"actual\": [], \"expected\": [0], \"passed\": false}, {\"check\": \"explicit oracle 4\", \"actual\": [], \"expected\": [0], \"passed\": false}, {\"check\": \"explicit oracle 5\", \"actual\": [], \"expected\": [4], \"passed\": false}, {\"check\": \"explicit oracle 6\", \"actual\": [], \"expected\": [0], \"passed\": false}, {\"check\": \"explicit oracle 7\", \"actual\": [], \"expected\": [1], \"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."}}