{"abstract":"Uses an ordinary instance method in place of a classmethod and changes the required Python-language result.","category":"Method resolution","checks":4,"contract":"An inherited classmethod binds the accessing class, including access through an instance or a saved bound method. Return [bound class name,its label,suffix]. Inputs use the finite Python types shown in the fixtures. An error string denotes the specified caught exception, not an unhandled process failure.","contract_signature":"mode, suffix","evaluation_group":"xl-classmethod-dynamic-binding","failed_approach":"The alternative still fails because it uses the defining Base class instead of the bound subclass.","family":"xl-classmethod-dynamic-binding-decorator-removed","id":"FA-5111","implementations":{"attempt":{"sha256":"2048e0e5f3858c1098b86aec6e82d41de806f05a23282ce22c4fe22fc444e707","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(mode, suffix):\n    class Base:\n        label='base'\n        @classmethod\n        def read(cls,suffix): return ['Base',Base.label,suffix]\n    class Child(Base): label='child'\n    try:\n        if mode=='base': return Base.read(suffix)\n        if mode=='child': return Child.read(suffix)\n        if mode=='instance': return Child().read(suffix)\n        bound=Child.read\n        return bound(suffix)\n    except (TypeError,AttributeError) as exc:\n        return type(exc).__name__\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('base access', solve('base', 'x'), ['Base', 'base', 'x'])\ncheck('subclass access', solve('child', 'y'), ['Child', 'child', 'y'])\ncheck('instance access', solve('instance', None), ['Child', 'child', None])\ncheck('saved bound method', solve('saved', 0), ['Child', 'child', 0])\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":"9476c287760c09e188e4ce4cd681692bbc34c060c262a7d29090618edeb05ef5","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(mode, suffix):\n    class Base:\n        label='base'\n    \n        def read(cls,suffix): return [cls.__name__,cls.label,suffix]\n    class Child(Base): label='child'\n    try:\n        if mode=='base': return Base.read(suffix)\n        if mode=='child': return Child.read(suffix)\n        if mode=='instance': return Child().read(suffix)\n        bound=Child.read\n        return bound(suffix)\n    except (TypeError,AttributeError) as exc:\n        return type(exc).__name__\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('base access', solve('base', 'x'), ['Base', 'base', 'x'])\ncheck('subclass access', solve('child', 'y'), ['Child', 'child', 'y'])\ncheck('instance access', solve('instance', None), ['Child', 'child', None])\ncheck('saved bound method', solve('saved', 0), ['Child', 'child', 0])\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":"xl-classmethod-dynamic-binding-decorator-removed","generated_at":"2026-09-29T14:37:46.307024+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Runs Python standard-library language operations in a deterministic local reproducer. Literal expected answers are authored independently. Related defects share an evaluation group to avoid benchmark split leakage.","root_cause":"Uses an ordinary instance method in place of a classmethod. The executable reproducer isolates this operation from the rest of the contract.","sha256":"79f5eabdc90815b63450ad15760999af15a2789d7c9a92c0872d1a0aa023ac9c","title":"Classmethod dynamic binding: Uses an ordinary instance method in place of a classmethod · case 01","variant":1,"variant_policy":"The five numbered cases rerun the same authored boundary fixtures; they are reproducibility runs, not independent input variants.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":39.34,"exit_code":1,"observations":[{"actual":["Base","base","x"],"check":"base access","expected":["Base","base","x"],"passed":true},{"actual":["Base","base","y"],"check":"subclass access","expected":["Child","child","y"],"passed":false},{"actual":["Base","base",null],"check":"instance access","expected":["Child","child",null],"passed":false},{"actual":["Base","base",0],"check":"saved bound method","expected":["Child","child",0],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"base access\", \"actual\": [\"Base\", \"base\", \"x\"], \"expected\": [\"Base\", \"base\", \"x\"], \"passed\": true}, {\"check\": \"subclass access\", \"actual\": [\"Base\", \"base\", \"y\"], \"expected\": [\"Child\", \"child\", \"y\"], \"passed\": false}, {\"check\": \"instance access\", \"actual\": [\"Base\", \"base\", null], \"expected\": [\"Child\", \"child\", null], \"passed\": false}, {\"check\": \"saved bound method\", \"actual\": [\"Base\", \"base\", 0], \"expected\": [\"Child\", \"child\", 0], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":34.618,"exit_code":1,"observations":[{"actual":"TypeError","check":"base access","expected":["Base","base","x"],"passed":false},{"actual":"TypeError","check":"subclass access","expected":["Child","child","y"],"passed":false},{"actual":"AttributeError","check":"instance access","expected":["Child","child",null],"passed":false},{"actual":"TypeError","check":"saved bound method","expected":["Child","child",0],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"base access\", \"actual\": \"TypeError\", \"expected\": [\"Base\", \"base\", \"x\"], \"passed\": false}, {\"check\": \"subclass access\", \"actual\": \"TypeError\", \"expected\": [\"Child\", \"child\", \"y\"], \"passed\": false}, {\"check\": \"instance access\", \"actual\": \"AttributeError\", \"expected\": [\"Child\", \"child\", null], \"passed\": false}, {\"check\": \"saved bound method\", \"actual\": \"TypeError\", \"expected\": [\"Child\", \"child\", 0], \"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."}}