{"abstract":"Short jobs take zero time at high speed.","category":"Game economy crafting balance","checks":8,"contract":"jobs = [[name, duration], ...] in queue order. Effective duration = max(1, floor(duration*(100-speed)/100)). Each job starts on the station that frees earliest (lowest index on ties) at that station free time. Return names of jobs finished by now (finish <= now) ordered by finish time then queue position.","contract_signature":"jobs, stations, speed, now","evaluation_group":"w2-game-economy-crafting-balance-station-queue","failed_approach":"Subtracting speed as seconds ignores that speed is a percentage.","family":"w2-game-economy-crafting-balance-station-queue-duration-floor","id":"FA-86281","implementations":{"attempt":{"sha256":"538e1361e2fa0f744cf063be6dcb03bca45e019b6965a146fae15f0b41435c5e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(jobs, stations, speed, now):\n    free = [0] * stations\n    done = []\n    for idx, (name, dur) in enumerate(jobs):\n        d = max(1, dur - speed)\n        s = min(range(stations), key=lambda k: (free[k], k))\n        start = free[s]\n        free[s] = start + d\n        done.append((free[s], idx, name))\n    return [name for fin, idx, name in sorted(done) if fin <= now]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncases = [[('fault site duration floor #1',\n   [[['flask', 1], ['cape', 60], ['ember', 1], ['bow', 1], ['anvil', 2], ['dagger', 33]], 2, 25, 1],\n   ['flask']),\n  ('fault site duration floor #2', [[['anvil', 2], ['dagger', 2], ['flask', 5]], 1, 90, 1], ['anvil']),\n  ('partial repair boundary #1',\n   [[['flask', 2], ['bow', 10], ['cape', 1], ['dagger', 2], ['anvil', 10], ['ember', 10]], 2, 10, 5],\n   ['flask', 'cape', 'dagger']),\n  ('partial repair boundary #2', [[['flask', 10], ['bow', 60]], 1, 90, 5], ['flask']),\n  ('two stations tie #1', [[['a', 10], ['b', 10], ['c', 5]], 2, 0, 15], ['a', 'b', 'c']),\n  ('speed floor #1', [[['x', 1], ['y', 1]], 1, 90, 2], ['x', 'y']),\n  ('finish exactly now #1', [[['a', 30]], 1, 0, 30], ['a']),\n  ('control #1',\n   [[['anvil', 2], ['flask', 2], ['cape', 1], ['dagger', 103], ['ember', 5]], 2, 10, 60],\n   ['anvil', 'flask', 'cape', 'ember'])],\n [('fault site duration floor #1', [[['anvil', 5], ['dagger', 10], ['cape', 1]], 1, 90, 1], ['anvil']),\n  ('fault site duration floor #2', [[['dagger', 60], ['cape', 5], ['flask', 1]], 3, 25, 0], []),\n  ('partial repair boundary #1',\n   [[['anvil', 10], ['bow', 1], ['dagger', 10], ['cape', 60]], 2, 25, 1],\n   ['bow']),\n  ('partial repair boundary #2',\n   [[['flask', 5], ['bow', 10], ['anvil', 1], ['dagger', 2], ['cape', 78]], 2, 50, 208],\n   ['flask', 'anvil', 'dagger', 'bow', 'cape']),\n  ('finish exactly now #1', [[['a', 30]], 1, 0, 30], ['a']),\n  ('two stations tie #1', [[['a', 10], ['b', 10], ['c', 5]], 2, 0, 15], ['a', 'b', 'c']),\n  ('control #1',\n   [[['anvil', 2], ['flask', 2], ['cape', 1], ['dagger', 103], ['ember', 5]], 2, 10, 60],\n   ['anvil', 'flask', 'cape', 'ember']),\n  ('control #2',\n   [[['dagger', 10], ['bow', 119], ['cape', 1], ['flask', 2], ['ember', 60], ['anvil', 5]], 1, 0, 60],\n   ['dagger'])],\n [('fault site duration floor #1', [[['anvil', 1], ['flask', 5], ['ember', 5]], 2, 90, 0], []),\n  ('fault site duration floor #2',\n   [[['dagger', 2], ['anvil', 1], ['bow', 5], ['ember', 75], ['cape', 60], ['flask', 59]], 2, 50, 0],\n   []),\n  ('partial repair boundary #1',\n   [[['ember', 60], ['anvil', 1], ['dagger', 1], ['cape', 1], ['bow', 1], ['flask', 2]], 2, 90, 60],\n   ['anvil', 'dagger', 'cape', 'bow', 'flask', 'ember']),\n  ('partial repair boundary #2',\n   [[['bow', 5], ['flask', 60], ['dagger', 1], ['anvil', 10]], 1, 50, 30],\n   ['bow']),\n  ('speed floor #1', [[['x', 1], ['y', 1]], 1, 90, 2], ['x', 'y']),\n  ('finish exactly now #1', [[['a', 30]], 1, 0, 30], ['a']),\n  ('control #1',\n   [[['dagger', 10], ['bow', 119], ['cape', 1], ['flask', 2], ['ember', 60], ['anvil', 5]], 1, 0, 60],\n   ['dagger']),\n  ('control #2', [[['dagger', 1], ['bow', 5]], 1, 99, 161], ['dagger', 'bow'])],\n [('fault site duration floor #1',\n   [[['anvil', 5], ['ember', 5], ['bow', 1], ['cape', 10], ['dagger', 2], ['flask', 2]], 1, 99, 0],\n   []),\n  ('fault site duration floor #2', [[['anvil', 1], ['ember', 2]], 3, 50, 0], []),\n  ('partial repair boundary #1',\n   [[['ember', 11], ['bow', 60], ['dagger', 5]], 3, 10, 30],\n   ['dagger', 'ember']),\n  ('partial repair boundary #2',\n   [[['anvil', 10], ['dagger', 19], ['flask', 2], ['cape', 60], ['ember', 90], ['bow', 5]], 3, 25, 60],\n   ['flask', 'anvil', 'dagger', 'bow', 'cape']),\n  ('two stations tie #1', [[['a', 10], ['b', 10], ['c', 5]], 2, 0, 15], ['a', 'b', 'c']),\n  ('speed floor #1', [[['x', 1], ['y', 1]], 1, 90, 2], ['x', 'y']),\n  ('control #1',\n   [[['dagger', 60], ['flask', 1], ['anvil', 60], ['cape', 1], ['ember', 5], ['bow', 33]], 1, 99, 154],\n   ['dagger', 'flask', 'anvil', 'cape', 'ember', 'bow']),\n  ('control #2', [[['anvil', 2]], 3, 90, 1], ['anvil'])],\n [('fault site duration floor #1', [[['dagger', 1], ['anvil', 60]], 2, 25, 0], []),\n  ('fault site duration floor #2', [[['flask', 2], ['cape', 10], ['bow', 81]], 2, 99, 1], ['flask', 'cape']),\n  ('partial repair boundary #1',\n   [[['cape', 2], ['anvil', 10], ['ember', 2], ['bow', 2], ['flask', 1]], 1, 50, 5],\n   ['cape']),\n  ('partial repair boundary #2', [[['dagger', 5], ['flask', 10], ['anvil', 1], ['ember', 60]], 2, 10, 1], []),\n  ('finish exactly now #1', [[['a', 30]], 1, 0, 30], ['a']),\n  ('two stations tie #1', [[['a', 10], ['b', 10], ['c', 5]], 2, 0, 15], ['a', 'b', 'c']),\n  ('control #1', [[['flask', 60]], 1, 25, 30], []),\n  ('control #2',\n   [[['anvil', 105], ['dagger', 10], ['ember', 1], ['flask', 5], ['cape', 5], ['bow', 5]], 1, 99, 0],\n   [])]]\nfor label, args, expected in cases[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":"f4d5db3588d73ed8fe5eb0d8a0dd0fffa04c89f274dc6f28ed56670edea24d51","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(jobs, stations, speed, now):\n    free = [0] * stations\n    done = []\n    for idx, (name, dur) in enumerate(jobs):\n        d = dur * (100 - speed) // 100\n        s = min(range(stations), key=lambda k: (free[k], k))\n        start = free[s]\n        free[s] = start + d\n        done.append((free[s], idx, name))\n    return [name for fin, idx, name in sorted(done) if fin <= now]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncases = [[('fault site duration floor #1',\n   [[['flask', 1], ['cape', 60], ['ember', 1], ['bow', 1], ['anvil', 2], ['dagger', 33]], 2, 25, 1],\n   ['flask']),\n  ('fault site duration floor #2', [[['anvil', 2], ['dagger', 2], ['flask', 5]], 1, 90, 1], ['anvil']),\n  ('partial repair boundary #1',\n   [[['flask', 2], ['bow', 10], ['cape', 1], ['dagger', 2], ['anvil', 10], ['ember', 10]], 2, 10, 5],\n   ['flask', 'cape', 'dagger']),\n  ('partial repair boundary #2', [[['flask', 10], ['bow', 60]], 1, 90, 5], ['flask']),\n  ('two stations tie #1', [[['a', 10], ['b', 10], ['c', 5]], 2, 0, 15], ['a', 'b', 'c']),\n  ('speed floor #1', [[['x', 1], ['y', 1]], 1, 90, 2], ['x', 'y']),\n  ('finish exactly now #1', [[['a', 30]], 1, 0, 30], ['a']),\n  ('control #1',\n   [[['anvil', 2], ['flask', 2], ['cape', 1], ['dagger', 103], ['ember', 5]], 2, 10, 60],\n   ['anvil', 'flask', 'cape', 'ember'])],\n [('fault site duration floor #1', [[['anvil', 5], ['dagger', 10], ['cape', 1]], 1, 90, 1], ['anvil']),\n  ('fault site duration floor #2', [[['dagger', 60], ['cape', 5], ['flask', 1]], 3, 25, 0], []),\n  ('partial repair boundary #1',\n   [[['anvil', 10], ['bow', 1], ['dagger', 10], ['cape', 60]], 2, 25, 1],\n   ['bow']),\n  ('partial repair boundary #2',\n   [[['flask', 5], ['bow', 10], ['anvil', 1], ['dagger', 2], ['cape', 78]], 2, 50, 208],\n   ['flask', 'anvil', 'dagger', 'bow', 'cape']),\n  ('finish exactly now #1', [[['a', 30]], 1, 0, 30], ['a']),\n  ('two stations tie #1', [[['a', 10], ['b', 10], ['c', 5]], 2, 0, 15], ['a', 'b', 'c']),\n  ('control #1',\n   [[['anvil', 2], ['flask', 2], ['cape', 1], ['dagger', 103], ['ember', 5]], 2, 10, 60],\n   ['anvil', 'flask', 'cape', 'ember']),\n  ('control #2',\n   [[['dagger', 10], ['bow', 119], ['cape', 1], ['flask', 2], ['ember', 60], ['anvil', 5]], 1, 0, 60],\n   ['dagger'])],\n [('fault site duration floor #1', [[['anvil', 1], ['flask', 5], ['ember', 5]], 2, 90, 0], []),\n  ('fault site duration floor #2',\n   [[['dagger', 2], ['anvil', 1], ['bow', 5], ['ember', 75], ['cape', 60], ['flask', 59]], 2, 50, 0],\n   []),\n  ('partial repair boundary #1',\n   [[['ember', 60], ['anvil', 1], ['dagger', 1], ['cape', 1], ['bow', 1], ['flask', 2]], 2, 90, 60],\n   ['anvil', 'dagger', 'cape', 'bow', 'flask', 'ember']),\n  ('partial repair boundary #2',\n   [[['bow', 5], ['flask', 60], ['dagger', 1], ['anvil', 10]], 1, 50, 30],\n   ['bow']),\n  ('speed floor #1', [[['x', 1], ['y', 1]], 1, 90, 2], ['x', 'y']),\n  ('finish exactly now #1', [[['a', 30]], 1, 0, 30], ['a']),\n  ('control #1',\n   [[['dagger', 10], ['bow', 119], ['cape', 1], ['flask', 2], ['ember', 60], ['anvil', 5]], 1, 0, 60],\n   ['dagger']),\n  ('control #2', [[['dagger', 1], ['bow', 5]], 1, 99, 161], ['dagger', 'bow'])],\n [('fault site duration floor #1',\n   [[['anvil', 5], ['ember', 5], ['bow', 1], ['cape', 10], ['dagger', 2], ['flask', 2]], 1, 99, 0],\n   []),\n  ('fault site duration floor #2', [[['anvil', 1], ['ember', 2]], 3, 50, 0], []),\n  ('partial repair boundary #1',\n   [[['ember', 11], ['bow', 60], ['dagger', 5]], 3, 10, 30],\n   ['dagger', 'ember']),\n  ('partial repair boundary #2',\n   [[['anvil', 10], ['dagger', 19], ['flask', 2], ['cape', 60], ['ember', 90], ['bow', 5]], 3, 25, 60],\n   ['flask', 'anvil', 'dagger', 'bow', 'cape']),\n  ('two stations tie #1', [[['a', 10], ['b', 10], ['c', 5]], 2, 0, 15], ['a', 'b', 'c']),\n  ('speed floor #1', [[['x', 1], ['y', 1]], 1, 90, 2], ['x', 'y']),\n  ('control #1',\n   [[['dagger', 60], ['flask', 1], ['anvil', 60], ['cape', 1], ['ember', 5], ['bow', 33]], 1, 99, 154],\n   ['dagger', 'flask', 'anvil', 'cape', 'ember', 'bow']),\n  ('control #2', [[['anvil', 2]], 3, 90, 1], ['anvil'])],\n [('fault site duration floor #1', [[['dagger', 1], ['anvil', 60]], 2, 25, 0], []),\n  ('fault site duration floor #2', [[['flask', 2], ['cape', 10], ['bow', 81]], 2, 99, 1], ['flask', 'cape']),\n  ('partial repair boundary #1',\n   [[['cape', 2], ['anvil', 10], ['ember', 2], ['bow', 2], ['flask', 1]], 1, 50, 5],\n   ['cape']),\n  ('partial repair boundary #2', [[['dagger', 5], ['flask', 10], ['anvil', 1], ['ember', 60]], 2, 10, 1], []),\n  ('finish exactly now #1', [[['a', 30]], 1, 0, 30], ['a']),\n  ('two stations tie #1', [[['a', 10], ['b', 10], ['c', 5]], 2, 0, 15], ['a', 'b', 'c']),\n  ('control #1', [[['flask', 60]], 1, 25, 30], []),\n  ('control #2',\n   [[['anvil', 105], ['dagger', 10], ['ember', 1], ['flask', 5], ['cape', 5], ['bow', 5]], 1, 99, 0],\n   [])]]\nfor label, args, expected in cases[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":"Deterministic toy contract stipulated for this model; integer or exact arithmetic only, not a reproduction of any specific game engine. 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-game-economy-crafting-balance-station-queue-duration-floor","generated_at":"2026-09-29T14:50:48.141797+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Game economies leak or destroy currency when one crafting or pricing rule is off by one boundary, rounding stage or state update; the defect is observable in exact integer outcomes.","root_cause":"The one-second minimum duration is missing.","sha256":"7532fbda0ed1d87a49a9e3bfc484639856a97e7fbf76797f719a1816fa945339","title":"Crafting station queue: Fast crafters finish instantly · 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":39.84,"exit_code":1,"observations":[{"actual":["flask"],"check":"fault site duration floor #1","expected":["flask"],"passed":true},{"actual":["anvil"],"check":"fault site duration floor #2","expected":["anvil"],"passed":true},{"actual":["flask","bow","cape","dagger","anvil","ember"],"check":"partial repair boundary #1","expected":["flask","cape","dagger"],"passed":false},{"actual":["flask","bow"],"check":"partial repair boundary #2","expected":["flask"],"passed":false},{"actual":["a","b","c"],"check":"two stations tie #1","expected":["a","b","c"],"passed":true},{"actual":["x","y"],"check":"speed floor #1","expected":["x","y"],"passed":true},{"actual":["a"],"check":"finish exactly now #1","expected":["a"],"passed":true},{"actual":["anvil","flask","cape","ember"],"check":"control #1","expected":["anvil","flask","cape","ember"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fault site duration floor #1\", \"actual\": [\"flask\"], \"expected\": [\"flask\"], \"passed\": true}, {\"check\": \"fault site duration floor #2\", \"actual\": [\"anvil\"], \"expected\": [\"anvil\"], \"passed\": true}, {\"check\": \"partial repair boundary #1\", \"actual\": [\"flask\", \"bow\", \"cape\", \"dagger\", \"anvil\", \"ember\"], \"expected\": [\"flask\", \"cape\", \"dagger\"], \"passed\": false}, {\"check\": \"partial repair boundary #2\", \"actual\": [\"flask\", \"bow\"], \"expected\": [\"flask\"], \"passed\": false}, {\"check\": \"two stations tie #1\", \"actual\": [\"a\", \"b\", \"c\"], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": true}, {\"check\": \"speed floor #1\", \"actual\": [\"x\", \"y\"], \"expected\": [\"x\", \"y\"], \"passed\": true}, {\"check\": \"finish exactly now #1\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"control #1\", \"actual\": [\"anvil\", \"flask\", \"cape\", \"ember\"], \"expected\": [\"anvil\", \"flask\", \"cape\", \"ember\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.934,"exit_code":1,"observations":[{"actual":["flask","ember","bow","anvil"],"check":"fault site duration floor #1","expected":["flask"],"passed":false},{"actual":["anvil","dagger","flask"],"check":"fault site duration floor #2","expected":["anvil"],"passed":false},{"actual":["flask","cape","dagger"],"check":"partial repair boundary #1","expected":["flask","cape","dagger"],"passed":true},{"actual":["flask"],"check":"partial repair boundary #2","expected":["flask"],"passed":true},{"actual":["a","b","c"],"check":"two stations tie #1","expected":["a","b","c"],"passed":true},{"actual":["x","y"],"check":"speed floor #1","expected":["x","y"],"passed":true},{"actual":["a"],"check":"finish exactly now #1","expected":["a"],"passed":true},{"actual":["anvil","flask","cape","ember"],"check":"control #1","expected":["anvil","flask","cape","ember"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fault site duration floor #1\", \"actual\": [\"flask\", \"ember\", \"bow\", \"anvil\"], \"expected\": [\"flask\"], \"passed\": false}, {\"check\": \"fault site duration floor #2\", \"actual\": [\"anvil\", \"dagger\", \"flask\"], \"expected\": [\"anvil\"], \"passed\": false}, {\"check\": \"partial repair boundary #1\", \"actual\": [\"flask\", \"cape\", \"dagger\"], \"expected\": [\"flask\", \"cape\", \"dagger\"], \"passed\": true}, {\"check\": \"partial repair boundary #2\", \"actual\": [\"flask\"], \"expected\": [\"flask\"], \"passed\": true}, {\"check\": \"two stations tie #1\", \"actual\": [\"a\", \"b\", \"c\"], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": true}, {\"check\": \"speed floor #1\", \"actual\": [\"x\", \"y\"], \"expected\": [\"x\", \"y\"], \"passed\": true}, {\"check\": \"finish exactly now #1\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"control #1\", \"actual\": [\"anvil\", \"flask\", \"cape\", \"ember\"], \"expected\": [\"anvil\", \"flask\", \"cape\", \"ember\"], \"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."}}