{"abstract":"Magnitudes such as 1.46 fall in the 1.4 bin, shifting Mc down.","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":"Banker rounding sends exact halves like 2.5 to the even bin.","family":"w2-seismic_magnitude_estimation-max-curvature-mc-bin-assignment","id":"FA-71516","implementations":{"attempt":{"sha256":"17e78053b3f0900044fc448b90f6e480770d89dffdfc5855ac89725fb0f559bb","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 = round(m / 10)\n        counts[b] = counts.get(b, 0) + 1\n    best = max(counts.values())\n    mode = min(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 3', [[150, -12, 45, 24, -12, 55, 35, 55, 145]], 0.1], ['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 21', [[45, 45, 15]], 0.7]], [['raw catalogue 6', [[26, 25, 145, -5, 14, 155, 26, -5, 145]], 0.5], ['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], ['half bin', [[25, 25, 35]], 0.5]], [['raw catalogue 9', [[55, 14, -5, 5, 155, 26, 55]], 0.3], ['raw catalogue 14', [[5, 14, 16, 55]], 0.3], ['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 12', [[25, 145, 150]], 1.7], ['raw catalogue 24', [[-12, 25, 15, 14]], 0.1], ['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]]]\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":"2173110d672b3f4fb76a8b65b62a7fc30857a677755cf4ebccebeeae1ded3569","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 // 10\n        counts[b] = counts.get(b, 0) + 1\n    best = max(counts.values())\n    mode = min(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 3', [[150, -12, 45, 24, -12, 55, 35, 55, 145]], 0.1], ['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 21', [[45, 45, 15]], 0.7]], [['raw catalogue 6', [[26, 25, 145, -5, 14, 155, 26, -5, 145]], 0.5], ['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], ['half bin', [[25, 25, 35]], 0.5]], [['raw catalogue 9', [[55, 14, -5, 5, 155, 26, 55]], 0.3], ['raw catalogue 14', [[5, 14, 16, 55]], 0.3], ['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 12', [[25, 145, 150]], 1.7], ['raw catalogue 24', [[-12, 25, 15, 14]], 0.1], ['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]]]\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-bin-assignment","generated_at":"2026-09-29T14:48:30.367461+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":"Magnitudes are floored into bins instead of rounded.","sha256":"15e8ba990f5ad03b3e94cf7fcb93ba7e52c8ab7deb2e023a39ee080140e71035","title":"Maximum-curvature completeness magnitude: bin assignment · 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.641,"exit_code":1,"observations":[{"actual":0.4,"check":"raw catalogue 0","expected":0.4,"passed":true},{"actual":0.4,"check":"raw catalogue 1","expected":1.7,"passed":false},{"actual":0.4,"check":"raw catalogue 2","expected":0.4,"passed":true},{"actual":0.1,"check":"raw catalogue 3","expected":0.1,"passed":true},{"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.2,"check":"raw catalogue 6","expected":0.5,"passed":false},{"actual":0.4,"check":"raw catalogue 7","expected":0.4,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"raw catalogue 0\", \"actual\": 0.4, \"expected\": 0.4, \"passed\": true}, {\"check\": \"raw catalogue 1\", \"actual\": 0.4, \"expected\": 1.7, \"passed\": false}, {\"check\": \"raw catalogue 2\", \"actual\": 0.4, \"expected\": 0.4, \"passed\": true}, {\"check\": \"raw catalogue 3\", \"actual\": 0.1, \"expected\": 0.1, \"passed\": true}, {\"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.2, \"expected\": 0.5, \"passed\": false}, {\"check\": \"raw catalogue 7\", \"actual\": 0.4, \"expected\": 0.4, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.469,"exit_code":1,"observations":[{"actual":0.3,"check":"raw catalogue 0","expected":0.4,"passed":false},{"actual":1.6,"check":"raw catalogue 1","expected":1.7,"passed":false},{"actual":0.3,"check":"raw catalogue 2","expected":0.4,"passed":false},{"actual":0.0,"check":"raw catalogue 3","expected":0.1,"passed":false},{"actual":0.3,"check":"raw catalogue 4","expected":0.4,"passed":false},{"actual":0.1,"check":"raw catalogue 5","expected":0.2,"passed":false},{"actual":0.4,"check":"raw catalogue 6","expected":0.5,"passed":false},{"actual":0.3,"check":"raw catalogue 7","expected":0.4,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"raw catalogue 0\", \"actual\": 0.3, \"expected\": 0.4, \"passed\": false}, {\"check\": \"raw catalogue 1\", \"actual\": 1.6, \"expected\": 1.7, \"passed\": false}, {\"check\": \"raw catalogue 2\", \"actual\": 0.3, \"expected\": 0.4, \"passed\": false}, {\"check\": \"raw catalogue 3\", \"actual\": 0.0, \"expected\": 0.1, \"passed\": false}, {\"check\": \"raw catalogue 4\", \"actual\": 0.3, \"expected\": 0.4, \"passed\": false}, {\"check\": \"raw catalogue 5\", \"actual\": 0.1, \"expected\": 0.2, \"passed\": false}, {\"check\": \"raw catalogue 6\", \"actual\": 0.4, \"expected\": 0.5, \"passed\": false}, {\"check\": \"raw catalogue 7\", \"actual\": 0.3, \"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."}}