{"abstract":"An empty pick face whose max is smaller than one case pack is never replenished.","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.","contract_signature":"faces","evaluation_group":"w2-warehouse-slotting-pickface-replen","failed_approach":"Sending the emergency case without checking reserve creates tasks for stock that does not exist.","family":"w2-warehouse-slotting-pickface-replen-stockout-emergency-case","id":"FA-94911","implementations":{"attempt":{"sha256":"e94f09979eab57e2820037cf55d0196351c48e327653a37d4afd9161144e58f0","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:\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 = [[['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['generated mix 6', [[['F0', 1, 12, 18, 6, 12], ['F1', 10, 10, 10, 1, 100], ['F2', 0, 6, 9, 12, 3]]], [['F0', 12]]], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['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]]], []], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['generated mix 9', [[['F0', 6, 6, 9, 1, 100], ['F1', 1, 12, 18, 6, 0]]], [['F0', 3]]]], [['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['generated mix 26', [[['F0', 7, 6, 6, 12, 48], ['F1', 0, 4, 28, 6, 12], ['F2', 0, 6, 30, 6, 0], ['F3', 1, 6, 6, 1, 3]]], [['F1', 12], ['F3', 3]]], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['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]]], ['generated mix 11', [[['F0', 5, 6, 9, 4, 100]]], [['F0', 4]]], ['generated mix 19', [[['F0', 7, 6, 6, 1, 12], ['F1', 0, 4, 16, 6, 0], ['F2', 4, 4, 28, 12, 48]]], [['F2', 24]]]], [['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['generated mix 45', [[['F0', 1, 4, 7, 6, 100], ['F1', 13, 12, 12, 6, 3], ['F2', 5, 6, 9, 4, 3], ['F3', 0, 6, 36, 6, 0]]], [['F0', 6]]], ['above min idle', [[['A', 11, 10, 34, 12, 100]]], []], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['generated mix 22', [[['F0', 5, 6, 12, 4, 0], ['F1', 9, 10, 13, 1, 24], ['F2', 0, 10, 16, 1, 48]]], [['F2', 16], ['F1', 4]]], ['generated mix 30', [[['F0', 0, 12, 18, 6, 48], ['F1', 0, 6, 30, 12, 24]]], [['F0', 18], ['F1', 24]]]], [['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['generated mix 62', [[['F0', 0, 10, 34, 12, 3], ['F1', 5, 4, 28, 4, 100]]], []], ['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]]], []], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['generated mix 33', [[['F0', 13, 12, 36, 12, 48], ['F1', 5, 4, 10, 6, 100], ['F2', 4, 4, 10, 12, 24]]], []], ['generated mix 41', [[['F0', 0, 4, 16, 1, 12], ['F1', 7, 6, 30, 1, 100], ['F2', 5, 6, 18, 12, 24]]], [['F0', 12], ['F2', 12]]]], [['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['generated mix 76', [[['F0', 0, 10, 40, 1, 0]]], []], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['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]]], []], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['generated mix 44', [[['F0', 4, 4, 4, 6, 3], ['F1', 11, 10, 10, 1, 48], ['F2', 11, 12, 24, 4, 48], ['F3', 3, 6, 9, 4, 3]]], [['F2', 12]]], ['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]]]]]\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":"126e01fccc692abbd6047808eba87e5856460845f46322fe03b37da4329d2efa","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:\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 = [[['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['generated mix 6', [[['F0', 1, 12, 18, 6, 12], ['F1', 10, 10, 10, 1, 100], ['F2', 0, 6, 9, 12, 3]]], [['F0', 12]]], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['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]]], []], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['generated mix 9', [[['F0', 6, 6, 9, 1, 100], ['F1', 1, 12, 18, 6, 0]]], [['F0', 3]]]], [['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['generated mix 26', [[['F0', 7, 6, 6, 12, 48], ['F1', 0, 4, 28, 6, 12], ['F2', 0, 6, 30, 6, 0], ['F3', 1, 6, 6, 1, 3]]], [['F1', 12], ['F3', 3]]], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['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]]], ['generated mix 11', [[['F0', 5, 6, 9, 4, 100]]], [['F0', 4]]], ['generated mix 19', [[['F0', 7, 6, 6, 1, 12], ['F1', 0, 4, 16, 6, 0], ['F2', 4, 4, 28, 12, 48]]], [['F2', 24]]]], [['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['generated mix 45', [[['F0', 1, 4, 7, 6, 100], ['F1', 13, 12, 12, 6, 3], ['F2', 5, 6, 9, 4, 3], ['F3', 0, 6, 36, 6, 0]]], [['F0', 6]]], ['above min idle', [[['A', 11, 10, 34, 12, 100]]], []], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['generated mix 22', [[['F0', 5, 6, 12, 4, 0], ['F1', 9, 10, 13, 1, 24], ['F2', 0, 10, 16, 1, 48]]], [['F2', 16], ['F1', 4]]], ['generated mix 30', [[['F0', 0, 12, 18, 6, 48], ['F1', 0, 6, 30, 12, 24]]], [['F0', 18], ['F1', 24]]]], [['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['generated mix 62', [[['F0', 0, 10, 34, 12, 3], ['F1', 5, 4, 28, 4, 100]]], []], ['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]]], []], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['at min triggers', [[['A', 10, 10, 34, 12, 100]]], [['A', 24]]], ['generated mix 33', [[['F0', 13, 12, 36, 12, 48], ['F1', 5, 4, 10, 6, 100], ['F2', 4, 4, 10, 12, 24]]], []], ['generated mix 41', [[['F0', 0, 4, 16, 1, 12], ['F1', 7, 6, 30, 1, 100], ['F2', 5, 6, 18, 12, 24]]], [['F0', 12], ['F2', 12]]]], [['stockout small max', [[['B', 0, 2, 5, 6, 12]]], [['B', 6]]], ['generated mix 76', [[['F0', 0, 10, 40, 1, 0]]], []], ['reserve partial case', [[['A', 0, 5, 30, 12, 20]]], [['A', 12]]], ['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]]], []], ['stockout no reserve', [[['B', 0, 2, 20, 6, 5]]], []], ['generated mix 44', [[['F0', 4, 4, 4, 6, 3], ['F1', 11, 10, 10, 1, 48], ['F2', 11, 12, 24, 4, 48], ['F3', 3, 6, 9, 4, 3]]], [['F2', 12]]], ['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]]]]]\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-stockout-emergency-case","generated_at":"2026-09-29T14:52:08.819913+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.","root_cause":"The emergency one-case rule for stocked-out faces is missing.","sha256":"b73d295b315cf1313093652c859afb9175e69124f02f062c4254296f71490852","title":"Replenishment: empty small face never refilled · 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":43.64,"exit_code":1,"observations":[{"actual":[["B",6]],"check":"stockout small max","expected":[["B",6]],"passed":true},{"actual":[["F2",12],["F0",12]],"check":"generated mix 6","expected":[["F0",12]],"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":[["Z",40],["Y",35],["X",35]],"check":"priority by ratio","expected":[["Z",40],["Y",35],["X",35]],"passed":true},{"actual":[],"check":"above min idle","expected":[],"passed":true},{"actual":[["B",6]],"check":"stockout no reserve","expected":[],"passed":false},{"actual":[["F0",3]],"check":"generated mix 9","expected":[["F0",3]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"stockout small max\", \"actual\": [[\"B\", 6]], \"expected\": [[\"B\", 6]], \"passed\": true}, {\"check\": \"generated mix 6\", \"actual\": [[\"F2\", 12], [\"F0\", 12]], \"expected\": [[\"F0\", 12]], \"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\": \"priority by ratio\", \"actual\": [[\"Z\", 40], [\"Y\", 35], [\"X\", 35]], \"expected\": [[\"Z\", 40], [\"Y\", 35], [\"X\", 35]], \"passed\": true}, {\"check\": \"above min idle\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"stockout no reserve\", \"actual\": [[\"B\", 6]], \"expected\": [], \"passed\": false}, {\"check\": \"generated mix 9\", \"actual\": [[\"F0\", 3]], \"expected\": [[\"F0\", 3]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.876,"exit_code":1,"observations":[{"actual":[],"check":"stockout small max","expected":[["B",6]],"passed":false},{"actual":[["F0",12]],"check":"generated mix 6","expected":[["F0",12]],"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":[["Z",40],["Y",35],["X",35]],"check":"priority by ratio","expected":[["Z",40],["Y",35],["X",35]],"passed":true},{"actual":[],"check":"above min idle","expected":[],"passed":true},{"actual":[],"check":"stockout no reserve","expected":[],"passed":true},{"actual":[["F0",3]],"check":"generated mix 9","expected":[["F0",3]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"stockout small max\", \"actual\": [], \"expected\": [[\"B\", 6]], \"passed\": false}, {\"check\": \"generated mix 6\", \"actual\": [[\"F0\", 12]], \"expected\": [[\"F0\", 12]], \"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\": \"priority by ratio\", \"actual\": [[\"Z\", 40], [\"Y\", 35], [\"X\", 35]], \"expected\": [[\"Z\", 40], [\"Y\", 35], [\"X\", 35]], \"passed\": true}, {\"check\": \"above min idle\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"stockout no reserve\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"generated mix 9\", \"actual\": [[\"F0\", 3]], \"expected\": [[\"F0\", 3]], \"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."}}