{"abstract":"The operation returns a result or retained state that violates this contract: Reverse the complete list, retaining every occurrence.","category":"Sequence semantics","checks":4,"contract":"Reverse the complete list, retaining every occurrence. Inputs are the finite Python values shown by the executable fixtures; no concurrent execution is assumed.","contract_signature":"x, y=None","evaluation_group":"model-7e6eee9c7590cd7b","failed_approach":"Descending sorting imposes lexical order instead of reversing positional order.","family":"xr-reverse-retains-multiplicity","id":"FA-4081","implementations":{"attempt":{"sha256":"3bdbfd95e531c6c48308fa1aa545b258557c21ea26b56d0d05a58f293fd9876b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x, y=None):\n    return sorted(x, reverse=True)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('empty collection', solve([]), [])\ncheck('singleton collection', solve(['a']), ['a'])\ncheck('two distinct elements', solve(['a', 'b']), ['b', 'a'])\ncheck('nonadjacent duplicate and unsorted order', solve(['b', 'a', 'b', 'c']), ['c', 'b', 'a', 'b'])\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":"f83d5820f0c5792017f88db64260904268e7fed25d2f75db4ebb025f129cb482","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x, y=None):\n    return x\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('empty collection', solve([]), [])\ncheck('singleton collection', solve(['a']), ['a'])\ncheck('two distinct elements', solve(['a', 'b']), ['b', 'a'])\ncheck('nonadjacent duplicate and unsorted order', solve(['b', 'a', 'b', 'c']), ['c', 'b', 'a', 'b'])\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":"xr-reverse-retains-multiplicity","generated_at":"2026-09-29T14:37:35.422619+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A controlled local-runtime regression for collection APIs, language semantics, or ownership wrappers. Fixtures include boundary and interaction cases.","root_cause":"The sequence is returned in forward order instead of being reversed.","sha256":"5d3375b5bf02df25193c03fd174224027fae7a1de79522623595dc51f1f39d17","title":"Reverse retains multiplicity · case 01","variant":1,"variant_policy":"Five execution reruns of a fixed adversarial fixture suite; variant number does not alter semantic inputs.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":39.53,"exit_code":1,"observations":[{"actual":[],"check":"empty collection","expected":[],"passed":true},{"actual":["a"],"check":"singleton collection","expected":["a"],"passed":true},{"actual":["b","a"],"check":"two distinct elements","expected":["b","a"],"passed":true},{"actual":["c","b","b","a"],"check":"nonadjacent duplicate and unsorted order","expected":["c","b","a","b"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"empty collection\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"singleton collection\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"two distinct elements\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"nonadjacent duplicate and unsorted order\", \"actual\": [\"c\", \"b\", \"b\", \"a\"], \"expected\": [\"c\", \"b\", \"a\", \"b\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":104.713,"exit_code":1,"observations":[{"actual":[],"check":"empty collection","expected":[],"passed":true},{"actual":["a"],"check":"singleton collection","expected":["a"],"passed":true},{"actual":["a","b"],"check":"two distinct elements","expected":["b","a"],"passed":false},{"actual":["b","a","b","c"],"check":"nonadjacent duplicate and unsorted order","expected":["c","b","a","b"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"empty collection\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"singleton collection\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"two distinct elements\", \"actual\": [\"a\", \"b\"], \"expected\": [\"b\", \"a\"], \"passed\": false}, {\"check\": \"nonadjacent duplicate and unsorted order\", \"actual\": [\"b\", \"a\", \"b\", \"c\"], \"expected\": [\"c\", \"b\", \"a\", \"b\"], \"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."}}