{"abstract":"Residential deliveries in surcharge areas are billed the commercial area fee.","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":"Applying the uplift to commercial deliveries overcharges businesses.","family":"w2-shipping-zone-surcharge-stack-residential-area-uplift","id":"FA-95436","implementations":{"attempt":{"sha256":"7262fa225b44224f848b81af4f96c598c2b35c8a613519b9f5fe030c153cad94","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 das != 'NONE':\n        das_fee += 100\n    subject = base + res + das_fee\n    fuel = (subject * fuel_bp + 5000) // 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 = [[['residential ext uplift', [1000, True, 'EXT', 0, 1000], [216, 0, 2376]], ['generated mix 2', [1000, False, 'EXT', 50, 1000], [151, 0, 1661]], ['commercial das', [1000, False, 'DAS', 0, 1500], [209, 0, 1604]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['declared exactly 100', [2000, False, 'NONE', 100, 1000], [200, 0, 2200]], ['half cent up', [1000, False, 'NONE', 0, 1250], [125, 0, 1125]], ['generated mix 7', [2345, False, 'DAS', 0, 1850], [507, 0, 3247]], ['generated mix 15', [2000, False, 'DAS', 101, 1625], [389, 105, 2889]]], [['generated mix 14', [2345, True, 'EXT', 1000, 1250], [438, 945, 4888]], ['generated mix 12', [4000, False, 'DAS', 0, 1850], [813, 0, 5208]], ['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 19', [1000, False, 'DAS', 50, 1500], [209, 0, 1604]]], [['generated mix 33', [2000, True, 'EXT', 101, 1850], [585, 105, 3850]], ['generated mix 27', [1234, False, 'EXT', 101, 1625], [283, 105, 2132]], ['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 29', [1500, True, 'NONE', 50, 1625], [333, 0, 2383]]], [['generated mix 57', [2000, True, 'DAS', 100, 1250], [381, 0, 3426]], ['generated mix 37', [2345, False, 'DAS', 1000, 1625], [445, 945, 4130]], ['half cent up', [1000, False, 'NONE', 0, 1250], [125, 0, 1125]], ['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 40', [1000, True, 'EXT', 50, 1000], [216, 0, 2376]]], [['residential ext uplift', [1000, True, 'EXT', 0, 1000], [216, 0, 2376]], ['generated mix 49', [4000, False, 'EXT', 200, 1500], [677, 105, 5292]], ['commercial das', [1000, False, 'DAS', 0, 1500], [209, 0, 1604]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['declared exactly 100', [2000, False, 'NONE', 100, 1000], [200, 0, 2200]], ['generated mix 42', [4000, False, 'EXT', 200, 1250], [564, 105, 5179]], ['generated mix 51', [2345, False, 'NONE', 250, 1625], [381, 210, 2936]], ['generated mix 59', [4000, True, 'EXT', 50, 1250], [645, 0, 5805]]]]\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":"7dff8f18546d63aad9ad7714540c48059192169edd37786f330f9c6319f24f1e","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    subject = base + res + das_fee\n    fuel = (subject * fuel_bp + 5000) // 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 = [[['residential ext uplift', [1000, True, 'EXT', 0, 1000], [216, 0, 2376]], ['generated mix 2', [1000, False, 'EXT', 50, 1000], [151, 0, 1661]], ['commercial das', [1000, False, 'DAS', 0, 1500], [209, 0, 1604]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['declared exactly 100', [2000, False, 'NONE', 100, 1000], [200, 0, 2200]], ['half cent up', [1000, False, 'NONE', 0, 1250], [125, 0, 1125]], ['generated mix 7', [2345, False, 'DAS', 0, 1850], [507, 0, 3247]], ['generated mix 15', [2000, False, 'DAS', 101, 1625], [389, 105, 2889]]], [['generated mix 14', [2345, True, 'EXT', 1000, 1250], [438, 945, 4888]], ['generated mix 12', [4000, False, 'DAS', 0, 1850], [813, 0, 5208]], ['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 19', [1000, False, 'DAS', 50, 1500], [209, 0, 1604]]], [['generated mix 33', [2000, True, 'EXT', 101, 1850], [585, 105, 3850]], ['generated mix 27', [1234, False, 'EXT', 101, 1625], [283, 105, 2132]], ['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 29', [1500, True, 'NONE', 50, 1625], [333, 0, 2383]]], [['generated mix 57', [2000, True, 'DAS', 100, 1250], [381, 0, 3426]], ['generated mix 37', [2345, False, 'DAS', 1000, 1625], [445, 945, 4130]], ['half cent up', [1000, False, 'NONE', 0, 1250], [125, 0, 1125]], ['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 40', [1000, True, 'EXT', 50, 1000], [216, 0, 2376]]], [['residential ext uplift', [1000, True, 'EXT', 0, 1000], [216, 0, 2376]], ['generated mix 49', [4000, False, 'EXT', 200, 1500], [677, 105, 5292]], ['commercial das', [1000, False, 'DAS', 0, 1500], [209, 0, 1604]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['declared exactly 100', [2000, False, 'NONE', 100, 1000], [200, 0, 2200]], ['generated mix 42', [4000, False, 'EXT', 200, 1250], [564, 105, 5179]], ['generated mix 51', [2345, False, 'NONE', 250, 1625], [381, 210, 2936]], ['generated mix 59', [4000, True, 'EXT', 50, 1250], [645, 0, 5805]]]]\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-residential-area-uplift","generated_at":"2026-09-29T14:52:13.640387+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 residential uplift on delivery area surcharges is not applied.","sha256":"c52bf2ce3cf226d1b68b53058c017401ef5f297c743f59ab81ed3a8d40aaa6b4","title":"Surcharges: residential area uplift missing · 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":41.85,"exit_code":1,"observations":[{"actual":[216,0,2376],"check":"residential ext uplift","expected":[216,0,2376],"passed":true},{"actual":[161,0,1771],"check":"generated mix 2","expected":[151,0,1661],"passed":false},{"actual":[224,0,1719],"check":"commercial das","expected":[209,0,1604],"passed":false},{"actual":[127,0,1139],"check":"fuel exact half","expected":[127,0,1139],"passed":true},{"actual":[200,0,2200],"check":"declared exactly 100","expected":[200,0,2200],"passed":true},{"actual":[125,0,1125],"check":"half cent up","expected":[125,0,1125],"passed":true},{"actual":[525,0,3365],"check":"generated mix 7","expected":[507,0,3247],"passed":false},{"actual":[405,105,3005],"check":"generated mix 15","expected":[389,105,2889],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"residential ext uplift\", \"actual\": [216, 0, 2376], \"expected\": [216, 0, 2376], \"passed\": true}, {\"check\": \"generated mix 2\", \"actual\": [161, 0, 1771], \"expected\": [151, 0, 1661], \"passed\": false}, {\"check\": \"commercial das\", \"actual\": [224, 0, 1719], \"expected\": [209, 0, 1604], \"passed\": false}, {\"check\": \"fuel exact half\", \"actual\": [127, 0, 1139], \"expected\": [127, 0, 1139], \"passed\": true}, {\"check\": \"declared exactly 100\", \"actual\": [200, 0, 2200], \"expected\": [200, 0, 2200], \"passed\": true}, {\"check\": \"half cent up\", \"actual\": [125, 0, 1125], \"expected\": [125, 0, 1125], \"passed\": true}, {\"check\": \"generated mix 7\", \"actual\": [525, 0, 3365], \"expected\": [507, 0, 3247], \"passed\": false}, {\"check\": \"generated mix 15\", \"actual\": [405, 105, 3005], \"expected\": [389, 105, 2889], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.417,"exit_code":1,"observations":[{"actual":[206,0,2266],"check":"residential ext uplift","expected":[216,0,2376],"passed":false},{"actual":[151,0,1661],"check":"generated mix 2","expected":[151,0,1661],"passed":true},{"actual":[209,0,1604],"check":"commercial das","expected":[209,0,1604],"passed":true},{"actual":[127,0,1139],"check":"fuel exact half","expected":[127,0,1139],"passed":true},{"actual":[200,0,2200],"check":"declared exactly 100","expected":[200,0,2200],"passed":true},{"actual":[125,0,1125],"check":"half cent up","expected":[125,0,1125],"passed":true},{"actual":[507,0,3247],"check":"generated mix 7","expected":[507,0,3247],"passed":true},{"actual":[389,105,2889],"check":"generated mix 15","expected":[389,105,2889],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"residential ext uplift\", \"actual\": [206, 0, 2266], \"expected\": [216, 0, 2376], \"passed\": false}, {\"check\": \"generated mix 2\", \"actual\": [151, 0, 1661], \"expected\": [151, 0, 1661], \"passed\": true}, {\"check\": \"commercial das\", \"actual\": [209, 0, 1604], \"expected\": [209, 0, 1604], \"passed\": true}, {\"check\": \"fuel exact half\", \"actual\": [127, 0, 1139], \"expected\": [127, 0, 1139], \"passed\": true}, {\"check\": \"declared exactly 100\", \"actual\": [200, 0, 2200], \"expected\": [200, 0, 2200], \"passed\": true}, {\"check\": \"half cent up\", \"actual\": [125, 0, 1125], \"expected\": [125, 0, 1125], \"passed\": true}, {\"check\": \"generated mix 7\", \"actual\": [507, 0, 3247], \"expected\": [507, 0, 3247], \"passed\": true}, {\"check\": \"generated mix 15\", \"actual\": [389, 105, 2889], \"expected\": [389, 105, 2889], \"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."}}