{"abstract":"Wide flat boxes escape the additional handling fee.","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.","contract_signature":"dims, weight","evaluation_group":"w2-shipping-zone-size-classes","failed_approach":"Making the comparison inclusive flags boxes exactly 30 inches wide.","family":"w2-shipping-zone-size-classes-second-longest-side","id":"FA-95471","implementations":{"attempt":{"sha256":"efe9a1635c11c82b030dd70a8d3c5b54eddce9a665246b23b3bba76fa1105d04","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 = [[['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['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']], ['length edge', [[48, 20, 10], 5], []], ['generated mix 6', [[110, 108, 110], 70], ['UNSHIPPABLE']]], [['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['generated mix 9', [[40, 40, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['generated mix 17', [[80, 80, 100], 70], ['UNSHIPPABLE']]], [['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['exact 130', [[50, 20, 20], 5], ['AHS_DIM']], ['length edge', [[48, 20, 10], 5], []], ['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['generated mix 20', [[100, 60, 60], 50.5], ['UNSHIPPABLE']], ['generated mix 28', [[100, 31, 40], 5], ['UNSHIPPABLE']]], [['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['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']], ['length edge', [[48, 20, 10], 5], []], ['generated mix 32', [[108, 80, 31], 151], ['UNSHIPPABLE']], ['generated mix 40', [[48, 110, 30], 50.5], ['UNSHIPPABLE']]], [['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['too heavy', [[10, 10, 10], 151], ['UNSHIPPABLE']], ['generated mix 43', [[31, 20, 80], 5], ['UNSHIPPABLE']], ['generated mix 51', [[100, 49, 48], 50.5], ['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":"5fb71d53defdb65e1e1f8e857edd8c3af3f1f7a879b1530bf0dcb6d857f5d32b","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 s3 > 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 = [[['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['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']], ['length edge', [[48, 20, 10], 5], []], ['generated mix 6', [[110, 108, 110], 70], ['UNSHIPPABLE']]], [['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['generated mix 9', [[40, 40, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['generated mix 17', [[80, 80, 100], 70], ['UNSHIPPABLE']]], [['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['exact 130', [[50, 20, 20], 5], ['AHS_DIM']], ['length edge', [[48, 20, 10], 5], []], ['oversize and heavy', [[60, 20, 20], 70], ['OVERSIZE', 'AHS_WEIGHT']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['generated mix 20', [[100, 60, 60], 50.5], ['UNSHIPPABLE']], ['generated mix 28', [[100, 31, 40], 5], ['UNSHIPPABLE']]], [['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['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']], ['length edge', [[48, 20, 10], 5], []], ['generated mix 32', [[108, 80, 31], 151], ['UNSHIPPABLE']], ['generated mix 40', [[48, 110, 30], 50.5], ['UNSHIPPABLE']]], [['second side', [[40, 31, 10], 5], ['AHS_DIM']], ['generated mix 31', [[48, 30, 10], 150], ['AHS_WEIGHT']], ['girth limit', [[110, 10, 10], 5], ['UNSHIPPABLE']], ['oversize', [[10, 60, 30], 10], ['OVERSIZE']], ['weight flags both', [[49, 10, 10], 50.5], ['AHS_DIM', 'AHS_WEIGHT']], ['too heavy', [[10, 10, 10], 151], ['UNSHIPPABLE']], ['generated mix 43', [[31, 20, 80], 5], ['UNSHIPPABLE']], ['generated mix 51', [[100, 49, 48], 50.5], ['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-second-longest-side","generated_at":"2026-09-29T14:52:13.979842+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.","root_cause":"The width rule tests the shortest side instead of the second longest.","sha256":"46be3dac046baafe24504ed18c3c4acfec2fc3aeb0ec86146b00a0ab6ef48a90","title":"Size classes: shortest side used for width rule · 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":40.183,"exit_code":1,"observations":[{"actual":["AHS_DIM"],"check":"second side","expected":["AHS_DIM"],"passed":true},{"actual":["AHS_DIM","AHS_WEIGHT"],"check":"generated mix 31","expected":["AHS_WEIGHT"],"passed":false},{"actual":["OVERSIZE"],"check":"oversize","expected":["OVERSIZE"],"passed":true},{"actual":["AHS_DIM","AHS_WEIGHT"],"check":"weight flags both","expected":["AHS_DIM","AHS_WEIGHT"],"passed":true},{"actual":["UNSHIPPABLE"],"check":"too heavy","expected":["UNSHIPPABLE"],"passed":true},{"actual":["AHS_DIM"],"check":"exact 130","expected":["AHS_DIM"],"passed":true},{"actual":[],"check":"length edge","expected":[],"passed":true},{"actual":["UNSHIPPABLE"],"check":"generated mix 6","expected":["UNSHIPPABLE"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"second side\", \"actual\": [\"AHS_DIM\"], \"expected\": [\"AHS_DIM\"], \"passed\": true}, {\"check\": \"generated mix 31\", \"actual\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"expected\": [\"AHS_WEIGHT\"], \"passed\": false}, {\"check\": \"oversize\", \"actual\": [\"OVERSIZE\"], \"expected\": [\"OVERSIZE\"], \"passed\": true}, {\"check\": \"weight flags both\", \"actual\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"expected\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"passed\": true}, {\"check\": \"too heavy\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"passed\": true}, {\"check\": \"exact 130\", \"actual\": [\"AHS_DIM\"], \"expected\": [\"AHS_DIM\"], \"passed\": true}, {\"check\": \"length edge\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.796,"exit_code":1,"observations":[{"actual":[],"check":"second side","expected":["AHS_DIM"],"passed":false},{"actual":["AHS_WEIGHT"],"check":"generated mix 31","expected":["AHS_WEIGHT"],"passed":true},{"actual":["OVERSIZE"],"check":"oversize","expected":["OVERSIZE"],"passed":true},{"actual":["AHS_DIM","AHS_WEIGHT"],"check":"weight flags both","expected":["AHS_DIM","AHS_WEIGHT"],"passed":true},{"actual":["UNSHIPPABLE"],"check":"too heavy","expected":["UNSHIPPABLE"],"passed":true},{"actual":["AHS_DIM"],"check":"exact 130","expected":["AHS_DIM"],"passed":true},{"actual":[],"check":"length edge","expected":[],"passed":true},{"actual":["UNSHIPPABLE"],"check":"generated mix 6","expected":["UNSHIPPABLE"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"second side\", \"actual\": [], \"expected\": [\"AHS_DIM\"], \"passed\": false}, {\"check\": \"generated mix 31\", \"actual\": [\"AHS_WEIGHT\"], \"expected\": [\"AHS_WEIGHT\"], \"passed\": true}, {\"check\": \"oversize\", \"actual\": [\"OVERSIZE\"], \"expected\": [\"OVERSIZE\"], \"passed\": true}, {\"check\": \"weight flags both\", \"actual\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"expected\": [\"AHS_DIM\", \"AHS_WEIGHT\"], \"passed\": true}, {\"check\": \"too heavy\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"passed\": true}, {\"check\": \"exact 130\", \"actual\": [\"AHS_DIM\"], \"expected\": [\"AHS_DIM\"], \"passed\": true}, {\"check\": \"length edge\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [\"UNSHIPPABLE\"], \"expected\": [\"UNSHIPPABLE\"], \"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."}}