{"abstract":"Sse empty id clears the reconnection event identifier.","category":"WebSocket and browser transport policies","checks":4,"contract":"Given old, present, value, sse empty id clears the reconnection event identifier. Return the protocol decision or transformed value; fields are validated and fixtures state boundary outcomes.","evaluation_group":"xh-sse-empty-id-clears-the-reconnection-event-identifier","failed_approach":"The attempted repair uses `value if present and value and \"\\x00\" not in value else old` and still violates a separate fixture.","family":"xh-sse-empty-id-clears-the-reconnection-event-identifier","id":"FA-7641","implementations":{"attempt":{"sha256":"97692157a861aa7d25e559d97c005d8a04a3ff2f937f38fd00be25572406a768","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport ipaddress\nimport re\nfrom urllib.parse import urlsplit, urljoin\nN = 1\nobservations = []\ndef solve(old, present, value):\n    return value if present and value and \"\\x00\" not in value else old\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('a', True, ''), '')\", \"check('fixture 2', solve('a', True, 'b\\\\x00c'), 'a')\", \"check('fixture 3', solve('a', False, 'b'), 'a')\", \"check('fixture 4', solve('a', True, 'b'), 'b')\"]\nfor _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:\n    exec(_line)\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":"41768343e8304eb94862c10c270549a24598a434f11501db371d73ccfb01c24c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport ipaddress\nimport re\nfrom urllib.parse import urlsplit, urljoin\nN = 1\nobservations = []\ndef solve(old, present, value):\n    return value if present else old\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('a', True, ''), '')\", \"check('fixture 2', solve('a', True, 'b\\\\x00c'), 'a')\", \"check('fixture 3', solve('a', False, 'b'), 'a')\", \"check('fixture 4', solve('a', True, 'b'), 'b')\"]\nfor _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:\n    exec(_line)\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":"1f45cffcb6e9b2b15d6daa1d649da08dcf11d73a129c1a5a4f8a774249bd0cb8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport ipaddress\nimport re\nfrom urllib.parse import urlsplit, urljoin\nN = 1\nobservations = []\ndef solve(old, present, value):\n    return value if present and \"\\x00\" not in value else old\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('a', True, ''), '')\", \"check('fixture 2', solve('a', True, 'b\\\\x00c'), 'a')\", \"check('fixture 3', solve('a', False, 'b'), 'a')\", \"check('fixture 4', solve('a', True, 'b'), 'b')\"]\nfor _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:\n    exec(_line)\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":"Bounded deterministic policy model over validated inputs; not a complete protocol stack or an interoperability claim. The five variants rotate the same explicit fixture set. 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":"xh-sse-empty-id-clears-the-reconnection-event-identifier","generated_at":"2026-09-29T14:38:13.936837+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic websocket and browser transport policies model isolates the sse-empty-id-clears-the-reconnection-event-identifier policy at a network component boundary.","repair":"Apply the explicit sse-empty-id-clears-the-reconnection-event-identifier contract, including the tested boundary and negative cases.","root_cause":"The faulty implementation uses `value if present else old` for the sse-empty-id-clears-the-reconnection-event-identifier decision.","sha256":"388daf4e59013b571420d209bd2c1e699b9ced73023a93b2c37bba6f3538a268","title":"Sse empty id clears the reconnection event identifier · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":36.478,"exit_code":1,"observations":[{"actual":"a","check":"fixture 2","expected":"a","passed":true},{"actual":"a","check":"fixture 3","expected":"a","passed":true},{"actual":"b","check":"fixture 4","expected":"b","passed":true},{"actual":"a","check":"fixture 1","expected":"","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"a\", \"expected\": \"a\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"a\", \"expected\": \"a\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"b\", \"expected\": \"b\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"a\", \"expected\": \"\", \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.453,"exit_code":1,"observations":[{"actual":"b\u0000c","check":"fixture 2","expected":"a","passed":false},{"actual":"a","check":"fixture 3","expected":"a","passed":true},{"actual":"b","check":"fixture 4","expected":"b","passed":true},{"actual":"","check":"fixture 1","expected":"","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"b\\u0000c\", \"expected\": \"a\", \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": \"a\", \"expected\": \"a\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"b\", \"expected\": \"b\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.685,"exit_code":0,"observations":[{"actual":"a","check":"fixture 2","expected":"a","passed":true},{"actual":"a","check":"fixture 3","expected":"a","passed":true},{"actual":"b","check":"fixture 4","expected":"b","passed":true},{"actual":"","check":"fixture 1","expected":"","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"a\", \"expected\": \"a\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"a\", \"expected\": \"a\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"b\", \"expected\": \"b\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}