{"abstract":"Height is reported one layer short when the top layer is partial.","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":"Always adding one layer overstates height when the last layer is complete.","family":"w2-warehouse-slotting-pallet-build-partial-top-layer","id":"FA-95001","implementations":{"attempt":{"sha256":"b3fccf25d603de9127ad135eeba6902e93f6e721b91869b5a6a80eb5a742705d","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\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 + 1\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 = [[['weight bound partial layer', [[40, 30, 25, 20], [120, 100], 190, 425], [9, 3, 20, 90, 425]], ['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]], ['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]], ['height exact', [[40, 30, 25, 2], [120, 100], 140, 2000], [9, 5, 45, 140, 115]], ['too heavy for one', [[40, 30, 25, 500], [120, 100], 190, 425], [9, 0, 0, 15, 25]], ['generated mix 8', [[40, 15, 30, 8], [120, 80], 100, 800], [16, 2, 32, 75, 281]]], [['generated mix 24', [[25, 30, 10, 12], [120, 100], 115, 1025], [16, 6, 83, 75, 1021]], ['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 36', [[25, 30, 20, 12], [120, 80], 115, 500], [12, 4, 39, 95, 493]], ['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 44', [[30, 30, 10, 5], [120, 80], 140, 500], [8, 12, 95, 135, 500]], ['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 32', [[40, 30, 10, 8], [120, 100], 165, 300], [9, 4, 34, 55, 297]], ['generated mix 40', [[20, 15, 30, 20], [120, 80], 190, 500], [32, 1, 23, 45, 485]]], [['generated mix 59', [[30, 15, 10, 20], [120, 80], 165, 500], [20, 2, 23, 35, 485]], ['generated mix 26', [[25, 30, 25, 12], [120, 80], 140, 1200], [12, 5, 60, 140, 745]], ['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]]]]\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":"c27a47da02d6e88c58b3c99cea40f8ccbd93abc683664133f216fabb3fef69f6","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\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 = [[['weight bound partial layer', [[40, 30, 25, 20], [120, 100], 190, 425], [9, 3, 20, 90, 425]], ['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]], ['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]], ['height exact', [[40, 30, 25, 2], [120, 100], 140, 2000], [9, 5, 45, 140, 115]], ['too heavy for one', [[40, 30, 25, 500], [120, 100], 190, 425], [9, 0, 0, 15, 25]], ['generated mix 8', [[40, 15, 30, 8], [120, 80], 100, 800], [16, 2, 32, 75, 281]]], [['generated mix 24', [[25, 30, 10, 12], [120, 100], 115, 1025], [16, 6, 83, 75, 1021]], ['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 36', [[25, 30, 20, 12], [120, 80], 115, 500], [12, 4, 39, 95, 493]], ['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 44', [[30, 30, 10, 5], [120, 80], 140, 500], [8, 12, 95, 135, 500]], ['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 32', [[40, 30, 10, 8], [120, 100], 165, 300], [9, 4, 34, 55, 297]], ['generated mix 40', [[20, 15, 30, 20], [120, 80], 190, 500], [32, 1, 23, 45, 485]]], [['generated mix 59', [[30, 15, 10, 20], [120, 80], 165, 500], [20, 2, 23, 35, 485]], ['generated mix 26', [[25, 30, 25, 12], [120, 80], 140, 1200], [12, 5, 60, 140, 745]], ['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]]]]\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-partial-top-layer","generated_at":"2026-09-29T14:52:09.752830+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":"Layers used are computed with floor division, dropping a partial top layer.","sha256":"b47171045a637d82d48bc7e42a9afc273680a8ffae364640395645bdde5e1bc9","title":"Pallet build: partial top layer not counted · 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.554,"exit_code":1,"observations":[{"actual":[9,3,20,90,425],"check":"weight bound partial layer","expected":[9,3,20,90,425],"passed":true},{"actual":[8,6,40,135,225],"check":"rotation wins","expected":[8,5,40,115,225],"passed":false},{"actual":[20,6,100,135,525],"check":"listed orientation wins","expected":[20,5,100,115,525],"passed":false},{"actual":[0,0,0,15,25],"check":"too big","expected":[0,0,0,15,25],"passed":true},{"actual":[12,6,60,195,325],"check":"square","expected":[12,5,60,165,325],"passed":false},{"actual":[9,6,45,165,115],"check":"height exact","expected":[9,5,45,140,115],"passed":false},{"actual":[9,0,0,15,25],"check":"too heavy for one","expected":[9,0,0,15,25],"passed":true},{"actual":[16,3,32,105,281],"check":"generated mix 8","expected":[16,2,32,75,281],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"weight bound partial layer\", \"actual\": [9, 3, 20, 90, 425], \"expected\": [9, 3, 20, 90, 425], \"passed\": true}, {\"check\": \"rotation wins\", \"actual\": [8, 6, 40, 135, 225], \"expected\": [8, 5, 40, 115, 225], \"passed\": false}, {\"check\": \"listed orientation wins\", \"actual\": [20, 6, 100, 135, 525], \"expected\": [20, 5, 100, 115, 525], \"passed\": false}, {\"check\": \"too big\", \"actual\": [0, 0, 0, 15, 25], \"expected\": [0, 0, 0, 15, 25], \"passed\": true}, {\"check\": \"square\", \"actual\": [12, 6, 60, 195, 325], \"expected\": [12, 5, 60, 165, 325], \"passed\": false}, {\"check\": \"height exact\", \"actual\": [9, 6, 45, 165, 115], \"expected\": [9, 5, 45, 140, 115], \"passed\": false}, {\"check\": \"too heavy for one\", \"actual\": [9, 0, 0, 15, 25], \"expected\": [9, 0, 0, 15, 25], \"passed\": true}, {\"check\": \"generated mix 8\", \"actual\": [16, 3, 32, 105, 281], \"expected\": [16, 2, 32, 75, 281], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.866,"exit_code":1,"observations":[{"actual":[9,2,20,65,425],"check":"weight bound partial layer","expected":[9,3,20,90,425],"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":[0,0,0,15,25],"check":"too big","expected":[0,0,0,15,25],"passed":true},{"actual":[12,5,60,165,325],"check":"square","expected":[12,5,60,165,325],"passed":true},{"actual":[9,5,45,140,115],"check":"height exact","expected":[9,5,45,140,115],"passed":true},{"actual":[9,0,0,15,25],"check":"too heavy for one","expected":[9,0,0,15,25],"passed":true},{"actual":[16,2,32,75,281],"check":"generated mix 8","expected":[16,2,32,75,281],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"weight bound partial layer\", \"actual\": [9, 2, 20, 65, 425], \"expected\": [9, 3, 20, 90, 425], \"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\": \"too big\", \"actual\": [0, 0, 0, 15, 25], \"expected\": [0, 0, 0, 15, 25], \"passed\": true}, {\"check\": \"square\", \"actual\": [12, 5, 60, 165, 325], \"expected\": [12, 5, 60, 165, 325], \"passed\": true}, {\"check\": \"height exact\", \"actual\": [9, 5, 45, 140, 115], \"expected\": [9, 5, 45, 140, 115], \"passed\": true}, {\"check\": \"too heavy for one\", \"actual\": [9, 0, 0, 15, 25], \"expected\": [9, 0, 0, 15, 25], \"passed\": true}, {\"check\": \"generated mix 8\", \"actual\": [16, 2, 32, 75, 281], \"expected\": [16, 2, 32, 75, 281], \"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."}}