{"abstract":"A face at half its minimum is worked after a face that is nearly full relative to a large minimum.","category":"Warehouse slotting and bin packing","checks":8,"contract":"faces [[loc, on_hand, min, max, case_pack, reserve_units]], min >= 1. Replenish when on_hand <= min. Quantity is the largest number of full cases that keeps on_hand <= max, limited to full cases available in reserve. A stocked-out face whose max leaves no room for a full case still gets one case if reserve has one. Zero-quantity tasks are dropped. Tasks are ordered by on_hand/min ascending, then loc.","evaluation_group":"w2-warehouse-slotting-pickface-replen","failed_approach":"Ranking by on-hand relative to max measures fullness, not how close the face is to its reorder point.","family":"w2-warehouse-slotting-pickface-replen-urgency-order","id":"FA-94916","implementations":{"attempt":{"sha256":"75d939395102bc5f343da5fff958e355c653df7066556555ea7bbaa49064cb77","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(faces):\n    tasks = []\n    for loc, oh, mn, mx, cp, reserve in faces:\n        if oh > mn:\n            continue\n        avail = reserve // cp * cp\n        qty = (mx - oh) // cp * cp\n        qty = min(qty, avail)\n        if qty == 0 and oh == 0 and avail >= cp:\n            qty = cp\n        if qty == 0:\n            continue\n        tasks.append((Fraction(oh, mx), loc, qty))\n    tasks.sort()\n    return [[loc, qty] for _, loc, qty in tasks]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['generated mix 39', [[['F0', 5, 6, 12, 4, 100], ['F1', 4, 4, 28, 1, 48]]], [['F0', 4], ['F1', 24]]], ['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['above min idle', [[['A', 11, 10, 34, 12, 100]]], []], ['generated mix 6', [[['F0', 1, 12, 18, 6, 12], ['F1', 10, 10, 10, 1, 100], ['F2', 0, 6, 9, 12, 3]]], [['F0', 12]]], ['generated mix 14', [[['F0', 13, 12, 24, 6, 3], ['F1', 0, 6, 9, 4, 48], ['F2', 0, 12, 18, 4, 48]]], [['F1', 8], ['F2', 16]]]], [['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['priority by ratio', [[['X', 5, 10, 40, 5, 100], ['Y', 2, 8, 40, 5, 100], ['Z', 0, 6, 40, 5, 100]]], [['Z', 40], ['Y', 35], ['X', 35]]], ['above min idle', [[['A', 11, 10, 34, 12, 100]]], []], ['generated mix 9', [[['F0', 6, 6, 9, 1, 100], ['F1', 1, 12, 18, 6, 0]]], [['F0', 3]]], ['generated mix 17', [[['F0', 1, 12, 24, 4, 12], ['F1', 12, 12, 18, 4, 24], ['F2', 11, 12, 24, 1, 12], ['F3', 11, 10, 40, 12, 100]]], [['F0', 12], ['F2', 12], ['F1', 4]]], ['generated mix 25', [[['F0', 3, 4, 34, 12, 12], ['F1', 0, 10, 10, 12, 48], ['F2', 1, 10, 34, 1, 100], ['F3', 3, 4, 28, 6, 100]]], [['F1', 12], ['F2', 33], ['F0', 12], ['F3', 24]]], ['generated mix 33', [[['F0', 13, 12, 36, 12, 48], ['F1', 5, 4, 10, 6, 100], ['F2', 4, 4, 10, 12, 24]]], []]], [['generated mix 39', [[['F0', 5, 6, 12, 4, 100], ['F1', 4, 4, 28, 1, 48]]], [['F0', 4], ['F1', 24]]], ['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['generated mix 20', [[['F0', 0, 12, 36, 4, 48]]], [['F0', 36]]], ['generated mix 28', [[['F0', 3, 6, 36, 6, 48], ['F1', 1, 12, 42, 12, 3]]], [['F0', 30]]], ['generated mix 36', [[['F0', 0, 6, 6, 4, 3], ['F1', 5, 6, 12, 12, 48]]], []]], [['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['priority by ratio', [[['X', 5, 10, 40, 5, 100], ['Y', 2, 8, 40, 5, 100], ['Z', 0, 6, 40, 5, 100]]], [['Z', 40], ['Y', 35], ['X', 35]]], ['above min idle', [[['A', 11, 10, 34, 12, 100]]], []], ['generated mix 31', [[['F0', 9, 10, 10, 4, 100], ['F1', 5, 6, 36, 1, 24]]], [['F1', 24]]], ['generated mix 39', [[['F0', 5, 6, 12, 4, 100], ['F1', 4, 4, 28, 1, 48]]], [['F0', 4], ['F1', 24]]], ['generated mix 47', [[['F0', 0, 10, 22, 12, 0], ['F1', 11, 10, 40, 12, 48]]], []], ['generated mix 56', [[['F0', 0, 6, 12, 6, 12], ['F1', 7, 6, 30, 1, 48], ['F2', 12, 12, 36, 6, 100], ['F3', 6, 6, 30, 6, 3], ['F4', 0, 4, 7, 6, 100]]], [['F0', 12], ['F4', 6], ['F2', 24]]]], [['generated mix 39', [[['F0', 5, 6, 12, 4, 100], ['F1', 4, 4, 28, 1, 48]]], [['F0', 4], ['F1', 24]]], ['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['generated mix 43', [[['F0', 0, 6, 18, 4, 24], ['F1', 3, 4, 34, 4, 48], ['F2', 1, 4, 10, 12, 0], ['F3', 1, 4, 34, 12, 12]]], [['F0', 16], ['F3', 12], ['F1', 28]]], ['generated mix 52', [[['F0', 11, 10, 16, 6, 3], ['F1', 10, 10, 13, 4, 24], ['F2', 0, 4, 28, 1, 100], ['F3', 12, 12, 42, 4, 0]]], [['F2', 28]]], ['generated mix 60', [[['F0', 0, 10, 40, 1, 24], ['F1', 3, 6, 30, 4, 100], ['F2', 4, 4, 4, 6, 100]]], [['F0', 24], ['F1', 24]]]]]\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":"f9d52f1d4fcb2e68c70ef90cb981beb03a0152c593eb298cad11719cb7df19e2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(faces):\n    tasks = []\n    for loc, oh, mn, mx, cp, reserve in faces:\n        if oh > mn:\n            continue\n        avail = reserve // cp * cp\n        qty = (mx - oh) // cp * cp\n        qty = min(qty, avail)\n        if qty == 0 and oh == 0 and avail >= cp:\n            qty = cp\n        if qty == 0:\n            continue\n        tasks.append((oh, loc, qty))\n    tasks.sort()\n    return [[loc, qty] for _, loc, qty in tasks]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['generated mix 39', [[['F0', 5, 6, 12, 4, 100], ['F1', 4, 4, 28, 1, 48]]], [['F0', 4], ['F1', 24]]], ['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['above min idle', [[['A', 11, 10, 34, 12, 100]]], []], ['generated mix 6', [[['F0', 1, 12, 18, 6, 12], ['F1', 10, 10, 10, 1, 100], ['F2', 0, 6, 9, 12, 3]]], [['F0', 12]]], ['generated mix 14', [[['F0', 13, 12, 24, 6, 3], ['F1', 0, 6, 9, 4, 48], ['F2', 0, 12, 18, 4, 48]]], [['F1', 8], ['F2', 16]]]], [['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['priority by ratio', [[['X', 5, 10, 40, 5, 100], ['Y', 2, 8, 40, 5, 100], ['Z', 0, 6, 40, 5, 100]]], [['Z', 40], ['Y', 35], ['X', 35]]], ['above min idle', [[['A', 11, 10, 34, 12, 100]]], []], ['generated mix 9', [[['F0', 6, 6, 9, 1, 100], ['F1', 1, 12, 18, 6, 0]]], [['F0', 3]]], ['generated mix 17', [[['F0', 1, 12, 24, 4, 12], ['F1', 12, 12, 18, 4, 24], ['F2', 11, 12, 24, 1, 12], ['F3', 11, 10, 40, 12, 100]]], [['F0', 12], ['F2', 12], ['F1', 4]]], ['generated mix 25', [[['F0', 3, 4, 34, 12, 12], ['F1', 0, 10, 10, 12, 48], ['F2', 1, 10, 34, 1, 100], ['F3', 3, 4, 28, 6, 100]]], [['F1', 12], ['F2', 33], ['F0', 12], ['F3', 24]]], ['generated mix 33', [[['F0', 13, 12, 36, 12, 48], ['F1', 5, 4, 10, 6, 100], ['F2', 4, 4, 10, 12, 24]]], []]], [['generated mix 39', [[['F0', 5, 6, 12, 4, 100], ['F1', 4, 4, 28, 1, 48]]], [['F0', 4], ['F1', 24]]], ['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['generated mix 20', [[['F0', 0, 12, 36, 4, 48]]], [['F0', 36]]], ['generated mix 28', [[['F0', 3, 6, 36, 6, 48], ['F1', 1, 12, 42, 12, 3]]], [['F0', 30]]], ['generated mix 36', [[['F0', 0, 6, 6, 4, 3], ['F1', 5, 6, 12, 12, 48]]], []]], [['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['priority by ratio', [[['X', 5, 10, 40, 5, 100], ['Y', 2, 8, 40, 5, 100], ['Z', 0, 6, 40, 5, 100]]], [['Z', 40], ['Y', 35], ['X', 35]]], ['above min idle', [[['A', 11, 10, 34, 12, 100]]], []], ['generated mix 31', [[['F0', 9, 10, 10, 4, 100], ['F1', 5, 6, 36, 1, 24]]], [['F1', 24]]], ['generated mix 39', [[['F0', 5, 6, 12, 4, 100], ['F1', 4, 4, 28, 1, 48]]], [['F0', 4], ['F1', 24]]], ['generated mix 47', [[['F0', 0, 10, 22, 12, 0], ['F1', 11, 10, 40, 12, 48]]], []], ['generated mix 56', [[['F0', 0, 6, 12, 6, 12], ['F1', 7, 6, 30, 1, 48], ['F2', 12, 12, 36, 6, 100], ['F3', 6, 6, 30, 6, 3], ['F4', 0, 4, 7, 6, 100]]], [['F0', 12], ['F4', 6], ['F2', 24]]]], [['generated mix 39', [[['F0', 5, 6, 12, 4, 100], ['F1', 4, 4, 28, 1, 48]]], [['F0', 4], ['F1', 24]]], ['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['generated mix 43', [[['F0', 0, 6, 18, 4, 24], ['F1', 3, 4, 34, 4, 48], ['F2', 1, 4, 10, 12, 0], ['F3', 1, 4, 34, 12, 12]]], [['F0', 16], ['F3', 12], ['F1', 28]]], ['generated mix 52', [[['F0', 11, 10, 16, 6, 3], ['F1', 10, 10, 13, 4, 24], ['F2', 0, 4, 28, 1, 100], ['F3', 12, 12, 42, 4, 0]]], [['F2', 28]]], ['generated mix 60', [[['F0', 0, 10, 40, 1, 24], ['F1', 3, 6, 30, 4, 100], ['F2', 4, 4, 4, 6, 100]]], [['F0', 24], ['F1', 24]]]]]\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":"d271475fe5eaa2c7079dca599ef8a10b70593208a7687e03557cce53a83c9029","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(faces):\n    tasks = []\n    for loc, oh, mn, mx, cp, reserve in faces:\n        if oh > mn:\n            continue\n        avail = reserve // cp * cp\n        qty = (mx - oh) // cp * cp\n        qty = min(qty, avail)\n        if qty == 0 and oh == 0 and avail >= cp:\n            qty = cp\n        if qty == 0:\n            continue\n        tasks.append((Fraction(oh, mn), loc, qty))\n    tasks.sort()\n    return [[loc, qty] for _, loc, qty in tasks]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['generated mix 39', [[['F0', 5, 6, 12, 4, 100], ['F1', 4, 4, 28, 1, 48]]], [['F0', 4], ['F1', 24]]], ['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['above min idle', [[['A', 11, 10, 34, 12, 100]]], []], ['generated mix 6', [[['F0', 1, 12, 18, 6, 12], ['F1', 10, 10, 10, 1, 100], ['F2', 0, 6, 9, 12, 3]]], [['F0', 12]]], ['generated mix 14', [[['F0', 13, 12, 24, 6, 3], ['F1', 0, 6, 9, 4, 48], ['F2', 0, 12, 18, 4, 48]]], [['F1', 8], ['F2', 16]]]], [['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['priority by ratio', [[['X', 5, 10, 40, 5, 100], ['Y', 2, 8, 40, 5, 100], ['Z', 0, 6, 40, 5, 100]]], [['Z', 40], ['Y', 35], ['X', 35]]], ['above min idle', [[['A', 11, 10, 34, 12, 100]]], []], ['generated mix 9', [[['F0', 6, 6, 9, 1, 100], ['F1', 1, 12, 18, 6, 0]]], [['F0', 3]]], ['generated mix 17', [[['F0', 1, 12, 24, 4, 12], ['F1', 12, 12, 18, 4, 24], ['F2', 11, 12, 24, 1, 12], ['F3', 11, 10, 40, 12, 100]]], [['F0', 12], ['F2', 12], ['F1', 4]]], ['generated mix 25', [[['F0', 3, 4, 34, 12, 12], ['F1', 0, 10, 10, 12, 48], ['F2', 1, 10, 34, 1, 100], ['F3', 3, 4, 28, 6, 100]]], [['F1', 12], ['F2', 33], ['F0', 12], ['F3', 24]]], ['generated mix 33', [[['F0', 13, 12, 36, 12, 48], ['F1', 5, 4, 10, 6, 100], ['F2', 4, 4, 10, 12, 24]]], []]], [['generated mix 39', [[['F0', 5, 6, 12, 4, 100], ['F1', 4, 4, 28, 1, 48]]], [['F0', 4], ['F1', 24]]], ['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['generated mix 20', [[['F0', 0, 12, 36, 4, 48]]], [['F0', 36]]], ['generated mix 28', [[['F0', 3, 6, 36, 6, 48], ['F1', 1, 12, 42, 12, 3]]], [['F0', 30]]], ['generated mix 36', [[['F0', 0, 6, 6, 4, 3], ['F1', 5, 6, 12, 12, 48]]], []]], [['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['priority by ratio', [[['X', 5, 10, 40, 5, 100], ['Y', 2, 8, 40, 5, 100], ['Z', 0, 6, 40, 5, 100]]], [['Z', 40], ['Y', 35], ['X', 35]]], ['above min idle', [[['A', 11, 10, 34, 12, 100]]], []], ['generated mix 31', [[['F0', 9, 10, 10, 4, 100], ['F1', 5, 6, 36, 1, 24]]], [['F1', 24]]], ['generated mix 39', [[['F0', 5, 6, 12, 4, 100], ['F1', 4, 4, 28, 1, 48]]], [['F0', 4], ['F1', 24]]], ['generated mix 47', [[['F0', 0, 10, 22, 12, 0], ['F1', 11, 10, 40, 12, 48]]], []], ['generated mix 56', [[['F0', 0, 6, 12, 6, 12], ['F1', 7, 6, 30, 1, 48], ['F2', 12, 12, 36, 6, 100], ['F3', 6, 6, 30, 6, 3], ['F4', 0, 4, 7, 6, 100]]], [['F0', 12], ['F4', 6], ['F2', 24]]]], [['generated mix 39', [[['F0', 5, 6, 12, 4, 100], ['F1', 4, 4, 28, 1, 48]]], [['F0', 4], ['F1', 24]]], ['generated mix 50', [[['F0', 11, 12, 36, 1, 12], ['F1', 0, 10, 22, 6, 12], ['F2', 4, 4, 28, 4, 48], ['F3', 1, 4, 7, 12, 0]]], [['F1', 12], ['F0', 12], ['F2', 24]]], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['generated mix 43', [[['F0', 0, 6, 18, 4, 24], ['F1', 3, 4, 34, 4, 48], ['F2', 1, 4, 10, 12, 0], ['F3', 1, 4, 34, 12, 12]]], [['F0', 16], ['F3', 12], ['F1', 28]]], ['generated mix 52', [[['F0', 11, 10, 16, 6, 3], ['F1', 10, 10, 13, 4, 24], ['F2', 0, 4, 28, 1, 100], ['F3', 12, 12, 42, 4, 0]]], [['F2', 28]]], ['generated mix 60', [[['F0', 0, 10, 40, 1, 24], ['F1', 3, 6, 30, 4, 100], ['F2', 4, 4, 4, 6, 100]]], [['F0', 24], ['F1', 24]]]]]\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 min/max policy with whole-case moves only. 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-pickface-replen-urgency-order","generated_at":"2026-09-29T14:52:08.838348+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Min/max replenishment keeps forward pick faces stocked from reserve.","repair":"Order tasks by the on-hand to minimum ratio, then location.","root_cause":"Task urgency sorts on absolute on-hand units instead of on-hand relative to the minimum.","sha256":"6de7934c8bfa6085e09dcb794ae1171400ce5f0e021803585403e4cf34713d76","title":"Replenishment: urgency uses raw on-hand · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":44.12,"exit_code":1,"observations":[{"actual":[["F1",24],["F0",4]],"check":"generated mix 39","expected":[["F0",4],["F1",24]],"passed":false},{"actual":[["F1",12],["F2",24],["F0",12]],"check":"generated mix 50","expected":[["F1",12],["F0",12],["F2",24]],"passed":false},{"actual":[["A",24]],"check":"at min triggers","expected":[["A",24]],"passed":true},{"actual":[["A",12]],"check":"reserve partial case","expected":[["A",12]],"passed":true},{"actual":[],"check":"stockout no reserve","expected":[],"passed":true},{"actual":[],"check":"above min idle","expected":[],"passed":true},{"actual":[["F0",12]],"check":"generated mix 6","expected":[["F0",12]],"passed":true},{"actual":[["F1",8],["F2",16]],"check":"generated mix 14","expected":[["F1",8],["F2",16]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"generated mix 39\", \"actual\": [[\"F1\", 24], [\"F0\", 4]], \"expected\": [[\"F0\", 4], [\"F1\", 24]], \"passed\": false}, {\"check\": \"generated mix 50\", \"actual\": [[\"F1\", 12], [\"F2\", 24], [\"F0\", 12]], \"expected\": [[\"F1\", 12], [\"F0\", 12], [\"F2\", 24]], \"passed\": false}, {\"check\": \"at min triggers\", \"actual\": [[\"A\", 24]], \"expected\": [[\"A\", 24]], \"passed\": true}, {\"check\": \"reserve partial case\", \"actual\": [[\"A\", 12]], \"expected\": [[\"A\", 12]], \"passed\": true}, {\"check\": \"stockout no reserve\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"above min idle\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [[\"F0\", 12]], \"expected\": [[\"F0\", 12]], \"passed\": true}, {\"check\": \"generated mix 14\", \"actual\": [[\"F1\", 8], [\"F2\", 16]], \"expected\": [[\"F1\", 8], [\"F2\", 16]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":44.404,"exit_code":1,"observations":[{"actual":[["F1",24],["F0",4]],"check":"generated mix 39","expected":[["F0",4],["F1",24]],"passed":false},{"actual":[["F1",12],["F2",24],["F0",12]],"check":"generated mix 50","expected":[["F1",12],["F0",12],["F2",24]],"passed":false},{"actual":[["A",24]],"check":"at min triggers","expected":[["A",24]],"passed":true},{"actual":[["A",12]],"check":"reserve partial case","expected":[["A",12]],"passed":true},{"actual":[],"check":"stockout no reserve","expected":[],"passed":true},{"actual":[],"check":"above min idle","expected":[],"passed":true},{"actual":[["F0",12]],"check":"generated mix 6","expected":[["F0",12]],"passed":true},{"actual":[["F1",8],["F2",16]],"check":"generated mix 14","expected":[["F1",8],["F2",16]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"generated mix 39\", \"actual\": [[\"F1\", 24], [\"F0\", 4]], \"expected\": [[\"F0\", 4], [\"F1\", 24]], \"passed\": false}, {\"check\": \"generated mix 50\", \"actual\": [[\"F1\", 12], [\"F2\", 24], [\"F0\", 12]], \"expected\": [[\"F1\", 12], [\"F0\", 12], [\"F2\", 24]], \"passed\": false}, {\"check\": \"at min triggers\", \"actual\": [[\"A\", 24]], \"expected\": [[\"A\", 24]], \"passed\": true}, {\"check\": \"reserve partial case\", \"actual\": [[\"A\", 12]], \"expected\": [[\"A\", 12]], \"passed\": true}, {\"check\": \"stockout no reserve\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"above min idle\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [[\"F0\", 12]], \"expected\": [[\"F0\", 12]], \"passed\": true}, {\"check\": \"generated mix 14\", \"actual\": [[\"F1\", 8], [\"F2\", 16]], \"expected\": [[\"F1\", 8], [\"F2\", 16]], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.917,"exit_code":0,"observations":[{"actual":[["F0",4],["F1",24]],"check":"generated mix 39","expected":[["F0",4],["F1",24]],"passed":true},{"actual":[["F1",12],["F0",12],["F2",24]],"check":"generated mix 50","expected":[["F1",12],["F0",12],["F2",24]],"passed":true},{"actual":[["A",24]],"check":"at min triggers","expected":[["A",24]],"passed":true},{"actual":[["A",12]],"check":"reserve partial case","expected":[["A",12]],"passed":true},{"actual":[],"check":"stockout no reserve","expected":[],"passed":true},{"actual":[],"check":"above min idle","expected":[],"passed":true},{"actual":[["F0",12]],"check":"generated mix 6","expected":[["F0",12]],"passed":true},{"actual":[["F1",8],["F2",16]],"check":"generated mix 14","expected":[["F1",8],["F2",16]],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"generated mix 39\", \"actual\": [[\"F0\", 4], [\"F1\", 24]], \"expected\": [[\"F0\", 4], [\"F1\", 24]], \"passed\": true}, {\"check\": \"generated mix 50\", \"actual\": [[\"F1\", 12], [\"F0\", 12], [\"F2\", 24]], \"expected\": [[\"F1\", 12], [\"F0\", 12], [\"F2\", 24]], \"passed\": true}, {\"check\": \"at min triggers\", \"actual\": [[\"A\", 24]], \"expected\": [[\"A\", 24]], \"passed\": true}, {\"check\": \"reserve partial case\", \"actual\": [[\"A\", 12]], \"expected\": [[\"A\", 12]], \"passed\": true}, {\"check\": \"stockout no reserve\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"above min idle\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [[\"F0\", 12]], \"expected\": [[\"F0\", 12]], \"passed\": true}, {\"check\": \"generated mix 14\", \"actual\": [[\"F1\", 8], [\"F2\", 16]], \"expected\": [[\"F1\", 8], [\"F2\", 16]], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}