{"abstract":"Upstream port default depends on scheme.","category":"Proxy forwarding","checks":4,"contract":"Bounded offline decision model: upstream port default depends on scheme. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.","evaluation_group":"xh-upstream-port-default-depends-on-scheme","failed_approach":"The attempted repair uses `443 if scheme == \"https\" else 80` and still violates a separate fixture.","family":"xh-upstream-port-default-depends-on-scheme","id":"FA-7046","implementations":{"attempt":{"sha256":"62988179e803a0c56ab6df8e387574803e6c8295f100f8cd2ce9eb636773db5f","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(scheme, port):\n    return 443 if scheme == \"https\" else 80\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('https', None), 443)\", \"check('fixture 2', solve('http', 8080), 8080)\", \"check('fixture 3', solve('http', None), 80)\", \"check('fixture 4', solve('https', 8443), 8443)\"]\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":"a064729712e76eadbafc06f8ac7378c059150c7cb6216a142878dea90eec7f8c","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(scheme, port):\n    return port or 80\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('https', None), 443)\", \"check('fixture 2', solve('http', 8080), 8080)\", \"check('fixture 3', solve('http', None), 80)\", \"check('fixture 4', solve('https', 8443), 8443)\"]\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":"dba9a2305433ad55b4f4e11990960e9b8f3b30141d88f6e8097f49af280a7b80","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(scheme, port):\n    return port if port is not None else (443 if scheme == \"https\" else 80)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('https', None), 443)\", \"check('fixture 2', solve('http', 8080), 8080)\", \"check('fixture 3', solve('http', None), 80)\", \"check('fixture 4', solve('https', 8443), 8443)\"]\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-upstream-port-default-depends-on-scheme","generated_at":"2026-09-29T14:38:07.843980+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic proxy forwarding model isolates the upstream-port-default-depends-on-scheme policy at a network component boundary.","repair":"Apply the explicit upstream-port-default-depends-on-scheme contract, including the tested boundary and negative cases.","root_cause":"The faulty implementation uses `port or 80` for the upstream-port-default-depends-on-scheme decision.","sha256":"682552dbb0c55dddb8bc3ecd7c4b8112a9fa7d5528328943bfdb4bc2032b30a8","title":"Upstream port default depends on scheme · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.319,"exit_code":1,"observations":[{"actual":80,"check":"fixture 2","expected":8080,"passed":false},{"actual":80,"check":"fixture 3","expected":80,"passed":true},{"actual":443,"check":"fixture 4","expected":8443,"passed":false},{"actual":443,"check":"fixture 1","expected":443,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": 80, \"expected\": 8080, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": 80, \"expected\": 80, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 443, \"expected\": 8443, \"passed\": false}, {\"check\": \"fixture 1\", \"actual\": 443, \"expected\": 443, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.245,"exit_code":1,"observations":[{"actual":8080,"check":"fixture 2","expected":8080,"passed":true},{"actual":80,"check":"fixture 3","expected":80,"passed":true},{"actual":8443,"check":"fixture 4","expected":8443,"passed":true},{"actual":80,"check":"fixture 1","expected":443,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": 8080, \"expected\": 8080, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 80, \"expected\": 80, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 8443, \"expected\": 8443, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": 80, \"expected\": 443, \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":36.166,"exit_code":0,"observations":[{"actual":8080,"check":"fixture 2","expected":8080,"passed":true},{"actual":80,"check":"fixture 3","expected":80,"passed":true},{"actual":8443,"check":"fixture 4","expected":8443,"passed":true},{"actual":443,"check":"fixture 1","expected":443,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": 8080, \"expected\": 8080, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 80, \"expected\": 80, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 8443, \"expected\": 8443, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": 443, \"expected\": 443, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}