{"abstract":"Local zone 1 parcels look up a nonexistent price group 0.","category":"Shipping rate zone lookup","checks":8,"contract":"Parcels under 16 oz are priced in ounce tiers: ounces rounded up to a whole ounce, tier = ceil(oz/4) capped at 4. 16 oz and above price by pounds = ceil(ounces/16). Zones 1 and 2 share price group 1; zone z >= 3 is group z-1. Return [kind, n, group].","evaluation_group":"w2-shipping-zone-ounce-tiers","failed_approach":"Subtracting two shifts every higher zone down a group.","family":"w2-shipping-zone-ounce-tiers-zone-grouping","id":"FA-95806","implementations":{"attempt":{"sha256":"1527dac022e5dc5fa525210919db9df1f6c5735e44b2e7ffdfedf725f4bf2b8c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(ounces, zone):\n    group = max(1, zone - 2)\n    if ounces < 16:\n        oz = math.ceil(ounces)\n        return ['OZ', min(4, -(-oz // 4)), group]\n    return ['LB', math.ceil(ounces / 16), group]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['almost a pound', [15.5, 1], ['OZ', 4, 1]], ['one pound', [16, 3], ['LB', 1, 2]], ['small', [3.2, 2], ['OZ', 1, 1]], ['just over a pound', [17, 8], ['LB', 2, 7]], ['tier edge', [8, 2], ['OZ', 2, 1]], ['tier two', [4.2, 5], ['OZ', 2, 4]], ['generated mix 6', [15.99, 6], ['OZ', 4, 5]], ['generated mix 14', [8.4, 5], ['OZ', 3, 4]]], [['generated mix 53', [32, 1], ['LB', 2, 1]], ['generated mix 2', [40, 8], ['LB', 3, 7]], ['one pound', [16, 3], ['LB', 1, 2]], ['two pounds', [32, 9], ['LB', 2, 8]], ['rounded to 13', [12.4, 4], ['OZ', 4, 3]], ['tier two', [4.2, 5], ['OZ', 2, 4]], ['generated mix 9', [33, 8], ['LB', 3, 7]], ['generated mix 17', [4.6, 6], ['OZ', 2, 5]]], [['generated mix 12', [0.3, 1], ['OZ', 1, 1]], ['generated mix 8', [12.4, 5], ['OZ', 4, 4]], ['tier edge', [8, 2], ['OZ', 2, 1]], ['small', [3.2, 2], ['OZ', 1, 1]], ['almost a pound', [15.5, 1], ['OZ', 4, 1]], ['just over a pound', [17, 8], ['LB', 2, 7]], ['generated mix 21', [11.5, 6], ['OZ', 3, 5]], ['generated mix 29', [15.99, 2], ['OZ', 4, 1]]], [['generated mix 57', [12.4, 1], ['OZ', 4, 1]], ['generated mix 14', [8.4, 5], ['OZ', 3, 4]], ['tier two', [4.2, 5], ['OZ', 2, 4]], ['one pound', [16, 3], ['LB', 1, 2]], ['two pounds', [32, 9], ['LB', 2, 8]], ['rounded to 13', [12.4, 4], ['OZ', 4, 3]], ['generated mix 31', [15.5, 3], ['OZ', 4, 2]], ['generated mix 39', [24, 3], ['LB', 2, 2]]], [['generated mix 23', [40, 1], ['LB', 3, 1]], ['generated mix 20', [8.4, 9], ['OZ', 3, 8]], ['just over a pound', [17, 8], ['LB', 2, 7]], ['tier edge', [8, 2], ['OZ', 2, 1]], ['small', [3.2, 2], ['OZ', 1, 1]], ['almost a pound', [15.5, 1], ['OZ', 4, 1]], ['generated mix 43', [12.4, 9], ['OZ', 4, 8]], ['generated mix 51', [24, 6], ['LB', 2, 5]]]]\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":"405bb7c2be8bafd08f23fc65fe71d23c406aa2afa869888d44211e17314e9577","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(ounces, zone):\n    group = zone - 1\n    if ounces < 16:\n        oz = math.ceil(ounces)\n        return ['OZ', min(4, -(-oz // 4)), group]\n    return ['LB', math.ceil(ounces / 16), group]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['almost a pound', [15.5, 1], ['OZ', 4, 1]], ['one pound', [16, 3], ['LB', 1, 2]], ['small', [3.2, 2], ['OZ', 1, 1]], ['just over a pound', [17, 8], ['LB', 2, 7]], ['tier edge', [8, 2], ['OZ', 2, 1]], ['tier two', [4.2, 5], ['OZ', 2, 4]], ['generated mix 6', [15.99, 6], ['OZ', 4, 5]], ['generated mix 14', [8.4, 5], ['OZ', 3, 4]]], [['generated mix 53', [32, 1], ['LB', 2, 1]], ['generated mix 2', [40, 8], ['LB', 3, 7]], ['one pound', [16, 3], ['LB', 1, 2]], ['two pounds', [32, 9], ['LB', 2, 8]], ['rounded to 13', [12.4, 4], ['OZ', 4, 3]], ['tier two', [4.2, 5], ['OZ', 2, 4]], ['generated mix 9', [33, 8], ['LB', 3, 7]], ['generated mix 17', [4.6, 6], ['OZ', 2, 5]]], [['generated mix 12', [0.3, 1], ['OZ', 1, 1]], ['generated mix 8', [12.4, 5], ['OZ', 4, 4]], ['tier edge', [8, 2], ['OZ', 2, 1]], ['small', [3.2, 2], ['OZ', 1, 1]], ['almost a pound', [15.5, 1], ['OZ', 4, 1]], ['just over a pound', [17, 8], ['LB', 2, 7]], ['generated mix 21', [11.5, 6], ['OZ', 3, 5]], ['generated mix 29', [15.99, 2], ['OZ', 4, 1]]], [['generated mix 57', [12.4, 1], ['OZ', 4, 1]], ['generated mix 14', [8.4, 5], ['OZ', 3, 4]], ['tier two', [4.2, 5], ['OZ', 2, 4]], ['one pound', [16, 3], ['LB', 1, 2]], ['two pounds', [32, 9], ['LB', 2, 8]], ['rounded to 13', [12.4, 4], ['OZ', 4, 3]], ['generated mix 31', [15.5, 3], ['OZ', 4, 2]], ['generated mix 39', [24, 3], ['LB', 2, 2]]], [['generated mix 23', [40, 1], ['LB', 3, 1]], ['generated mix 20', [8.4, 9], ['OZ', 3, 8]], ['just over a pound', [17, 8], ['LB', 2, 7]], ['tier edge', [8, 2], ['OZ', 2, 1]], ['small', [3.2, 2], ['OZ', 1, 1]], ['almost a pound', [15.5, 1], ['OZ', 4, 1]], ['generated mix 43', [12.4, 9], ['OZ', 4, 8]], ['generated mix 51', [24, 6], ['LB', 2, 5]]]]\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":"1b83c98c06f35d9a8dd5852ab824c69c9ff703c10698988e90b7db57d24b599c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(ounces, zone):\n    group = 1 if zone <= 2 else zone - 1\n    if ounces < 16:\n        oz = math.ceil(ounces)\n        return ['OZ', min(4, -(-oz // 4)), group]\n    return ['LB', math.ceil(ounces / 16), group]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['almost a pound', [15.5, 1], ['OZ', 4, 1]], ['one pound', [16, 3], ['LB', 1, 2]], ['small', [3.2, 2], ['OZ', 1, 1]], ['just over a pound', [17, 8], ['LB', 2, 7]], ['tier edge', [8, 2], ['OZ', 2, 1]], ['tier two', [4.2, 5], ['OZ', 2, 4]], ['generated mix 6', [15.99, 6], ['OZ', 4, 5]], ['generated mix 14', [8.4, 5], ['OZ', 3, 4]]], [['generated mix 53', [32, 1], ['LB', 2, 1]], ['generated mix 2', [40, 8], ['LB', 3, 7]], ['one pound', [16, 3], ['LB', 1, 2]], ['two pounds', [32, 9], ['LB', 2, 8]], ['rounded to 13', [12.4, 4], ['OZ', 4, 3]], ['tier two', [4.2, 5], ['OZ', 2, 4]], ['generated mix 9', [33, 8], ['LB', 3, 7]], ['generated mix 17', [4.6, 6], ['OZ', 2, 5]]], [['generated mix 12', [0.3, 1], ['OZ', 1, 1]], ['generated mix 8', [12.4, 5], ['OZ', 4, 4]], ['tier edge', [8, 2], ['OZ', 2, 1]], ['small', [3.2, 2], ['OZ', 1, 1]], ['almost a pound', [15.5, 1], ['OZ', 4, 1]], ['just over a pound', [17, 8], ['LB', 2, 7]], ['generated mix 21', [11.5, 6], ['OZ', 3, 5]], ['generated mix 29', [15.99, 2], ['OZ', 4, 1]]], [['generated mix 57', [12.4, 1], ['OZ', 4, 1]], ['generated mix 14', [8.4, 5], ['OZ', 3, 4]], ['tier two', [4.2, 5], ['OZ', 2, 4]], ['one pound', [16, 3], ['LB', 1, 2]], ['two pounds', [32, 9], ['LB', 2, 8]], ['rounded to 13', [12.4, 4], ['OZ', 4, 3]], ['generated mix 31', [15.5, 3], ['OZ', 4, 2]], ['generated mix 39', [24, 3], ['LB', 2, 2]]], [['generated mix 23', [40, 1], ['LB', 3, 1]], ['generated mix 20', [8.4, 9], ['OZ', 3, 8]], ['just over a pound', [17, 8], ['LB', 2, 7]], ['tier edge', [8, 2], ['OZ', 2, 1]], ['small', [3.2, 2], ['OZ', 1, 1]], ['almost a pound', [15.5, 1], ['OZ', 4, 1]], ['generated mix 43', [12.4, 9], ['OZ', 4, 8]], ['generated mix 51', [24, 6], ['LB', 2, 5]]]]\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 zone groups. 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-ounce-tiers-zone-grouping","generated_at":"2026-09-29T14:52:16.989544+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Lightweight services price by ounce tier before switching to pounds.","repair":"Map zones 1-2 to group 1 and zone z to z-1 above that.","root_cause":"Zones 1 and 2 are not merged into group 1.","sha256":"ae3bc86e518dba5e7df3a29e3560723aa29a845309d4c367ae657ea896483955","title":"Ounce tiers: zone 1 priced as group 0 · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":37.051,"exit_code":1,"observations":[{"actual":["OZ",4,1],"check":"almost a pound","expected":["OZ",4,1],"passed":true},{"actual":["LB",1,1],"check":"one pound","expected":["LB",1,2],"passed":false},{"actual":["OZ",1,1],"check":"small","expected":["OZ",1,1],"passed":true},{"actual":["LB",2,6],"check":"just over a pound","expected":["LB",2,7],"passed":false},{"actual":["OZ",2,1],"check":"tier edge","expected":["OZ",2,1],"passed":true},{"actual":["OZ",2,3],"check":"tier two","expected":["OZ",2,4],"passed":false},{"actual":["OZ",4,4],"check":"generated mix 6","expected":["OZ",4,5],"passed":false},{"actual":["OZ",3,3],"check":"generated mix 14","expected":["OZ",3,4],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"almost a pound\", \"actual\": [\"OZ\", 4, 1], \"expected\": [\"OZ\", 4, 1], \"passed\": true}, {\"check\": \"one pound\", \"actual\": [\"LB\", 1, 1], \"expected\": [\"LB\", 1, 2], \"passed\": false}, {\"check\": \"small\", \"actual\": [\"OZ\", 1, 1], \"expected\": [\"OZ\", 1, 1], \"passed\": true}, {\"check\": \"just over a pound\", \"actual\": [\"LB\", 2, 6], \"expected\": [\"LB\", 2, 7], \"passed\": false}, {\"check\": \"tier edge\", \"actual\": [\"OZ\", 2, 1], \"expected\": [\"OZ\", 2, 1], \"passed\": true}, {\"check\": \"tier two\", \"actual\": [\"OZ\", 2, 3], \"expected\": [\"OZ\", 2, 4], \"passed\": false}, {\"check\": \"generated mix 6\", \"actual\": [\"OZ\", 4, 4], \"expected\": [\"OZ\", 4, 5], \"passed\": false}, {\"check\": \"generated mix 14\", \"actual\": [\"OZ\", 3, 3], \"expected\": [\"OZ\", 3, 4], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.105,"exit_code":1,"observations":[{"actual":["OZ",4,0],"check":"almost a pound","expected":["OZ",4,1],"passed":false},{"actual":["LB",1,2],"check":"one pound","expected":["LB",1,2],"passed":true},{"actual":["OZ",1,1],"check":"small","expected":["OZ",1,1],"passed":true},{"actual":["LB",2,7],"check":"just over a pound","expected":["LB",2,7],"passed":true},{"actual":["OZ",2,1],"check":"tier edge","expected":["OZ",2,1],"passed":true},{"actual":["OZ",2,4],"check":"tier two","expected":["OZ",2,4],"passed":true},{"actual":["OZ",4,5],"check":"generated mix 6","expected":["OZ",4,5],"passed":true},{"actual":["OZ",3,4],"check":"generated mix 14","expected":["OZ",3,4],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"almost a pound\", \"actual\": [\"OZ\", 4, 0], \"expected\": [\"OZ\", 4, 1], \"passed\": false}, {\"check\": \"one pound\", \"actual\": [\"LB\", 1, 2], \"expected\": [\"LB\", 1, 2], \"passed\": true}, {\"check\": \"small\", \"actual\": [\"OZ\", 1, 1], \"expected\": [\"OZ\", 1, 1], \"passed\": true}, {\"check\": \"just over a pound\", \"actual\": [\"LB\", 2, 7], \"expected\": [\"LB\", 2, 7], \"passed\": true}, {\"check\": \"tier edge\", \"actual\": [\"OZ\", 2, 1], \"expected\": [\"OZ\", 2, 1], \"passed\": true}, {\"check\": \"tier two\", \"actual\": [\"OZ\", 2, 4], \"expected\": [\"OZ\", 2, 4], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [\"OZ\", 4, 5], \"expected\": [\"OZ\", 4, 5], \"passed\": true}, {\"check\": \"generated mix 14\", \"actual\": [\"OZ\", 3, 4], \"expected\": [\"OZ\", 3, 4], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":39.525,"exit_code":0,"observations":[{"actual":["OZ",4,1],"check":"almost a pound","expected":["OZ",4,1],"passed":true},{"actual":["LB",1,2],"check":"one pound","expected":["LB",1,2],"passed":true},{"actual":["OZ",1,1],"check":"small","expected":["OZ",1,1],"passed":true},{"actual":["LB",2,7],"check":"just over a pound","expected":["LB",2,7],"passed":true},{"actual":["OZ",2,1],"check":"tier edge","expected":["OZ",2,1],"passed":true},{"actual":["OZ",2,4],"check":"tier two","expected":["OZ",2,4],"passed":true},{"actual":["OZ",4,5],"check":"generated mix 6","expected":["OZ",4,5],"passed":true},{"actual":["OZ",3,4],"check":"generated mix 14","expected":["OZ",3,4],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"almost a pound\", \"actual\": [\"OZ\", 4, 1], \"expected\": [\"OZ\", 4, 1], \"passed\": true}, {\"check\": \"one pound\", \"actual\": [\"LB\", 1, 2], \"expected\": [\"LB\", 1, 2], \"passed\": true}, {\"check\": \"small\", \"actual\": [\"OZ\", 1, 1], \"expected\": [\"OZ\", 1, 1], \"passed\": true}, {\"check\": \"just over a pound\", \"actual\": [\"LB\", 2, 7], \"expected\": [\"LB\", 2, 7], \"passed\": true}, {\"check\": \"tier edge\", \"actual\": [\"OZ\", 2, 1], \"expected\": [\"OZ\", 2, 1], \"passed\": true}, {\"check\": \"tier two\", \"actual\": [\"OZ\", 2, 4], \"expected\": [\"OZ\", 2, 4], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [\"OZ\", 4, 5], \"expected\": [\"OZ\", 4, 5], \"passed\": true}, {\"check\": \"generated mix 14\", \"actual\": [\"OZ\", 3, 4], \"expected\": [\"OZ\", 3, 4], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}