{"abstract":"A zero-quantity order line adds negative or phantom volume and uses a SKU slot.","category":"Warehouse slotting and bin packing","checks":8,"contract":"lines [[sku, qty, unit_volume, nest_increment]]. Lines for the same SKU are merged. A nesting SKU (increment > 0) occupies unit_volume + (qty-1)*increment; others qty*unit_volume; qty 0 contributes nothing and is not counted. Bin fits when total <= bin_vol and distinct stocked SKUs <= max_skus. Return [total, fits].","contract_signature":"lines, bin_vol, max_skus","evaluation_group":"w2-warehouse-slotting-nesting-bin","failed_approach":"Skipping only the volume still counts the empty SKU against the SKU limit.","family":"w2-warehouse-slotting-nesting-bin-zero-qty-lines","id":"FA-95156","implementations":{"attempt":{"sha256":"1309da36c4dae33b81b03d933b16f0fa51c760436085c8f6e9a95a8a8d897a80","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(lines, bin_vol, max_skus):\n    merged = {}\n    for sku, qty, uv, nv in lines:\n        if sku in merged:\n            merged[sku][0] += qty\n        else:\n            merged[sku] = [qty, uv, nv]\n    total = 0\n    count = 0\n    for sku, (qty, uv, nv) in merged.items():\n        count += 1\n        if qty <= 0:\n            continue\n        if nv > 0:\n            total += uv + (qty - 1) * nv\n        else:\n            total += qty * uv\n    return [total, total <= bin_vol and count <= max_skus]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['zero line', [[['CUP', 1, 10, 2], ['BOX', 0, 40, 0]], 30, 1], [10, True]], ['generated mix 5', [[['TRY', 10, 25, 5], ['LID', 0, 4, 0]], 120, 1], [70, True]], ['nesting', [[['CUP', 10, 10, 2]], 30, 1], [28, True]], ['merged lines nest together', [[['CUP', 5, 10, 2], ['CUP', 5, 10, 2]], 30, 1], [28, True]], ['sku limit', [[['CUP', 1, 10, 2], ['LID', 1, 4, 0]], 100, 1], [14, False]], ['capacity equal', [[['CUP', 11, 10, 2]], 30, 1], [30, True]], ['non nesting', [[['BOX', 2, 40, 0]], 80, 1], [80, True]], ['generated mix 9', [[['CUP', 10, 10, 2], ['TRY', 10, 25, 5], ['BOX', 5, 40, 0], ['LID', 10, 4, 0], ['BWL', 2, 30, 6]], 80, 1], [374, False]]], [['generated mix 28', [[['TRY', 0, 25, 5]], 120, 1], [0, True]], ['generated mix 5', [[['TRY', 10, 25, 5], ['LID', 0, 4, 0]], 120, 1], [70, True]], ['zero line', [[['CUP', 1, 10, 2], ['BOX', 0, 40, 0]], 30, 1], [10, True]], ['sku limit', [[['CUP', 1, 10, 2], ['LID', 1, 4, 0]], 100, 1], [14, False]], ['capacity equal', [[['CUP', 11, 10, 2]], 30, 1], [30, True]], ['generated mix 10', [[['CUP', 10, 10, 2], ['BOX', 0, 40, 0], ['BOX', 1, 40, 0]], 80, 1], [68, False]], ['generated mix 18', [[['CUP', 10, 10, 2]], 150, 2], [28, True]], ['generated mix 26', [[['CUP', 5, 10, 2], ['BOX', 1, 40, 0], ['BOX', 2, 40, 0]], 50, 3], [138, False]]], [['generated mix 57', [[['BWL', 0, 30, 6]], 120, 3], [0, True]], ['generated mix 5', [[['TRY', 10, 25, 5], ['LID', 0, 4, 0]], 120, 1], [70, True]], ['nesting', [[['CUP', 10, 10, 2]], 30, 1], [28, True]], ['merged lines nest together', [[['CUP', 5, 10, 2], ['CUP', 5, 10, 2]], 30, 1], [28, True]], ['non nesting', [[['BOX', 2, 40, 0]], 80, 1], [80, True]], ['generated mix 21', [[['BWL', 1, 30, 6], ['CUP', 5, 10, 2], ['BOX', 0, 40, 0], ['TRY', 5, 25, 5], ['BWL', 2, 30, 6]], 100, 2], [105, False]], ['generated mix 29', [[['TRY', 0, 25, 5], ['LID', 2, 4, 0], ['BOX', 5, 40, 0]], 150, 2], [208, False]], ['generated mix 37', [[['BWL', 5, 30, 6], ['BOX', 5, 40, 0], ['LID', 1, 4, 0], ['LID', 2, 4, 0]], 100, 2], [266, False]]], [['generated mix 19', [[['BOX', 2, 40, 0], ['TRY', 0, 25, 5]], 80, 3], [80, True]], ['generated mix 5', [[['TRY', 10, 25, 5], ['LID', 0, 4, 0]], 120, 1], [70, True]], ['zero line', [[['CUP', 1, 10, 2], ['BOX', 0, 40, 0]], 30, 1], [10, True]], ['sku limit', [[['CUP', 1, 10, 2], ['LID', 1, 4, 0]], 100, 1], [14, False]], ['capacity equal', [[['CUP', 11, 10, 2]], 30, 1], [30, True]], ['generated mix 33', [[['LID', 5, 4, 0], ['CUP', 1, 10, 2], ['TRY', 0, 25, 5], ['BWL', 10, 30, 6]], 50, 3], [114, False]], ['generated mix 41', [[['BOX', 2, 40, 0]], 120, 2], [80, True]], ['generated mix 49', [[['BWL', 0, 30, 6], ['LID', 1, 4, 0], ['LID', 10, 4, 0], ['BWL', 10, 30, 6]], 120, 1], [128, False]]], [['generated mix 51', [[['LID', 10, 4, 0], ['TRY', 0, 25, 5], ['BWL', 10, 30, 6]], 150, 2], [124, True]], ['generated mix 5', [[['TRY', 10, 25, 5], ['LID', 0, 4, 0]], 120, 1], [70, True]], ['nesting', [[['CUP', 10, 10, 2]], 30, 1], [28, True]], ['merged lines nest together', [[['CUP', 5, 10, 2], ['CUP', 5, 10, 2]], 30, 1], [28, True]], ['non nesting', [[['BOX', 2, 40, 0]], 80, 1], [80, True]], ['generated mix 43', [[['LID', 2, 4, 0], ['TRY', 5, 25, 5]], 100, 2], [53, True]], ['generated mix 52', [[['CUP', 1, 10, 2]], 120, 3], [10, True]], ['generated mix 60', [[['LID', 1, 4, 0], ['BWL', 10, 30, 6]], 120, 2], [88, True]]]]\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":"e38274241999214b8367462a09ae4ffe1069e7b828347ca47d9b9f8d7ff8da0e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(lines, bin_vol, max_skus):\n    merged = {}\n    for sku, qty, uv, nv in lines:\n        if sku in merged:\n            merged[sku][0] += qty\n        else:\n            merged[sku] = [qty, uv, nv]\n    total = 0\n    count = 0\n    for sku, (qty, uv, nv) in merged.items():\n        count += 1\n        if nv > 0:\n            total += uv + (qty - 1) * nv\n        else:\n            total += qty * uv\n    return [total, total <= bin_vol and count <= max_skus]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['zero line', [[['CUP', 1, 10, 2], ['BOX', 0, 40, 0]], 30, 1], [10, True]], ['generated mix 5', [[['TRY', 10, 25, 5], ['LID', 0, 4, 0]], 120, 1], [70, True]], ['nesting', [[['CUP', 10, 10, 2]], 30, 1], [28, True]], ['merged lines nest together', [[['CUP', 5, 10, 2], ['CUP', 5, 10, 2]], 30, 1], [28, True]], ['sku limit', [[['CUP', 1, 10, 2], ['LID', 1, 4, 0]], 100, 1], [14, False]], ['capacity equal', [[['CUP', 11, 10, 2]], 30, 1], [30, True]], ['non nesting', [[['BOX', 2, 40, 0]], 80, 1], [80, True]], ['generated mix 9', [[['CUP', 10, 10, 2], ['TRY', 10, 25, 5], ['BOX', 5, 40, 0], ['LID', 10, 4, 0], ['BWL', 2, 30, 6]], 80, 1], [374, False]]], [['generated mix 28', [[['TRY', 0, 25, 5]], 120, 1], [0, True]], ['generated mix 5', [[['TRY', 10, 25, 5], ['LID', 0, 4, 0]], 120, 1], [70, True]], ['zero line', [[['CUP', 1, 10, 2], ['BOX', 0, 40, 0]], 30, 1], [10, True]], ['sku limit', [[['CUP', 1, 10, 2], ['LID', 1, 4, 0]], 100, 1], [14, False]], ['capacity equal', [[['CUP', 11, 10, 2]], 30, 1], [30, True]], ['generated mix 10', [[['CUP', 10, 10, 2], ['BOX', 0, 40, 0], ['BOX', 1, 40, 0]], 80, 1], [68, False]], ['generated mix 18', [[['CUP', 10, 10, 2]], 150, 2], [28, True]], ['generated mix 26', [[['CUP', 5, 10, 2], ['BOX', 1, 40, 0], ['BOX', 2, 40, 0]], 50, 3], [138, False]]], [['generated mix 57', [[['BWL', 0, 30, 6]], 120, 3], [0, True]], ['generated mix 5', [[['TRY', 10, 25, 5], ['LID', 0, 4, 0]], 120, 1], [70, True]], ['nesting', [[['CUP', 10, 10, 2]], 30, 1], [28, True]], ['merged lines nest together', [[['CUP', 5, 10, 2], ['CUP', 5, 10, 2]], 30, 1], [28, True]], ['non nesting', [[['BOX', 2, 40, 0]], 80, 1], [80, True]], ['generated mix 21', [[['BWL', 1, 30, 6], ['CUP', 5, 10, 2], ['BOX', 0, 40, 0], ['TRY', 5, 25, 5], ['BWL', 2, 30, 6]], 100, 2], [105, False]], ['generated mix 29', [[['TRY', 0, 25, 5], ['LID', 2, 4, 0], ['BOX', 5, 40, 0]], 150, 2], [208, False]], ['generated mix 37', [[['BWL', 5, 30, 6], ['BOX', 5, 40, 0], ['LID', 1, 4, 0], ['LID', 2, 4, 0]], 100, 2], [266, False]]], [['generated mix 19', [[['BOX', 2, 40, 0], ['TRY', 0, 25, 5]], 80, 3], [80, True]], ['generated mix 5', [[['TRY', 10, 25, 5], ['LID', 0, 4, 0]], 120, 1], [70, True]], ['zero line', [[['CUP', 1, 10, 2], ['BOX', 0, 40, 0]], 30, 1], [10, True]], ['sku limit', [[['CUP', 1, 10, 2], ['LID', 1, 4, 0]], 100, 1], [14, False]], ['capacity equal', [[['CUP', 11, 10, 2]], 30, 1], [30, True]], ['generated mix 33', [[['LID', 5, 4, 0], ['CUP', 1, 10, 2], ['TRY', 0, 25, 5], ['BWL', 10, 30, 6]], 50, 3], [114, False]], ['generated mix 41', [[['BOX', 2, 40, 0]], 120, 2], [80, True]], ['generated mix 49', [[['BWL', 0, 30, 6], ['LID', 1, 4, 0], ['LID', 10, 4, 0], ['BWL', 10, 30, 6]], 120, 1], [128, False]]], [['generated mix 51', [[['LID', 10, 4, 0], ['TRY', 0, 25, 5], ['BWL', 10, 30, 6]], 150, 2], [124, True]], ['generated mix 5', [[['TRY', 10, 25, 5], ['LID', 0, 4, 0]], 120, 1], [70, True]], ['nesting', [[['CUP', 10, 10, 2]], 30, 1], [28, True]], ['merged lines nest together', [[['CUP', 5, 10, 2], ['CUP', 5, 10, 2]], 30, 1], [28, True]], ['non nesting', [[['BOX', 2, 40, 0]], 80, 1], [80, True]], ['generated mix 43', [[['LID', 2, 4, 0], ['TRY', 5, 25, 5]], 100, 2], [53, True]], ['generated mix 52', [[['CUP', 1, 10, 2]], 120, 3], [10, True]], ['generated mix 60', [[['LID', 1, 4, 0], ['BWL', 10, 30, 6]], 120, 2], [88, True]]]]\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 linear nesting model; no orientation or partial stacks. 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-nesting-bin-zero-qty-lines","generated_at":"2026-09-29T14:52:11.081547+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Nesting products such as cups and trays occupy far less space than unit cube suggests.","root_cause":"Zero-quantity SKUs are not skipped before volume and SKU count are accumulated.","sha256":"4ee646e5730deb5b65e2f894f9ffeeea4f16bb7967239003abf42ec226f5829a","title":"Nested bin fill: empty lines consume volume · 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.065,"exit_code":1,"observations":[{"actual":[10,false],"check":"zero line","expected":[10,true],"passed":false},{"actual":[70,false],"check":"generated mix 5","expected":[70,true],"passed":false},{"actual":[28,true],"check":"nesting","expected":[28,true],"passed":true},{"actual":[28,true],"check":"merged lines nest together","expected":[28,true],"passed":true},{"actual":[14,false],"check":"sku limit","expected":[14,false],"passed":true},{"actual":[30,true],"check":"capacity equal","expected":[30,true],"passed":true},{"actual":[80,true],"check":"non nesting","expected":[80,true],"passed":true},{"actual":[374,false],"check":"generated mix 9","expected":[374,false],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"zero line\", \"actual\": [10, false], \"expected\": [10, true], \"passed\": false}, {\"check\": \"generated mix 5\", \"actual\": [70, false], \"expected\": [70, true], \"passed\": false}, {\"check\": \"nesting\", \"actual\": [28, true], \"expected\": [28, true], \"passed\": true}, {\"check\": \"merged lines nest together\", \"actual\": [28, true], \"expected\": [28, true], \"passed\": true}, {\"check\": \"sku limit\", \"actual\": [14, false], \"expected\": [14, false], \"passed\": true}, {\"check\": \"capacity equal\", \"actual\": [30, true], \"expected\": [30, true], \"passed\": true}, {\"check\": \"non nesting\", \"actual\": [80, true], \"expected\": [80, true], \"passed\": true}, {\"check\": \"generated mix 9\", \"actual\": [374, false], \"expected\": [374, false], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.124,"exit_code":1,"observations":[{"actual":[10,false],"check":"zero line","expected":[10,true],"passed":false},{"actual":[70,false],"check":"generated mix 5","expected":[70,true],"passed":false},{"actual":[28,true],"check":"nesting","expected":[28,true],"passed":true},{"actual":[28,true],"check":"merged lines nest together","expected":[28,true],"passed":true},{"actual":[14,false],"check":"sku limit","expected":[14,false],"passed":true},{"actual":[30,true],"check":"capacity equal","expected":[30,true],"passed":true},{"actual":[80,true],"check":"non nesting","expected":[80,true],"passed":true},{"actual":[374,false],"check":"generated mix 9","expected":[374,false],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"zero line\", \"actual\": [10, false], \"expected\": [10, true], \"passed\": false}, {\"check\": \"generated mix 5\", \"actual\": [70, false], \"expected\": [70, true], \"passed\": false}, {\"check\": \"nesting\", \"actual\": [28, true], \"expected\": [28, true], \"passed\": true}, {\"check\": \"merged lines nest together\", \"actual\": [28, true], \"expected\": [28, true], \"passed\": true}, {\"check\": \"sku limit\", \"actual\": [14, false], \"expected\": [14, false], \"passed\": true}, {\"check\": \"capacity equal\", \"actual\": [30, true], \"expected\": [30, true], \"passed\": true}, {\"check\": \"non nesting\", \"actual\": [80, true], \"expected\": [80, true], \"passed\": true}, {\"check\": \"generated mix 9\", \"actual\": [374, false], \"expected\": [374, false], \"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."}}