{"abstract":"Built pallets exceed the rack opening height by up to the pallet base.","category":"Warehouse slotting and bin packing","checks":8,"contract":"case [l, w, h, kg], pallet [L, W]; cases stay upright but may rotate 90 degrees; all layers share one orientation. Pallet base adds 15 height and 25 kg tare. Cases per pallet are bounded by whole layers within max_h and by max_kg (a partial top layer is allowed). Return [per_layer, layers used, cases, height, weight].","contract_signature":"case, pallet, max_h, max_kg","evaluation_group":"w2-warehouse-slotting-pallet-build","failed_approach":"Reserving an extra case height loses a legitimate top layer.","family":"w2-warehouse-slotting-pallet-build-pallet-base-height","id":"FA-94991","implementations":{"attempt":{"sha256":"140037c3fee5e6618ce82f25d9ed206b7213c51e50574d026efa08b03a2b6d4b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(case, pallet, max_h, max_kg):\n    l, w, h, kg = case\n    L, W = pallet\n    per_layer = max((L // l) * (W // w), (L // w) * (W // l))\n    if per_layer == 0:\n        return [0, 0, 0, 15, 25]\n    layers = (max_h - 15 - h) // h\n    by_weight = (max_kg - 25) // kg\n    cases = min(per_layer * layers, by_weight)\n    if cases <= 0:\n        return [per_layer, 0, 0, 15, 25]\n    full = -(-cases // per_layer)\n    return [per_layer, full, cases, 15 + full * h, 25 + cases * kg]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['generated mix 2', [[30, 30, 30, 8], [120, 100], 100, 1200], [12, 2, 24, 75, 217]], ['rotation wins', [[50, 30, 20, 5], [120, 100], 115, 1000], [8, 5, 40, 115, 225]], ['listed orientation wins', [[30, 20, 20, 5], [120, 100], 115, 1000], [20, 5, 100, 115, 525]], ['weight bound partial layer', [[40, 30, 25, 20], [120, 100], 190, 425], [9, 3, 20, 90, 425]], ['too heavy for one', [[40, 30, 25, 500], [120, 100], 190, 425], [9, 0, 0, 15, 25]], ['height exact', [[40, 30, 25, 2], [120, 100], 140, 2000], [9, 5, 45, 140, 115]], ['generated mix 7', [[40, 30, 20, 5], [120, 80], 140, 1025], [8, 6, 48, 135, 265]], ['generated mix 15', [[50, 20, 30, 8], [120, 80], 115, 800], [8, 3, 24, 105, 217]]], [['generated mix 23', [[25, 25, 25, 12], [120, 100], 100, 800], [16, 3, 48, 90, 601]], ['generated mix 7', [[40, 30, 20, 5], [120, 80], 140, 1025], [8, 6, 48, 135, 265]], ['weight bound partial layer', [[40, 30, 25, 20], [120, 100], 190, 425], [9, 3, 20, 90, 425]], ['too heavy for one', [[40, 30, 25, 500], [120, 100], 190, 425], [9, 0, 0, 15, 25]], ['listed orientation wins', [[30, 20, 20, 5], [120, 100], 115, 1000], [20, 5, 100, 115, 525]], ['height exact', [[40, 30, 25, 2], [120, 100], 140, 2000], [9, 5, 45, 140, 115]], ['generated mix 10', [[30, 15, 20, 5], [120, 80], 190, 1025], [20, 8, 160, 175, 825]], ['generated mix 18', [[30, 25, 10, 2], [120, 100], 115, 1025], [16, 10, 160, 115, 345]]], [['generated mix 55', [[50, 30, 30, 5], [120, 100], 190, 1200], [8, 5, 40, 165, 225]], ['generated mix 12', [[40, 15, 30, 12], [120, 80], 140, 1200], [16, 4, 64, 135, 793]], ['square', [[25, 25, 30, 5], [120, 80], 165, 900], [12, 5, 60, 165, 325]], ['rotation wins', [[50, 30, 20, 5], [120, 100], 115, 1000], [8, 5, 40, 115, 225]], ['weight bound partial layer', [[40, 30, 25, 20], [120, 100], 190, 425], [9, 3, 20, 90, 425]], ['too heavy for one', [[40, 30, 25, 500], [120, 100], 190, 425], [9, 0, 0, 15, 25]], ['generated mix 21', [[25, 20, 30, 2], [120, 80], 140, 300], [18, 4, 72, 135, 169]], ['generated mix 29', [[50, 30, 30, 20], [120, 100], 190, 300], [8, 2, 13, 75, 285]]], [['generated mix 2', [[30, 30, 30, 8], [120, 100], 100, 1200], [12, 2, 24, 75, 217]], ['generated mix 17', [[30, 30, 30, 8], [120, 80], 165, 500], [8, 5, 40, 165, 345]], ['height exact', [[40, 30, 25, 2], [120, 100], 140, 2000], [9, 5, 45, 140, 115]], ['too big', [[130, 30, 25, 2], [120, 100], 190, 425], [0, 0, 0, 15, 25]], ['square', [[25, 25, 30, 5], [120, 80], 165, 900], [12, 5, 60, 165, 325]], ['rotation wins', [[50, 30, 20, 5], [120, 100], 115, 1000], [8, 5, 40, 115, 225]], ['generated mix 33', [[40, 30, 10, 20], [120, 80], 165, 800], [8, 5, 38, 65, 785]], ['generated mix 41', [[25, 25, 10, 20], [120, 100], 165, 1200], [16, 4, 58, 55, 1185]]], [['generated mix 23', [[25, 25, 25, 12], [120, 100], 100, 800], [16, 3, 48, 90, 601]], ['too heavy for one', [[40, 30, 25, 500], [120, 100], 190, 425], [9, 0, 0, 15, 25]], ['listed orientation wins', [[30, 20, 20, 5], [120, 100], 115, 1000], [20, 5, 100, 115, 525]], ['height exact', [[40, 30, 25, 2], [120, 100], 140, 2000], [9, 5, 45, 140, 115]], ['too big', [[130, 30, 25, 2], [120, 100], 190, 425], [0, 0, 0, 15, 25]], ['generated mix 43', [[25, 20, 20, 12], [120, 100], 140, 1200], [24, 5, 97, 115, 1189]], ['generated mix 51', [[25, 15, 10, 8], [120, 80], 165, 500], [24, 3, 59, 45, 497]], ['generated mix 59', [[30, 15, 10, 20], [120, 80], 165, 500], [20, 2, 23, 35, 485]]]]\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":"fdcdf383d31c308594bc0c132dd152f109b2a3007360e4221b5cfafc8daf50ee","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(case, pallet, max_h, max_kg):\n    l, w, h, kg = case\n    L, W = pallet\n    per_layer = max((L // l) * (W // w), (L // w) * (W // l))\n    if per_layer == 0:\n        return [0, 0, 0, 15, 25]\n    layers = max_h // h\n    by_weight = (max_kg - 25) // kg\n    cases = min(per_layer * layers, by_weight)\n    if cases <= 0:\n        return [per_layer, 0, 0, 15, 25]\n    full = -(-cases // per_layer)\n    return [per_layer, full, cases, 15 + full * h, 25 + cases * kg]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['generated mix 2', [[30, 30, 30, 8], [120, 100], 100, 1200], [12, 2, 24, 75, 217]], ['rotation wins', [[50, 30, 20, 5], [120, 100], 115, 1000], [8, 5, 40, 115, 225]], ['listed orientation wins', [[30, 20, 20, 5], [120, 100], 115, 1000], [20, 5, 100, 115, 525]], ['weight bound partial layer', [[40, 30, 25, 20], [120, 100], 190, 425], [9, 3, 20, 90, 425]], ['too heavy for one', [[40, 30, 25, 500], [120, 100], 190, 425], [9, 0, 0, 15, 25]], ['height exact', [[40, 30, 25, 2], [120, 100], 140, 2000], [9, 5, 45, 140, 115]], ['generated mix 7', [[40, 30, 20, 5], [120, 80], 140, 1025], [8, 6, 48, 135, 265]], ['generated mix 15', [[50, 20, 30, 8], [120, 80], 115, 800], [8, 3, 24, 105, 217]]], [['generated mix 23', [[25, 25, 25, 12], [120, 100], 100, 800], [16, 3, 48, 90, 601]], ['generated mix 7', [[40, 30, 20, 5], [120, 80], 140, 1025], [8, 6, 48, 135, 265]], ['weight bound partial layer', [[40, 30, 25, 20], [120, 100], 190, 425], [9, 3, 20, 90, 425]], ['too heavy for one', [[40, 30, 25, 500], [120, 100], 190, 425], [9, 0, 0, 15, 25]], ['listed orientation wins', [[30, 20, 20, 5], [120, 100], 115, 1000], [20, 5, 100, 115, 525]], ['height exact', [[40, 30, 25, 2], [120, 100], 140, 2000], [9, 5, 45, 140, 115]], ['generated mix 10', [[30, 15, 20, 5], [120, 80], 190, 1025], [20, 8, 160, 175, 825]], ['generated mix 18', [[30, 25, 10, 2], [120, 100], 115, 1025], [16, 10, 160, 115, 345]]], [['generated mix 55', [[50, 30, 30, 5], [120, 100], 190, 1200], [8, 5, 40, 165, 225]], ['generated mix 12', [[40, 15, 30, 12], [120, 80], 140, 1200], [16, 4, 64, 135, 793]], ['square', [[25, 25, 30, 5], [120, 80], 165, 900], [12, 5, 60, 165, 325]], ['rotation wins', [[50, 30, 20, 5], [120, 100], 115, 1000], [8, 5, 40, 115, 225]], ['weight bound partial layer', [[40, 30, 25, 20], [120, 100], 190, 425], [9, 3, 20, 90, 425]], ['too heavy for one', [[40, 30, 25, 500], [120, 100], 190, 425], [9, 0, 0, 15, 25]], ['generated mix 21', [[25, 20, 30, 2], [120, 80], 140, 300], [18, 4, 72, 135, 169]], ['generated mix 29', [[50, 30, 30, 20], [120, 100], 190, 300], [8, 2, 13, 75, 285]]], [['generated mix 2', [[30, 30, 30, 8], [120, 100], 100, 1200], [12, 2, 24, 75, 217]], ['generated mix 17', [[30, 30, 30, 8], [120, 80], 165, 500], [8, 5, 40, 165, 345]], ['height exact', [[40, 30, 25, 2], [120, 100], 140, 2000], [9, 5, 45, 140, 115]], ['too big', [[130, 30, 25, 2], [120, 100], 190, 425], [0, 0, 0, 15, 25]], ['square', [[25, 25, 30, 5], [120, 80], 165, 900], [12, 5, 60, 165, 325]], ['rotation wins', [[50, 30, 20, 5], [120, 100], 115, 1000], [8, 5, 40, 115, 225]], ['generated mix 33', [[40, 30, 10, 20], [120, 80], 165, 800], [8, 5, 38, 65, 785]], ['generated mix 41', [[25, 25, 10, 20], [120, 100], 165, 1200], [16, 4, 58, 55, 1185]]], [['generated mix 23', [[25, 25, 25, 12], [120, 100], 100, 800], [16, 3, 48, 90, 601]], ['too heavy for one', [[40, 30, 25, 500], [120, 100], 190, 425], [9, 0, 0, 15, 25]], ['listed orientation wins', [[30, 20, 20, 5], [120, 100], 115, 1000], [20, 5, 100, 115, 525]], ['height exact', [[40, 30, 25, 2], [120, 100], 140, 2000], [9, 5, 45, 140, 115]], ['too big', [[130, 30, 25, 2], [120, 100], 190, 425], [0, 0, 0, 15, 25]], ['generated mix 43', [[25, 20, 20, 12], [120, 100], 140, 1200], [24, 5, 97, 115, 1189]], ['generated mix 51', [[25, 15, 10, 8], [120, 80], 165, 500], [24, 3, 59, 45, 497]], ['generated mix 59', [[30, 15, 10, 20], [120, 80], 165, 500], [20, 2, 23, 35, 485]]]]\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":"Uniform-case, single-orientation layer model; no interlocking patterns. 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-warehouse-slotting-pallet-build-pallet-base-height","generated_at":"2026-09-29T14:52:09.615950+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Pallet build limits govern reserve storage heights and floor loading.","root_cause":"The layer count divides the full height limit by the case height without subtracting the pallet base.","sha256":"c0e19f7bd8a31baf161aaf18bbdc03b8089e9fa8a25b96a9a559dfd3522a451a","title":"Pallet build: base height not deducted · 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":41.877,"exit_code":1,"observations":[{"actual":[12,1,12,45,121],"check":"generated mix 2","expected":[12,2,24,75,217],"passed":false},{"actual":[8,4,32,95,185],"check":"rotation wins","expected":[8,5,40,115,225],"passed":false},{"actual":[20,4,80,95,425],"check":"listed orientation wins","expected":[20,5,100,115,525],"passed":false},{"actual":[9,3,20,90,425],"check":"weight bound partial layer","expected":[9,3,20,90,425],"passed":true},{"actual":[9,0,0,15,25],"check":"too heavy for one","expected":[9,0,0,15,25],"passed":true},{"actual":[9,4,36,115,97],"check":"height exact","expected":[9,5,45,140,115],"passed":false},{"actual":[8,5,40,115,225],"check":"generated mix 7","expected":[8,6,48,135,265],"passed":false},{"actual":[8,2,16,75,153],"check":"generated mix 15","expected":[8,3,24,105,217],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"generated mix 2\", \"actual\": [12, 1, 12, 45, 121], \"expected\": [12, 2, 24, 75, 217], \"passed\": false}, {\"check\": \"rotation wins\", \"actual\": [8, 4, 32, 95, 185], \"expected\": [8, 5, 40, 115, 225], \"passed\": false}, {\"check\": \"listed orientation wins\", \"actual\": [20, 4, 80, 95, 425], \"expected\": [20, 5, 100, 115, 525], \"passed\": false}, {\"check\": \"weight bound partial layer\", \"actual\": [9, 3, 20, 90, 425], \"expected\": [9, 3, 20, 90, 425], \"passed\": true}, {\"check\": \"too heavy for one\", \"actual\": [9, 0, 0, 15, 25], \"expected\": [9, 0, 0, 15, 25], \"passed\": true}, {\"check\": \"height exact\", \"actual\": [9, 4, 36, 115, 97], \"expected\": [9, 5, 45, 140, 115], \"passed\": false}, {\"check\": \"generated mix 7\", \"actual\": [8, 5, 40, 115, 225], \"expected\": [8, 6, 48, 135, 265], \"passed\": false}, {\"check\": \"generated mix 15\", \"actual\": [8, 2, 16, 75, 153], \"expected\": [8, 3, 24, 105, 217], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.762,"exit_code":1,"observations":[{"actual":[12,3,36,105,313],"check":"generated mix 2","expected":[12,2,24,75,217],"passed":false},{"actual":[8,5,40,115,225],"check":"rotation wins","expected":[8,5,40,115,225],"passed":true},{"actual":[20,5,100,115,525],"check":"listed orientation wins","expected":[20,5,100,115,525],"passed":true},{"actual":[9,3,20,90,425],"check":"weight bound partial layer","expected":[9,3,20,90,425],"passed":true},{"actual":[9,0,0,15,25],"check":"too heavy for one","expected":[9,0,0,15,25],"passed":true},{"actual":[9,5,45,140,115],"check":"height exact","expected":[9,5,45,140,115],"passed":true},{"actual":[8,7,56,155,305],"check":"generated mix 7","expected":[8,6,48,135,265],"passed":false},{"actual":[8,3,24,105,217],"check":"generated mix 15","expected":[8,3,24,105,217],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"generated mix 2\", \"actual\": [12, 3, 36, 105, 313], \"expected\": [12, 2, 24, 75, 217], \"passed\": false}, {\"check\": \"rotation wins\", \"actual\": [8, 5, 40, 115, 225], \"expected\": [8, 5, 40, 115, 225], \"passed\": true}, {\"check\": \"listed orientation wins\", \"actual\": [20, 5, 100, 115, 525], \"expected\": [20, 5, 100, 115, 525], \"passed\": true}, {\"check\": \"weight bound partial layer\", \"actual\": [9, 3, 20, 90, 425], \"expected\": [9, 3, 20, 90, 425], \"passed\": true}, {\"check\": \"too heavy for one\", \"actual\": [9, 0, 0, 15, 25], \"expected\": [9, 0, 0, 15, 25], \"passed\": true}, {\"check\": \"height exact\", \"actual\": [9, 5, 45, 140, 115], \"expected\": [9, 5, 45, 140, 115], \"passed\": true}, {\"check\": \"generated mix 7\", \"actual\": [8, 7, 56, 155, 305], \"expected\": [8, 6, 48, 135, 265], \"passed\": false}, {\"check\": \"generated mix 15\", \"actual\": [8, 3, 24, 105, 217], \"expected\": [8, 3, 24, 105, 217], \"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."}}