{"abstract":"The operation returns a result or retained state that violates this contract: Keep each value once in first-appearance order.","category":"Sequence semantics","checks":4,"contract":"Keep each value once in first-appearance order. Inputs are the finite Python values shown by the executable fixtures; no concurrent execution is assumed.","contract_signature":"x, y=None","evaluation_group":"model-6ff8cad5347f80b9","failed_approach":"Sorting a set discards first-appearance order.","family":"xr-stable-first-occurrence-uniqueness","id":"FA-4086","implementations":{"attempt":{"sha256":"da6a3bfdeb21ab15eb141ae7476e72f97b4937970e56e3df94e3e79ff694de63","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x, y=None):\n    return sorted(set(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']), ['a', 'b'])\ncheck('nonadjacent duplicate and unsorted order', solve(['b', 'a', 'b', 'c']), ['b', 'a', 'c'])\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":"4f519fdc7a1950855af47c98749bbd4d13082adec606ba518a3e0296ac694ae1","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']), ['a', 'b'])\ncheck('nonadjacent duplicate and unsorted order', solve(['b', 'a', 'b', 'c']), ['b', 'a', 'c'])\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-stable-first-occurrence-uniqueness","generated_at":"2026-09-29T14:37:35.422387+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":"Repeated members are never removed.","sha256":"23d9c6d9715753bc19f6c18db0e760dc3560148091ba9c72fb36cc01107e2e2d","title":"Stable first occurrence uniqueness · 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.498,"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":["a","b"],"passed":true},{"actual":["a","b","c"],"check":"nonadjacent duplicate and unsorted order","expected":["b","a","c"],"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\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"nonadjacent duplicate and unsorted order\", \"actual\": [\"a\", \"b\", \"c\"], \"expected\": [\"b\", \"a\", \"c\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":103.33,"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":["a","b"],"passed":true},{"actual":["b","a","b","c"],"check":"nonadjacent duplicate and unsorted order","expected":["b","a","c"],"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\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"nonadjacent duplicate and unsorted order\", \"actual\": [\"b\", \"a\", \"b\", \"c\"], \"expected\": [\"b\", \"a\", \"c\"], \"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."}}