{"abstract":"Stream eof is terminal only after buffered input is delivered.","category":"Connection lifecycle","checks":4,"contract":"Bounded offline decision model: stream eof is terminal only after buffered input is delivered. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.","contract_signature":"buffered, eof","evaluation_group":"xh-stream-eof-is-terminal-only-after-buffered-input-is-delivered","failed_approach":"The attempted repair uses `'deliver' if buffered else 'wait'` and still violates a separate fixture.","family":"xh-stream-eof-is-terminal-only-after-buffered-input-is-delivered","id":"FA-7801","implementations":{"attempt":{"sha256":"210682c0b34403e60f1d9d447612e0534db1f9f8636a03a36aab2db5bee75380","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(buffered, eof):\n    return 'deliver' if buffered else 'wait'\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve(3, True), 'deliver')\", \"check('fixture 2', solve(0, True), 'closed')\", \"check('fixture 3', solve(0, False), 'wait')\", \"check('fixture 4', solve(1, False), 'deliver')\"]\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":"f3e9baf119e58d598c1a0470da732180beec25f1bcaf3b295d1dfdb0912e1679","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(buffered, eof):\n    return 'closed' if eof else ('deliver' if buffered else 'wait')\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve(3, True), 'deliver')\", \"check('fixture 2', solve(0, True), 'closed')\", \"check('fixture 3', solve(0, False), 'wait')\", \"check('fixture 4', solve(1, False), 'deliver')\"]\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-stream-eof-is-terminal-only-after-buffered-input-is-delivered","generated_at":"2026-09-29T14:38:15.481011+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic connection lifecycle model isolates the stream-eof-is-terminal-only-after-buffered-input-is-delivered policy at a network component boundary.","root_cause":"The faulty implementation uses `'closed' if eof else ('deliver' if buffered else 'wait')` for the stream-eof-is-terminal-only-after-buffered-input-is-delivered decision.","sha256":"749bf2cb17d71647fd264bee2d46ba64cae58c45888e6dc0935c077ac9b6d1df","title":"Stream eof is terminal only after buffered input is delivered · 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":42.396,"exit_code":1,"observations":[{"actual":"wait","check":"fixture 2","expected":"closed","passed":false},{"actual":"wait","check":"fixture 3","expected":"wait","passed":true},{"actual":"deliver","check":"fixture 4","expected":"deliver","passed":true},{"actual":"deliver","check":"fixture 1","expected":"deliver","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"wait\", \"expected\": \"closed\", \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": \"wait\", \"expected\": \"wait\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"deliver\", \"expected\": \"deliver\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"deliver\", \"expected\": \"deliver\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.37,"exit_code":1,"observations":[{"actual":"closed","check":"fixture 2","expected":"closed","passed":true},{"actual":"wait","check":"fixture 3","expected":"wait","passed":true},{"actual":"deliver","check":"fixture 4","expected":"deliver","passed":true},{"actual":"closed","check":"fixture 1","expected":"deliver","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"closed\", \"expected\": \"closed\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"wait\", \"expected\": \"wait\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"deliver\", \"expected\": \"deliver\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"closed\", \"expected\": \"deliver\", \"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."}}