FAILURE MAP
← Case archive

FA-9841 / Packaging / Open access

Wheel compatibility admission: ABI compatibility is ignored · case 01

ABI compatibility is ignored.

Verified by executionVariant 1 · 10 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

The implementation substitutes True for bool(set(wheel['abi']) & (set(abis) | {'none'})), so aBI compatibility is ignored.

VERIFIED REPAIR

Match supported ABI or the no-ABI tag.

Unsuccessful approach: The attempted repair substitutes bool(set(wheel['abi']) & set(abis)). Fixture 5 still yields False instead of True.

Case 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.

Why this case matters

An offline model of wheel compatibility admission, suitable for testing build and release tooling without external services.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(wheel, python, abis, platforms, version):
    return (not wheel['yanked'] and bool(set(wheel['python']) & (set(python) | {'py3'})) and True and bool(set(wheel['platform']) & (set(platforms) | {'any'})) and version >= wheel['minimum'])
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 2', solve({'yanked': True, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
check('fixture 3', solve({'yanked': False, 'python': ['py3'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 4', solve({'yanked': False, 'python': ['cp312'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
check('fixture 5', solve({'yanked': False, 'python': ['cp311'], 'abi': ['none'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 6', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp312'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
check('fixture 7', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['any'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 8', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['win'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
check('fixture 9', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 10)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 10', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 12)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
fixture 1TrueTruePassed
fixture 2FalseFalsePassed
fixture 3TrueTruePassed
fixture 4FalseFalsePassed
fixture 5TrueTruePassed
fixture 6TrueFalseFailed
fixture 7TrueTruePassed
fixture 8FalseFalsePassed
fixture 9TrueTruePassed
fixture 10FalseFalsePassed

SHA-256 / c2f5b59a093b54f7ed124be2a254526ab37541faab0dd3d19667facdfeb80967

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(wheel, python, abis, platforms, version):
    return (not wheel['yanked'] and bool(set(wheel['python']) & (set(python) | {'py3'})) and bool(set(wheel['abi']) & set(abis)) and bool(set(wheel['platform']) & (set(platforms) | {'any'})) and version >= wheel['minimum'])
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 2', solve({'yanked': True, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
check('fixture 3', solve({'yanked': False, 'python': ['py3'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 4', solve({'yanked': False, 'python': ['cp312'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
check('fixture 5', solve({'yanked': False, 'python': ['cp311'], 'abi': ['none'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 6', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp312'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
check('fixture 7', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['any'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 8', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['win'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
check('fixture 9', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 10)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 10', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 12)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
fixture 1TrueTruePassed
fixture 2FalseFalsePassed
fixture 3TrueTruePassed
fixture 4FalseFalsePassed
fixture 5FalseTrueFailed
fixture 6FalseFalsePassed
fixture 7TrueTruePassed
fixture 8FalseFalsePassed
fixture 9TrueTruePassed
fixture 10FalseFalsePassed

SHA-256 / 3550a3da56568123c5d4bb0a5e0fcb662dac28fa9438cba68b5ed6d53ce15d3e

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(wheel, python, abis, platforms, version):
    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) | {'any'})) and version >= wheel['minimum'])
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 2', solve({'yanked': True, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
check('fixture 3', solve({'yanked': False, 'python': ['py3'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 4', solve({'yanked': False, 'python': ['cp312'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
check('fixture 5', solve({'yanked': False, 'python': ['cp311'], 'abi': ['none'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 6', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp312'], 'platform': ['linux'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
check('fixture 7', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['any'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 8', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['win'], 'minimum': (3, 11)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
check('fixture 9', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 10)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), True)
check('fixture 10', solve({'yanked': False, 'python': ['cp311'], 'abi': ['cp311'], 'platform': ['linux'], 'minimum': (3, 12)}, ['cp311'], ['cp311'], ['linux'], (3, 11)), False)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
fixture 1TrueTruePassed
fixture 2FalseFalsePassed
fixture 3TrueTruePassed
fixture 4FalseFalsePassed
fixture 5TrueTruePassed
fixture 6FalseFalsePassed
fixture 7TrueTruePassed
fixture 8FalseFalsePassed
fixture 9TrueTruePassed
fixture 10FalseFalsePassed

SHA-256 / 53f34d0ee272132809003bdc4b8964e7c79eaa0130e806af2554540e33a6f88e

Verification & scope

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.

Observations recorded using Python 3.12.14 at 2026-09-29T14:38:33.540837+00:00.

Case digest / 4270ec8223df27e1e7bca2161ca745a870ca9eed3069072b0cbdbe93b24686de