{"abstract":"Every declared dollar is charged, including the free first $100.","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].","evaluation_group":"w2-shipping-zone-surcharge-stack","failed_approach":"Charging the whole value once it exceeds $100 still ignores the allowance.","family":"w2-shipping-zone-surcharge-stack-declared-free-allowance","id":"FA-95441","implementations":{"attempt":{"sha256":"ba1f02cdbafa9108f12939b868791f92baff203ca274f0177ae0294ad405c913","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 + 5000) // 10000\n    excess = declared if declared > 100 else 0\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 = [[['declared part hundred', [2000, False, 'NONE', 101, 1000], [200, 105, 2305]], ['declared 250', [2000, True, 'NONE', 250, 1000], [255, 210, 3015]], ['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]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['generated mix 8', [1234, False, 'DAS', 200, 1250], [204, 105, 1938]]], [['generated mix 8', [1234, False, 'DAS', 200, 1250], [204, 105, 1938]], ['generated mix 14', [2345, True, 'EXT', 1000, 1250], [438, 945, 4888]], ['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 10', [1000, False, 'DAS', 50, 1850], [258, 0, 1653]], ['generated mix 19', [1000, False, 'DAS', 50, 1500], [209, 0, 1604]]], [['generated mix 16', [1500, True, 'DAS', 200, 1250], [318, 105, 2968]], ['generated mix 20', [1000, True, 'DAS', 250, 1500], [307, 210, 2562]], ['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 22', [1234, True, 'EXT', 1000, 1625], [389, 945, 3728]], ['generated mix 30', [2345, False, 'DAS', 250, 1250], [343, 210, 3293]]], [['generated mix 23', [2000, False, 'EXT', 100, 1850], [464, 0, 2974]], ['generated mix 27', [1234, False, 'EXT', 101, 1625], [283, 105, 2132]], ['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 33', [2000, True, 'EXT', 101, 1850], [585, 105, 3850]], ['generated mix 41', [1234, True, 'EXT', 101, 1850], [443, 105, 2942]]], [['generated mix 30', [2345, False, 'DAS', 250, 1250], [343, 210, 3293]], ['generated mix 36', [2000, False, 'NONE', 150, 1250], [250, 105, 2355]], ['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 44', [2345, False, 'EXT', 0, 1850], [528, 0, 3383]], ['generated mix 52', [1500, True, 'NONE', 1000, 1250], [256, 945, 3251]]]]\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":"2e8112a94b8d5565e90508faa4790ea90a625655d4e3de39086fe463caa983cc","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 + 5000) // 10000\n    excess = declared\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 = [[['declared part hundred', [2000, False, 'NONE', 101, 1000], [200, 105, 2305]], ['declared 250', [2000, True, 'NONE', 250, 1000], [255, 210, 3015]], ['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]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['generated mix 8', [1234, False, 'DAS', 200, 1250], [204, 105, 1938]]], [['generated mix 8', [1234, False, 'DAS', 200, 1250], [204, 105, 1938]], ['generated mix 14', [2345, True, 'EXT', 1000, 1250], [438, 945, 4888]], ['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 10', [1000, False, 'DAS', 50, 1850], [258, 0, 1653]], ['generated mix 19', [1000, False, 'DAS', 50, 1500], [209, 0, 1604]]], [['generated mix 16', [1500, True, 'DAS', 200, 1250], [318, 105, 2968]], ['generated mix 20', [1000, True, 'DAS', 250, 1500], [307, 210, 2562]], ['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 22', [1234, True, 'EXT', 1000, 1625], [389, 945, 3728]], ['generated mix 30', [2345, False, 'DAS', 250, 1250], [343, 210, 3293]]], [['generated mix 23', [2000, False, 'EXT', 100, 1850], [464, 0, 2974]], ['generated mix 27', [1234, False, 'EXT', 101, 1625], [283, 105, 2132]], ['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 33', [2000, True, 'EXT', 101, 1850], [585, 105, 3850]], ['generated mix 41', [1234, True, 'EXT', 101, 1850], [443, 105, 2942]]], [['generated mix 30', [2345, False, 'DAS', 250, 1250], [343, 210, 3293]], ['generated mix 36', [2000, False, 'NONE', 150, 1250], [250, 105, 2355]], ['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 44', [2345, False, 'EXT', 0, 1850], [528, 0, 3383]], ['generated mix 52', [1500, True, 'NONE', 1000, 1250], [256, 945, 3251]]]]\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"},"fixed":{"sha256":"8ef6cfe3def5c6c60ea5bff56ced7922b51e35fce8bc97c0314d8cd3d96b140b","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 + 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 = [[['declared part hundred', [2000, False, 'NONE', 101, 1000], [200, 105, 2305]], ['declared 250', [2000, True, 'NONE', 250, 1000], [255, 210, 3015]], ['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]], ['fuel exact half', [1012, False, 'NONE', 0, 1250], [127, 0, 1139]], ['generated mix 8', [1234, False, 'DAS', 200, 1250], [204, 105, 1938]]], [['generated mix 8', [1234, False, 'DAS', 200, 1250], [204, 105, 1938]], ['generated mix 14', [2345, True, 'EXT', 1000, 1250], [438, 945, 4888]], ['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 10', [1000, False, 'DAS', 50, 1850], [258, 0, 1653]], ['generated mix 19', [1000, False, 'DAS', 50, 1500], [209, 0, 1604]]], [['generated mix 16', [1500, True, 'DAS', 200, 1250], [318, 105, 2968]], ['generated mix 20', [1000, True, 'DAS', 250, 1500], [307, 210, 2562]], ['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 22', [1234, True, 'EXT', 1000, 1625], [389, 945, 3728]], ['generated mix 30', [2345, False, 'DAS', 250, 1250], [343, 210, 3293]]], [['generated mix 23', [2000, False, 'EXT', 100, 1850], [464, 0, 2974]], ['generated mix 27', [1234, False, 'EXT', 101, 1625], [283, 105, 2132]], ['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 33', [2000, True, 'EXT', 101, 1850], [585, 105, 3850]], ['generated mix 41', [1234, True, 'EXT', 101, 1850], [443, 105, 2942]]], [['generated mix 30', [2345, False, 'DAS', 250, 1250], [343, 210, 3293]], ['generated mix 36', [2000, False, 'NONE', 150, 1250], [250, 105, 2355]], ['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 44', [2345, False, 'EXT', 0, 1850], [528, 0, 3383]], ['generated mix 52', [1500, True, 'NONE', 1000, 1250], [256, 945, 3251]]]]\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-declared-free-allowance","generated_at":"2026-09-29T14:52:13.718849+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.","repair":"Charge only for declared value above $100.","root_cause":"The $100 free allowance is not subtracted.","sha256":"5e95c419fa617d91637557daf4423cf97882bd04ae6407ba1823c357a40fa335","title":"Surcharges: free declared value not deducted · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.904,"exit_code":1,"observations":[{"actual":[200,210,2410],"check":"declared part hundred","expected":[200,105,2305],"passed":false},{"actual":[255,315,3120],"check":"declared 250","expected":[255,210,3015],"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":[127,0,1139],"check":"fuel exact half","expected":[127,0,1139],"passed":true},{"actual":[204,210,2043],"check":"generated mix 8","expected":[204,105,1938],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"declared part hundred\", \"actual\": [200, 210, 2410], \"expected\": [200, 105, 2305], \"passed\": false}, {\"check\": \"declared 250\", \"actual\": [255, 315, 3120], \"expected\": [255, 210, 3015], \"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\": \"fuel exact half\", \"actual\": [127, 0, 1139], \"expected\": [127, 0, 1139], \"passed\": true}, {\"check\": \"generated mix 8\", \"actual\": [204, 210, 2043], \"expected\": [204, 105, 1938], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.682,"exit_code":1,"observations":[{"actual":[200,210,2410],"check":"declared part hundred","expected":[200,105,2305],"passed":false},{"actual":[255,315,3120],"check":"declared 250","expected":[255,210,3015],"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,105,2305],"check":"declared exactly 100","expected":[200,0,2200],"passed":false},{"actual":[216,0,2376],"check":"residential ext uplift","expected":[216,0,2376],"passed":true},{"actual":[127,0,1139],"check":"fuel exact half","expected":[127,0,1139],"passed":true},{"actual":[204,210,2043],"check":"generated mix 8","expected":[204,105,1938],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"declared part hundred\", \"actual\": [200, 210, 2410], \"expected\": [200, 105, 2305], \"passed\": false}, {\"check\": \"declared 250\", \"actual\": [255, 315, 3120], \"expected\": [255, 210, 3015], \"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, 105, 2305], \"expected\": [200, 0, 2200], \"passed\": false}, {\"check\": \"residential ext uplift\", \"actual\": [216, 0, 2376], \"expected\": [216, 0, 2376], \"passed\": true}, {\"check\": \"fuel exact half\", \"actual\": [127, 0, 1139], \"expected\": [127, 0, 1139], \"passed\": true}, {\"check\": \"generated mix 8\", \"actual\": [204, 210, 2043], \"expected\": [204, 105, 1938], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.398,"exit_code":0,"observations":[{"actual":[200,105,2305],"check":"declared part hundred","expected":[200,105,2305],"passed":true},{"actual":[255,210,3015],"check":"declared 250","expected":[255,210,3015],"passed":true},{"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":[127,0,1139],"check":"fuel exact half","expected":[127,0,1139],"passed":true},{"actual":[204,105,1938],"check":"generated mix 8","expected":[204,105,1938],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"declared part hundred\", \"actual\": [200, 105, 2305], \"expected\": [200, 105, 2305], \"passed\": true}, {\"check\": \"declared 250\", \"actual\": [255, 210, 3015], \"expected\": [255, 210, 3015], \"passed\": true}, {\"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\": \"fuel exact half\", \"actual\": [127, 0, 1139], \"expected\": [127, 0, 1139], \"passed\": true}, {\"check\": \"generated mix 8\", \"actual\": [204, 105, 1938], \"expected\": [204, 105, 1938], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}