{"abstract":"Turning quests in one by one keeps paying full rewards all day.","category":"Game economy crafting balance","checks":8,"contract":"Completion k (0-based across the day, starting at done_today) pays tier 100% for k < 5, 50% for 5 <= k < 10, 0 after. Gap = player_level - quest_level: >= 5 pays 20%, >= 3 pays 60%, otherwise 100% (higher level quests are never penalized). Each reward = floor(base*tier*gap/10000). Returns the list of the next count rewards.","contract_signature":"done_today, count, base, player_level, quest_level","evaluation_group":"w2-game-economy-crafting-balance-quest-diminish","failed_approach":"Starting one past done_today skips a full-reward completion.","family":"w2-game-economy-crafting-balance-quest-diminish-daily-index-origin","id":"FA-86136","implementations":{"attempt":{"sha256":"b490dd13749c8e073269f3f7acc9620837d104b5647461c8f776f15dac16c297","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(done_today, count, base, player_level, quest_level):\n    if player_level - quest_level >= 5:\n        gap = 20\n    elif player_level - quest_level >= 3:\n        gap = 60\n    else:\n        gap = 100\n    out = []\n    for k in range(done_today + 1, done_today + count + 1):\n        if k < 5:\n            tier = 100\n        elif k < 10:\n            tier = 50\n        else:\n            tier = 0\n        out.append(base * tier * gap // 10000)\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncases = [[('crossing into half tier #1', [3, 4, 101, 20, 20], [101, 101, 50, 50]),\n  ('harder quest no penalty #1', [8, 3, 50, 10, 18], [25, 25, 0]),\n  ('regression daily index origin #1', [6, 6, 215, 11, 12], [107, 107, 107, 107, 0, 0]),\n  ('regression daily index origin #2', [3, 4, 101, 31, 28], [60, 60, 30, 30]),\n  ('regression daily index origin #3', [9, 4, 3, 24, 23], [1, 0, 0, 0]),\n  ('regression daily index origin #4', [3, 6, 99, 59, 64], [99, 99, 49, 49, 49, 49]),\n  ('gray quest #1', [0, 2, 99, 30, 25], [19, 19]),\n  ('control #1', [8, 2, 1, 33, 25], [0, 0])],\n [('harder quest no penalty #1', [8, 3, 50, 10, 18], [25, 25, 0]),\n  ('crossing into half tier #1', [3, 4, 101, 20, 20], [101, 101, 50, 50]),\n  ('regression daily index origin #1', [6, 6, 215, 11, 12], [107, 107, 107, 107, 0, 0]),\n  ('regression daily index origin #2', [3, 4, 101, 31, 28], [60, 60, 30, 30]),\n  ('regression daily index origin #3', [9, 4, 3, 24, 23], [1, 0, 0, 0]),\n  ('regression daily index origin #4', [3, 6, 99, 59, 64], [99, 99, 49, 49, 49, 49]),\n  ('gray quest #1', [0, 2, 99, 30, 25], [19, 19]),\n  ('control #1', [8, 2, 1, 33, 25], [0, 0])],\n [('crossing into half tier #1', [3, 4, 101, 20, 20], [101, 101, 50, 50]),\n  ('harder quest no penalty #1', [8, 3, 50, 10, 18], [25, 25, 0]),\n  ('regression daily index origin #1', [9, 4, 3, 24, 23], [1, 0, 0, 0]),\n  ('regression daily index origin #2', [3, 6, 99, 59, 64], [99, 99, 49, 49, 49, 49]),\n  ('regression daily index origin #3', [1, 6, 7, 45, 37], [1, 1, 1, 1, 0, 0]),\n  ('regression daily index origin #4', [8, 6, 99, 11, 18], [49, 49, 0, 0, 0, 0]),\n  ('gray quest #1', [0, 2, 99, 30, 25], [19, 19]),\n  ('control #1', [0, 1, 82, 18, 25], [82])],\n [('harder quest no penalty #1', [8, 3, 50, 10, 18], [25, 25, 0]),\n  ('crossing into half tier #1', [3, 4, 101, 20, 20], [101, 101, 50, 50]),\n  ('fault site daily index origin #1', [7, 1, 7, 40, 47], [3]),\n  ('regression daily index origin #1', [1, 6, 7, 45, 37], [1, 1, 1, 1, 0, 0]),\n  ('regression daily index origin #2', [8, 6, 99, 11, 18], [49, 49, 0, 0, 0, 0]),\n  ('regression daily index origin #3', [2, 6, 99, 10, 9], [99, 99, 99, 49, 49, 49]),\n  ('gray quest #1', [0, 2, 99, 30, 25], [19, 19]),\n  ('control #1', [2, 1, 3, 7, 12], [3])],\n [('crossing into half tier #1', [3, 4, 101, 20, 20], [101, 101, 50, 50]),\n  ('harder quest no penalty #1', [8, 3, 50, 10, 18], [25, 25, 0]),\n  ('fault site daily index origin #1', [11, 1, 1, 10, 16], [0]),\n  ('regression daily index origin #1', [8, 6, 99, 11, 18], [49, 49, 0, 0, 0, 0]),\n  ('regression daily index origin #2', [2, 6, 99, 10, 9], [99, 99, 99, 49, 49, 49]),\n  ('regression daily index origin #3', [8, 4, 99, 8, 6], [49, 49, 0, 0]),\n  ('gray quest #1', [0, 2, 99, 30, 25], [19, 19]),\n  ('control #1', [10, 2, 3, 58, 50], [0, 0])]]\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":"018c04040490cfb611373a3b30d24a34dceac4d6dc25f7630936c265b6e3905e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(done_today, count, base, player_level, quest_level):\n    if player_level - quest_level >= 5:\n        gap = 20\n    elif player_level - quest_level >= 3:\n        gap = 60\n    else:\n        gap = 100\n    out = []\n    for k in range(count):\n        if k < 5:\n            tier = 100\n        elif k < 10:\n            tier = 50\n        else:\n            tier = 0\n        out.append(base * tier * gap // 10000)\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncases = [[('crossing into half tier #1', [3, 4, 101, 20, 20], [101, 101, 50, 50]),\n  ('harder quest no penalty #1', [8, 3, 50, 10, 18], [25, 25, 0]),\n  ('regression daily index origin #1', [6, 6, 215, 11, 12], [107, 107, 107, 107, 0, 0]),\n  ('regression daily index origin #2', [3, 4, 101, 31, 28], [60, 60, 30, 30]),\n  ('regression daily index origin #3', [9, 4, 3, 24, 23], [1, 0, 0, 0]),\n  ('regression daily index origin #4', [3, 6, 99, 59, 64], [99, 99, 49, 49, 49, 49]),\n  ('gray quest #1', [0, 2, 99, 30, 25], [19, 19]),\n  ('control #1', [8, 2, 1, 33, 25], [0, 0])],\n [('harder quest no penalty #1', [8, 3, 50, 10, 18], [25, 25, 0]),\n  ('crossing into half tier #1', [3, 4, 101, 20, 20], [101, 101, 50, 50]),\n  ('regression daily index origin #1', [6, 6, 215, 11, 12], [107, 107, 107, 107, 0, 0]),\n  ('regression daily index origin #2', [3, 4, 101, 31, 28], [60, 60, 30, 30]),\n  ('regression daily index origin #3', [9, 4, 3, 24, 23], [1, 0, 0, 0]),\n  ('regression daily index origin #4', [3, 6, 99, 59, 64], [99, 99, 49, 49, 49, 49]),\n  ('gray quest #1', [0, 2, 99, 30, 25], [19, 19]),\n  ('control #1', [8, 2, 1, 33, 25], [0, 0])],\n [('crossing into half tier #1', [3, 4, 101, 20, 20], [101, 101, 50, 50]),\n  ('harder quest no penalty #1', [8, 3, 50, 10, 18], [25, 25, 0]),\n  ('regression daily index origin #1', [9, 4, 3, 24, 23], [1, 0, 0, 0]),\n  ('regression daily index origin #2', [3, 6, 99, 59, 64], [99, 99, 49, 49, 49, 49]),\n  ('regression daily index origin #3', [1, 6, 7, 45, 37], [1, 1, 1, 1, 0, 0]),\n  ('regression daily index origin #4', [8, 6, 99, 11, 18], [49, 49, 0, 0, 0, 0]),\n  ('gray quest #1', [0, 2, 99, 30, 25], [19, 19]),\n  ('control #1', [0, 1, 82, 18, 25], [82])],\n [('harder quest no penalty #1', [8, 3, 50, 10, 18], [25, 25, 0]),\n  ('crossing into half tier #1', [3, 4, 101, 20, 20], [101, 101, 50, 50]),\n  ('fault site daily index origin #1', [7, 1, 7, 40, 47], [3]),\n  ('regression daily index origin #1', [1, 6, 7, 45, 37], [1, 1, 1, 1, 0, 0]),\n  ('regression daily index origin #2', [8, 6, 99, 11, 18], [49, 49, 0, 0, 0, 0]),\n  ('regression daily index origin #3', [2, 6, 99, 10, 9], [99, 99, 99, 49, 49, 49]),\n  ('gray quest #1', [0, 2, 99, 30, 25], [19, 19]),\n  ('control #1', [2, 1, 3, 7, 12], [3])],\n [('crossing into half tier #1', [3, 4, 101, 20, 20], [101, 101, 50, 50]),\n  ('harder quest no penalty #1', [8, 3, 50, 10, 18], [25, 25, 0]),\n  ('fault site daily index origin #1', [11, 1, 1, 10, 16], [0]),\n  ('regression daily index origin #1', [8, 6, 99, 11, 18], [49, 49, 0, 0, 0, 0]),\n  ('regression daily index origin #2', [2, 6, 99, 10, 9], [99, 99, 99, 49, 49, 49]),\n  ('regression daily index origin #3', [8, 4, 99, 8, 6], [49, 49, 0, 0]),\n  ('gray quest #1', [0, 2, 99, 30, 25], [19, 19]),\n  ('control #1', [10, 2, 3, 58, 50], [0, 0])]]\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-quest-diminish-daily-index-origin","generated_at":"2026-09-29T14:50:46.764584+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":"Completion indices start at zero instead of the number already done today.","sha256":"9b95fe6e6ab6fb2c38d6d7d99f5d428530094bbd083c323a41d5761d01bf8c51","title":"Repeatable quest rewards: Completion tiers restart each request · 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":42.73,"exit_code":1,"observations":[{"actual":[101,50,50,50],"check":"crossing into half tier #1","expected":[101,101,50,50],"passed":false},{"actual":[25,0,0],"check":"harder quest no penalty #1","expected":[25,25,0],"passed":false},{"actual":[107,107,107,0,0,0],"check":"regression daily index origin #1","expected":[107,107,107,107,0,0],"passed":false},{"actual":[60,30,30,30],"check":"regression daily index origin #2","expected":[60,60,30,30],"passed":false},{"actual":[0,0,0,0],"check":"regression daily index origin #3","expected":[1,0,0,0],"passed":false},{"actual":[99,49,49,49,49,49],"check":"regression daily index origin #4","expected":[99,99,49,49,49,49],"passed":false},{"actual":[19,19],"check":"gray quest #1","expected":[19,19],"passed":true},{"actual":[0,0],"check":"control #1","expected":[0,0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"crossing into half tier #1\", \"actual\": [101, 50, 50, 50], \"expected\": [101, 101, 50, 50], \"passed\": false}, {\"check\": \"harder quest no penalty #1\", \"actual\": [25, 0, 0], \"expected\": [25, 25, 0], \"passed\": false}, {\"check\": \"regression daily index origin #1\", \"actual\": [107, 107, 107, 0, 0, 0], \"expected\": [107, 107, 107, 107, 0, 0], \"passed\": false}, {\"check\": \"regression daily index origin #2\", \"actual\": [60, 30, 30, 30], \"expected\": [60, 60, 30, 30], \"passed\": false}, {\"check\": \"regression daily index origin #3\", \"actual\": [0, 0, 0, 0], \"expected\": [1, 0, 0, 0], \"passed\": false}, {\"check\": \"regression daily index origin #4\", \"actual\": [99, 49, 49, 49, 49, 49], \"expected\": [99, 99, 49, 49, 49, 49], \"passed\": false}, {\"check\": \"gray quest #1\", \"actual\": [19, 19], \"expected\": [19, 19], \"passed\": true}, {\"check\": \"control #1\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.352,"exit_code":1,"observations":[{"actual":[101,101,101,101],"check":"crossing into half tier #1","expected":[101,101,50,50],"passed":false},{"actual":[50,50,50],"check":"harder quest no penalty #1","expected":[25,25,0],"passed":false},{"actual":[215,215,215,215,215,107],"check":"regression daily index origin #1","expected":[107,107,107,107,0,0],"passed":false},{"actual":[60,60,60,60],"check":"regression daily index origin #2","expected":[60,60,30,30],"passed":false},{"actual":[3,3,3,3],"check":"regression daily index origin #3","expected":[1,0,0,0],"passed":false},{"actual":[99,99,99,99,99,49],"check":"regression daily index origin #4","expected":[99,99,49,49,49,49],"passed":false},{"actual":[19,19],"check":"gray quest #1","expected":[19,19],"passed":true},{"actual":[0,0],"check":"control #1","expected":[0,0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"crossing into half tier #1\", \"actual\": [101, 101, 101, 101], \"expected\": [101, 101, 50, 50], \"passed\": false}, {\"check\": \"harder quest no penalty #1\", \"actual\": [50, 50, 50], \"expected\": [25, 25, 0], \"passed\": false}, {\"check\": \"regression daily index origin #1\", \"actual\": [215, 215, 215, 215, 215, 107], \"expected\": [107, 107, 107, 107, 0, 0], \"passed\": false}, {\"check\": \"regression daily index origin #2\", \"actual\": [60, 60, 60, 60], \"expected\": [60, 60, 30, 30], \"passed\": false}, {\"check\": \"regression daily index origin #3\", \"actual\": [3, 3, 3, 3], \"expected\": [1, 0, 0, 0], \"passed\": false}, {\"check\": \"regression daily index origin #4\", \"actual\": [99, 99, 99, 99, 99, 49], \"expected\": [99, 99, 49, 49, 49, 49], \"passed\": false}, {\"check\": \"gray quest #1\", \"actual\": [19, 19], \"expected\": [19, 19], \"passed\": true}, {\"check\": \"control #1\", \"actual\": [0, 0], \"expected\": [0, 0], \"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."}}