{"abstract":"Activating a different radio fails to change selection.","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.","evaluation_group":"xi-radio-group","failed_approach":"Toggling off the current radio violates exclusive selection semantics.","family":"xi-radio-group-activation-replacement","id":"FA-8851","implementations":{"attempt":{"sha256":"cb7e6e0dcec79b87e64f7377c10c590c3586f63d4c4f05d67079dcb8b6fb0a8d","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 = None if selected == target else 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":"7b3ce797c2aebc02a8de898924c1011397f93405bb700c27e49512c4f9321f76","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 = selected\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"},"fixed":{"sha256":"4f8f9a9b0059c204bdbca082b20c90cecc2a74313620caf4bb5bf20aea9fae2e","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-activation-replacement","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.","repair":"Implement the activation replacement operation as `selected = target`.","root_cause":"The activation replacement operation uses `selected = selected` where the contract requires `selected = target`.","sha256":"92fe1deb1287748730da867316a68c8ec9c31c5ca561f122ab2909cf8a210db1","title":"Radio group selection ownership: Activating a different radio fails to change selection · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":38.447,"exit_code":1,"observations":[{"actual":[["a","c"],"a"],"check":"remove other","expected":[["a","c"],"a"],"passed":true},{"actual":[["b","c"],"b"],"check":"required removal","expected":[["b","c"],"b"],"passed":true},{"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"],null],"check":"reactivate","expected":[["a","b"],"a"],"passed":false},{"actual":[[0,1],1],"check":"parameterized radio options","expected":[[0,1],1],"passed":true},{"actual":[["a","b"],null],"check":"repeat reactivate","expected":[["a","b"],"a"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"remove other\", \"actual\": [[\"a\", \"c\"], \"a\"], \"expected\": [[\"a\", \"c\"], \"a\"], \"passed\": true}, {\"check\": \"required removal\", \"actual\": [[\"b\", \"c\"], \"b\"], \"expected\": [[\"b\", \"c\"], \"b\"], \"passed\": true}, {\"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\"], null], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": false}, {\"check\": \"parameterized radio options\", \"actual\": [[0, 1], 1], \"expected\": [[0, 1], 1], \"passed\": true}, {\"check\": \"repeat reactivate\", \"actual\": [[\"a\", \"b\"], null], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.481,"exit_code":1,"observations":[{"actual":[["a","c"],"a"],"check":"remove other","expected":[["a","c"],"a"],"passed":true},{"actual":[["b","c"],"b"],"check":"required removal","expected":[["b","c"],"b"],"passed":true},{"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"],"a"],"check":"activate","expected":[["a","b"],"b"],"passed":false},{"actual":[["a","b"],"a"],"check":"reactivate","expected":[["a","b"],"a"],"passed":true},{"actual":[[0,1],0],"check":"parameterized radio options","expected":[[0,1],1],"passed":false},{"actual":[["a","b"],"a"],"check":"repeat reactivate","expected":[["a","b"],"a"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"remove other\", \"actual\": [[\"a\", \"c\"], \"a\"], \"expected\": [[\"a\", \"c\"], \"a\"], \"passed\": true}, {\"check\": \"required removal\", \"actual\": [[\"b\", \"c\"], \"b\"], \"expected\": [[\"b\", \"c\"], \"b\"], \"passed\": true}, {\"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\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"b\"], \"passed\": false}, {\"check\": \"reactivate\", \"actual\": [[\"a\", \"b\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": true}, {\"check\": \"parameterized radio options\", \"actual\": [[0, 1], 0], \"expected\": [[0, 1], 1], \"passed\": false}, {\"check\": \"repeat reactivate\", \"actual\": [[\"a\", \"b\"], \"a\"], \"expected\": [[\"a\", \"b\"], \"a\"], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":39.069,"exit_code":0,"observations":[{"actual":[["a","c"],"a"],"check":"remove other","expected":[["a","c"],"a"],"passed":true},{"actual":[["b","c"],"b"],"check":"required removal","expected":[["b","c"],"b"],"passed":true},{"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":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"remove other\", \"actual\": [[\"a\", \"c\"], \"a\"], \"expected\": [[\"a\", \"c\"], \"a\"], \"passed\": true}, {\"check\": \"required removal\", \"actual\": [[\"b\", \"c\"], \"b\"], \"expected\": [[\"b\", \"c\"], \"b\"], \"passed\": true}, {\"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\": true}\n"}},"verified":true,"visibility":"public"}