{"abstract":"Proxy error status distinguishes timeout from connect failure.","category":"Proxy forwarding","checks":4,"contract":"Bounded offline decision model: proxy error status distinguishes timeout from connect failure. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.","contract_signature":"timeout, connected","evaluation_group":"xh-proxy-error-status-distinguishes-timeout-from-connect-failure","failed_approach":"The attempted repair uses `504 if not connected else 200` and still violates a separate fixture.","family":"xh-proxy-error-status-distinguishes-timeout-from-connect-failure","id":"FA-7011","implementations":{"attempt":{"sha256":"5e3c49400caa9fe651c08e59379c05bde2d0386ccd99df1394fae134ea533406","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(timeout, connected):\n    return 504 if not connected else 200\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve(True, False), 504)\", \"check('fixture 2', solve(False, False), 502)\", \"check('fixture 3', solve(False, True), 200)\", \"check('fixture 4', solve(True, True), 504)\"]\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":"91de5d78f9cf5e8cfb90b2ef2c51e19e4b0e4f3010df6136fa29be16d91f989b","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(timeout, connected):\n    return 502 if not connected else 200\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve(True, False), 504)\", \"check('fixture 2', solve(False, False), 502)\", \"check('fixture 3', solve(False, True), 200)\", \"check('fixture 4', solve(True, True), 504)\"]\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-proxy-error-status-distinguishes-timeout-from-connect-failure","generated_at":"2026-09-29T14:38:07.456764+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic proxy forwarding model isolates the proxy-error-status-distinguishes-timeout-from-connect-failure policy at a network component boundary.","root_cause":"The faulty implementation uses `502 if not connected else 200` for the proxy-error-status-distinguishes-timeout-from-connect-failure decision.","sha256":"3a44dcd581694c2bd5df7486eb747c8189be4e9f05fcafc2a4dfea0b5ce28fa7","title":"Proxy error status distinguishes timeout from connect failure · 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":34.158,"exit_code":1,"observations":[{"actual":504,"check":"fixture 2","expected":502,"passed":false},{"actual":200,"check":"fixture 3","expected":200,"passed":true},{"actual":200,"check":"fixture 4","expected":504,"passed":false},{"actual":504,"check":"fixture 1","expected":504,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": 504, \"expected\": 502, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": 200, \"expected\": 200, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 200, \"expected\": 504, \"passed\": false}, {\"check\": \"fixture 1\", \"actual\": 504, \"expected\": 504, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.586,"exit_code":1,"observations":[{"actual":502,"check":"fixture 2","expected":502,"passed":true},{"actual":200,"check":"fixture 3","expected":200,"passed":true},{"actual":200,"check":"fixture 4","expected":504,"passed":false},{"actual":502,"check":"fixture 1","expected":504,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": 502, \"expected\": 502, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 200, \"expected\": 200, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 200, \"expected\": 504, \"passed\": false}, {\"check\": \"fixture 1\", \"actual\": 502, \"expected\": 504, \"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."}}