{"abstract":"The operation returns a result or retained state that violates this contract: Move the last item to the front; empty input remains empty.","category":"Sequence semantics","checks":4,"contract":"Move the last item to the front; empty input remains empty. Inputs are the finite Python values shown by the executable fixtures; no concurrent execution is assumed.","contract_signature":"x, y=None","evaluation_group":"model-a6d6979b97a3a757","failed_approach":"Prepending the final element without removing its old occurrence duplicates it.","family":"xr-right-rotation-one","id":"FA-4166","implementations":{"attempt":{"sha256":"9932450e0497c09a6968211ba1067b50aa39942ef068e2dc058591a74364d86d","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x, y=None):\n    return x[-1:]+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"},"broken":{"sha256":"93e1dc64c78cd2d2d8f621b4696b845cfaa80bbe96f35dc7e282513f00d0ffd5","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x, y=None):\n    return x[1:]+x[:1]\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-right-rotation-one","generated_at":"2026-09-29T14:37:36.471724+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 boundary element moves in the wrong rotation direction.","sha256":"c71b13c18e81bd70823ae69733eff1609a5f6a902aaf4c1134f7d51d9e7bd217","title":"Right rotation one · 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":126.371,"exit_code":1,"observations":[{"actual":[],"check":"empty collection","expected":[],"passed":true},{"actual":["a","a"],"check":"singleton collection","expected":["a"],"passed":false},{"actual":["b","a","b"],"check":"two distinct elements","expected":["b","a"],"passed":false},{"actual":["c","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\", \"a\"], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"two distinct elements\", \"actual\": [\"b\", \"a\", \"b\"], \"expected\": [\"b\", \"a\"], \"passed\": false}, {\"check\": \"nonadjacent duplicate and unsorted order\", \"actual\": [\"c\", \"b\", \"a\", \"b\", \"c\"], \"expected\": [\"c\", \"b\", \"a\", \"b\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":44.992,"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":["a","b","c","b"],"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\": [\"a\", \"b\", \"c\", \"b\"], \"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."}}