{"abstract":"A roll exactly at an item boundary drops the earlier item.","category":"Game economy crafting balance","checks":8,"contract":"table = [[item, rarity, weight], ...]. Non-common weights become floor(w*(100+mf)/100) (mf may be negative). With total boosted weight T (None if 0), target = floor(roll*T/10000) for roll 0..9999; return the first item whose cumulative boosted weight exceeds target.","evaluation_group":"w2-game-economy-crafting-balance-loot-magic-find","failed_approach":"Skipping zero weights still resolves exact boundaries to the earlier item.","family":"w2-game-economy-crafting-balance-loot-magic-find-cumulative-boundary","id":"FA-86126","implementations":{"attempt":{"sha256":"b609e20911f7605e5c7a1b8061cb2f20556befbacede6969b828f9d8dd6ac6f1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(table, roll, magic_find):\n    weights = []\n    for item, rarity, w in table:\n        if rarity != 'common':\n            w = w * (100 + magic_find) // 100\n        weights.append(w)\n    total = sum(weights)\n    if total == 0:\n        return None\n    target = roll * total // 10000\n    acc = 0\n    for (item, rarity, w0), w in zip(table, weights):\n        acc += w\n        if target <= acc and w > 0:\n            return item\n    return None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncases = [[('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('fault site cumulative boundary #1', [[['i0', 'rare', 0], ['i1', 'rare', 1]], 494, 100], 'i1'),\n  ('fault site cumulative boundary #2', [[['i0', 'legendary', 0], ['i1', 'common', 5]], 1, 250], 'i1'),\n  ('regression cumulative boundary #1',\n   [[['i0', 'rare', 0], ['i1', 'legendary', 2], ['i2', 'common', 2], ['i3', 'common', 1]], 9999, 0],\n   'i3'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'legendary', 0], ['i1', 'common', 0], ['i2', 'common', 50], ['i3', 'common', 50]], 5000, -50],\n   'i3'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'common', 10], ['i1', 'rare', 50]], 9999, 50], 'i1')],\n [('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('fault site cumulative boundary #1', [[['i0', 'legendary', 0], ['i1', 'common', 5]], 1, 250], 'i1'),\n  ('regression cumulative boundary #1',\n   [[['i0', 'rare', 0], ['i1', 'legendary', 2], ['i2', 'common', 2], ['i3', 'common', 1]], 9999, 0],\n   'i3'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'legendary', 0], ['i1', 'common', 0], ['i2', 'common', 50], ['i3', 'common', 50]], 5000, -50],\n   'i3'),\n  ('regression cumulative boundary #3', [[['i0', 'common', 1], ['i1', 'rare', 1]], 5000, 0], 'i1'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'common', 10], ['i1', 'rare', 50]], 9999, 50], 'i1')],\n [('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('fault site cumulative boundary #1', [[['i0', 'rare', 1], ['i1', 'rare', 2]], 1, -50], 'i1'),\n  ('fault site cumulative boundary #2', [[['i0', 'legendary', 0], ['i1', 'legendary', 10]], 0, -26], 'i1'),\n  ('regression cumulative boundary #1',\n   [[['i0', 'common', 10], ['i1', 'common', 5], ['i2', 'legendary', 2], ['i3', 'legendary', 1]], 4998, 181],\n   'i1'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'legendary', 1], ['i1', 'legendary', 5], ['i2', 'common', 50], ['i3', 'common', 1]], 9999, 50],\n   'i3'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'common', 10], ['i1', 'rare', 50]], 9999, 50], 'i1')],\n [('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('fault site cumulative boundary #1',\n   [[['i0', 'rare', 0], ['i1', 'common', 50], ['i2', 'rare', 5], ['i3', 'common', 0], ['i4', 'legendary', 1]],\n    1,\n    250],\n   'i1'),\n  ('regression cumulative boundary #1',\n   [[['i0', 'legendary', 0], ['i1', 'common', 0], ['i2', 'common', 50], ['i3', 'common', 50]], 5000, -50],\n   'i3'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'rare', 5], ['i1', 'rare', 5], ['i2', 'common', 1], ['i3', 'rare', 0], ['i4', 'legendary', 1]],\n    9999,\n    -50],\n   'i2'),\n  ('regression cumulative boundary #3',\n   [[['i0', 'legendary', 10], ['i1', 'legendary', 0], ['i2', 'rare', 5]], 6788, 100],\n   'i2'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'common', 10], ['i1', 'common', 50], ['i2', 'legendary', 50]], 793, -50], 'i0')],\n [('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('regression cumulative boundary #1', [[['i0', 'common', 1], ['i1', 'rare', 1]], 5000, 0], 'i1'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'common', 10], ['i1', 'common', 5], ['i2', 'legendary', 2], ['i3', 'legendary', 1]], 4998, 181],\n   'i1'),\n  ('regression cumulative boundary #3',\n   [[['i0', 'rare', 26], ['i1', 'rare', 37], ['i2', 'legendary', 50], ['i3', 'legendary', 1]], 9999, 0],\n   'i3'),\n  ('regression cumulative boundary #4',\n   [[['i0', 'rare', 1], ['i1', 'rare', 2], ['i2', 'common', 1], ['i3', 'common', 5], ['i4', 'common', 1]],\n    9999,\n    50],\n   'i4'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'rare', 1], ['i1', 'common', 10], ['i2', 'legendary', 93]], 0, 100], 'i0')]]\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":"7465572b1d24a28cca9123e556b60a195e0d92da985c4c645c0818eb98402573","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(table, roll, magic_find):\n    weights = []\n    for item, rarity, w in table:\n        if rarity != 'common':\n            w = w * (100 + magic_find) // 100\n        weights.append(w)\n    total = sum(weights)\n    if total == 0:\n        return None\n    target = roll * total // 10000\n    acc = 0\n    for (item, rarity, w0), w in zip(table, weights):\n        acc += w\n        if target <= acc:\n            return item\n    return None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncases = [[('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('fault site cumulative boundary #1', [[['i0', 'rare', 0], ['i1', 'rare', 1]], 494, 100], 'i1'),\n  ('fault site cumulative boundary #2', [[['i0', 'legendary', 0], ['i1', 'common', 5]], 1, 250], 'i1'),\n  ('regression cumulative boundary #1',\n   [[['i0', 'rare', 0], ['i1', 'legendary', 2], ['i2', 'common', 2], ['i3', 'common', 1]], 9999, 0],\n   'i3'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'legendary', 0], ['i1', 'common', 0], ['i2', 'common', 50], ['i3', 'common', 50]], 5000, -50],\n   'i3'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'common', 10], ['i1', 'rare', 50]], 9999, 50], 'i1')],\n [('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('fault site cumulative boundary #1', [[['i0', 'legendary', 0], ['i1', 'common', 5]], 1, 250], 'i1'),\n  ('regression cumulative boundary #1',\n   [[['i0', 'rare', 0], ['i1', 'legendary', 2], ['i2', 'common', 2], ['i3', 'common', 1]], 9999, 0],\n   'i3'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'legendary', 0], ['i1', 'common', 0], ['i2', 'common', 50], ['i3', 'common', 50]], 5000, -50],\n   'i3'),\n  ('regression cumulative boundary #3', [[['i0', 'common', 1], ['i1', 'rare', 1]], 5000, 0], 'i1'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'common', 10], ['i1', 'rare', 50]], 9999, 50], 'i1')],\n [('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('fault site cumulative boundary #1', [[['i0', 'rare', 1], ['i1', 'rare', 2]], 1, -50], 'i1'),\n  ('fault site cumulative boundary #2', [[['i0', 'legendary', 0], ['i1', 'legendary', 10]], 0, -26], 'i1'),\n  ('regression cumulative boundary #1',\n   [[['i0', 'common', 10], ['i1', 'common', 5], ['i2', 'legendary', 2], ['i3', 'legendary', 1]], 4998, 181],\n   'i1'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'legendary', 1], ['i1', 'legendary', 5], ['i2', 'common', 50], ['i3', 'common', 1]], 9999, 50],\n   'i3'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'common', 10], ['i1', 'rare', 50]], 9999, 50], 'i1')],\n [('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('fault site cumulative boundary #1',\n   [[['i0', 'rare', 0], ['i1', 'common', 50], ['i2', 'rare', 5], ['i3', 'common', 0], ['i4', 'legendary', 1]],\n    1,\n    250],\n   'i1'),\n  ('regression cumulative boundary #1',\n   [[['i0', 'legendary', 0], ['i1', 'common', 0], ['i2', 'common', 50], ['i3', 'common', 50]], 5000, -50],\n   'i3'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'rare', 5], ['i1', 'rare', 5], ['i2', 'common', 1], ['i3', 'rare', 0], ['i4', 'legendary', 1]],\n    9999,\n    -50],\n   'i2'),\n  ('regression cumulative boundary #3',\n   [[['i0', 'legendary', 10], ['i1', 'legendary', 0], ['i2', 'rare', 5]], 6788, 100],\n   'i2'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'common', 10], ['i1', 'common', 50], ['i2', 'legendary', 50]], 793, -50], 'i0')],\n [('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('regression cumulative boundary #1', [[['i0', 'common', 1], ['i1', 'rare', 1]], 5000, 0], 'i1'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'common', 10], ['i1', 'common', 5], ['i2', 'legendary', 2], ['i3', 'legendary', 1]], 4998, 181],\n   'i1'),\n  ('regression cumulative boundary #3',\n   [[['i0', 'rare', 26], ['i1', 'rare', 37], ['i2', 'legendary', 50], ['i3', 'legendary', 1]], 9999, 0],\n   'i3'),\n  ('regression cumulative boundary #4',\n   [[['i0', 'rare', 1], ['i1', 'rare', 2], ['i2', 'common', 1], ['i3', 'common', 5], ['i4', 'common', 1]],\n    9999,\n    50],\n   'i4'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'rare', 1], ['i1', 'common', 10], ['i2', 'legendary', 93]], 0, 100], 'i0')]]\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"},"fixed":{"sha256":"e3ab1eb789cff22db35dcff566a5140b0e565ebe3481daf51d65d14629fa29e5","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(table, roll, magic_find):\n    weights = []\n    for item, rarity, w in table:\n        if rarity != 'common':\n            w = w * (100 + magic_find) // 100\n        weights.append(w)\n    total = sum(weights)\n    if total == 0:\n        return None\n    target = roll * total // 10000\n    acc = 0\n    for (item, rarity, w0), w in zip(table, weights):\n        acc += w\n        if target < acc:\n            return item\n    return None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncases = [[('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('fault site cumulative boundary #1', [[['i0', 'rare', 0], ['i1', 'rare', 1]], 494, 100], 'i1'),\n  ('fault site cumulative boundary #2', [[['i0', 'legendary', 0], ['i1', 'common', 5]], 1, 250], 'i1'),\n  ('regression cumulative boundary #1',\n   [[['i0', 'rare', 0], ['i1', 'legendary', 2], ['i2', 'common', 2], ['i3', 'common', 1]], 9999, 0],\n   'i3'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'legendary', 0], ['i1', 'common', 0], ['i2', 'common', 50], ['i3', 'common', 50]], 5000, -50],\n   'i3'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'common', 10], ['i1', 'rare', 50]], 9999, 50], 'i1')],\n [('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('fault site cumulative boundary #1', [[['i0', 'legendary', 0], ['i1', 'common', 5]], 1, 250], 'i1'),\n  ('regression cumulative boundary #1',\n   [[['i0', 'rare', 0], ['i1', 'legendary', 2], ['i2', 'common', 2], ['i3', 'common', 1]], 9999, 0],\n   'i3'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'legendary', 0], ['i1', 'common', 0], ['i2', 'common', 50], ['i3', 'common', 50]], 5000, -50],\n   'i3'),\n  ('regression cumulative boundary #3', [[['i0', 'common', 1], ['i1', 'rare', 1]], 5000, 0], 'i1'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'common', 10], ['i1', 'rare', 50]], 9999, 50], 'i1')],\n [('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('fault site cumulative boundary #1', [[['i0', 'rare', 1], ['i1', 'rare', 2]], 1, -50], 'i1'),\n  ('fault site cumulative boundary #2', [[['i0', 'legendary', 0], ['i1', 'legendary', 10]], 0, -26], 'i1'),\n  ('regression cumulative boundary #1',\n   [[['i0', 'common', 10], ['i1', 'common', 5], ['i2', 'legendary', 2], ['i3', 'legendary', 1]], 4998, 181],\n   'i1'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'legendary', 1], ['i1', 'legendary', 5], ['i2', 'common', 50], ['i3', 'common', 1]], 9999, 50],\n   'i3'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'common', 10], ['i1', 'rare', 50]], 9999, 50], 'i1')],\n [('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('fault site cumulative boundary #1',\n   [[['i0', 'rare', 0], ['i1', 'common', 50], ['i2', 'rare', 5], ['i3', 'common', 0], ['i4', 'legendary', 1]],\n    1,\n    250],\n   'i1'),\n  ('regression cumulative boundary #1',\n   [[['i0', 'legendary', 0], ['i1', 'common', 0], ['i2', 'common', 50], ['i3', 'common', 50]], 5000, -50],\n   'i3'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'rare', 5], ['i1', 'rare', 5], ['i2', 'common', 1], ['i3', 'rare', 0], ['i4', 'legendary', 1]],\n    9999,\n    -50],\n   'i2'),\n  ('regression cumulative boundary #3',\n   [[['i0', 'legendary', 10], ['i1', 'legendary', 0], ['i2', 'rare', 5]], 6788, 100],\n   'i2'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'common', 10], ['i1', 'common', 50], ['i2', 'legendary', 50]], 793, -50], 'i0')],\n [('zero weight entry skipped #1',\n   [[['a', 'common', 1], ['b', 'rare', 0], ['c', 'common', 1]], 5000, 0],\n   'c'),\n  ('regression cumulative boundary #1', [[['i0', 'common', 1], ['i1', 'rare', 1]], 5000, 0], 'i1'),\n  ('regression cumulative boundary #2',\n   [[['i0', 'common', 10], ['i1', 'common', 5], ['i2', 'legendary', 2], ['i3', 'legendary', 1]], 4998, 181],\n   'i1'),\n  ('regression cumulative boundary #3',\n   [[['i0', 'rare', 26], ['i1', 'rare', 37], ['i2', 'legendary', 50], ['i3', 'legendary', 1]], 9999, 0],\n   'i3'),\n  ('regression cumulative boundary #4',\n   [[['i0', 'rare', 1], ['i1', 'rare', 2], ['i2', 'common', 1], ['i3', 'common', 5], ['i4', 'common', 1]],\n    9999,\n    50],\n   'i4'),\n  ('legendary boosted #1', [[['sword', 'common', 90], ['crown', 'legendary', 10]], 9500, 100], 'crown'),\n  ('curse lowers rare #1', [[['gem', 'rare', 10], ['rock', 'common', 10]], 4000, -50], 'rock'),\n  ('control #1', [[['i0', 'rare', 1], ['i1', 'common', 10], ['i2', 'legendary', 93]], 0, 100], 'i0')]]\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-loot-magic-find-cumulative-boundary","generated_at":"2026-09-29T14:50:46.721411+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.","repair":"Restore `target < acc` at the cumulative boundary step.","root_cause":"The cumulative comparison is inclusive.","sha256":"a43107b6189846c654b22ad15234f86dafe2acbe502438b1f95fdaf8ad01deb2","title":"Magic find loot roll: Boundary roll selects the previous item · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":43.539,"exit_code":1,"observations":[{"actual":"a","check":"zero weight entry skipped #1","expected":"c","passed":false},{"actual":"i1","check":"fault site cumulative boundary #1","expected":"i1","passed":true},{"actual":"i1","check":"fault site cumulative boundary #2","expected":"i1","passed":true},{"actual":"i2","check":"regression cumulative boundary #1","expected":"i3","passed":false},{"actual":"i2","check":"regression cumulative boundary #2","expected":"i3","passed":false},{"actual":"crown","check":"legendary boosted #1","expected":"crown","passed":true},{"actual":"rock","check":"curse lowers rare #1","expected":"rock","passed":true},{"actual":"i1","check":"control #1","expected":"i1","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"zero weight entry skipped #1\", \"actual\": \"a\", \"expected\": \"c\", \"passed\": false}, {\"check\": \"fault site cumulative boundary #1\", \"actual\": \"i1\", \"expected\": \"i1\", \"passed\": true}, {\"check\": \"fault site cumulative boundary #2\", \"actual\": \"i1\", \"expected\": \"i1\", \"passed\": true}, {\"check\": \"regression cumulative boundary #1\", \"actual\": \"i2\", \"expected\": \"i3\", \"passed\": false}, {\"check\": \"regression cumulative boundary #2\", \"actual\": \"i2\", \"expected\": \"i3\", \"passed\": false}, {\"check\": \"legendary boosted #1\", \"actual\": \"crown\", \"expected\": \"crown\", \"passed\": true}, {\"check\": \"curse lowers rare #1\", \"actual\": \"rock\", \"expected\": \"rock\", \"passed\": true}, {\"check\": \"control #1\", \"actual\": \"i1\", \"expected\": \"i1\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.968,"exit_code":1,"observations":[{"actual":"a","check":"zero weight entry skipped #1","expected":"c","passed":false},{"actual":"i0","check":"fault site cumulative boundary #1","expected":"i1","passed":false},{"actual":"i0","check":"fault site cumulative boundary #2","expected":"i1","passed":false},{"actual":"i2","check":"regression cumulative boundary #1","expected":"i3","passed":false},{"actual":"i2","check":"regression cumulative boundary #2","expected":"i3","passed":false},{"actual":"crown","check":"legendary boosted #1","expected":"crown","passed":true},{"actual":"rock","check":"curse lowers rare #1","expected":"rock","passed":true},{"actual":"i1","check":"control #1","expected":"i1","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"zero weight entry skipped #1\", \"actual\": \"a\", \"expected\": \"c\", \"passed\": false}, {\"check\": \"fault site cumulative boundary #1\", \"actual\": \"i0\", \"expected\": \"i1\", \"passed\": false}, {\"check\": \"fault site cumulative boundary #2\", \"actual\": \"i0\", \"expected\": \"i1\", \"passed\": false}, {\"check\": \"regression cumulative boundary #1\", \"actual\": \"i2\", \"expected\": \"i3\", \"passed\": false}, {\"check\": \"regression cumulative boundary #2\", \"actual\": \"i2\", \"expected\": \"i3\", \"passed\": false}, {\"check\": \"legendary boosted #1\", \"actual\": \"crown\", \"expected\": \"crown\", \"passed\": true}, {\"check\": \"curse lowers rare #1\", \"actual\": \"rock\", \"expected\": \"rock\", \"passed\": true}, {\"check\": \"control #1\", \"actual\": \"i1\", \"expected\": \"i1\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":43.498,"exit_code":0,"observations":[{"actual":"c","check":"zero weight entry skipped #1","expected":"c","passed":true},{"actual":"i1","check":"fault site cumulative boundary #1","expected":"i1","passed":true},{"actual":"i1","check":"fault site cumulative boundary #2","expected":"i1","passed":true},{"actual":"i3","check":"regression cumulative boundary #1","expected":"i3","passed":true},{"actual":"i3","check":"regression cumulative boundary #2","expected":"i3","passed":true},{"actual":"crown","check":"legendary boosted #1","expected":"crown","passed":true},{"actual":"rock","check":"curse lowers rare #1","expected":"rock","passed":true},{"actual":"i1","check":"control #1","expected":"i1","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"zero weight entry skipped #1\", \"actual\": \"c\", \"expected\": \"c\", \"passed\": true}, {\"check\": \"fault site cumulative boundary #1\", \"actual\": \"i1\", \"expected\": \"i1\", \"passed\": true}, {\"check\": \"fault site cumulative boundary #2\", \"actual\": \"i1\", \"expected\": \"i1\", \"passed\": true}, {\"check\": \"regression cumulative boundary #1\", \"actual\": \"i3\", \"expected\": \"i3\", \"passed\": true}, {\"check\": \"regression cumulative boundary #2\", \"actual\": \"i3\", \"expected\": \"i3\", \"passed\": true}, {\"check\": \"legendary boosted #1\", \"actual\": \"crown\", \"expected\": \"crown\", \"passed\": true}, {\"check\": \"curse lowers rare #1\", \"actual\": \"rock\", \"expected\": \"rock\", \"passed\": true}, {\"check\": \"control #1\", \"actual\": \"i1\", \"expected\": \"i1\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}