{"abstract":"Ties choose the higher bin and Mc is overstated.","category":"Seismic magnitude estimation","checks":8,"contract":"Magnitudes in hundredths are binned to 0.1 by rounding half up (floor((m+5)/10) tenths). Mc is the bin with the highest count (ties: lowest bin) plus a 0.2 correction. Return Mc in magnitude units rounded 0.1, or None when empty.","contract_signature":"mags_x100","evaluation_group":"w2-seismic_magnitude_estimation-max-curvature-mc","failed_approach":"Taking the first bin in insertion order depends on catalogue order.","family":"w2-seismic_magnitude_estimation-max-curvature-mc-tie-break-direction","id":"FA-71521","implementations":{"attempt":{"sha256":"70654619661e1141d346342b67d2299e8872a96609f443dfb2042a50b7c19cb1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(mags_x100):\n    if not mags_x100:\n        return None\n    counts = {}\n    for m in mags_x100:\n        b = (m + 5) // 10\n        counts[b] = counts.get(b, 0) + 1\n    best = max(counts.values())\n    mode = next(k for k, c in counts.items() if c == best)\n    return round((mode + 2) / 10, 1)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['raw catalogue 0', [[16]], 0.4], ['raw catalogue 1', [[25, 145, 55, 150, 150, 145, 15]], 1.7], ['raw catalogue 2', [[15, 15, 25, 45, 14, -12, 24, 24, 35, 35, 55, 145, 145]], 0.4], ['raw catalogue 3', [[150, -12, 45, 24, -12, 55, 35, 55, 145]], 0.1], ['raw catalogue 4', [[15]], 0.4], ['raw catalogue 5', [[-5, 24, 55]], 0.2], ['raw catalogue 6', [[26, 25, 145, -5, 14, 155, 26, -5, 145]], 0.5], ['raw catalogue 7', [[26, 15]], 0.4]], [['raw catalogue 7', [[26, 15]], 0.4], ['raw catalogue 8', [[155, 35, 16]], 0.4], ['raw catalogue 9', [[55, 14, -5, 5, 155, 26, 55]], 0.3], ['raw catalogue 10', [[45, 24, 5, 16, 155]], 0.4], ['raw catalogue 11', [[35, 35, 15, 55, 35]], 0.6], ['raw catalogue 12', [[25, 145, 150]], 1.7], ['raw catalogue 13', [[55, -5, 150, 24, 35, 150]], 1.7], ['raw catalogue 22', [[25, 16, 35, 5, 25, 5, 55, -5]], 0.3]], [['raw catalogue 9', [[55, 14, -5, 5, 155, 26, 55]], 0.3], ['raw catalogue 14', [[5, 14, 16, 55]], 0.3], ['raw catalogue 15', [[45, 55, 15, 26, 45, 15]], 0.4], ['raw catalogue 16', [[16, 5, 15, 35, 15, 5, 150, 16, 5, 16]], 0.4], ['raw catalogue 17', [[25, 45, 45, 14, 145, 15, 14, 45, 45, 150, 155, 155, 14, 16]], 0.7], ['raw catalogue 18', [[155, -5, 15, 155, 155, 35, 24, -5, 16, 16, -5, 55]], 0.4], ['raw catalogue 19', [[14]], 0.3], ['raw catalogue 20', [[14, -5]], 0.2]], [['raw catalogue 3', [[150, -12, 45, 24, -12, 55, 35, 55, 145]], 0.1], ['raw catalogue 21', [[45, 45, 15]], 0.7], ['raw catalogue 22', [[25, 16, 35, 5, 25, 5, 55, -5]], 0.3], ['raw catalogue 23', [[5, 150, 145, 24, 45, 145, 155, 145, 55, -12, 25, 15]], 1.7], ['raw catalogue 24', [[-12, 25, 15, 14]], 0.1], ['raw catalogue 25', [[15, 145, 26, 16, 45, 15]], 0.4], ['raw catalogue 26', [[5, 5, 5, 45, 26, 15]], 0.3], ['raw catalogue 28', [[35, 145]], 0.6]], [['raw catalogue 20', [[14, -5]], 0.2], ['raw catalogue 28', [[35, 145]], 0.6], ['raw catalogue 29', [[25, 35, -12, 5, 55, 150, 155, 45, -12, 5]], 0.1], ['raw catalogue 30', [[15]], 0.4], ['raw catalogue 31', [[16]], 0.4], ['raw catalogue 32', [[35, 5, 150, -12]], 0.1], ['raw catalogue 33', [[24, 55, 25, 150, 155, 35, 45, 26, 15]], 0.4], ['tie between bins', [[14, 15, 24, 25]], 0.4]]]\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":"207c8fd3524a62c6b29f977b435d5c87f8b424b16d1b3b7e0f4815411228cbae","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(mags_x100):\n    if not mags_x100:\n        return None\n    counts = {}\n    for m in mags_x100:\n        b = (m + 5) // 10\n        counts[b] = counts.get(b, 0) + 1\n    best = max(counts.values())\n    mode = max(k for k, c in counts.items() if c == best)\n    return round((mode + 2) / 10, 1)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['raw catalogue 0', [[16]], 0.4], ['raw catalogue 1', [[25, 145, 55, 150, 150, 145, 15]], 1.7], ['raw catalogue 2', [[15, 15, 25, 45, 14, -12, 24, 24, 35, 35, 55, 145, 145]], 0.4], ['raw catalogue 3', [[150, -12, 45, 24, -12, 55, 35, 55, 145]], 0.1], ['raw catalogue 4', [[15]], 0.4], ['raw catalogue 5', [[-5, 24, 55]], 0.2], ['raw catalogue 6', [[26, 25, 145, -5, 14, 155, 26, -5, 145]], 0.5], ['raw catalogue 7', [[26, 15]], 0.4]], [['raw catalogue 7', [[26, 15]], 0.4], ['raw catalogue 8', [[155, 35, 16]], 0.4], ['raw catalogue 9', [[55, 14, -5, 5, 155, 26, 55]], 0.3], ['raw catalogue 10', [[45, 24, 5, 16, 155]], 0.4], ['raw catalogue 11', [[35, 35, 15, 55, 35]], 0.6], ['raw catalogue 12', [[25, 145, 150]], 1.7], ['raw catalogue 13', [[55, -5, 150, 24, 35, 150]], 1.7], ['raw catalogue 22', [[25, 16, 35, 5, 25, 5, 55, -5]], 0.3]], [['raw catalogue 9', [[55, 14, -5, 5, 155, 26, 55]], 0.3], ['raw catalogue 14', [[5, 14, 16, 55]], 0.3], ['raw catalogue 15', [[45, 55, 15, 26, 45, 15]], 0.4], ['raw catalogue 16', [[16, 5, 15, 35, 15, 5, 150, 16, 5, 16]], 0.4], ['raw catalogue 17', [[25, 45, 45, 14, 145, 15, 14, 45, 45, 150, 155, 155, 14, 16]], 0.7], ['raw catalogue 18', [[155, -5, 15, 155, 155, 35, 24, -5, 16, 16, -5, 55]], 0.4], ['raw catalogue 19', [[14]], 0.3], ['raw catalogue 20', [[14, -5]], 0.2]], [['raw catalogue 3', [[150, -12, 45, 24, -12, 55, 35, 55, 145]], 0.1], ['raw catalogue 21', [[45, 45, 15]], 0.7], ['raw catalogue 22', [[25, 16, 35, 5, 25, 5, 55, -5]], 0.3], ['raw catalogue 23', [[5, 150, 145, 24, 45, 145, 155, 145, 55, -12, 25, 15]], 1.7], ['raw catalogue 24', [[-12, 25, 15, 14]], 0.1], ['raw catalogue 25', [[15, 145, 26, 16, 45, 15]], 0.4], ['raw catalogue 26', [[5, 5, 5, 45, 26, 15]], 0.3], ['raw catalogue 28', [[35, 145]], 0.6]], [['raw catalogue 20', [[14, -5]], 0.2], ['raw catalogue 28', [[35, 145]], 0.6], ['raw catalogue 29', [[25, 35, -12, 5, 55, 150, 155, 45, -12, 5]], 0.1], ['raw catalogue 30', [[15]], 0.4], ['raw catalogue 31', [[16]], 0.4], ['raw catalogue 32', [[35, 5, 150, -12]], 0.1], ['raw catalogue 33', [[24, 55, 25, 150, 155, 35, 45, 26, 15]], 0.4], ['tie between bins', [[14, 15, 24, 25]], 0.4]]]\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":"Stipulated deterministic teaching model of a seismological magnitude procedure; constants and tables are fixed by the contract and no claim of agency or standards conformance is made. 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-seismic_magnitude_estimation-max-curvature-mc-tie-break-direction","generated_at":"2026-09-29T14:48:30.373471+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Completeness magnitude determines which events enter rate and b-value estimates.","root_cause":"Tied modal bins resolve to the largest magnitude.","sha256":"f5b380c0cca8850735af859bc7a2064e1b079078604fd7c09df673a6dabeb2e7","title":"Maximum-curvature completeness magnitude: tie-break direction · 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":37.778,"exit_code":1,"observations":[{"actual":0.4,"check":"raw catalogue 0","expected":0.4,"passed":true},{"actual":1.7,"check":"raw catalogue 1","expected":1.7,"passed":true},{"actual":0.4,"check":"raw catalogue 2","expected":0.4,"passed":true},{"actual":1.7,"check":"raw catalogue 3","expected":0.1,"passed":false},{"actual":0.4,"check":"raw catalogue 4","expected":0.4,"passed":true},{"actual":0.2,"check":"raw catalogue 5","expected":0.2,"passed":true},{"actual":0.5,"check":"raw catalogue 6","expected":0.5,"passed":true},{"actual":0.5,"check":"raw catalogue 7","expected":0.4,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"raw catalogue 0\", \"actual\": 0.4, \"expected\": 0.4, \"passed\": true}, {\"check\": \"raw catalogue 1\", \"actual\": 1.7, \"expected\": 1.7, \"passed\": true}, {\"check\": \"raw catalogue 2\", \"actual\": 0.4, \"expected\": 0.4, \"passed\": true}, {\"check\": \"raw catalogue 3\", \"actual\": 1.7, \"expected\": 0.1, \"passed\": false}, {\"check\": \"raw catalogue 4\", \"actual\": 0.4, \"expected\": 0.4, \"passed\": true}, {\"check\": \"raw catalogue 5\", \"actual\": 0.2, \"expected\": 0.2, \"passed\": true}, {\"check\": \"raw catalogue 6\", \"actual\": 0.5, \"expected\": 0.5, \"passed\": true}, {\"check\": \"raw catalogue 7\", \"actual\": 0.5, \"expected\": 0.4, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.835,"exit_code":1,"observations":[{"actual":0.4,"check":"raw catalogue 0","expected":0.4,"passed":true},{"actual":1.7,"check":"raw catalogue 1","expected":1.7,"passed":true},{"actual":0.4,"check":"raw catalogue 2","expected":0.4,"passed":true},{"actual":1.7,"check":"raw catalogue 3","expected":0.1,"passed":false},{"actual":0.4,"check":"raw catalogue 4","expected":0.4,"passed":true},{"actual":0.8,"check":"raw catalogue 5","expected":0.2,"passed":false},{"actual":0.5,"check":"raw catalogue 6","expected":0.5,"passed":true},{"actual":0.5,"check":"raw catalogue 7","expected":0.4,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"raw catalogue 0\", \"actual\": 0.4, \"expected\": 0.4, \"passed\": true}, {\"check\": \"raw catalogue 1\", \"actual\": 1.7, \"expected\": 1.7, \"passed\": true}, {\"check\": \"raw catalogue 2\", \"actual\": 0.4, \"expected\": 0.4, \"passed\": true}, {\"check\": \"raw catalogue 3\", \"actual\": 1.7, \"expected\": 0.1, \"passed\": false}, {\"check\": \"raw catalogue 4\", \"actual\": 0.4, \"expected\": 0.4, \"passed\": true}, {\"check\": \"raw catalogue 5\", \"actual\": 0.8, \"expected\": 0.2, \"passed\": false}, {\"check\": \"raw catalogue 6\", \"actual\": 0.5, \"expected\": 0.5, \"passed\": true}, {\"check\": \"raw catalogue 7\", \"actual\": 0.5, \"expected\": 0.4, \"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."}}