{"abstract":"Sse comments do not change data buffer.","category":"WebSocket and browser transport policies","checks":4,"contract":"Bounded offline decision model: sse comments do not change data buffer. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.","evaluation_group":"xh-sse-comments-do-not-change-data-buffer","failed_approach":"The attempted repair uses `buffer` and still violates a separate fixture.","family":"xh-sse-comments-do-not-change-data-buffer","id":"FA-7661","implementations":{"attempt":{"sha256":"b3dcfb578c15a8dda030d8204b651b0642c4568c73948e31626e7d38324c9d52","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(buffer, line):\n    return buffer\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve(['a'], ':keepalive'), ['a'])\", \"check('fixture 2', solve(['a'], 'b'), ['a', 'b'])\", \"check('fixture 3', solve([], ':'), [])\", \"check('fixture 4', solve([], 'a'), ['a'])\"]\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":"4e5b42cb57cbced7ca38e001a35975eafaf5fe068231bc145f4954a47c9ec95b","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(buffer, line):\n    return buffer+[line]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve(['a'], ':keepalive'), ['a'])\", \"check('fixture 2', solve(['a'], 'b'), ['a', 'b'])\", \"check('fixture 3', solve([], ':'), [])\", \"check('fixture 4', solve([], 'a'), ['a'])\"]\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":"3061f40f9a002e3589901822ca367ffc177c126f24422381df2baf68fd4bbed1","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(buffer, line):\n    return buffer if line.startswith(\":\") else buffer+[line]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve(['a'], ':keepalive'), ['a'])\", \"check('fixture 2', solve(['a'], 'b'), ['a', 'b'])\", \"check('fixture 3', solve([], ':'), [])\", \"check('fixture 4', solve([], 'a'), ['a'])\"]\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-comments-do-not-change-data-buffer","generated_at":"2026-09-29T14:38:14.158059+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-comments-do-not-change-data-buffer policy at a network component boundary.","repair":"Apply the explicit sse-comments-do-not-change-data-buffer contract, including the tested boundary and negative cases.","root_cause":"The faulty implementation uses `buffer+[line]` for the sse-comments-do-not-change-data-buffer decision.","sha256":"68dea87066fcd7e0f7dfaf7310e4f3ca935460703d586cf1d98b855801acbbf5","title":"Sse comments do not change data buffer · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":38.366,"exit_code":1,"observations":[{"actual":["a"],"check":"fixture 2","expected":["a","b"],"passed":false},{"actual":[],"check":"fixture 3","expected":[],"passed":true},{"actual":[],"check":"fixture 4","expected":["a"],"passed":false},{"actual":["a"],"check":"fixture 1","expected":["a"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"fixture 1\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.203,"exit_code":1,"observations":[{"actual":["a","b"],"check":"fixture 2","expected":["a","b"],"passed":true},{"actual":[":"],"check":"fixture 3","expected":[],"passed":false},{"actual":["a"],"check":"fixture 4","expected":["a"],"passed":true},{"actual":["a",":keepalive"],"check":"fixture 1","expected":["a"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\":\"], \"expected\": [], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": [\"a\", \":keepalive\"], \"expected\": [\"a\"], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":39.626,"exit_code":0,"observations":[{"actual":["a","b"],"check":"fixture 2","expected":["a","b"],"passed":true},{"actual":[],"check":"fixture 3","expected":[],"passed":true},{"actual":["a"],"check":"fixture 4","expected":["a"],"passed":true},{"actual":["a"],"check":"fixture 1","expected":["a"],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}