{"abstract":"Removing an option retains it and removes its siblings.","category":"Selection controls","checks":10,"contract":"Radio activation replaces selection with an existing enabled option and never toggles it off; required groups cannot clear; selected removal uses first remaining option only when required.","contract_signature":"options, selected, target, required, disabled, event","evaluation_group":"xi-radio-group","failed_approach":"Clearing all options also loses unrelated choices.","family":"xi-radio-group-remove","id":"FA-8831","implementations":{"attempt":{"sha256":"29503a53d96fb3e63f2e9fc9d9c549246398a23a2ce0836534baa9989823293f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(options, selected, target, required, disabled, event):\n    if event == 'remove':\n        options = [x for x in options if False]\n        if selected not in options: selected = options[0] if required and options else None\n    elif event == 'activate':\n        if target in options and target not in disabled: selected = target\n    elif event == 'clear' and not required: selected = None\n    return (options, selected)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('remove other', solve(['a','b','c'], 'a', 'b', False, [], 'remove'), (['a', 'c'], 'a'))\ncheck('required removal', solve(['a','b','c'], 'a', 'a', True, [], 'remove'), (['b', 'c'], 'b'))\ncheck('unknown', solve(['a','b'], 'a', 'x', False, [], 'activate'), (['a', 'b'], 'a'))\ncheck('disabled', solve(['a','b'], 'a', 'b', False, ['b'], 'activate'), (['a', 'b'], 'a'))\ncheck('required clear', solve(['a','b'], 'a', None, True, [], 'clear'), (['a', 'b'], 'a'))\ncheck('optional clear', solve(['a','b'], 'a', None, False, [], 'clear'), (['a', 'b'], None))\ncheck('activate', solve(['a','b'], 'a', 'b', False, [], 'activate'), (['a', 'b'], 'b'))\ncheck('reactivate', solve(['a','b'], 'a', 'a', False, [], 'activate'), (['a', 'b'], 'a'))\ncheck('parameterized radio options', solve(list(range(N+1)),0,N,False,[],'activate'), (list(range(N+1)),N))\nfor repetition in range(N):\n    check('repeat reactivate', solve(['a','b'], 'a', 'a', False, [], 'activate'), (['a', 'b'], 'a'))\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":"0dc52d93dfc863ff670427fb93395872905e2474c221539bdf8c31b5fbb7e0a2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(options, selected, target, required, disabled, event):\n    if event == 'remove':\n        options = [x for x in options if x == target]\n        if selected not in options: selected = options[0] if required and options else None\n    elif event == 'activate':\n        if target in options and target not in disabled: selected = target\n    elif event == 'clear' and not required: selected = None\n    return (options, selected)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('remove other', solve(['a','b','c'], 'a', 'b', False, [], 'remove'), (['a', 'c'], 'a'))\ncheck('required removal', solve(['a','b','c'], 'a', 'a', True, [], 'remove'), (['b', 'c'], 'b'))\ncheck('unknown', solve(['a','b'], 'a', 'x', False, [], 'activate'), (['a', 'b'], 'a'))\ncheck('disabled', solve(['a','b'], 'a', 'b', False, ['b'], 'activate'), (['a', 'b'], 'a'))\ncheck('required clear', solve(['a','b'], 'a', None, True, [], 'clear'), (['a', 'b'], 'a'))\ncheck('optional clear', solve(['a','b'], 'a', None, False, [], 'clear'), (['a', 'b'], None))\ncheck('activate', solve(['a','b'], 'a', 'b', False, [], 'activate'), (['a', 'b'], 'b'))\ncheck('reactivate', solve(['a','b'], 'a', 'a', False, [], 'activate'), (['a', 'b'], 'a'))\ncheck('parameterized radio options', solve(list(range(N+1)),0,N,False,[],'activate'), (list(range(N+1)),N))\nfor repetition in range(N):\n    check('repeat reactivate', solve(['a','b'], 'a', 'a', False, [], 'activate'), (['a', 'b'], 'a'))\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":"xi-radio-group-remove","generated_at":"2026-09-29T14:38:24.975571+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic model of radio group selection ownership; this isolates one interface invariant without requiring a browser.","root_cause":"The remove operation uses `x == target` where the contract requires `x != target`.","sha256":"6aadb98e474ddeb9b18d78278f3c2542d9988f0acd469b03d30746e1b5f24581","title":"Radio group selection ownership: Removing an option retains it and removes its siblings · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":36.337,"exit_code":1,"observations":[{"actual":[[],null],"check":"remove other","expected":[["a","c"],"a"],"passed":false},{"actual":[[],null],"check":"required removal","expected":[["b","c"],"b"],"passed":false},{"actual":[["a","b"],"a"],"check":"unknown","expected":[["a","b"],"a"],"passed":true},{"actual":[["a","b"],"a"],"check":"disabled","expected":[["a","b"],"a"],"passed":true},{"actual":[["a","b"],"a"],"check":"required clear","expected":[["a","b"],"a"],"passed":true},{"actual":[["a","b"],null],"check":"optional clear","expected":[["a","b"],null],"passed":true},{"actual":[["a","b"],"b"],"check":"activate","expected":[["a","b"],"b"],"passed":true},{"actual":[["a","b"],"a"],"check":"reactivate","expected":[["a","b"],"a"],"passed":true},{"actual":[[0,1],1],"check":"parameterized radio options","expected":[[0,1],1],"passed":true},{"actual":[["a","b"],"a"],"check":"repeat reactivate","expected":[["a","b"],"a"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"remove other\", \"actual\": [[], null], \"expected\": [[\"a\", \"c\"], \"a\"], \"passed\": false}, {\"check\": \"required removal\", \"actual\": [[], null], \"expected\": [[\"b\", \"c\"], \"b\"], \"passed\": false}, {\"check\": \"unknown\", \"actual\": [[\"a\", \"b\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": true}, {\"check\": \"disabled\", \"actual\": [[\"a\", \"b\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": true}, {\"check\": \"required clear\", \"actual\": [[\"a\", \"b\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": true}, {\"check\": \"optional clear\", \"actual\": [[\"a\", \"b\"], null], \"expected\": [[\"a\", \"b\"], null], \"passed\": true}, {\"check\": \"activate\", \"actual\": [[\"a\", \"b\"], \"b\"], \"expected\": [[\"a\", \"b\"], \"b\"], \"passed\": true}, {\"check\": \"reactivate\", \"actual\": [[\"a\", \"b\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": true}, {\"check\": \"parameterized radio options\", \"actual\": [[0, 1], 1], \"expected\": [[0, 1], 1], \"passed\": true}, {\"check\": \"repeat reactivate\", \"actual\": [[\"a\", \"b\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.339,"exit_code":1,"observations":[{"actual":[["b"],null],"check":"remove other","expected":[["a","c"],"a"],"passed":false},{"actual":[["a"],"a"],"check":"required removal","expected":[["b","c"],"b"],"passed":false},{"actual":[["a","b"],"a"],"check":"unknown","expected":[["a","b"],"a"],"passed":true},{"actual":[["a","b"],"a"],"check":"disabled","expected":[["a","b"],"a"],"passed":true},{"actual":[["a","b"],"a"],"check":"required clear","expected":[["a","b"],"a"],"passed":true},{"actual":[["a","b"],null],"check":"optional clear","expected":[["a","b"],null],"passed":true},{"actual":[["a","b"],"b"],"check":"activate","expected":[["a","b"],"b"],"passed":true},{"actual":[["a","b"],"a"],"check":"reactivate","expected":[["a","b"],"a"],"passed":true},{"actual":[[0,1],1],"check":"parameterized radio options","expected":[[0,1],1],"passed":true},{"actual":[["a","b"],"a"],"check":"repeat reactivate","expected":[["a","b"],"a"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"remove other\", \"actual\": [[\"b\"], null], \"expected\": [[\"a\", \"c\"], \"a\"], \"passed\": false}, {\"check\": \"required removal\", \"actual\": [[\"a\"], \"a\"], \"expected\": [[\"b\", \"c\"], \"b\"], \"passed\": false}, {\"check\": \"unknown\", \"actual\": [[\"a\", \"b\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": true}, {\"check\": \"disabled\", \"actual\": [[\"a\", \"b\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": true}, {\"check\": \"required clear\", \"actual\": [[\"a\", \"b\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": true}, {\"check\": \"optional clear\", \"actual\": [[\"a\", \"b\"], null], \"expected\": [[\"a\", \"b\"], null], \"passed\": true}, {\"check\": \"activate\", \"actual\": [[\"a\", \"b\"], \"b\"], \"expected\": [[\"a\", \"b\"], \"b\"], \"passed\": true}, {\"check\": \"reactivate\", \"actual\": [[\"a\", \"b\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": true}, {\"check\": \"parameterized radio options\", \"actual\": [[0, 1], 1], \"expected\": [[0, 1], 1], \"passed\": true}, {\"check\": \"repeat reactivate\", \"actual\": [[\"a\", \"b\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"a\"], \"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."}}