{"abstract":"Reapplying poison extends a nonstacking effect additively.","category":"Game simulation rules","checks":6,"contract":"Events are [apply,duration] or [tick,0]. Durations are nonnegative. Return [poison damage ticks,remaining duration]; refresh is nonstacking and never shortens.","evaluation_group":"model-7ae6276b08024ad1","failed_approach":"Replacing remaining duration shortens a longer active effect.","family":"z-games-poison-refresh","id":"FA-11656","implementations":{"attempt":{"sha256":"b44ab09fb5f1a428ee67ebd8814b911564397011d17463c94e75870e04f11335","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(events):\n    r=d=0\n    for kind,n in events:\n     if kind=='apply': r=n\n     elif r>0: d+=1; r-=1\n    return [d,r]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('short refresh',solve([['apply',N+3],['apply',1]]),[0,N+3])\ncheck('long refresh',solve([['apply',1],['apply',N+3]]),[0,N+3])\ncheck('expiration',solve([['apply',N]]+[['tick',0]]*(N+2)),[N,0])\ncheck('empty',solve([]),[0,0])\ncheck('zero refresh',solve([['apply',N],['apply',0]]),[0,N])\ncheck('partial duration',solve([['apply',N+2],['tick',0]]),[1,N+1])\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":"2f2d3367c926afd99266350b7086967b1b3e0f338c794b56ad49edabda76cdae","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(events):\n    r=d=0\n    for kind,n in events:\n     if kind=='apply': r+=n\n     elif r>0: d+=1; r-=1\n    return [d,r]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('short refresh',solve([['apply',N+3],['apply',1]]),[0,N+3])\ncheck('long refresh',solve([['apply',1],['apply',N+3]]),[0,N+3])\ncheck('expiration',solve([['apply',N]]+[['tick',0]]*(N+2)),[N,0])\ncheck('empty',solve([]),[0,0])\ncheck('zero refresh',solve([['apply',N],['apply',0]]),[0,N])\ncheck('partial duration',solve([['apply',N+2],['tick',0]]),[1,N+1])\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":"9b50d6ef1a470d9fa636f5f43e37526eac361af40e1d3523fca46f145dee08cc","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(events):\n    r=d=0\n    for kind,n in events:\n     if kind=='apply': r=max(r,n)\n     elif r>0: d+=1; r-=1\n    return [d,r]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('short refresh',solve([['apply',N+3],['apply',1]]),[0,N+3])\ncheck('long refresh',solve([['apply',1],['apply',N+3]]),[0,N+3])\ncheck('expiration',solve([['apply',N]]+[['tick',0]]*(N+2)),[N,0])\ncheck('empty',solve([]),[0,0])\ncheck('zero refresh',solve([['apply',N],['apply',0]]),[0,N])\ncheck('partial duration',solve([['apply',N+2],['tick',0]]),[1,N+1])\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":"Controlled rules-only simulation; not a complete 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":"z-games-poison-refresh","generated_at":"2026-09-29T14:38:49.868047+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic game-rule model isolates this rule interaction for regression testing.","repair":"On apply retain max(remaining,new duration); tick deals damage only while positive then decrements.","root_cause":"Refresh adds duration instead of taking the longer remaining duration.","sha256":"fcd6468909d247579aa3a31124c98c6699d7847e95f573c5f7654f0487993841","title":"Reapplying poison extends a nonstacking effect additively · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.142,"exit_code":1,"observations":[{"actual":[0,1],"check":"short refresh","expected":[0,4],"passed":false},{"actual":[0,4],"check":"long refresh","expected":[0,4],"passed":true},{"actual":[1,0],"check":"expiration","expected":[1,0],"passed":true},{"actual":[0,0],"check":"empty","expected":[0,0],"passed":true},{"actual":[0,0],"check":"zero refresh","expected":[0,1],"passed":false},{"actual":[1,2],"check":"partial duration","expected":[1,2],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"short refresh\", \"actual\": [0, 1], \"expected\": [0, 4], \"passed\": false}, {\"check\": \"long refresh\", \"actual\": [0, 4], \"expected\": [0, 4], \"passed\": true}, {\"check\": \"expiration\", \"actual\": [1, 0], \"expected\": [1, 0], \"passed\": true}, {\"check\": \"empty\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}, {\"check\": \"zero refresh\", \"actual\": [0, 0], \"expected\": [0, 1], \"passed\": false}, {\"check\": \"partial duration\", \"actual\": [1, 2], \"expected\": [1, 2], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.184,"exit_code":1,"observations":[{"actual":[0,5],"check":"short refresh","expected":[0,4],"passed":false},{"actual":[0,5],"check":"long refresh","expected":[0,4],"passed":false},{"actual":[1,0],"check":"expiration","expected":[1,0],"passed":true},{"actual":[0,0],"check":"empty","expected":[0,0],"passed":true},{"actual":[0,1],"check":"zero refresh","expected":[0,1],"passed":true},{"actual":[1,2],"check":"partial duration","expected":[1,2],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"short refresh\", \"actual\": [0, 5], \"expected\": [0, 4], \"passed\": false}, {\"check\": \"long refresh\", \"actual\": [0, 5], \"expected\": [0, 4], \"passed\": false}, {\"check\": \"expiration\", \"actual\": [1, 0], \"expected\": [1, 0], \"passed\": true}, {\"check\": \"empty\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}, {\"check\": \"zero refresh\", \"actual\": [0, 1], \"expected\": [0, 1], \"passed\": true}, {\"check\": \"partial duration\", \"actual\": [1, 2], \"expected\": [1, 2], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":39.943,"exit_code":0,"observations":[{"actual":[0,4],"check":"short refresh","expected":[0,4],"passed":true},{"actual":[0,4],"check":"long refresh","expected":[0,4],"passed":true},{"actual":[1,0],"check":"expiration","expected":[1,0],"passed":true},{"actual":[0,0],"check":"empty","expected":[0,0],"passed":true},{"actual":[0,1],"check":"zero refresh","expected":[0,1],"passed":true},{"actual":[1,2],"check":"partial duration","expected":[1,2],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"short refresh\", \"actual\": [0, 4], \"expected\": [0, 4], \"passed\": true}, {\"check\": \"long refresh\", \"actual\": [0, 4], \"expected\": [0, 4], \"passed\": true}, {\"check\": \"expiration\", \"actual\": [1, 0], \"expected\": [1, 0], \"passed\": true}, {\"check\": \"empty\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}, {\"check\": \"zero refresh\", \"actual\": [0, 1], \"expected\": [0, 1], \"passed\": true}, {\"check\": \"partial duration\", \"actual\": [1, 2], \"expected\": [1, 2], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}