{"abstract":"Starts at A regardless of the declared base order and changes the required Python-language result.","category":"Method resolution","checks":6,"contract":"Traverse the actual C3 MRO cooperatively, appending each visited class once. Leaf bases are A,B or B,A and both derive from Root; start chooses normal dispatch or super after a specified class. 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":"order, start","evaluation_group":"xl-cooperative-diamond-mro","failed_approach":"The alternative still fails because it omits the terminal Root contribution from the cooperative chain.","family":"xl-cooperative-diamond-mro-leaf-hardcodes-a","id":"FA-5091","implementations":{"attempt":{"sha256":"ca902d9d0f8848a64aca730d0e71a0749537f504d529e0fd7be0e2afac77ad75","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(order, start):\n    class Root:\n        def trace(self): return []\n    class A(Root):\n        def trace(self): return ['A']+super().trace()\n    class B(Root):\n        def trace(self): return ['B']+super().trace()\n    def leaf_trace(self): return ['Leaf']+super(Leaf,self).trace()\n    Leaf=type('Leaf',(A,B) if order=='AB' else (B,A),{'trace':leaf_trace})\n    obj=Leaf()\n    if start=='leaf': return obj.trace()\n    if start=='after-leaf': return super(Leaf,obj).trace()\n    if start=='after-A': return super(A,obj).trace()\n    return super(B,obj).trace()\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('left-first diamond', solve('AB', 'leaf'), ['Leaf', 'A', 'B', 'Root'])\ncheck('right-first diamond', solve('BA', 'leaf'), ['Leaf', 'B', 'A', 'Root'])\ncheck('super after leaf', solve('AB', 'after-leaf'), ['A', 'B', 'Root'])\ncheck('super A follows dynamic MRO', solve('AB', 'after-A'), ['B', 'Root'])\ncheck('super B follows dynamic MRO', solve('BA', 'after-B'), ['A', 'Root'])\ncheck('terminal next', solve('AB', 'after-B'), ['Root'])\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":"fd4913f9f60dbbbef1f0491b2d4eb117dbfff9c7b59488f6416214afc943e653","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(order, start):\n    class Root:\n        def trace(self): return ['Root']\n    class A(Root):\n        def trace(self): return ['A']+super().trace()\n    class B(Root):\n        def trace(self): return ['B']+super().trace()\n    def leaf_trace(self): return ['Leaf']+A.trace(self)\n    Leaf=type('Leaf',(A,B) if order=='AB' else (B,A),{'trace':leaf_trace})\n    obj=Leaf()\n    if start=='leaf': return obj.trace()\n    if start=='after-leaf': return super(Leaf,obj).trace()\n    if start=='after-A': return super(A,obj).trace()\n    return super(B,obj).trace()\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('left-first diamond', solve('AB', 'leaf'), ['Leaf', 'A', 'B', 'Root'])\ncheck('right-first diamond', solve('BA', 'leaf'), ['Leaf', 'B', 'A', 'Root'])\ncheck('super after leaf', solve('AB', 'after-leaf'), ['A', 'B', 'Root'])\ncheck('super A follows dynamic MRO', solve('AB', 'after-A'), ['B', 'Root'])\ncheck('super B follows dynamic MRO', solve('BA', 'after-B'), ['A', 'Root'])\ncheck('terminal next', solve('AB', 'after-B'), ['Root'])\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-cooperative-diamond-mro-leaf-hardcodes-a","generated_at":"2026-09-29T14:37:45.981747+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":"Starts at A regardless of the declared base order. The executable reproducer isolates this operation from the rest of the contract.","sha256":"c45f2109f5d84ed9d8ffacb22a15262b157f1e5c30e2e42af14b04d352cb632b","title":"Cooperative diamond mro: Starts at A regardless of the declared base order · 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":37.595,"exit_code":1,"observations":[{"actual":["Leaf","A","B"],"check":"left-first diamond","expected":["Leaf","A","B","Root"],"passed":false},{"actual":["Leaf","B","A"],"check":"right-first diamond","expected":["Leaf","B","A","Root"],"passed":false},{"actual":["A","B"],"check":"super after leaf","expected":["A","B","Root"],"passed":false},{"actual":["B"],"check":"super A follows dynamic MRO","expected":["B","Root"],"passed":false},{"actual":["A"],"check":"super B follows dynamic MRO","expected":["A","Root"],"passed":false},{"actual":[],"check":"terminal next","expected":["Root"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"left-first diamond\", \"actual\": [\"Leaf\", \"A\", \"B\"], \"expected\": [\"Leaf\", \"A\", \"B\", \"Root\"], \"passed\": false}, {\"check\": \"right-first diamond\", \"actual\": [\"Leaf\", \"B\", \"A\"], \"expected\": [\"Leaf\", \"B\", \"A\", \"Root\"], \"passed\": false}, {\"check\": \"super after leaf\", \"actual\": [\"A\", \"B\"], \"expected\": [\"A\", \"B\", \"Root\"], \"passed\": false}, {\"check\": \"super A follows dynamic MRO\", \"actual\": [\"B\"], \"expected\": [\"B\", \"Root\"], \"passed\": false}, {\"check\": \"super B follows dynamic MRO\", \"actual\": [\"A\"], \"expected\": [\"A\", \"Root\"], \"passed\": false}, {\"check\": \"terminal next\", \"actual\": [], \"expected\": [\"Root\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.854,"exit_code":1,"observations":[{"actual":["Leaf","A","B","Root"],"check":"left-first diamond","expected":["Leaf","A","B","Root"],"passed":true},{"actual":["Leaf","A","Root"],"check":"right-first diamond","expected":["Leaf","B","A","Root"],"passed":false},{"actual":["A","B","Root"],"check":"super after leaf","expected":["A","B","Root"],"passed":true},{"actual":["B","Root"],"check":"super A follows dynamic MRO","expected":["B","Root"],"passed":true},{"actual":["A","Root"],"check":"super B follows dynamic MRO","expected":["A","Root"],"passed":true},{"actual":["Root"],"check":"terminal next","expected":["Root"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"left-first diamond\", \"actual\": [\"Leaf\", \"A\", \"B\", \"Root\"], \"expected\": [\"Leaf\", \"A\", \"B\", \"Root\"], \"passed\": true}, {\"check\": \"right-first diamond\", \"actual\": [\"Leaf\", \"A\", \"Root\"], \"expected\": [\"Leaf\", \"B\", \"A\", \"Root\"], \"passed\": false}, {\"check\": \"super after leaf\", \"actual\": [\"A\", \"B\", \"Root\"], \"expected\": [\"A\", \"B\", \"Root\"], \"passed\": true}, {\"check\": \"super A follows dynamic MRO\", \"actual\": [\"B\", \"Root\"], \"expected\": [\"B\", \"Root\"], \"passed\": true}, {\"check\": \"super B follows dynamic MRO\", \"actual\": [\"A\", \"Root\"], \"expected\": [\"A\", \"Root\"], \"passed\": true}, {\"check\": \"terminal next\", \"actual\": [\"Root\"], \"expected\": [\"Root\"], \"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."}}