{"abstract":"Fuel surcharges are a cent low on roughly half of shipments.","category":"Shipping rate zone lookup","checks":8,"contract":"Cents. Residential 550; delivery area DAS 395 or EXT 510, plus 100 when the delivery is residential. Fuel = fuel_bp basis points of (base + residential + delivery area), rounded half up to the cent. Declared value (whole dollars): first $100 free, then 105 cents per $100 or part. Return [fuel, declared_value_fee, total].","contract_signature":"base, residential, das, declared, fuel_bp","evaluation_group":"w2-shipping-zone-surcharge-stack","failed_approach":"Python round() rounds exact half cents to even.","family":"w2-shipping-zone-surcharge-stack-fuel-rounding","id":"FA-95431","implementations":{"attempt":{"sha256":"50f1be1e2758ac3664e8e711b1c53de276c6506ceed5711ef678d859e3425aa2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(base, residential, das, declared, fuel_bp):\n    res = 550 if residential else 0\n    das_fee = {'NONE': 0, 'DAS': 395, 'EXT': 510}[das]\n    if residential and das != 'NONE':\n        das_fee += 100\n    subject = base + res + das_fee\n    fuel = round(subject * fuel_bp / 10000)\n    excess = max(0, declared - 100)\n    dv = -(-excess // 100) * 105\n    return [fuel, dv, subject + fuel + dv]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['generated mix 30', [2345, False, 'DAS', 250, 1250], [343, 210, 3293]], ['commercial das', [1000, False, 'DAS', 0, 1500], [209, 0, 1604]], ['half cent up', [1000, False, 'NONE', 0, 1250], [125, 0, 1125]], ['declared exactly 100', [2000, False, 'NONE', 100, 1000], [200, 0, 2200]], ['residential ext uplift', [1000, True, 'EXT', 0, 1000], [216, 0, 2376]], ['generated mix 6', [1500, True, 'EXT', 100, 1500], [399, 0, 3059]], ['generated mix 14', [2345, True, 'EXT', 1000, 1250], [438, 945, 4888]]], [['generated mix 20', [1000, True, 'DAS', 250, 1500], [307, 210, 2562]], ['generated mix 67', [2345, False, 'DAS', 50, 1250], [343, 0, 3083]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['declared exactly 100', [2000, False, 'NONE', 100, 1000], [200, 0, 2200]], ['commercial das', [1000, False, 'DAS', 0, 1500], [209, 0, 1604]], ['half cent up', [1000, False, 'NONE', 0, 1250], [125, 0, 1125]], ['generated mix 9', [4000, True, 'EXT', 100, 1250], [645, 0, 5805]], ['generated mix 17', [2345, False, 'DAS', 250, 1625], [445, 210, 3395]]], [['generated mix 42', [4000, False, 'EXT', 200, 1250], [564, 105, 5179]], ['generated mix 49', [4000, False, 'EXT', 200, 1500], [677, 105, 5292]], ['declared 250', [2000, True, 'NONE', 250, 1000], [255, 210, 3015]], ['residential ext uplift', [1000, True, 'EXT', 0, 1000], [216, 0, 2376]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['declared exactly 100', [2000, False, 'NONE', 100, 1000], [200, 0, 2200]], ['generated mix 20', [1000, True, 'DAS', 250, 1500], [307, 210, 2562]], ['generated mix 28', [1234, False, 'EXT', 100, 1625], [283, 0, 2027]]], [['generated mix 66', [2345, False, 'EXT', 50, 1250], [357, 0, 3212]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['declared part hundred', [2000, False, 'NONE', 101, 1000], [200, 105, 2305]], ['declared 250', [2000, True, 'NONE', 250, 1000], [255, 210, 3015]], ['residential ext uplift', [1000, True, 'EXT', 0, 1000], [216, 0, 2376]], ['generated mix 31', [2345, True, 'DAS', 50, 1850], [627, 0, 4017]], ['generated mix 39', [1234, False, 'DAS', 101, 1500], [244, 105, 1978]], ['generated mix 47', [1000, False, 'NONE', 1000, 1850], [185, 945, 2130]]], [['generated mix 3', [2345, True, 'EXT', 50, 1500], [526, 0, 4031]], ['generated mix 64', [1000, False, 'EXT', 100, 1500], [227, 0, 1737]], ['declared exactly 100', [2000, False, 'NONE', 100, 1000], [200, 0, 2200]], ['commercial das', [1000, False, 'DAS', 0, 1500], [209, 0, 1604]], ['half cent up', [1000, False, 'NONE', 0, 1250], [125, 0, 1125]], ['declared part hundred', [2000, False, 'NONE', 101, 1000], [200, 105, 2305]], ['generated mix 43', [1000, True, 'EXT', 1000, 1625], [351, 945, 3456]], ['generated mix 51', [2345, False, 'NONE', 250, 1625], [381, 210, 2936]]]]\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":"e9e24ba12e28a6d37c6b191b1468133b075dea4d5fa521b4c2a0400ef26dc856","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(base, residential, das, declared, fuel_bp):\n    res = 550 if residential else 0\n    das_fee = {'NONE': 0, 'DAS': 395, 'EXT': 510}[das]\n    if residential and das != 'NONE':\n        das_fee += 100\n    subject = base + res + das_fee\n    fuel = subject * fuel_bp // 10000\n    excess = max(0, declared - 100)\n    dv = -(-excess // 100) * 105\n    return [fuel, dv, subject + fuel + dv]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['generated mix 30', [2345, False, 'DAS', 250, 1250], [343, 210, 3293]], ['commercial das', [1000, False, 'DAS', 0, 1500], [209, 0, 1604]], ['half cent up', [1000, False, 'NONE', 0, 1250], [125, 0, 1125]], ['declared exactly 100', [2000, False, 'NONE', 100, 1000], [200, 0, 2200]], ['residential ext uplift', [1000, True, 'EXT', 0, 1000], [216, 0, 2376]], ['generated mix 6', [1500, True, 'EXT', 100, 1500], [399, 0, 3059]], ['generated mix 14', [2345, True, 'EXT', 1000, 1250], [438, 945, 4888]]], [['generated mix 20', [1000, True, 'DAS', 250, 1500], [307, 210, 2562]], ['generated mix 67', [2345, False, 'DAS', 50, 1250], [343, 0, 3083]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['declared exactly 100', [2000, False, 'NONE', 100, 1000], [200, 0, 2200]], ['commercial das', [1000, False, 'DAS', 0, 1500], [209, 0, 1604]], ['half cent up', [1000, False, 'NONE', 0, 1250], [125, 0, 1125]], ['generated mix 9', [4000, True, 'EXT', 100, 1250], [645, 0, 5805]], ['generated mix 17', [2345, False, 'DAS', 250, 1625], [445, 210, 3395]]], [['generated mix 42', [4000, False, 'EXT', 200, 1250], [564, 105, 5179]], ['generated mix 49', [4000, False, 'EXT', 200, 1500], [677, 105, 5292]], ['declared 250', [2000, True, 'NONE', 250, 1000], [255, 210, 3015]], ['residential ext uplift', [1000, True, 'EXT', 0, 1000], [216, 0, 2376]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['declared exactly 100', [2000, False, 'NONE', 100, 1000], [200, 0, 2200]], ['generated mix 20', [1000, True, 'DAS', 250, 1500], [307, 210, 2562]], ['generated mix 28', [1234, False, 'EXT', 100, 1625], [283, 0, 2027]]], [['generated mix 66', [2345, False, 'EXT', 50, 1250], [357, 0, 3212]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['declared part hundred', [2000, False, 'NONE', 101, 1000], [200, 105, 2305]], ['declared 250', [2000, True, 'NONE', 250, 1000], [255, 210, 3015]], ['residential ext uplift', [1000, True, 'EXT', 0, 1000], [216, 0, 2376]], ['generated mix 31', [2345, True, 'DAS', 50, 1850], [627, 0, 4017]], ['generated mix 39', [1234, False, 'DAS', 101, 1500], [244, 105, 1978]], ['generated mix 47', [1000, False, 'NONE', 1000, 1850], [185, 945, 2130]]], [['generated mix 3', [2345, True, 'EXT', 50, 1500], [526, 0, 4031]], ['generated mix 64', [1000, False, 'EXT', 100, 1500], [227, 0, 1737]], ['declared exactly 100', [2000, False, 'NONE', 100, 1000], [200, 0, 2200]], ['commercial das', [1000, False, 'DAS', 0, 1500], [209, 0, 1604]], ['half cent up', [1000, False, 'NONE', 0, 1250], [125, 0, 1125]], ['declared part hundred', [2000, False, 'NONE', 101, 1000], [200, 105, 2305]], ['generated mix 43', [1000, True, 'EXT', 1000, 1625], [351, 945, 3456]], ['generated mix 51', [2345, False, 'NONE', 250, 1625], [381, 210, 2936]]]]\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 fee amounts and ordering. 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-shipping-zone-surcharge-stack-fuel-rounding","generated_at":"2026-09-29T14:52:13.640547+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Accessorials and fuel are layered on the zone rate in a fixed order.","root_cause":"The fuel amount is floor-divided instead of rounded half up.","sha256":"ffa2c651ccf935ed7c97a608450a8e0788c090b51943ee88ccdd19279f8f9268","title":"Surcharges: fuel cents truncated · 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":42.274,"exit_code":1,"observations":[{"actual":[126,0,1138],"check":"fuel exact half","expected":[127,0,1139],"passed":false},{"actual":[342,210,3292],"check":"generated mix 30","expected":[343,210,3293],"passed":false},{"actual":[209,0,1604],"check":"commercial das","expected":[209,0,1604],"passed":true},{"actual":[125,0,1125],"check":"half cent up","expected":[125,0,1125],"passed":true},{"actual":[200,0,2200],"check":"declared exactly 100","expected":[200,0,2200],"passed":true},{"actual":[216,0,2376],"check":"residential ext uplift","expected":[216,0,2376],"passed":true},{"actual":[399,0,3059],"check":"generated mix 6","expected":[399,0,3059],"passed":true},{"actual":[438,945,4888],"check":"generated mix 14","expected":[438,945,4888],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fuel exact half\", \"actual\": [126, 0, 1138], \"expected\": [127, 0, 1139], \"passed\": false}, {\"check\": \"generated mix 30\", \"actual\": [342, 210, 3292], \"expected\": [343, 210, 3293], \"passed\": false}, {\"check\": \"commercial das\", \"actual\": [209, 0, 1604], \"expected\": [209, 0, 1604], \"passed\": true}, {\"check\": \"half cent up\", \"actual\": [125, 0, 1125], \"expected\": [125, 0, 1125], \"passed\": true}, {\"check\": \"declared exactly 100\", \"actual\": [200, 0, 2200], \"expected\": [200, 0, 2200], \"passed\": true}, {\"check\": \"residential ext uplift\", \"actual\": [216, 0, 2376], \"expected\": [216, 0, 2376], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [399, 0, 3059], \"expected\": [399, 0, 3059], \"passed\": true}, {\"check\": \"generated mix 14\", \"actual\": [438, 945, 4888], \"expected\": [438, 945, 4888], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.93,"exit_code":1,"observations":[{"actual":[126,0,1138],"check":"fuel exact half","expected":[127,0,1139],"passed":false},{"actual":[342,210,3292],"check":"generated mix 30","expected":[343,210,3293],"passed":false},{"actual":[209,0,1604],"check":"commercial das","expected":[209,0,1604],"passed":true},{"actual":[125,0,1125],"check":"half cent up","expected":[125,0,1125],"passed":true},{"actual":[200,0,2200],"check":"declared exactly 100","expected":[200,0,2200],"passed":true},{"actual":[216,0,2376],"check":"residential ext uplift","expected":[216,0,2376],"passed":true},{"actual":[399,0,3059],"check":"generated mix 6","expected":[399,0,3059],"passed":true},{"actual":[438,945,4888],"check":"generated mix 14","expected":[438,945,4888],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fuel exact half\", \"actual\": [126, 0, 1138], \"expected\": [127, 0, 1139], \"passed\": false}, {\"check\": \"generated mix 30\", \"actual\": [342, 210, 3292], \"expected\": [343, 210, 3293], \"passed\": false}, {\"check\": \"commercial das\", \"actual\": [209, 0, 1604], \"expected\": [209, 0, 1604], \"passed\": true}, {\"check\": \"half cent up\", \"actual\": [125, 0, 1125], \"expected\": [125, 0, 1125], \"passed\": true}, {\"check\": \"declared exactly 100\", \"actual\": [200, 0, 2200], \"expected\": [200, 0, 2200], \"passed\": true}, {\"check\": \"residential ext uplift\", \"actual\": [216, 0, 2376], \"expected\": [216, 0, 2376], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [399, 0, 3059], \"expected\": [399, 0, 3059], \"passed\": true}, {\"check\": \"generated mix 14\", \"actual\": [438, 945, 4888], \"expected\": [438, 945, 4888], \"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."}}