{"abstract":"Rejected borrowed-block release still clears payload references.","category":"Bounded deques","checks":6,"contract":"A deque block with outstanding borrowers cannot be freed. Otherwise clear its live references, append to a bounded free-block cache and dispose the oldest surplus block identities.","contract_signature":"x","evaluation_group":"s3-bounded-deques-block-release","failed_approach":"The partial repair still applies the incorrect transition to an admitted boundary or multi-element case.","family":"s3-bounded-deques-block-release-borrowed-atomicity","id":"FA-46496","implementations":{"attempt":{"sha256":"2e6b6cd72c960d9c1f4185b8cfc51b9553165658141a0ccbbcd92c4deecafba7","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    pool,identity,borrowed,limit,live=x\n    if borrowed:return [pool,False,live if len(live)>1 else [],[]]\n    references=[]\n    combined=pool+[identity]\n    saved=combined[-limit:] if limit else []\n    disposed=combined[:len(combined)-len(saved)]\n    return [saved,True,references,disposed]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('0', solve([[1,2],3,False,2,[N,N+1]]), {1: [[2, 3], True, [], [1]], 2: [[2, 3], True, [], [1]], 3: [[2, 3], True, [], [1]], 4: [[2, 3], True, [], [1]], 5: [[2, 3], True, [], [1]]}[N])\ncheck('1', solve([[1],2,True,3,[N]]), {1: [[1], False, [1], []], 2: [[1], False, [2], []], 3: [[1], False, [3], []], 4: [[1], False, [4], []], 5: [[1], False, [5], []]}[N])\ncheck('2', solve([[],4,False,0,[N,N+1]]), {1: [[], True, [], [4]], 2: [[], True, [], [4]], 3: [[], True, [], [4]], 4: [[], True, [], [4]], 5: [[], True, [], [4]]}[N])\ncheck('3', solve([[2],5,False,3,[N]]), {1: [[2, 5], True, [], []], 2: [[2, 5], True, [], []], 3: [[2, 5], True, [], []], 4: [[2, 5], True, [], []], 5: [[2, 5], True, [], []]}[N])\ncheck('4', solve([[1,2,3],4,False,1,[N]]), {1: [[4], True, [], [1, 2, 3]], 2: [[4], True, [], [1, 2, 3]], 3: [[4], True, [], [1, 2, 3]], 4: [[4], True, [], [1, 2, 3]], 5: [[4], True, [], [1, 2, 3]]}[N])\ncheck('5', solve([[],7,False,2,[]]), {1: [[7], True, [], []], 2: [[7], True, [], []], 3: [[7], True, [], []], 4: [[7], True, [], []], 5: [[7], True, [], []]}[N])\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":"30316d258d8849b1bd70dc7ea751fc4b6b7f14a03feaedf261155b8c25c25117","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    pool,identity,borrowed,limit,live=x\n    if borrowed:return [pool,False,[],[]]\n    references=[]\n    combined=pool+[identity]\n    saved=combined[-limit:] if limit else []\n    disposed=combined[:len(combined)-len(saved)]\n    return [saved,True,references,disposed]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('0', solve([[1,2],3,False,2,[N,N+1]]), {1: [[2, 3], True, [], [1]], 2: [[2, 3], True, [], [1]], 3: [[2, 3], True, [], [1]], 4: [[2, 3], True, [], [1]], 5: [[2, 3], True, [], [1]]}[N])\ncheck('1', solve([[1],2,True,3,[N]]), {1: [[1], False, [1], []], 2: [[1], False, [2], []], 3: [[1], False, [3], []], 4: [[1], False, [4], []], 5: [[1], False, [5], []]}[N])\ncheck('2', solve([[],4,False,0,[N,N+1]]), {1: [[], True, [], [4]], 2: [[], True, [], [4]], 3: [[], True, [], [4]], 4: [[], True, [], [4]], 5: [[], True, [], [4]]}[N])\ncheck('3', solve([[2],5,False,3,[N]]), {1: [[2, 5], True, [], []], 2: [[2, 5], True, [], []], 3: [[2, 5], True, [], []], 4: [[2, 5], True, [], []], 5: [[2, 5], True, [], []]}[N])\ncheck('4', solve([[1,2,3],4,False,1,[N]]), {1: [[4], True, [], [1, 2, 3]], 2: [[4], True, [], [1, 2, 3]], 3: [[4], True, [], [1, 2, 3]], 4: [[4], True, [], [1, 2, 3]], 5: [[4], True, [], [1, 2, 3]]}[N])\ncheck('5', solve([[],7,False,2,[]]), {1: [[7], True, [], []], 2: [[7], True, [], []], 3: [[7], True, [], []], 4: [[7], True, [], []], 5: [[7], True, [], []]}[N])\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":"Offline finite deterministic model; no claim of production implementation or concurrent memory-model conformance. 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-bounded-deques-block-release-borrowed-atomicity","generated_at":"2026-09-29T14:44:32.557073+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Controlled bounded deque implementation model with explicit storage and lifecycle observations.","root_cause":"Rejected borrowed-block release still clears payload references.","sha256":"db483ddc651b390dc5683d5aa99ed042f23d458732f99d2fd1d615087b31ac7a","title":"Rejected borrowed-block release still clears payload references · 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":45.652,"exit_code":1,"observations":[{"actual":[[2,3],true,[],[1]],"check":"0","expected":[[2,3],true,[],[1]],"passed":true},{"actual":[[1],false,[],[]],"check":"1","expected":[[1],false,[1],[]],"passed":false},{"actual":[[],true,[],[4]],"check":"2","expected":[[],true,[],[4]],"passed":true},{"actual":[[2,5],true,[],[]],"check":"3","expected":[[2,5],true,[],[]],"passed":true},{"actual":[[4],true,[],[1,2,3]],"check":"4","expected":[[4],true,[],[1,2,3]],"passed":true},{"actual":[[7],true,[],[]],"check":"5","expected":[[7],true,[],[]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"0\", \"actual\": [[2, 3], true, [], [1]], \"expected\": [[2, 3], true, [], [1]], \"passed\": true}, {\"check\": \"1\", \"actual\": [[1], false, [], []], \"expected\": [[1], false, [1], []], \"passed\": false}, {\"check\": \"2\", \"actual\": [[], true, [], [4]], \"expected\": [[], true, [], [4]], \"passed\": true}, {\"check\": \"3\", \"actual\": [[2, 5], true, [], []], \"expected\": [[2, 5], true, [], []], \"passed\": true}, {\"check\": \"4\", \"actual\": [[4], true, [], [1, 2, 3]], \"expected\": [[4], true, [], [1, 2, 3]], \"passed\": true}, {\"check\": \"5\", \"actual\": [[7], true, [], []], \"expected\": [[7], true, [], []], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":48.202,"exit_code":1,"observations":[{"actual":[[2,3],true,[],[1]],"check":"0","expected":[[2,3],true,[],[1]],"passed":true},{"actual":[[1],false,[],[]],"check":"1","expected":[[1],false,[1],[]],"passed":false},{"actual":[[],true,[],[4]],"check":"2","expected":[[],true,[],[4]],"passed":true},{"actual":[[2,5],true,[],[]],"check":"3","expected":[[2,5],true,[],[]],"passed":true},{"actual":[[4],true,[],[1,2,3]],"check":"4","expected":[[4],true,[],[1,2,3]],"passed":true},{"actual":[[7],true,[],[]],"check":"5","expected":[[7],true,[],[]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"0\", \"actual\": [[2, 3], true, [], [1]], \"expected\": [[2, 3], true, [], [1]], \"passed\": true}, {\"check\": \"1\", \"actual\": [[1], false, [], []], \"expected\": [[1], false, [1], []], \"passed\": false}, {\"check\": \"2\", \"actual\": [[], true, [], [4]], \"expected\": [[], true, [], [4]], \"passed\": true}, {\"check\": \"3\", \"actual\": [[2, 5], true, [], []], \"expected\": [[2, 5], true, [], []], \"passed\": true}, {\"check\": \"4\", \"actual\": [[4], true, [], [1, 2, 3]], \"expected\": [[4], true, [], [1, 2, 3]], \"passed\": true}, {\"check\": \"5\", \"actual\": [[7], true, [], []], \"expected\": [[7], true, [], []], \"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."}}