{"abstract":"Foreign-platform wheels install locally.","category":"Packaging","checks":10,"contract":"Accept a wheel when at least one Python tag, ABI tag, and platform tag is supported; universal tags py3, none, and any have explicit support. Reject yanked wheels and incompatible minimum interpreter versions.","contract_signature":"wheel, python, abis, platforms, version","evaluation_group":"xt-wheel-tags","failed_approach":"The attempted repair substitutes bool(set(wheel['platform']) & set(platforms)). Fixture 7 still yields False instead of True.","family":"xt-wheel-tags-platform-tag","id":"FA-9846","implementations":{"attempt":{"sha256":"6d41aefc9ffa4951b5357442cfd8f7d52478ec3cba10459efe0642c7dbd7175f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(wheel, python, abis, platforms, version):\n    return (not wheel['yanked'] and bool(set(wheel['python']) & (set(python) | {'py3'})) and bool(set(wheel['abi']) & (set(abis) | {'none'})) and bool(set(wheel['platform']) & set(platforms)) and version >= wheel['minimum'])\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)\ncheck('fixture 2', solve({'yanked': True, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)\ncheck('fixture 3', solve({'yanked': False, 'python': ['py3'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)\ncheck('fixture 4', solve({'yanked': False, 'python': ['cp312'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)\ncheck('fixture 5', solve({'yanked': False, 'python': ['cp311'], 'abi': ['none'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)\ncheck('fixture 6', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp312'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)\ncheck('fixture 7', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['any'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)\ncheck('fixture 8', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['win'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)\ncheck('fixture 9', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 10)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)\ncheck('fixture 10', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 12)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)\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":"6f3bd34c138a70678db6136e465a2364b90fa8b4fa252ead6c6abe793718e394","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(wheel, python, abis, platforms, version):\n    return (not wheel['yanked'] and bool(set(wheel['python']) & (set(python) | {'py3'})) and bool(set(wheel['abi']) & (set(abis) | {'none'})) and True and version >= wheel['minimum'])\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)\ncheck('fixture 2', solve({'yanked': True, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)\ncheck('fixture 3', solve({'yanked': False, 'python': ['py3'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)\ncheck('fixture 4', solve({'yanked': False, 'python': ['cp312'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)\ncheck('fixture 5', solve({'yanked': False, 'python': ['cp311'], 'abi': ['none'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)\ncheck('fixture 6', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp312'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)\ncheck('fixture 7', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['any'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)\ncheck('fixture 8', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['win'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)\ncheck('fixture 9', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 10)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)\ncheck('fixture 10', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 12)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)\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":" 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":"xt-wheel-tags-platform-tag","generated_at":"2026-09-29T14:38:33.553473+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of wheel compatibility admission, suitable for testing build and release tooling without external services.","root_cause":"The implementation substitutes True for bool(set(wheel['platform']) & (set(platforms) | {'any'})), so foreign-platform wheels install locally.","sha256":"36bf181cf6248fb1248647957d38ab9398dcce7a4589ba07584acef5cfb5e9c0","title":"Wheel compatibility admission: Foreign-platform wheels install locally · 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":38.484,"exit_code":1,"observations":[{"actual":true,"check":"fixture 1","expected":true,"passed":true},{"actual":false,"check":"fixture 2","expected":false,"passed":true},{"actual":true,"check":"fixture 3","expected":true,"passed":true},{"actual":false,"check":"fixture 4","expected":false,"passed":true},{"actual":true,"check":"fixture 5","expected":true,"passed":true},{"actual":false,"check":"fixture 6","expected":false,"passed":true},{"actual":false,"check":"fixture 7","expected":true,"passed":false},{"actual":false,"check":"fixture 8","expected":false,"passed":true},{"actual":true,"check":"fixture 9","expected":true,"passed":true},{"actual":false,"check":"fixture 10","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"fixture 8\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"fixture 9\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 10\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":36.628,"exit_code":1,"observations":[{"actual":true,"check":"fixture 1","expected":true,"passed":true},{"actual":false,"check":"fixture 2","expected":false,"passed":true},{"actual":true,"check":"fixture 3","expected":true,"passed":true},{"actual":false,"check":"fixture 4","expected":false,"passed":true},{"actual":true,"check":"fixture 5","expected":true,"passed":true},{"actual":false,"check":"fixture 6","expected":false,"passed":true},{"actual":true,"check":"fixture 7","expected":true,"passed":true},{"actual":true,"check":"fixture 8","expected":false,"passed":false},{"actual":true,"check":"fixture 9","expected":true,"passed":true},{"actual":false,"check":"fixture 10","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 8\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"fixture 9\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 10\", \"actual\": false, \"expected\": false, \"passed\": true}], \"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."}}