{"abstract":"Store writes notify a hydrating consumer before its server snapshot is released.","category":"Client state","checks":6,"contract":"Before hydration release a consumer queues store snapshots; release delivers only the latest held snapshot, and subsequent writes deliver in order. Repeated release is idempotent.","evaluation_group":"s3-client-state-store-hydration-lock","failed_approach":"The partial repair still violates at least one explicit regression oracle.","family":"s3-client-state-store-hydration-lock","id":"FA-24761","implementations":{"attempt":{"sha256":"5c91de4458392667c54a4489bb4b8598b0722ef53efc63ce8a1941c6f41070ba","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(events):\n    hydrating=True; held=[]; delivered=[]\n    for kind,value in events:\n        if kind=='write':\n            if hydrating: held.append(value)\n            else: delivered.append(value)\n        elif kind=='hydrate':\n            hydrating=False; delivered+=held; held=[]\n    return delivered,held\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('coalesce prehydrate writes', solve([('write',1),('write',2),('hydrate',None)]), ([2],[]))\ncheck('still hydrating', solve([('write',N)]), ([],[N]))\ncheck('writes after release', solve([('hydrate',None),('write',N)]), ([N],[]))\ncheck('no writes', solve([('hydrate',None)]), ([],[]))\ncheck('repeat hydration no duplicate', solve([('write',0),('hydrate',None),('hydrate',None)]), ([0],[]))\ncheck('posthydrate ordering', solve([('write',1),('write',2),('hydrate',None),('write',3)]), ([2,3],[]))\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":"6fffa81bffff130c408c86353cda7f5d4a64a93f8629f195dba28fcf653aebaa","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(events):\n    return [v for kind,v in events if kind=='write'],[]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('coalesce prehydrate writes', solve([('write',1),('write',2),('hydrate',None)]), ([2],[]))\ncheck('still hydrating', solve([('write',N)]), ([],[N]))\ncheck('writes after release', solve([('hydrate',None),('write',N)]), ([N],[]))\ncheck('no writes', solve([('hydrate',None)]), ([],[]))\ncheck('repeat hydration no duplicate', solve([('write',0),('hydrate',None),('hydrate',None)]), ([0],[]))\ncheck('posthydrate ordering', solve([('write',1),('write',2),('hydrate',None),('write',3)]), ([2,3],[]))\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":"f72feae216b1f5fd566e7f57e53c0ef3f1124f1f3d334aae18dcd623843f3314","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(events):\n    hydrating=True; held=[]; delivered=[]\n    for kind,value in events:\n        if kind=='write':\n            if hydrating: held.append(value)\n            else: delivered.append(value)\n        elif kind=='hydrate':\n            hydrating=False\n            if held: delivered.append(held[-1]); held=[]\n    return delivered,held\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('coalesce prehydrate writes', solve([('write',1),('write',2),('hydrate',None)]), ([2],[]))\ncheck('still hydrating', solve([('write',N)]), ([],[N]))\ncheck('writes after release', solve([('hydrate',None),('write',N)]), ([N],[]))\ncheck('no writes', solve([('hydrate',None)]), ([],[]))\ncheck('repeat hydration no duplicate', solve([('write',0),('hydrate',None),('hydrate',None)]), ([0],[]))\ncheck('posthydrate ordering', solve([('write',1),('write',2),('hydrate',None),('write',3)]), ([2,3],[]))\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":"This models the stated application policy only; no browser or framework conformance is claimed. 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-client-state-store-hydration-lock","generated_at":"2026-09-29T14:41:00.575399+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A bounded offline client-state transition with explicit lifecycle inputs.","repair":"Before hydration release a consumer queues store snapshots; release delivers only the latest held snapshot, and subsequent writes deliver in order. Repeated release is idempotent.","root_cause":"The faulty implementation violates Before hydration release a consumer queues store snapshots; release delivers only the latest held snapshot, and subsequent writes deliver in order. Repeated release is idempotent.","sha256":"b48776a964eef380333ed57c7285b6d0d43af0c2ced7ec777731da2fd8e47904","title":"Store writes notify a hydrating consumer before its server snapshot is released · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.741,"exit_code":1,"observations":[{"actual":[[1,2],[]],"check":"coalesce prehydrate writes","expected":[[2],[]],"passed":false},{"actual":[[],[1]],"check":"still hydrating","expected":[[],[1]],"passed":true},{"actual":[[1],[]],"check":"writes after release","expected":[[1],[]],"passed":true},{"actual":[[],[]],"check":"no writes","expected":[[],[]],"passed":true},{"actual":[[0],[]],"check":"repeat hydration no duplicate","expected":[[0],[]],"passed":true},{"actual":[[1,2,3],[]],"check":"posthydrate ordering","expected":[[2,3],[]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"coalesce prehydrate writes\", \"actual\": [[1, 2], []], \"expected\": [[2], []], \"passed\": false}, {\"check\": \"still hydrating\", \"actual\": [[], [1]], \"expected\": [[], [1]], \"passed\": true}, {\"check\": \"writes after release\", \"actual\": [[1], []], \"expected\": [[1], []], \"passed\": true}, {\"check\": \"no writes\", \"actual\": [[], []], \"expected\": [[], []], \"passed\": true}, {\"check\": \"repeat hydration no duplicate\", \"actual\": [[0], []], \"expected\": [[0], []], \"passed\": true}, {\"check\": \"posthydrate ordering\", \"actual\": [[1, 2, 3], []], \"expected\": [[2, 3], []], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":48.418,"exit_code":1,"observations":[{"actual":[[1,2],[]],"check":"coalesce prehydrate writes","expected":[[2],[]],"passed":false},{"actual":[[1],[]],"check":"still hydrating","expected":[[],[1]],"passed":false},{"actual":[[1],[]],"check":"writes after release","expected":[[1],[]],"passed":true},{"actual":[[],[]],"check":"no writes","expected":[[],[]],"passed":true},{"actual":[[0],[]],"check":"repeat hydration no duplicate","expected":[[0],[]],"passed":true},{"actual":[[1,2,3],[]],"check":"posthydrate ordering","expected":[[2,3],[]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"coalesce prehydrate writes\", \"actual\": [[1, 2], []], \"expected\": [[2], []], \"passed\": false}, {\"check\": \"still hydrating\", \"actual\": [[1], []], \"expected\": [[], [1]], \"passed\": false}, {\"check\": \"writes after release\", \"actual\": [[1], []], \"expected\": [[1], []], \"passed\": true}, {\"check\": \"no writes\", \"actual\": [[], []], \"expected\": [[], []], \"passed\": true}, {\"check\": \"repeat hydration no duplicate\", \"actual\": [[0], []], \"expected\": [[0], []], \"passed\": true}, {\"check\": \"posthydrate ordering\", \"actual\": [[1, 2, 3], []], \"expected\": [[2, 3], []], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.143,"exit_code":0,"observations":[{"actual":[[2],[]],"check":"coalesce prehydrate writes","expected":[[2],[]],"passed":true},{"actual":[[],[1]],"check":"still hydrating","expected":[[],[1]],"passed":true},{"actual":[[1],[]],"check":"writes after release","expected":[[1],[]],"passed":true},{"actual":[[],[]],"check":"no writes","expected":[[],[]],"passed":true},{"actual":[[0],[]],"check":"repeat hydration no duplicate","expected":[[0],[]],"passed":true},{"actual":[[2,3],[]],"check":"posthydrate ordering","expected":[[2,3],[]],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"coalesce prehydrate writes\", \"actual\": [[2], []], \"expected\": [[2], []], \"passed\": true}, {\"check\": \"still hydrating\", \"actual\": [[], [1]], \"expected\": [[], [1]], \"passed\": true}, {\"check\": \"writes after release\", \"actual\": [[1], []], \"expected\": [[1], []], \"passed\": true}, {\"check\": \"no writes\", \"actual\": [[], []], \"expected\": [[], []], \"passed\": true}, {\"check\": \"repeat hydration no duplicate\", \"actual\": [[0], []], \"expected\": [[0], []], \"passed\": true}, {\"check\": \"posthydrate ordering\", \"actual\": [[2, 3], []], \"expected\": [[2, 3], []], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}