{"abstract":"Removed panels retain their expanded state.","category":"Disclosure widgets","checks":8,"contract":"Discard removed panels; ignore invalid targets; expanded panels close only when collapsible; multiple mode unions and single mode replaces.","evaluation_group":"xi-accordion","failed_approach":"Opening every valid panel invents expansion state.","family":"xi-accordion-removed-panels","id":"FA-8081","implementations":{"attempt":{"sha256":"8b438ef6f45f4e05ead977262b6ec452d1afd60b8972c09528853318700f3553","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(panels, opened, target, multiple, collapsible):\n    valid = set(panels)\n    opened = valid\n    if target not in valid: return sorted(opened)\n    if target in opened:\n        if collapsible: opened.remove(target)\n    elif multiple: opened.add(target)\n    else: opened = {target}\n    return sorted(opened)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('removed', solve(['a','b'], ['a','gone'], 'unknown', True, True), ['a'])\ncheck('unknown', solve(['a','b'], ['a'], 'unknown', True, True), ['a'])\ncheck('locked', solve(['a','b'], ['a'], 'a', False, False), ['a'])\ncheck('collapse', solve(['a','b'], ['a'], 'a', False, True), [])\ncheck('multiple', solve(['a','b'], ['a'], 'b', True, True), ['a', 'b'])\ncheck('single', solve(['a','b'], ['a'], 'b', False, True), ['b'])\ncheck('parameterized panels', solve(list(range(N+1)), [0], N, True, True), [0,N])\nfor repetition in range(N):\n    check('repeat single', solve(['a','b'], ['a'], 'b', False, True), ['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":"4a2af29842568eba9f3bf47202fd7d698b71d3d7c77f05f99ea131b52b3185ad","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(panels, opened, target, multiple, collapsible):\n    valid = set(panels)\n    opened = set(opened)\n    if target not in valid: return sorted(opened)\n    if target in opened:\n        if collapsible: opened.remove(target)\n    elif multiple: opened.add(target)\n    else: opened = {target}\n    return sorted(opened)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('removed', solve(['a','b'], ['a','gone'], 'unknown', True, True), ['a'])\ncheck('unknown', solve(['a','b'], ['a'], 'unknown', True, True), ['a'])\ncheck('locked', solve(['a','b'], ['a'], 'a', False, False), ['a'])\ncheck('collapse', solve(['a','b'], ['a'], 'a', False, True), [])\ncheck('multiple', solve(['a','b'], ['a'], 'b', True, True), ['a', 'b'])\ncheck('single', solve(['a','b'], ['a'], 'b', False, True), ['b'])\ncheck('parameterized panels', solve(list(range(N+1)), [0], N, True, True), [0,N])\nfor repetition in range(N):\n    check('repeat single', solve(['a','b'], ['a'], 'b', False, True), ['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"},"fixed":{"sha256":"b8fe78cbde67bd47435fdfb2ceb8126435f2c64371760b474144ab9b1ae04f34","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(panels, opened, target, multiple, collapsible):\n    valid = set(panels)\n    opened = set(opened) & valid\n    if target not in valid: return sorted(opened)\n    if target in opened:\n        if collapsible: opened.remove(target)\n    elif multiple: opened.add(target)\n    else: opened = {target}\n    return sorted(opened)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('removed', solve(['a','b'], ['a','gone'], 'unknown', True, True), ['a'])\ncheck('unknown', solve(['a','b'], ['a'], 'unknown', True, True), ['a'])\ncheck('locked', solve(['a','b'], ['a'], 'a', False, False), ['a'])\ncheck('collapse', solve(['a','b'], ['a'], 'a', False, True), [])\ncheck('multiple', solve(['a','b'], ['a'], 'b', True, True), ['a', 'b'])\ncheck('single', solve(['a','b'], ['a'], 'b', False, True), ['b'])\ncheck('parameterized panels', solve(list(range(N+1)), [0], N, True, True), [0,N])\nfor repetition in range(N):\n    check('repeat single', solve(['a','b'], ['a'], 'b', False, True), ['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":"xi-accordion-removed-panels","generated_at":"2026-09-29T14:38:18.085435+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic model of accordion open-panel state; this isolates one interface invariant without requiring a browser.","repair":"Implement the removed panels operation as `set(opened) & valid`.","root_cause":"The removed panels operation uses `set(opened)` where the contract requires `set(opened) & valid`.","sha256":"b2ee5cddf76006f7d523bf42a914526e4953e88d5405bc82e08e773b48ede867","title":"Accordion open-panel state: Removed panels retain their expanded state · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.786,"exit_code":1,"observations":[{"actual":["a","b"],"check":"removed","expected":["a"],"passed":false},{"actual":["a","b"],"check":"unknown","expected":["a"],"passed":false},{"actual":["a","b"],"check":"locked","expected":["a"],"passed":false},{"actual":["b"],"check":"collapse","expected":[],"passed":false},{"actual":["a"],"check":"multiple","expected":["a","b"],"passed":false},{"actual":["a"],"check":"single","expected":["b"],"passed":false},{"actual":[0],"check":"parameterized panels","expected":[0,1],"passed":false},{"actual":["a"],"check":"repeat single","expected":["b"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"removed\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"unknown\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"locked\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"collapse\", \"actual\": [\"b\"], \"expected\": [], \"passed\": false}, {\"check\": \"multiple\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"single\", \"actual\": [\"a\"], \"expected\": [\"b\"], \"passed\": false}, {\"check\": \"parameterized panels\", \"actual\": [0], \"expected\": [0, 1], \"passed\": false}, {\"check\": \"repeat single\", \"actual\": [\"a\"], \"expected\": [\"b\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.628,"exit_code":1,"observations":[{"actual":["a","gone"],"check":"removed","expected":["a"],"passed":false},{"actual":["a"],"check":"unknown","expected":["a"],"passed":true},{"actual":["a"],"check":"locked","expected":["a"],"passed":true},{"actual":[],"check":"collapse","expected":[],"passed":true},{"actual":["a","b"],"check":"multiple","expected":["a","b"],"passed":true},{"actual":["b"],"check":"single","expected":["b"],"passed":true},{"actual":[0,1],"check":"parameterized panels","expected":[0,1],"passed":true},{"actual":["b"],"check":"repeat single","expected":["b"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"removed\", \"actual\": [\"a\", \"gone\"], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"unknown\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"locked\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"collapse\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"multiple\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"single\", \"actual\": [\"b\"], \"expected\": [\"b\"], \"passed\": true}, {\"check\": \"parameterized panels\", \"actual\": [0, 1], \"expected\": [0, 1], \"passed\": true}, {\"check\": \"repeat single\", \"actual\": [\"b\"], \"expected\": [\"b\"], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.831,"exit_code":0,"observations":[{"actual":["a"],"check":"removed","expected":["a"],"passed":true},{"actual":["a"],"check":"unknown","expected":["a"],"passed":true},{"actual":["a"],"check":"locked","expected":["a"],"passed":true},{"actual":[],"check":"collapse","expected":[],"passed":true},{"actual":["a","b"],"check":"multiple","expected":["a","b"],"passed":true},{"actual":["b"],"check":"single","expected":["b"],"passed":true},{"actual":[0,1],"check":"parameterized panels","expected":[0,1],"passed":true},{"actual":["b"],"check":"repeat single","expected":["b"],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"removed\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"unknown\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"locked\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"collapse\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"multiple\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"single\", \"actual\": [\"b\"], \"expected\": [\"b\"], \"passed\": true}, {\"check\": \"parameterized panels\", \"actual\": [0, 1], \"expected\": [0, 1], \"passed\": true}, {\"check\": \"repeat single\", \"actual\": [\"b\"], \"expected\": [\"b\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}