{"abstract":"Parcels far above the oversize threshold are treated as standard.","category":"Shipping rate zone lookup","checks":8,"contract":"dims inches (any order), weight lb. length = longest side, girth = 2*(other two). UNSHIPPABLE if length > 108, length+girth > 165 or weight > 150. Otherwise OVERSIZE if length+girth > 130; else AHS_DIM if length > 48 or second-longest > 30. AHS_WEIGHT if weight > 50 (independent). Return list of codes.","evaluation_group":"w2-shipping-zone-size-classes","failed_approach":"Doubling only the second side still undercounts girth.","family":"w2-shipping-zone-size-classes-girth-formula","id":"FA-95461","implementations":{"attempt":{"sha256":"ffe2f5e85f92cd3ac60286e27f974151472c8760b991f104809b92c2467d4106","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(dims, weight):\n    L, s2, s3 = sorted(dims, reverse=True)\n    size = L + 2 * s2 + s3\n    if L > 108 or size > 165 or weight > 150:\n        return ['UNSHIPPABLE']\n    codes = []\n    if size > 130:\n        codes.append('OVERSIZE')\n    elif L > 48 or s2 > 30:\n        codes.append('AHS_DIM')\n    if weight > 50:\n        codes.append('AHS_WEIGHT')\n    return codes\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['length edge', [[48, 20, 10], 5], []], ['generated mix 6', [[110, 108, 110], 70], ['UNSHIPPABLE']], ['generated mix 14', [[80, 80, 40], 70], ['UNSHIPPABLE']]], [['generated mix 21', [[49, 48, 10], 50.5], ['OVERSIZE', 'AHS_WEIGHT']], ['generated mix 43', [[31, 20, 80], 5], ['UNSHIPPABLE']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['too heavy', [[10, 10, 10], 151], ['UNSHIPPABLE']], ['exact 130', [[50, 20, 20], 5], ['AHS_DIM']], ['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 8', [[49, 48, 20], 50.5], ['UNSHIPPABLE']], ['generated mix 16', [[30, 31, 100], 151], ['UNSHIPPABLE']]], [['generated mix 43', [[31, 20, 80], 5], ['UNSHIPPABLE']], ['generated mix 72', [[60, 40, 20], 70], ['UNSHIPPABLE']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['length edge', [[48, 20, 10], 5], []], ['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['generated mix 19', [[49, 100, 60], 70], ['UNSHIPPABLE']], ['generated mix 27', [[10, 60, 100], 150], ['UNSHIPPABLE']]], [['generated mix 70', [[31, 31, 48], 50.5], ['UNSHIPPABLE']], ['generated mix 8', [[49, 48, 20], 50.5], ['UNSHIPPABLE']], ['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['too heavy', [[10, 10, 10], 151], ['UNSHIPPABLE']], ['exact 130', [[50, 20, 20], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['generated mix 39', [[60, 60, 49], 70], ['UNSHIPPABLE']]], [['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['generated mix 55', [[31, 30, 60], 150], ['UNSHIPPABLE']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['length edge', [[48, 20, 10], 5], []], ['too heavy', [[10, 10, 10], 151], ['UNSHIPPABLE']], ['generated mix 42', [[80, 60, 49], 49.5], ['UNSHIPPABLE']], ['generated mix 50', [[48, 10, 60], 151], ['UNSHIPPABLE']]]]\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":"2788254cb78068c4a0ea0859e7917b8898e10a0f43af8b844cacd0865c76d037","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(dims, weight):\n    L, s2, s3 = sorted(dims, reverse=True)\n    size = L + s2 + s3\n    if L > 108 or size > 165 or weight > 150:\n        return ['UNSHIPPABLE']\n    codes = []\n    if size > 130:\n        codes.append('OVERSIZE')\n    elif L > 48 or s2 > 30:\n        codes.append('AHS_DIM')\n    if weight > 50:\n        codes.append('AHS_WEIGHT')\n    return codes\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['length edge', [[48, 20, 10], 5], []], ['generated mix 6', [[110, 108, 110], 70], ['UNSHIPPABLE']], ['generated mix 14', [[80, 80, 40], 70], ['UNSHIPPABLE']]], [['generated mix 21', [[49, 48, 10], 50.5], ['OVERSIZE', 'AHS_WEIGHT']], ['generated mix 43', [[31, 20, 80], 5], ['UNSHIPPABLE']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['too heavy', [[10, 10, 10], 151], ['UNSHIPPABLE']], ['exact 130', [[50, 20, 20], 5], ['AHS_DIM']], ['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 8', [[49, 48, 20], 50.5], ['UNSHIPPABLE']], ['generated mix 16', [[30, 31, 100], 151], ['UNSHIPPABLE']]], [['generated mix 43', [[31, 20, 80], 5], ['UNSHIPPABLE']], ['generated mix 72', [[60, 40, 20], 70], ['UNSHIPPABLE']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['length edge', [[48, 20, 10], 5], []], ['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['generated mix 19', [[49, 100, 60], 70], ['UNSHIPPABLE']], ['generated mix 27', [[10, 60, 100], 150], ['UNSHIPPABLE']]], [['generated mix 70', [[31, 31, 48], 50.5], ['UNSHIPPABLE']], ['generated mix 8', [[49, 48, 20], 50.5], ['UNSHIPPABLE']], ['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['too heavy', [[10, 10, 10], 151], ['UNSHIPPABLE']], ['exact 130', [[50, 20, 20], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['generated mix 39', [[60, 60, 49], 70], ['UNSHIPPABLE']]], [['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['generated mix 55', [[31, 30, 60], 150], ['UNSHIPPABLE']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['length edge', [[48, 20, 10], 5], []], ['too heavy', [[10, 10, 10], 151], ['UNSHIPPABLE']], ['generated mix 42', [[80, 60, 49], 49.5], ['UNSHIPPABLE']], ['generated mix 50', [[48, 10, 60], 151], ['UNSHIPPABLE']]]]\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":"62dcac5c05adaa3aa2e3e97cdd7bcf95924e6211068d1f5020528eb624d443c8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(dims, weight):\n    L, s2, s3 = sorted(dims, reverse=True)\n    size = L + 2 * (s2 + s3)\n    if L > 108 or size > 165 or weight > 150:\n        return ['UNSHIPPABLE']\n    codes = []\n    if size > 130:\n        codes.append('OVERSIZE')\n    elif L > 48 or s2 > 30:\n        codes.append('AHS_DIM')\n    if weight > 50:\n        codes.append('AHS_WEIGHT')\n    return codes\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['length edge', [[48, 20, 10], 5], []], ['generated mix 6', [[110, 108, 110], 70], ['UNSHIPPABLE']], ['generated mix 14', [[80, 80, 40], 70], ['UNSHIPPABLE']]], [['generated mix 21', [[49, 48, 10], 50.5], ['OVERSIZE', 'AHS_WEIGHT']], ['generated mix 43', [[31, 20, 80], 5], ['UNSHIPPABLE']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['too heavy', [[10, 10, 10], 151], ['UNSHIPPABLE']], ['exact 130', [[50, 20, 20], 5], ['AHS_DIM']], ['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 8', [[49, 48, 20], 50.5], ['UNSHIPPABLE']], ['generated mix 16', [[30, 31, 100], 151], ['UNSHIPPABLE']]], [['generated mix 43', [[31, 20, 80], 5], ['UNSHIPPABLE']], ['generated mix 72', [[60, 40, 20], 70], ['UNSHIPPABLE']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['length edge', [[48, 20, 10], 5], []], ['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['generated mix 19', [[49, 100, 60], 70], ['UNSHIPPABLE']], ['generated mix 27', [[10, 60, 100], 150], ['UNSHIPPABLE']]], [['generated mix 70', [[31, 31, 48], 50.5], ['UNSHIPPABLE']], ['generated mix 8', [[49, 48, 20], 50.5], ['UNSHIPPABLE']], ['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['too heavy', [[10, 10, 10], 151], ['UNSHIPPABLE']], ['exact 130', [[50, 20, 20], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['generated mix 39', [[60, 60, 49], 70], ['UNSHIPPABLE']]], [['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['generated mix 55', [[31, 30, 60], 150], ['UNSHIPPABLE']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['length edge', [[48, 20, 10], 5], []], ['too heavy', [[10, 10, 10], 151], ['UNSHIPPABLE']], ['generated mix 42', [[80, 60, 49], 49.5], ['UNSHIPPABLE']], ['generated mix 50', [[48, 10, 60], 151], ['UNSHIPPABLE']]]]\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 thresholds; not a carrier service guide. 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-size-classes-girth-formula","generated_at":"2026-09-29T14:52:13.886816+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Size and weight classes decide handling fees and service eligibility.","repair":"Girth is 2*(width + height).","root_cause":"Girth is the sum of the two shorter sides instead of twice that sum.","sha256":"4b84d7e8027c30daffbe73df33051dd54783390dd909d0322ccd38eb1c981eaa","title":"Size classes: girth not doubled · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":38.014,"exit_code":1,"observations":[{"actual":["AHS_DIM"],"check":"oversize","expected":["OVERSIZE"],"passed":false},{"actual":["AHS_DIM","AHS_WEIGHT"],"check":"oversize and heavy","expected":["OVERSIZE","AHS_WEIGHT"],"passed":false},{"actual":["AHS_DIM"],"check":"second side","expected":["AHS_DIM"],"passed":true},{"actual":["AHS_DIM","AHS_WEIGHT"],"check":"weight flags both","expected":["AHS_DIM","AHS_WEIGHT"],"passed":true},{"actual":["UNSHIPPABLE"],"check":"girth limit","expected":["UNSHIPPABLE"],"passed":true},{"actual":[],"check":"length edge","expected":[],"passed":true},{"actual":["UNSHIPPABLE"],"check":"generated mix 6","expected":["UNSHIPPABLE"],"passed":true},{"actual":["UNSHIPPABLE"],"check":"generated mix 14","expected":["UNSHIPPABLE"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oversize\", \"actual\": [\"AHS_DIM\"], \"expected\": [\"OVERSIZE\"], \"passed\": false}, {\"check\": \"oversize and heavy\", \"actual\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"expected\": [\"OVERSIZE\", \"AHS_WEIGHT\"], \"passed\": false}, {\"check\": \"second side\", \"actual\": [\"AHS_DIM\"], \"expected\": [\"AHS_DIM\"], \"passed\": true}, {\"check\": \"weight flags both\", \"actual\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"expected\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"passed\": true}, {\"check\": \"girth limit\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"passed\": true}, {\"check\": \"length edge\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"passed\": true}, {\"check\": \"generated mix 14\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.679,"exit_code":1,"observations":[{"actual":["AHS_DIM"],"check":"oversize","expected":["OVERSIZE"],"passed":false},{"actual":["AHS_DIM","AHS_WEIGHT"],"check":"oversize and heavy","expected":["OVERSIZE","AHS_WEIGHT"],"passed":false},{"actual":["AHS_DIM"],"check":"second side","expected":["AHS_DIM"],"passed":true},{"actual":["AHS_DIM","AHS_WEIGHT"],"check":"weight flags both","expected":["AHS_DIM","AHS_WEIGHT"],"passed":true},{"actual":["UNSHIPPABLE"],"check":"girth limit","expected":["UNSHIPPABLE"],"passed":true},{"actual":[],"check":"length edge","expected":[],"passed":true},{"actual":["UNSHIPPABLE"],"check":"generated mix 6","expected":["UNSHIPPABLE"],"passed":true},{"actual":["UNSHIPPABLE"],"check":"generated mix 14","expected":["UNSHIPPABLE"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oversize\", \"actual\": [\"AHS_DIM\"], \"expected\": [\"OVERSIZE\"], \"passed\": false}, {\"check\": \"oversize and heavy\", \"actual\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"expected\": [\"OVERSIZE\", \"AHS_WEIGHT\"], \"passed\": false}, {\"check\": \"second side\", \"actual\": [\"AHS_DIM\"], \"expected\": [\"AHS_DIM\"], \"passed\": true}, {\"check\": \"weight flags both\", \"actual\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"expected\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"passed\": true}, {\"check\": \"girth limit\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"passed\": true}, {\"check\": \"length edge\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"passed\": true}, {\"check\": \"generated mix 14\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":37.158,"exit_code":0,"observations":[{"actual":["OVERSIZE"],"check":"oversize","expected":["OVERSIZE"],"passed":true},{"actual":["OVERSIZE","AHS_WEIGHT"],"check":"oversize and heavy","expected":["OVERSIZE","AHS_WEIGHT"],"passed":true},{"actual":["AHS_DIM"],"check":"second side","expected":["AHS_DIM"],"passed":true},{"actual":["AHS_DIM","AHS_WEIGHT"],"check":"weight flags both","expected":["AHS_DIM","AHS_WEIGHT"],"passed":true},{"actual":["UNSHIPPABLE"],"check":"girth limit","expected":["UNSHIPPABLE"],"passed":true},{"actual":[],"check":"length edge","expected":[],"passed":true},{"actual":["UNSHIPPABLE"],"check":"generated mix 6","expected":["UNSHIPPABLE"],"passed":true},{"actual":["UNSHIPPABLE"],"check":"generated mix 14","expected":["UNSHIPPABLE"],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oversize\", \"actual\": [\"OVERSIZE\"], \"expected\": [\"OVERSIZE\"], \"passed\": true}, {\"check\": \"oversize and heavy\", \"actual\": [\"OVERSIZE\", \"AHS_WEIGHT\"], \"expected\": [\"OVERSIZE\", \"AHS_WEIGHT\"], \"passed\": true}, {\"check\": \"second side\", \"actual\": [\"AHS_DIM\"], \"expected\": [\"AHS_DIM\"], \"passed\": true}, {\"check\": \"weight flags both\", \"actual\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"expected\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"passed\": true}, {\"check\": \"girth limit\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"passed\": true}, {\"check\": \"length edge\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"passed\": true}, {\"check\": \"generated mix 14\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}