{"abstract":"Units marked upright-only are counted in lying-down orientations.","category":"Warehouse slotting and bin packing","checks":8,"contract":"slot [width, depth, height], unit [w, d, h]. Upright units may only rotate in the horizontal plane; others may take any of the 6 axis orientations. Vertical layers = height // unit height, capped at max_stack when max_stack > 0 (0 = unlimited). Units = best over orientations of (W//a)*(D//b)*layers. Utilization in basis points = floor(units*unit volume*10000/slot volume).","contract_signature":"slot, unit, max_stack, upright","evaluation_group":"w2-warehouse-slotting-slot-cube-fit","failed_approach":"Allowing no rotation at all misses the legal quarter turn in the horizontal plane.","family":"w2-warehouse-slotting-slot-cube-fit-upright-orientations","id":"FA-95076","implementations":{"attempt":{"sha256":"f13fa1864c3c8c75647f14dd321442a23b0ebbaada1092dc903aaef4a1a1a2f8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport itertools\nN = 1\nobservations = []\ndef solve(slot, unit, max_stack, upright):\n    SW, SD, SH = slot\n    uw, ud, uh = unit\n    if upright:\n        orients = [(uw, ud, uh)]\n    else:\n        orients = sorted(set(itertools.permutations(unit)))\n    best = 0\n    for a, b, c in orients:\n        layers = SH // c\n        if max_stack:\n            layers = min(layers, max_stack)\n        best = max(best, (SW // a) * (SD // b) * layers)\n    bp = best * uw * ud * uh * 10000 // (SW * SD * SH)\n    return [best, bp]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['upright blocked', [[40, 40, 12], [10, 10, 20], 0, True], [0, 0]], ['generated mix 10', [[48, 60, 45], [25, 20, 10], 0, True], [16, 6172]], ['upright plane rotation', [[48, 40, 30], [12, 10, 10], 0, True], [48, 10000]], ['laydown helps', [[40, 40, 12], [10, 10, 20], 0, False], [8, 8333]], ['fraction bp', [[100, 30, 45], [25, 15, 7], 0, True], [48, 9333]], ['stack cap', [[48, 40, 30], [12, 10, 10], 2, True], [32, 6666]], ['unlimited zero', [[20, 20, 40], [10, 10, 10], 0, True], [16, 10000]], ['generated mix 8', [[60, 48, 60], [25, 10, 12], 5, False], [48, 8333]]], [['generated mix 22', [[100, 48, 45], [25, 10, 4], 0, True], [176, 8148]], ['generated mix 63', [[100, 40, 45], [10, 15, 7], 0, True], [144, 8400]], ['upright blocked', [[40, 40, 12], [10, 10, 20], 0, True], [0, 0]], ['fraction bp', [[100, 30, 45], [25, 15, 7], 0, True], [48, 9333]], ['stack cap', [[48, 40, 30], [12, 10, 10], 2, True], [32, 6666]], ['generated mix 9', [[48, 30, 60], [25, 10, 4], 3, False], [72, 8333]], ['generated mix 17', [[100, 60, 45], [10, 6, 35], 2, False], [100, 7777]], ['generated mix 26', [[40, 40, 45], [5, 6, 35], 0, False], [56, 8166]]], [['generated mix 39', [[60, 30, 20], [12, 6, 7], 3, True], [50, 7000]], ['generated mix 29', [[100, 48, 20], [8, 20, 12], 1, True], [30, 6000]], ['upright plane rotation', [[48, 40, 30], [12, 10, 10], 0, True], [48, 10000]], ['laydown helps', [[40, 40, 12], [10, 10, 20], 0, False], [8, 8333]], ['unlimited zero', [[20, 20, 40], [10, 10, 10], 0, True], [16, 10000]], ['generated mix 20', [[48, 60, 60], [25, 10, 4], 3, True], [24, 1388]], ['generated mix 28', [[48, 40, 20], [25, 15, 35], 3, True], [0, 0]], ['generated mix 37', [[40, 48, 20], [8, 6, 7], 1, False], [40, 3500]]], [['generated mix 72', [[60, 48, 45], [12, 6, 10], 2, True], [80, 4444]], ['generated mix 7', [[48, 40, 60], [12, 15, 12], 5, True], [45, 8437]], ['upright blocked', [[40, 40, 12], [10, 10, 20], 0, True], [0, 0]], ['fraction bp', [[100, 30, 45], [25, 15, 7], 0, True], [48, 9333]], ['stack cap', [[48, 40, 30], [12, 10, 10], 2, True], [32, 6666]], ['generated mix 32', [[60, 30, 45], [8, 20, 4], 3, True], [27, 2133]], ['generated mix 40', [[40, 40, 30], [5, 6, 12], 2, False], [96, 7200]], ['generated mix 48', [[60, 30, 45], [5, 20, 12], 2, False], [60, 8888]]], [['generated mix 16', [[60, 30, 60], [25, 15, 7], 1, True], [4, 972]], ['generated mix 44', [[40, 60, 30], [12, 10, 10], 0, True], [60, 10000]], ['upright plane rotation', [[48, 40, 30], [12, 10, 10], 0, True], [48, 10000]], ['laydown helps', [[40, 40, 12], [10, 10, 20], 0, False], [8, 8333]], ['unlimited zero', [[20, 20, 40], [10, 10, 10], 0, True], [16, 10000]], ['generated mix 43', [[48, 48, 45], [25, 10, 10], 1, False], [16, 3858]], ['generated mix 52', [[40, 48, 45], [10, 20, 35], 2, True], [8, 6481]], ['generated mix 60', [[40, 48, 20], [8, 6, 12], 1, False], [40, 6000]]]]\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":"f14011be28acbf6fb8664640ce20b215695852d354f3239a2e98a75de14c09b7","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport itertools\nN = 1\nobservations = []\ndef solve(slot, unit, max_stack, upright):\n    SW, SD, SH = slot\n    uw, ud, uh = unit\n    if upright:\n        orients = sorted(set(itertools.permutations(unit)))\n    else:\n        orients = sorted(set(itertools.permutations(unit)))\n    best = 0\n    for a, b, c in orients:\n        layers = SH // c\n        if max_stack:\n            layers = min(layers, max_stack)\n        best = max(best, (SW // a) * (SD // b) * layers)\n    bp = best * uw * ud * uh * 10000 // (SW * SD * SH)\n    return [best, bp]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['upright blocked', [[40, 40, 12], [10, 10, 20], 0, True], [0, 0]], ['generated mix 10', [[48, 60, 45], [25, 20, 10], 0, True], [16, 6172]], ['upright plane rotation', [[48, 40, 30], [12, 10, 10], 0, True], [48, 10000]], ['laydown helps', [[40, 40, 12], [10, 10, 20], 0, False], [8, 8333]], ['fraction bp', [[100, 30, 45], [25, 15, 7], 0, True], [48, 9333]], ['stack cap', [[48, 40, 30], [12, 10, 10], 2, True], [32, 6666]], ['unlimited zero', [[20, 20, 40], [10, 10, 10], 0, True], [16, 10000]], ['generated mix 8', [[60, 48, 60], [25, 10, 12], 5, False], [48, 8333]]], [['generated mix 22', [[100, 48, 45], [25, 10, 4], 0, True], [176, 8148]], ['generated mix 63', [[100, 40, 45], [10, 15, 7], 0, True], [144, 8400]], ['upright blocked', [[40, 40, 12], [10, 10, 20], 0, True], [0, 0]], ['fraction bp', [[100, 30, 45], [25, 15, 7], 0, True], [48, 9333]], ['stack cap', [[48, 40, 30], [12, 10, 10], 2, True], [32, 6666]], ['generated mix 9', [[48, 30, 60], [25, 10, 4], 3, False], [72, 8333]], ['generated mix 17', [[100, 60, 45], [10, 6, 35], 2, False], [100, 7777]], ['generated mix 26', [[40, 40, 45], [5, 6, 35], 0, False], [56, 8166]]], [['generated mix 39', [[60, 30, 20], [12, 6, 7], 3, True], [50, 7000]], ['generated mix 29', [[100, 48, 20], [8, 20, 12], 1, True], [30, 6000]], ['upright plane rotation', [[48, 40, 30], [12, 10, 10], 0, True], [48, 10000]], ['laydown helps', [[40, 40, 12], [10, 10, 20], 0, False], [8, 8333]], ['unlimited zero', [[20, 20, 40], [10, 10, 10], 0, True], [16, 10000]], ['generated mix 20', [[48, 60, 60], [25, 10, 4], 3, True], [24, 1388]], ['generated mix 28', [[48, 40, 20], [25, 15, 35], 3, True], [0, 0]], ['generated mix 37', [[40, 48, 20], [8, 6, 7], 1, False], [40, 3500]]], [['generated mix 72', [[60, 48, 45], [12, 6, 10], 2, True], [80, 4444]], ['generated mix 7', [[48, 40, 60], [12, 15, 12], 5, True], [45, 8437]], ['upright blocked', [[40, 40, 12], [10, 10, 20], 0, True], [0, 0]], ['fraction bp', [[100, 30, 45], [25, 15, 7], 0, True], [48, 9333]], ['stack cap', [[48, 40, 30], [12, 10, 10], 2, True], [32, 6666]], ['generated mix 32', [[60, 30, 45], [8, 20, 4], 3, True], [27, 2133]], ['generated mix 40', [[40, 40, 30], [5, 6, 12], 2, False], [96, 7200]], ['generated mix 48', [[60, 30, 45], [5, 20, 12], 2, False], [60, 8888]]], [['generated mix 16', [[60, 30, 60], [25, 15, 7], 1, True], [4, 972]], ['generated mix 44', [[40, 60, 30], [12, 10, 10], 0, True], [60, 10000]], ['upright plane rotation', [[48, 40, 30], [12, 10, 10], 0, True], [48, 10000]], ['laydown helps', [[40, 40, 12], [10, 10, 20], 0, False], [8, 8333]], ['unlimited zero', [[20, 20, 40], [10, 10, 10], 0, True], [16, 10000]], ['generated mix 43', [[48, 48, 45], [25, 10, 10], 1, False], [16, 3858]], ['generated mix 52', [[40, 48, 45], [10, 20, 35], 2, True], [8, 6481]], ['generated mix 60', [[40, 48, 20], [8, 6, 12], 1, False], [40, 6000]]]]\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 unit, single orientation per slot; no mixed orientation packing. 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-slot-cube-fit-upright-orientations","generated_at":"2026-09-29T14:52:10.439831+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Slot sizing converts product cube into units per location for slotting and replenishment.","root_cause":"The upright branch enumerates all six axis permutations.","sha256":"7f5a2240d70c746ee93de3a7f335be5c92160aa2c8a8b6e3acffa0b8a67a6613","title":"Slot fit: this-side-up units laid down · 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":42.774,"exit_code":1,"observations":[{"actual":[0,0],"check":"upright blocked","expected":[0,0],"passed":true},{"actual":[12,4629],"check":"generated mix 10","expected":[16,6172],"passed":false},{"actual":[48,10000],"check":"upright plane rotation","expected":[48,10000],"passed":true},{"actual":[8,8333],"check":"laydown helps","expected":[8,8333],"passed":true},{"actual":[48,9333],"check":"fraction bp","expected":[48,9333],"passed":true},{"actual":[32,6666],"check":"stack cap","expected":[32,6666],"passed":true},{"actual":[16,10000],"check":"unlimited zero","expected":[16,10000],"passed":true},{"actual":[48,8333],"check":"generated mix 8","expected":[48,8333],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"upright blocked\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}, {\"check\": \"generated mix 10\", \"actual\": [12, 4629], \"expected\": [16, 6172], \"passed\": false}, {\"check\": \"upright plane rotation\", \"actual\": [48, 10000], \"expected\": [48, 10000], \"passed\": true}, {\"check\": \"laydown helps\", \"actual\": [8, 8333], \"expected\": [8, 8333], \"passed\": true}, {\"check\": \"fraction bp\", \"actual\": [48, 9333], \"expected\": [48, 9333], \"passed\": true}, {\"check\": \"stack cap\", \"actual\": [32, 6666], \"expected\": [32, 6666], \"passed\": true}, {\"check\": \"unlimited zero\", \"actual\": [16, 10000], \"expected\": [16, 10000], \"passed\": true}, {\"check\": \"generated mix 8\", \"actual\": [48, 8333], \"expected\": [48, 8333], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.622,"exit_code":1,"observations":[{"actual":[8,8333],"check":"upright blocked","expected":[0,0],"passed":false},{"actual":[16,6172],"check":"generated mix 10","expected":[16,6172],"passed":true},{"actual":[48,10000],"check":"upright plane rotation","expected":[48,10000],"passed":true},{"actual":[8,8333],"check":"laydown helps","expected":[8,8333],"passed":true},{"actual":[48,9333],"check":"fraction bp","expected":[48,9333],"passed":true},{"actual":[32,6666],"check":"stack cap","expected":[32,6666],"passed":true},{"actual":[16,10000],"check":"unlimited zero","expected":[16,10000],"passed":true},{"actual":[48,8333],"check":"generated mix 8","expected":[48,8333],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"upright blocked\", \"actual\": [8, 8333], \"expected\": [0, 0], \"passed\": false}, {\"check\": \"generated mix 10\", \"actual\": [16, 6172], \"expected\": [16, 6172], \"passed\": true}, {\"check\": \"upright plane rotation\", \"actual\": [48, 10000], \"expected\": [48, 10000], \"passed\": true}, {\"check\": \"laydown helps\", \"actual\": [8, 8333], \"expected\": [8, 8333], \"passed\": true}, {\"check\": \"fraction bp\", \"actual\": [48, 9333], \"expected\": [48, 9333], \"passed\": true}, {\"check\": \"stack cap\", \"actual\": [32, 6666], \"expected\": [32, 6666], \"passed\": true}, {\"check\": \"unlimited zero\", \"actual\": [16, 10000], \"expected\": [16, 10000], \"passed\": true}, {\"check\": \"generated mix 8\", \"actual\": [48, 8333], \"expected\": [48, 8333], \"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."}}