{"abstract":"Websocket pong echoes the entire ping payload.","category":"WebSocket and browser transport policies","checks":4,"contract":"Given ping, closing, websocket pong echoes the entire ping payload. Return the protocol decision or transformed value; fields are validated and fixtures state boundary outcomes.","contract_signature":"ping, closing","evaluation_group":"xh-websocket-pong-echoes-the-entire-ping-payload","failed_approach":"The attempted repair uses `{\"opcode\":10,\"final\":True,\"payload\":ping}` and still violates a separate fixture.","family":"xh-websocket-pong-echoes-the-entire-ping-payload","id":"FA-7626","implementations":{"attempt":{"sha256":"a71ac9d81b181ce10b2d2c4c722c8f31770fb879ead4037181a251579a8f0e47","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(ping, closing):\n    return {\"opcode\":10,\"final\":True,\"payload\":ping}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('abc', False), {'opcode': 10, 'final': True, 'payload': 'abc'})\", \"check('fixture 2', solve('abc', True), None)\", \"check('fixture 3', solve('', False), {'opcode': 10, 'final': True, 'payload': ''})\", \"check('fixture 4', solve('', True), None)\"]\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":"b6a91f40283e4c3b46dbc90080b7a1e883d9664b6970e62d38bac1137808d528","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(ping, closing):\n    return None if closing else {\"opcode\":10,\"final\":True,\"payload\":\"\"}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('abc', False), {'opcode': 10, 'final': True, 'payload': 'abc'})\", \"check('fixture 2', solve('abc', True), None)\", \"check('fixture 3', solve('', False), {'opcode': 10, 'final': True, 'payload': ''})\", \"check('fixture 4', solve('', True), None)\"]\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-websocket-pong-echoes-the-entire-ping-payload","generated_at":"2026-09-29T14:38:13.807343+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 websocket-pong-echoes-the-entire-ping-payload policy at a network component boundary.","root_cause":"The faulty implementation uses `None if closing else {\"opcode\":10,\"final\":True,\"payload\":\"\"}` for the websocket-pong-echoes-the-entire-ping-payload decision.","sha256":"c2250cad12b468c5346d94dcc6f48effe90424a660c29a101a66fdecbfb43432","title":"Websocket pong echoes the entire ping payload · 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":43.484,"exit_code":1,"observations":[{"actual":{"final":true,"opcode":10,"payload":"abc"},"check":"fixture 2","expected":null,"passed":false},{"actual":{"final":true,"opcode":10,"payload":""},"check":"fixture 3","expected":{"final":true,"opcode":10,"payload":""},"passed":true},{"actual":{"final":true,"opcode":10,"payload":""},"check":"fixture 4","expected":null,"passed":false},{"actual":{"final":true,"opcode":10,"payload":"abc"},"check":"fixture 1","expected":{"final":true,"opcode":10,"payload":"abc"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": {\"opcode\": 10, \"final\": true, \"payload\": \"abc\"}, \"expected\": null, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": {\"opcode\": 10, \"final\": true, \"payload\": \"\"}, \"expected\": {\"opcode\": 10, \"final\": true, \"payload\": \"\"}, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": {\"opcode\": 10, \"final\": true, \"payload\": \"\"}, \"expected\": null, \"passed\": false}, {\"check\": \"fixture 1\", \"actual\": {\"opcode\": 10, \"final\": true, \"payload\": \"abc\"}, \"expected\": {\"opcode\": 10, \"final\": true, \"payload\": \"abc\"}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.078,"exit_code":1,"observations":[{"actual":null,"check":"fixture 2","expected":null,"passed":true},{"actual":{"final":true,"opcode":10,"payload":""},"check":"fixture 3","expected":{"final":true,"opcode":10,"payload":""},"passed":true},{"actual":null,"check":"fixture 4","expected":null,"passed":true},{"actual":{"final":true,"opcode":10,"payload":""},"check":"fixture 1","expected":{"final":true,"opcode":10,"payload":"abc"},"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": {\"opcode\": 10, \"final\": true, \"payload\": \"\"}, \"expected\": {\"opcode\": 10, \"final\": true, \"payload\": \"\"}, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": {\"opcode\": 10, \"final\": true, \"payload\": \"\"}, \"expected\": {\"opcode\": 10, \"final\": true, \"payload\": \"abc\"}, \"passed\": false}], \"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."}}