{"abstract":"A parcel of exactly one cubic foot is charged dimensional weight.","category":"Shipping rate zone lookup","checks":8,"contract":"dims inches (each rounded half up to a whole inch), actual lb rounded up (minimum 1). Dim weight = ceil(L*W*H/divisor) using rounded dims, only when the rounded cube exceeds 1728 cubic inches. Return [billable, \"DIM\"] if dim weight strictly exceeds rounded actual, else [actual, \"ACTUAL\"].","evaluation_group":"w2-shipping-zone-billable-weight","failed_approach":"Testing unrounded dimensions against the threshold disagrees with the rounded cube used for billing.","family":"w2-shipping-zone-billable-weight-cube-threshold","id":"FA-95381","implementations":{"attempt":{"sha256":"0b9f132524fc6c62b3676a460626d6a976979a9273a116c7d5059eb25507ecbe","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(dims, actual, divisor):\n    r = [int(math.floor(d + 0.5)) for d in dims]\n    cube = r[0] * r[1] * r[2]\n    act = max(1, math.ceil(actual))\n    dimw = -(-cube // divisor) if dims[0] * dims[1] * dims[2] > 1728 else 0\n    if dimw > act:\n        return [dimw, 'DIM']\n    return [act, 'ACTUAL']\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['half inch rounds up', [[12.5, 12, 12], 5, 139], [14, 'DIM']], ['actual fraction up', [[10, 10, 10], 7.2, 139], [8, 'ACTUAL']], ['dim ceil', [[18, 12, 10], 1, 166], [14, 'DIM']], ['just above threshold', [[12, 12, 13], 1, 166], [12, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['generated mix 8', [[18.5, 11.4, 11.4], 9, 166], [14, 'DIM']]], [['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['half inch rounds up', [[12.5, 12, 12], 5, 139], [14, 'DIM']], ['actual fraction up', [[10, 10, 10], 7.2, 139], [8, 'ACTUAL']], ['dim ceil', [[18, 12, 10], 1, 166], [14, 'DIM']], ['generated mix 11', [[13.5, 24.5, 10.5], 0.2, 139], [28, 'DIM']], ['generated mix 19', [[24.5, 20, 16], 7.5, 139], [58, 'DIM']]], [['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['just above threshold', [[12, 12, 13], 1, 166], [12, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['half inch rounds up', [[12.5, 12, 12], 5, 139], [14, 'DIM']], ['actual fraction up', [[10, 10, 10], 7.2, 139], [8, 'ACTUAL']], ['generated mix 22', [[24.5, 11.4, 20], 2.1, 166], [34, 'DIM']], ['generated mix 30', [[13.5, 18.5, 12], 5, 139], [23, 'DIM']]], [['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['dim ceil', [[18, 12, 10], 1, 166], [14, 'DIM']], ['just above threshold', [[12, 12, 13], 1, 166], [12, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['half inch rounds up', [[12.5, 12, 12], 5, 139], [14, 'DIM']], ['generated mix 33', [[18.5, 16, 10.5], 20.01, 166], [21, 'ACTUAL']], ['generated mix 42', [[10.5, 18.5, 13.5], 1, 139], [22, 'DIM']]], [['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['actual fraction up', [[10, 10, 10], 7.2, 139], [8, 'ACTUAL']], ['dim ceil', [[18, 12, 10], 1, 166], [14, 'DIM']], ['just above threshold', [[12, 12, 13], 1, 166], [12, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['generated mix 45', [[10, 13.5, 16], 30, 139], [30, 'ACTUAL']], ['generated mix 53', [[12.5, 12, 12.5], 30, 166], [30, 'ACTUAL']]]]\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":"2e4a180c35a6f4c4ddd935edac5758ff104647bd7949c9dfa718c8d3f3fa0219","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(dims, actual, divisor):\n    r = [int(math.floor(d + 0.5)) for d in dims]\n    cube = r[0] * r[1] * r[2]\n    act = max(1, math.ceil(actual))\n    dimw = -(-cube // divisor) if cube >= 1728 else 0\n    if dimw > act:\n        return [dimw, 'DIM']\n    return [act, 'ACTUAL']\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['half inch rounds up', [[12.5, 12, 12], 5, 139], [14, 'DIM']], ['actual fraction up', [[10, 10, 10], 7.2, 139], [8, 'ACTUAL']], ['dim ceil', [[18, 12, 10], 1, 166], [14, 'DIM']], ['just above threshold', [[12, 12, 13], 1, 166], [12, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['generated mix 8', [[18.5, 11.4, 11.4], 9, 166], [14, 'DIM']]], [['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['half inch rounds up', [[12.5, 12, 12], 5, 139], [14, 'DIM']], ['actual fraction up', [[10, 10, 10], 7.2, 139], [8, 'ACTUAL']], ['dim ceil', [[18, 12, 10], 1, 166], [14, 'DIM']], ['generated mix 11', [[13.5, 24.5, 10.5], 0.2, 139], [28, 'DIM']], ['generated mix 19', [[24.5, 20, 16], 7.5, 139], [58, 'DIM']]], [['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['just above threshold', [[12, 12, 13], 1, 166], [12, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['half inch rounds up', [[12.5, 12, 12], 5, 139], [14, 'DIM']], ['actual fraction up', [[10, 10, 10], 7.2, 139], [8, 'ACTUAL']], ['generated mix 22', [[24.5, 11.4, 20], 2.1, 166], [34, 'DIM']], ['generated mix 30', [[13.5, 18.5, 12], 5, 139], [23, 'DIM']]], [['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['dim ceil', [[18, 12, 10], 1, 166], [14, 'DIM']], ['just above threshold', [[12, 12, 13], 1, 166], [12, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['half inch rounds up', [[12.5, 12, 12], 5, 139], [14, 'DIM']], ['generated mix 33', [[18.5, 16, 10.5], 20.01, 166], [21, 'ACTUAL']], ['generated mix 42', [[10.5, 18.5, 13.5], 1, 139], [22, 'DIM']]], [['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['actual fraction up', [[10, 10, 10], 7.2, 139], [8, 'ACTUAL']], ['dim ceil', [[18, 12, 10], 1, 166], [14, 'DIM']], ['just above threshold', [[12, 12, 13], 1, 166], [12, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['generated mix 45', [[10, 13.5, 16], 30, 139], [30, 'ACTUAL']], ['generated mix 53', [[12.5, 12, 12.5], 30, 166], [30, 'ACTUAL']]]]\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":"3431afa1474fb13a1c2648c3bf90f69609a4655181e1269a8a80551d1ec8dd3f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(dims, actual, divisor):\n    r = [int(math.floor(d + 0.5)) for d in dims]\n    cube = r[0] * r[1] * r[2]\n    act = max(1, math.ceil(actual))\n    dimw = -(-cube // divisor) if cube > 1728 else 0\n    if dimw > act:\n        return [dimw, 'DIM']\n    return [act, 'ACTUAL']\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['half inch rounds up', [[12.5, 12, 12], 5, 139], [14, 'DIM']], ['actual fraction up', [[10, 10, 10], 7.2, 139], [8, 'ACTUAL']], ['dim ceil', [[18, 12, 10], 1, 166], [14, 'DIM']], ['just above threshold', [[12, 12, 13], 1, 166], [12, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['generated mix 8', [[18.5, 11.4, 11.4], 9, 166], [14, 'DIM']]], [['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['half inch rounds up', [[12.5, 12, 12], 5, 139], [14, 'DIM']], ['actual fraction up', [[10, 10, 10], 7.2, 139], [8, 'ACTUAL']], ['dim ceil', [[18, 12, 10], 1, 166], [14, 'DIM']], ['generated mix 11', [[13.5, 24.5, 10.5], 0.2, 139], [28, 'DIM']], ['generated mix 19', [[24.5, 20, 16], 7.5, 139], [58, 'DIM']]], [['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['just above threshold', [[12, 12, 13], 1, 166], [12, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['half inch rounds up', [[12.5, 12, 12], 5, 139], [14, 'DIM']], ['actual fraction up', [[10, 10, 10], 7.2, 139], [8, 'ACTUAL']], ['generated mix 22', [[24.5, 11.4, 20], 2.1, 166], [34, 'DIM']], ['generated mix 30', [[13.5, 18.5, 12], 5, 139], [23, 'DIM']]], [['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['dim ceil', [[18, 12, 10], 1, 166], [14, 'DIM']], ['just above threshold', [[12, 12, 13], 1, 166], [12, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['half inch rounds up', [[12.5, 12, 12], 5, 139], [14, 'DIM']], ['generated mix 33', [[18.5, 16, 10.5], 20.01, 166], [21, 'ACTUAL']], ['generated mix 42', [[10.5, 18.5, 13.5], 1, 139], [22, 'DIM']]], [['cube threshold exact', [[12, 12, 12], 1, 139], [1, 'ACTUAL']], ['generated mix 34', [[12.5, 12.5, 10.5], 5, 139], [14, 'DIM']], ['actual fraction up', [[10, 10, 10], 7.2, 139], [8, 'ACTUAL']], ['dim ceil', [[18, 12, 10], 1, 166], [14, 'DIM']], ['just above threshold', [[12, 12, 13], 1, 166], [12, 'DIM']], ['tie goes actual', [[20, 20, 20], 58, 139], [58, 'ACTUAL']], ['generated mix 45', [[10, 13.5, 16], 30, 139], [30, 'ACTUAL']], ['generated mix 53', [[12.5, 12, 12.5], 30, 166], [30, 'ACTUAL']]]]\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 divisor and threshold; no carrier specific exceptions. 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-billable-weight-cube-threshold","generated_at":"2026-09-29T14:52:13.115038+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Carriers bill the greater of actual and dimensional weight before zone rating.","repair":"Apply dimensional weight only above 1728 cubic inches.","root_cause":"The cube threshold is inclusive at 1728 cubic inches.","sha256":"5a9fa4a1126c14b0c39385c9e2443edcf564575fe19573e63956cdfde2d442ff","title":"Billable weight: one cubic foot parcels dim-rated · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":38.416,"exit_code":1,"observations":[{"actual":[1,"ACTUAL"],"check":"cube threshold exact","expected":[1,"ACTUAL"],"passed":true},{"actual":[5,"ACTUAL"],"check":"generated mix 34","expected":[14,"DIM"],"passed":false},{"actual":[14,"DIM"],"check":"half inch rounds up","expected":[14,"DIM"],"passed":true},{"actual":[8,"ACTUAL"],"check":"actual fraction up","expected":[8,"ACTUAL"],"passed":true},{"actual":[14,"DIM"],"check":"dim ceil","expected":[14,"DIM"],"passed":true},{"actual":[12,"DIM"],"check":"just above threshold","expected":[12,"DIM"],"passed":true},{"actual":[58,"ACTUAL"],"check":"tie goes actual","expected":[58,"ACTUAL"],"passed":true},{"actual":[14,"DIM"],"check":"generated mix 8","expected":[14,"DIM"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"cube threshold exact\", \"actual\": [1, \"ACTUAL\"], \"expected\": [1, \"ACTUAL\"], \"passed\": true}, {\"check\": \"generated mix 34\", \"actual\": [5, \"ACTUAL\"], \"expected\": [14, \"DIM\"], \"passed\": false}, {\"check\": \"half inch rounds up\", \"actual\": [14, \"DIM\"], \"expected\": [14, \"DIM\"], \"passed\": true}, {\"check\": \"actual fraction up\", \"actual\": [8, \"ACTUAL\"], \"expected\": [8, \"ACTUAL\"], \"passed\": true}, {\"check\": \"dim ceil\", \"actual\": [14, \"DIM\"], \"expected\": [14, \"DIM\"], \"passed\": true}, {\"check\": \"just above threshold\", \"actual\": [12, \"DIM\"], \"expected\": [12, \"DIM\"], \"passed\": true}, {\"check\": \"tie goes actual\", \"actual\": [58, \"ACTUAL\"], \"expected\": [58, \"ACTUAL\"], \"passed\": true}, {\"check\": \"generated mix 8\", \"actual\": [14, \"DIM\"], \"expected\": [14, \"DIM\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.222,"exit_code":1,"observations":[{"actual":[13,"DIM"],"check":"cube threshold exact","expected":[1,"ACTUAL"],"passed":false},{"actual":[14,"DIM"],"check":"generated mix 34","expected":[14,"DIM"],"passed":true},{"actual":[14,"DIM"],"check":"half inch rounds up","expected":[14,"DIM"],"passed":true},{"actual":[8,"ACTUAL"],"check":"actual fraction up","expected":[8,"ACTUAL"],"passed":true},{"actual":[14,"DIM"],"check":"dim ceil","expected":[14,"DIM"],"passed":true},{"actual":[12,"DIM"],"check":"just above threshold","expected":[12,"DIM"],"passed":true},{"actual":[58,"ACTUAL"],"check":"tie goes actual","expected":[58,"ACTUAL"],"passed":true},{"actual":[14,"DIM"],"check":"generated mix 8","expected":[14,"DIM"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"cube threshold exact\", \"actual\": [13, \"DIM\"], \"expected\": [1, \"ACTUAL\"], \"passed\": false}, {\"check\": \"generated mix 34\", \"actual\": [14, \"DIM\"], \"expected\": [14, \"DIM\"], \"passed\": true}, {\"check\": \"half inch rounds up\", \"actual\": [14, \"DIM\"], \"expected\": [14, \"DIM\"], \"passed\": true}, {\"check\": \"actual fraction up\", \"actual\": [8, \"ACTUAL\"], \"expected\": [8, \"ACTUAL\"], \"passed\": true}, {\"check\": \"dim ceil\", \"actual\": [14, \"DIM\"], \"expected\": [14, \"DIM\"], \"passed\": true}, {\"check\": \"just above threshold\", \"actual\": [12, \"DIM\"], \"expected\": [12, \"DIM\"], \"passed\": true}, {\"check\": \"tie goes actual\", \"actual\": [58, \"ACTUAL\"], \"expected\": [58, \"ACTUAL\"], \"passed\": true}, {\"check\": \"generated mix 8\", \"actual\": [14, \"DIM\"], \"expected\": [14, \"DIM\"], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":39.266,"exit_code":0,"observations":[{"actual":[1,"ACTUAL"],"check":"cube threshold exact","expected":[1,"ACTUAL"],"passed":true},{"actual":[14,"DIM"],"check":"generated mix 34","expected":[14,"DIM"],"passed":true},{"actual":[14,"DIM"],"check":"half inch rounds up","expected":[14,"DIM"],"passed":true},{"actual":[8,"ACTUAL"],"check":"actual fraction up","expected":[8,"ACTUAL"],"passed":true},{"actual":[14,"DIM"],"check":"dim ceil","expected":[14,"DIM"],"passed":true},{"actual":[12,"DIM"],"check":"just above threshold","expected":[12,"DIM"],"passed":true},{"actual":[58,"ACTUAL"],"check":"tie goes actual","expected":[58,"ACTUAL"],"passed":true},{"actual":[14,"DIM"],"check":"generated mix 8","expected":[14,"DIM"],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"cube threshold exact\", \"actual\": [1, \"ACTUAL\"], \"expected\": [1, \"ACTUAL\"], \"passed\": true}, {\"check\": \"generated mix 34\", \"actual\": [14, \"DIM\"], \"expected\": [14, \"DIM\"], \"passed\": true}, {\"check\": \"half inch rounds up\", \"actual\": [14, \"DIM\"], \"expected\": [14, \"DIM\"], \"passed\": true}, {\"check\": \"actual fraction up\", \"actual\": [8, \"ACTUAL\"], \"expected\": [8, \"ACTUAL\"], \"passed\": true}, {\"check\": \"dim ceil\", \"actual\": [14, \"DIM\"], \"expected\": [14, \"DIM\"], \"passed\": true}, {\"check\": \"just above threshold\", \"actual\": [12, \"DIM\"], \"expected\": [12, \"DIM\"], \"passed\": true}, {\"check\": \"tie goes actual\", \"actual\": [58, \"ACTUAL\"], \"expected\": [58, \"ACTUAL\"], \"passed\": true}, {\"check\": \"generated mix 8\", \"actual\": [14, \"DIM\"], \"expected\": [14, \"DIM\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}