{"abstract":"Parcels are priced one cubic tier too low.","category":"Shipping rate zone lookup","checks":8,"contract":"dims inches, each rounded down to the quarter inch; weight lb. Eligible for cubic pricing when weight <= 20 and the longest rounded side <= 18. Cubic feet = product/1728, tier = tenths of a cubic foot rounded up (minimum 1); tiers above 5 are not cubic. Return [\"CUBIC\", tier] or [\"WEIGHT\", lb rounded up, minimum 1].","evaluation_group":"w2-shipping-zone-cubic-tiers","failed_approach":"Round-half-even keeps exact half tenths in the lower tier.","family":"w2-shipping-zone-cubic-tiers-tier-ceiling","id":"FA-95606","implementations":{"attempt":{"sha256":"00d2d0f1f13513ac70a16c968b58345293f1683704d17e96807c7fd811352659","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(dims, weight):\n    q = [Fraction(math.floor(d * 4), 4) for d in dims]\n    lb = max(1, math.ceil(weight))\n    if weight > 20 or max(q) > 18:\n        return ['WEIGHT', lb]\n    cf = q[0] * q[1] * q[2] / 1728\n    tenths = round(cf * 10)\n    if tenths > 5:\n        return ['WEIGHT', lb]\n    return ['CUBIC', max(1, tenths)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['small cube', [[6, 6, 6], 2], ['CUBIC', 2]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['one cubic foot', [[12, 12, 12], 5], ['WEIGHT', 5]], ['side exactly 18', [[18, 10, 4], 3], ['CUBIC', 5]], ['weight over 20', [[6, 6, 6], 20.5], ['WEIGHT', 21]], ['tier half', [[12, 12, 3], 1], ['CUBIC', 3]], ['quarter inch down', [[8.2, 8.2, 8.2], 2], ['CUBIC', 3]], ['generated mix 6', [[10, 18.2, 4.6], 7.3], ['CUBIC', 5]]], [['generated mix 3', [[8, 18, 3], 19.9], ['CUBIC', 3]], ['generated mix 4', [[3, 18.2, 4.6], 0.5], ['CUBIC', 2]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['weight 20', [[6, 6, 6], 20], ['CUBIC', 2]], ['tier over cap', [[10, 10, 10], 1], ['WEIGHT', 1]], ['one cubic foot', [[12, 12, 12], 5], ['WEIGHT', 5]], ['generated mix 9', [[18, 12, 6.3], 0.5], ['WEIGHT', 1]], ['generated mix 17', [[6, 19, 18], 19.9], ['WEIGHT', 20]]], [['generated mix 15', [[9.9, 10, 3], 0.5], ['CUBIC', 2]], ['generated mix 51', [[18.2, 10, 3], 2], ['CUBIC', 4]], ['weight over 20', [[6, 6, 6], 20.5], ['WEIGHT', 21]], ['tier half', [[12, 12, 3], 1], ['CUBIC', 3]], ['small cube', [[6, 6, 6], 2], ['CUBIC', 2]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['generated mix 19', [[18, 18, 6.3], 7.3], ['WEIGHT', 8]], ['generated mix 27', [[10, 8.2, 8], 20.5], ['WEIGHT', 21]]], [['generated mix 48', [[3, 6, 18], 7.3], ['CUBIC', 2]], ['side exactly 18', [[18, 10, 4], 3], ['CUBIC', 5]], ['small cube', [[6, 6, 6], 2], ['CUBIC', 2]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['weight over 20', [[6, 6, 6], 20.5], ['WEIGHT', 21]], ['tier half', [[12, 12, 3], 1], ['CUBIC', 3]], ['generated mix 30', [[18, 6.3, 6], 20.5], ['WEIGHT', 21]], ['generated mix 38', [[8.2, 10, 19], 0.5], ['WEIGHT', 1]]], [['generated mix 70', [[3, 12, 8.2], 20], ['CUBIC', 2]], ['generated mix 10', [[8, 6.3, 18.2], 7.3], ['WEIGHT', 8]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['weight 20', [[6, 6, 6], 20], ['CUBIC', 2]], ['tier over cap', [[10, 10, 10], 1], ['WEIGHT', 1]], ['one cubic foot', [[12, 12, 12], 5], ['WEIGHT', 5]], ['generated mix 41', [[18.2, 18.2, 8], 19.9], ['WEIGHT', 20]], ['generated mix 49', [[19, 6, 8.2], 0.5], ['WEIGHT', 1]]]]\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":"7314bb89ed0e1887acdfb09dcb2d600a53f32e61378d79527714f06f85c533e8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(dims, weight):\n    q = [Fraction(math.floor(d * 4), 4) for d in dims]\n    lb = max(1, math.ceil(weight))\n    if weight > 20 or max(q) > 18:\n        return ['WEIGHT', lb]\n    cf = q[0] * q[1] * q[2] / 1728\n    tenths = math.floor(cf * 10)\n    if tenths > 5:\n        return ['WEIGHT', lb]\n    return ['CUBIC', max(1, tenths)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['small cube', [[6, 6, 6], 2], ['CUBIC', 2]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['one cubic foot', [[12, 12, 12], 5], ['WEIGHT', 5]], ['side exactly 18', [[18, 10, 4], 3], ['CUBIC', 5]], ['weight over 20', [[6, 6, 6], 20.5], ['WEIGHT', 21]], ['tier half', [[12, 12, 3], 1], ['CUBIC', 3]], ['quarter inch down', [[8.2, 8.2, 8.2], 2], ['CUBIC', 3]], ['generated mix 6', [[10, 18.2, 4.6], 7.3], ['CUBIC', 5]]], [['generated mix 3', [[8, 18, 3], 19.9], ['CUBIC', 3]], ['generated mix 4', [[3, 18.2, 4.6], 0.5], ['CUBIC', 2]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['weight 20', [[6, 6, 6], 20], ['CUBIC', 2]], ['tier over cap', [[10, 10, 10], 1], ['WEIGHT', 1]], ['one cubic foot', [[12, 12, 12], 5], ['WEIGHT', 5]], ['generated mix 9', [[18, 12, 6.3], 0.5], ['WEIGHT', 1]], ['generated mix 17', [[6, 19, 18], 19.9], ['WEIGHT', 20]]], [['generated mix 15', [[9.9, 10, 3], 0.5], ['CUBIC', 2]], ['generated mix 51', [[18.2, 10, 3], 2], ['CUBIC', 4]], ['weight over 20', [[6, 6, 6], 20.5], ['WEIGHT', 21]], ['tier half', [[12, 12, 3], 1], ['CUBIC', 3]], ['small cube', [[6, 6, 6], 2], ['CUBIC', 2]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['generated mix 19', [[18, 18, 6.3], 7.3], ['WEIGHT', 8]], ['generated mix 27', [[10, 8.2, 8], 20.5], ['WEIGHT', 21]]], [['generated mix 48', [[3, 6, 18], 7.3], ['CUBIC', 2]], ['side exactly 18', [[18, 10, 4], 3], ['CUBIC', 5]], ['small cube', [[6, 6, 6], 2], ['CUBIC', 2]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['weight over 20', [[6, 6, 6], 20.5], ['WEIGHT', 21]], ['tier half', [[12, 12, 3], 1], ['CUBIC', 3]], ['generated mix 30', [[18, 6.3, 6], 20.5], ['WEIGHT', 21]], ['generated mix 38', [[8.2, 10, 19], 0.5], ['WEIGHT', 1]]], [['generated mix 70', [[3, 12, 8.2], 20], ['CUBIC', 2]], ['generated mix 10', [[8, 6.3, 18.2], 7.3], ['WEIGHT', 8]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['weight 20', [[6, 6, 6], 20], ['CUBIC', 2]], ['tier over cap', [[10, 10, 10], 1], ['WEIGHT', 1]], ['one cubic foot', [[12, 12, 12], 5], ['WEIGHT', 5]], ['generated mix 41', [[18.2, 18.2, 8], 19.9], ['WEIGHT', 20]], ['generated mix 49', [[19, 6, 8.2], 0.5], ['WEIGHT', 1]]]]\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":"155180189a6ac530f555fcee375ac843348c64a1dc68cbc847472fe40cc433c0","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(dims, weight):\n    q = [Fraction(math.floor(d * 4), 4) for d in dims]\n    lb = max(1, math.ceil(weight))\n    if weight > 20 or max(q) > 18:\n        return ['WEIGHT', lb]\n    cf = q[0] * q[1] * q[2] / 1728\n    tenths = math.ceil(cf * 10)\n    if tenths > 5:\n        return ['WEIGHT', lb]\n    return ['CUBIC', max(1, tenths)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['small cube', [[6, 6, 6], 2], ['CUBIC', 2]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['one cubic foot', [[12, 12, 12], 5], ['WEIGHT', 5]], ['side exactly 18', [[18, 10, 4], 3], ['CUBIC', 5]], ['weight over 20', [[6, 6, 6], 20.5], ['WEIGHT', 21]], ['tier half', [[12, 12, 3], 1], ['CUBIC', 3]], ['quarter inch down', [[8.2, 8.2, 8.2], 2], ['CUBIC', 3]], ['generated mix 6', [[10, 18.2, 4.6], 7.3], ['CUBIC', 5]]], [['generated mix 3', [[8, 18, 3], 19.9], ['CUBIC', 3]], ['generated mix 4', [[3, 18.2, 4.6], 0.5], ['CUBIC', 2]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['weight 20', [[6, 6, 6], 20], ['CUBIC', 2]], ['tier over cap', [[10, 10, 10], 1], ['WEIGHT', 1]], ['one cubic foot', [[12, 12, 12], 5], ['WEIGHT', 5]], ['generated mix 9', [[18, 12, 6.3], 0.5], ['WEIGHT', 1]], ['generated mix 17', [[6, 19, 18], 19.9], ['WEIGHT', 20]]], [['generated mix 15', [[9.9, 10, 3], 0.5], ['CUBIC', 2]], ['generated mix 51', [[18.2, 10, 3], 2], ['CUBIC', 4]], ['weight over 20', [[6, 6, 6], 20.5], ['WEIGHT', 21]], ['tier half', [[12, 12, 3], 1], ['CUBIC', 3]], ['small cube', [[6, 6, 6], 2], ['CUBIC', 2]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['generated mix 19', [[18, 18, 6.3], 7.3], ['WEIGHT', 8]], ['generated mix 27', [[10, 8.2, 8], 20.5], ['WEIGHT', 21]]], [['generated mix 48', [[3, 6, 18], 7.3], ['CUBIC', 2]], ['side exactly 18', [[18, 10, 4], 3], ['CUBIC', 5]], ['small cube', [[6, 6, 6], 2], ['CUBIC', 2]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['weight over 20', [[6, 6, 6], 20.5], ['WEIGHT', 21]], ['tier half', [[12, 12, 3], 1], ['CUBIC', 3]], ['generated mix 30', [[18, 6.3, 6], 20.5], ['WEIGHT', 21]], ['generated mix 38', [[8.2, 10, 19], 0.5], ['WEIGHT', 1]]], [['generated mix 70', [[3, 12, 8.2], 20], ['CUBIC', 2]], ['generated mix 10', [[8, 6.3, 18.2], 7.3], ['WEIGHT', 8]], ['side rounds to 18', [[18.2, 10, 4], 3], ['CUBIC', 5]], ['weight 20', [[6, 6, 6], 20], ['CUBIC', 2]], ['tier over cap', [[10, 10, 10], 1], ['WEIGHT', 1]], ['one cubic foot', [[12, 12, 12], 5], ['WEIGHT', 5]], ['generated mix 41', [[18.2, 18.2, 8], 19.9], ['WEIGHT', 20]], ['generated mix 49', [[19, 6, 8.2], 0.5], ['WEIGHT', 1]]]]\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 tier sizes and eligibility. 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-cubic-tiers-tier-ceiling","generated_at":"2026-09-29T14:52:15.206904+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Cubic pricing rates small dense parcels by volume tier instead of weight.","repair":"Round cubic feet up to the next tenth.","root_cause":"The tier is floored instead of rounded up to the next tenth.","sha256":"ce67e2fb977c67aa561c6fd7896f4c90dd95f82e011e1cff846c4df973ff5d98","title":"Cubic tiers: tier truncated · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.871,"exit_code":1,"observations":[{"actual":["CUBIC",1],"check":"small cube","expected":["CUBIC",2],"passed":false},{"actual":["CUBIC",4],"check":"side rounds to 18","expected":["CUBIC",5],"passed":false},{"actual":["WEIGHT",5],"check":"one cubic foot","expected":["WEIGHT",5],"passed":true},{"actual":["CUBIC",4],"check":"side exactly 18","expected":["CUBIC",5],"passed":false},{"actual":["WEIGHT",21],"check":"weight over 20","expected":["WEIGHT",21],"passed":true},{"actual":["CUBIC",2],"check":"tier half","expected":["CUBIC",3],"passed":false},{"actual":["CUBIC",3],"check":"quarter inch down","expected":["CUBIC",3],"passed":true},{"actual":["CUBIC",5],"check":"generated mix 6","expected":["CUBIC",5],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"small cube\", \"actual\": [\"CUBIC\", 1], \"expected\": [\"CUBIC\", 2], \"passed\": false}, {\"check\": \"side rounds to 18\", \"actual\": [\"CUBIC\", 4], \"expected\": [\"CUBIC\", 5], \"passed\": false}, {\"check\": \"one cubic foot\", \"actual\": [\"WEIGHT\", 5], \"expected\": [\"WEIGHT\", 5], \"passed\": true}, {\"check\": \"side exactly 18\", \"actual\": [\"CUBIC\", 4], \"expected\": [\"CUBIC\", 5], \"passed\": false}, {\"check\": \"weight over 20\", \"actual\": [\"WEIGHT\", 21], \"expected\": [\"WEIGHT\", 21], \"passed\": true}, {\"check\": \"tier half\", \"actual\": [\"CUBIC\", 2], \"expected\": [\"CUBIC\", 3], \"passed\": false}, {\"check\": \"quarter inch down\", \"actual\": [\"CUBIC\", 3], \"expected\": [\"CUBIC\", 3], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [\"CUBIC\", 5], \"expected\": [\"CUBIC\", 5], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.991,"exit_code":1,"observations":[{"actual":["CUBIC",1],"check":"small cube","expected":["CUBIC",2],"passed":false},{"actual":["CUBIC",4],"check":"side rounds to 18","expected":["CUBIC",5],"passed":false},{"actual":["WEIGHT",5],"check":"one cubic foot","expected":["WEIGHT",5],"passed":true},{"actual":["CUBIC",4],"check":"side exactly 18","expected":["CUBIC",5],"passed":false},{"actual":["WEIGHT",21],"check":"weight over 20","expected":["WEIGHT",21],"passed":true},{"actual":["CUBIC",2],"check":"tier half","expected":["CUBIC",3],"passed":false},{"actual":["CUBIC",2],"check":"quarter inch down","expected":["CUBIC",3],"passed":false},{"actual":["CUBIC",4],"check":"generated mix 6","expected":["CUBIC",5],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"small cube\", \"actual\": [\"CUBIC\", 1], \"expected\": [\"CUBIC\", 2], \"passed\": false}, {\"check\": \"side rounds to 18\", \"actual\": [\"CUBIC\", 4], \"expected\": [\"CUBIC\", 5], \"passed\": false}, {\"check\": \"one cubic foot\", \"actual\": [\"WEIGHT\", 5], \"expected\": [\"WEIGHT\", 5], \"passed\": true}, {\"check\": \"side exactly 18\", \"actual\": [\"CUBIC\", 4], \"expected\": [\"CUBIC\", 5], \"passed\": false}, {\"check\": \"weight over 20\", \"actual\": [\"WEIGHT\", 21], \"expected\": [\"WEIGHT\", 21], \"passed\": true}, {\"check\": \"tier half\", \"actual\": [\"CUBIC\", 2], \"expected\": [\"CUBIC\", 3], \"passed\": false}, {\"check\": \"quarter inch down\", \"actual\": [\"CUBIC\", 2], \"expected\": [\"CUBIC\", 3], \"passed\": false}, {\"check\": \"generated mix 6\", \"actual\": [\"CUBIC\", 4], \"expected\": [\"CUBIC\", 5], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.562,"exit_code":0,"observations":[{"actual":["CUBIC",2],"check":"small cube","expected":["CUBIC",2],"passed":true},{"actual":["CUBIC",5],"check":"side rounds to 18","expected":["CUBIC",5],"passed":true},{"actual":["WEIGHT",5],"check":"one cubic foot","expected":["WEIGHT",5],"passed":true},{"actual":["CUBIC",5],"check":"side exactly 18","expected":["CUBIC",5],"passed":true},{"actual":["WEIGHT",21],"check":"weight over 20","expected":["WEIGHT",21],"passed":true},{"actual":["CUBIC",3],"check":"tier half","expected":["CUBIC",3],"passed":true},{"actual":["CUBIC",3],"check":"quarter inch down","expected":["CUBIC",3],"passed":true},{"actual":["CUBIC",5],"check":"generated mix 6","expected":["CUBIC",5],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"small cube\", \"actual\": [\"CUBIC\", 2], \"expected\": [\"CUBIC\", 2], \"passed\": true}, {\"check\": \"side rounds to 18\", \"actual\": [\"CUBIC\", 5], \"expected\": [\"CUBIC\", 5], \"passed\": true}, {\"check\": \"one cubic foot\", \"actual\": [\"WEIGHT\", 5], \"expected\": [\"WEIGHT\", 5], \"passed\": true}, {\"check\": \"side exactly 18\", \"actual\": [\"CUBIC\", 5], \"expected\": [\"CUBIC\", 5], \"passed\": true}, {\"check\": \"weight over 20\", \"actual\": [\"WEIGHT\", 21], \"expected\": [\"WEIGHT\", 21], \"passed\": true}, {\"check\": \"tier half\", \"actual\": [\"CUBIC\", 3], \"expected\": [\"CUBIC\", 3], \"passed\": true}, {\"check\": \"quarter inch down\", \"actual\": [\"CUBIC\", 3], \"expected\": [\"CUBIC\", 3], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [\"CUBIC\", 5], \"expected\": [\"CUBIC\", 5], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}