{"abstract":"Repeated retry commands create attempts without another failure","category":"HTTP retries","checks":7,"contract":"Events open, send(nonnegative bytes), fail(known_unprocessed bool), retry, succeed. State tracks whether any bytes were emitted by a one-shot stream. A failure known unprocessed does not restore consumed stream bytes. Only an open stream with zero consumed bytes may retry. Terminal success closes the logical request. Output one decision per retry and terminal success.","evaluation_group":"s3-http_retries-one-shot-body","failed_approach":"The attempted repair changes the faulty site to elif not failed and consumed != 0: but still violates a regression oracle.","family":"s3-http_retries-one-shot-body-require-failure","id":"FA-29426","implementations":{"attempt":{"sha256":"5fc1c0a0ee60a1c54f7edf03cdd9859402c8f539db37d593a085c0d2c5d7e87a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(events):\n    opened = False; consumed = 0; failed = False; terminal = False; out = []\n    for e in events:\n        if e[0] == 'open':\n            opened = True\n            consumed = 0\n            failed = False\n            terminal = False\n        elif e[0] == 'send' and opened and not terminal:\n            consumed += e[1]\n        elif e[0] == 'fail' and opened and not terminal:\n            failed = True\n        elif e[0] == 'retry':\n            if terminal:\n                out.append('terminal')\n            elif not opened:\n                out.append('no-body')\n            elif not failed and consumed != 0:\n                out.append('no-failure')\n            elif consumed != 0:\n                out.append('unreplayable')\n            else:\n                out.append('retry')\n                failed = False\n        elif e[0] == 'succeed' and opened and not terminal:\n            terminal = True\n            out.append('success')\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('0', solve([]), [])\ncheck('1', solve([('retry',)]), ['no-body'])\ncheck('2', solve([('open',),('retry',),('fail',True),('retry',),('retry',)]), ['no-failure','retry','no-failure'])\ncheck('3', solve([('open',),('send',1),('send',0),('fail',True),('retry',)]), ['unreplayable'])\ncheck('4', solve([('open',),('send',N),('fail',False),('retry',),('open',),('fail',False),('retry',)]), ['unreplayable','retry'])\ncheck('5', solve([('open',),('succeed',),('retry',),('open',),('fail',True),('retry',)]), ['success','terminal','retry'])\ncheck('6', solve([('open',),('send',0),('fail',False),('retry',),('succeed',),('retry',)]), ['retry','success','terminal'])\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":"32b4d04649458f999fe446e6ba3b3ec739eb5c5488e10ab26a3046ae338c161d","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(events):\n    opened = False; consumed = 0; failed = False; terminal = False; out = []\n    for e in events:\n        if e[0] == 'open':\n            opened = True\n            consumed = 0\n            failed = False\n            terminal = False\n        elif e[0] == 'send' and opened and not terminal:\n            consumed += e[1]\n        elif e[0] == 'fail' and opened and not terminal:\n            failed = True\n        elif e[0] == 'retry':\n            if terminal:\n                out.append('terminal')\n            elif not opened:\n                out.append('no-body')\n            elif failed:\n                out.append('no-failure')\n            elif consumed != 0:\n                out.append('unreplayable')\n            else:\n                out.append('retry')\n                failed = False\n        elif e[0] == 'succeed' and opened and not terminal:\n            terminal = True\n            out.append('success')\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('0', solve([]), [])\ncheck('1', solve([('retry',)]), ['no-body'])\ncheck('2', solve([('open',),('retry',),('fail',True),('retry',),('retry',)]), ['no-failure','retry','no-failure'])\ncheck('3', solve([('open',),('send',1),('send',0),('fail',True),('retry',)]), ['unreplayable'])\ncheck('4', solve([('open',),('send',N),('fail',False),('retry',),('open',),('fail',False),('retry',)]), ['unreplayable','retry'])\ncheck('5', solve([('open',),('succeed',),('retry',),('open',),('fail',True),('retry',)]), ['success','terminal','retry'])\ncheck('6', solve([('open',),('send',0),('fail',False),('retry',),('succeed',),('retry',)]), ['retry','success','terminal'])\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":"c12e429efcab33f8b6acc89e00d7b6391bf9095add0ab1702fc47db2b6155519","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(events):\n    opened = False; consumed = 0; failed = False; terminal = False; out = []\n    for e in events:\n        if e[0] == 'open':\n            opened = True\n            consumed = 0\n            failed = False\n            terminal = False\n        elif e[0] == 'send' and opened and not terminal:\n            consumed += e[1]\n        elif e[0] == 'fail' and opened and not terminal:\n            failed = True\n        elif e[0] == 'retry':\n            if terminal:\n                out.append('terminal')\n            elif not opened:\n                out.append('no-body')\n            elif not failed:\n                out.append('no-failure')\n            elif consumed != 0:\n                out.append('unreplayable')\n            else:\n                out.append('retry')\n                failed = False\n        elif e[0] == 'succeed' and opened and not terminal:\n            terminal = True\n            out.append('success')\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('0', solve([]), [])\ncheck('1', solve([('retry',)]), ['no-body'])\ncheck('2', solve([('open',),('retry',),('fail',True),('retry',),('retry',)]), ['no-failure','retry','no-failure'])\ncheck('3', solve([('open',),('send',1),('send',0),('fail',True),('retry',)]), ['unreplayable'])\ncheck('4', solve([('open',),('send',N),('fail',False),('retry',),('open',),('fail',False),('retry',)]), ['unreplayable','retry'])\ncheck('5', solve([('open',),('succeed',),('retry',),('open',),('fail',True),('retry',)]), ['success','terminal','retry'])\ncheck('6', solve([('open',),('send',0),('fail',False),('retry',),('succeed',),('retry',)]), ['retry','success','terminal'])\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 bounded simulator, not a complete HTTP implementation or a standards conformance claim. 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":"s3-http_retries-one-shot-body-require-failure","generated_at":"2026-09-29T14:41:43.077977+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Offline deterministic model of HTTP request retries.","repair":"Require a new failure before each retry admission.","root_cause":"Repeated retry commands create attempts without another failure","sha256":"6ff63ba275804a200aee8ec20182e7746e0cd7dab1803f83eaa35bd9b779cc8c","title":"One-shot request body replay refusal: Repeated retry commands create attempts without another failure · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.151,"exit_code":1,"observations":[{"actual":[],"check":"0","expected":[],"passed":true},{"actual":["no-body"],"check":"1","expected":["no-body"],"passed":true},{"actual":["retry","retry","retry"],"check":"2","expected":["no-failure","retry","no-failure"],"passed":false},{"actual":["unreplayable"],"check":"3","expected":["unreplayable"],"passed":true},{"actual":["unreplayable","retry"],"check":"4","expected":["unreplayable","retry"],"passed":true},{"actual":["success","terminal","retry"],"check":"5","expected":["success","terminal","retry"],"passed":true},{"actual":["retry","success","terminal"],"check":"6","expected":["retry","success","terminal"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"0\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"1\", \"actual\": [\"no-body\"], \"expected\": [\"no-body\"], \"passed\": true}, {\"check\": \"2\", \"actual\": [\"retry\", \"retry\", \"retry\"], \"expected\": [\"no-failure\", \"retry\", \"no-failure\"], \"passed\": false}, {\"check\": \"3\", \"actual\": [\"unreplayable\"], \"expected\": [\"unreplayable\"], \"passed\": true}, {\"check\": \"4\", \"actual\": [\"unreplayable\", \"retry\"], \"expected\": [\"unreplayable\", \"retry\"], \"passed\": true}, {\"check\": \"5\", \"actual\": [\"success\", \"terminal\", \"retry\"], \"expected\": [\"success\", \"terminal\", \"retry\"], \"passed\": true}, {\"check\": \"6\", \"actual\": [\"retry\", \"success\", \"terminal\"], \"expected\": [\"retry\", \"success\", \"terminal\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.28,"exit_code":1,"observations":[{"actual":[],"check":"0","expected":[],"passed":true},{"actual":["no-body"],"check":"1","expected":["no-body"],"passed":true},{"actual":["retry","no-failure","no-failure"],"check":"2","expected":["no-failure","retry","no-failure"],"passed":false},{"actual":["no-failure"],"check":"3","expected":["unreplayable"],"passed":false},{"actual":["no-failure","no-failure"],"check":"4","expected":["unreplayable","retry"],"passed":false},{"actual":["success","terminal","no-failure"],"check":"5","expected":["success","terminal","retry"],"passed":false},{"actual":["no-failure","success","terminal"],"check":"6","expected":["retry","success","terminal"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"0\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"1\", \"actual\": [\"no-body\"], \"expected\": [\"no-body\"], \"passed\": true}, {\"check\": \"2\", \"actual\": [\"retry\", \"no-failure\", \"no-failure\"], \"expected\": [\"no-failure\", \"retry\", \"no-failure\"], \"passed\": false}, {\"check\": \"3\", \"actual\": [\"no-failure\"], \"expected\": [\"unreplayable\"], \"passed\": false}, {\"check\": \"4\", \"actual\": [\"no-failure\", \"no-failure\"], \"expected\": [\"unreplayable\", \"retry\"], \"passed\": false}, {\"check\": \"5\", \"actual\": [\"success\", \"terminal\", \"no-failure\"], \"expected\": [\"success\", \"terminal\", \"retry\"], \"passed\": false}, {\"check\": \"6\", \"actual\": [\"no-failure\", \"success\", \"terminal\"], \"expected\": [\"retry\", \"success\", \"terminal\"], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.98,"exit_code":0,"observations":[{"actual":[],"check":"0","expected":[],"passed":true},{"actual":["no-body"],"check":"1","expected":["no-body"],"passed":true},{"actual":["no-failure","retry","no-failure"],"check":"2","expected":["no-failure","retry","no-failure"],"passed":true},{"actual":["unreplayable"],"check":"3","expected":["unreplayable"],"passed":true},{"actual":["unreplayable","retry"],"check":"4","expected":["unreplayable","retry"],"passed":true},{"actual":["success","terminal","retry"],"check":"5","expected":["success","terminal","retry"],"passed":true},{"actual":["retry","success","terminal"],"check":"6","expected":["retry","success","terminal"],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"0\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"1\", \"actual\": [\"no-body\"], \"expected\": [\"no-body\"], \"passed\": true}, {\"check\": \"2\", \"actual\": [\"no-failure\", \"retry\", \"no-failure\"], \"expected\": [\"no-failure\", \"retry\", \"no-failure\"], \"passed\": true}, {\"check\": \"3\", \"actual\": [\"unreplayable\"], \"expected\": [\"unreplayable\"], \"passed\": true}, {\"check\": \"4\", \"actual\": [\"unreplayable\", \"retry\"], \"expected\": [\"unreplayable\", \"retry\"], \"passed\": true}, {\"check\": \"5\", \"actual\": [\"success\", \"terminal\", \"retry\"], \"expected\": [\"success\", \"terminal\", \"retry\"], \"passed\": true}, {\"check\": \"6\", \"actual\": [\"retry\", \"success\", \"terminal\"], \"expected\": [\"retry\", \"success\", \"terminal\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}