{"abstract":"Escape fails to dismiss the overlay.","category":"Overlay interactions","checks":10,"contract":"Cancelled events preserve state; Escape closes; only pointerdown toggles triggers or dismisses outside; membership in the composed path recognizes descendants and portals.","contract_signature":"opened, target_path, trigger, panel, event, prevented","evaluation_group":"xi-popover-outside","failed_approach":"Toggling Escape opens an overlay when it is already closed.","family":"xi-popover-outside-escape","id":"FA-8186","implementations":{"attempt":{"sha256":"3ee9acf3c6f55503e6d1527702f67b5ca13836c1871ba2d92011a91525501fc4","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(opened, target_path, trigger, panel, event, prevented):\n    if prevented: return opened\n    if event == 'escape': return not opened\n    if event != 'pointerdown': return opened\n    if trigger in target_path: return not opened\n    if panel in target_path: return opened\n    return False\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('cancelled open', solve(True, ['outside'], 'trigger', 'panel', 'pointerdown', True), True)\ncheck('cancelled closed', solve(False, ['outside'], 'trigger', 'panel', 'pointerdown', True), False)\ncheck('escape open', solve(True, [], 'trigger', 'panel', 'escape', False), False)\ncheck('escape closed', solve(False, [], 'trigger', 'panel', 'escape', False), False)\ncheck('ignored', solve(True, [], 'trigger', 'panel', 'pointermove', False), True)\ncheck('trigger opens', solve(False, ['icon','trigger'], 'trigger', 'panel', 'pointerdown', False), True)\ncheck('trigger closes', solve(True, ['icon','trigger'], 'trigger', 'panel', 'pointerdown', False), False)\ncheck('inside descendant', solve(True, ['button','panel'], 'trigger', 'panel', 'pointerdown', False), True)\ncheck('parameterized descendant depth', solve(True, ['node'+str(i) for i in range(N)]+['panel'], 'trigger', 'panel', 'pointerdown', False), True)\nfor repetition in range(N):\n    check('repeat inside descendant', solve(True, ['button','panel'], 'trigger', 'panel', 'pointerdown', False), True)\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":"5e76bbb1d16b90bda6500877877227e14ed120ae7b776bb54895eb1e4c8b3b94","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(opened, target_path, trigger, panel, event, prevented):\n    if prevented: return opened\n    if event == 'escape': return opened\n    if event != 'pointerdown': return opened\n    if trigger in target_path: return not opened\n    if panel in target_path: return opened\n    return False\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('cancelled open', solve(True, ['outside'], 'trigger', 'panel', 'pointerdown', True), True)\ncheck('cancelled closed', solve(False, ['outside'], 'trigger', 'panel', 'pointerdown', True), False)\ncheck('escape open', solve(True, [], 'trigger', 'panel', 'escape', False), False)\ncheck('escape closed', solve(False, [], 'trigger', 'panel', 'escape', False), False)\ncheck('ignored', solve(True, [], 'trigger', 'panel', 'pointermove', False), True)\ncheck('trigger opens', solve(False, ['icon','trigger'], 'trigger', 'panel', 'pointerdown', False), True)\ncheck('trigger closes', solve(True, ['icon','trigger'], 'trigger', 'panel', 'pointerdown', False), False)\ncheck('inside descendant', solve(True, ['button','panel'], 'trigger', 'panel', 'pointerdown', False), True)\ncheck('parameterized descendant depth', solve(True, ['node'+str(i) for i in range(N)]+['panel'], 'trigger', 'panel', 'pointerdown', False), True)\nfor repetition in range(N):\n    check('repeat inside descendant', solve(True, ['button','panel'], 'trigger', 'panel', 'pointerdown', False), True)\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-popover-outside-escape","generated_at":"2026-09-29T14:38:19.304179+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic model of popover outside-interaction handling; this isolates one interface invariant without requiring a browser.","root_cause":"The escape operation uses `if event == 'escape': return opened` where the contract requires `if event == 'escape': return False`.","sha256":"6a5704f0dda361ceee1ece5d14749ba60968b8a9cc694afb9af772a110e2ee0c","title":"Popover outside-interaction handling: Escape fails to dismiss the overlay · 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":37.905,"exit_code":1,"observations":[{"actual":true,"check":"cancelled open","expected":true,"passed":true},{"actual":false,"check":"cancelled closed","expected":false,"passed":true},{"actual":false,"check":"escape open","expected":false,"passed":true},{"actual":true,"check":"escape closed","expected":false,"passed":false},{"actual":true,"check":"ignored","expected":true,"passed":true},{"actual":true,"check":"trigger opens","expected":true,"passed":true},{"actual":false,"check":"trigger closes","expected":false,"passed":true},{"actual":true,"check":"inside descendant","expected":true,"passed":true},{"actual":true,"check":"parameterized descendant depth","expected":true,"passed":true},{"actual":true,"check":"repeat inside descendant","expected":true,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"cancelled open\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"cancelled closed\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"escape open\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"escape closed\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"ignored\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"trigger opens\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"trigger closes\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"inside descendant\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"parameterized descendant depth\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"repeat inside descendant\", \"actual\": true, \"expected\": true, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":35.491,"exit_code":1,"observations":[{"actual":true,"check":"cancelled open","expected":true,"passed":true},{"actual":false,"check":"cancelled closed","expected":false,"passed":true},{"actual":true,"check":"escape open","expected":false,"passed":false},{"actual":false,"check":"escape closed","expected":false,"passed":true},{"actual":true,"check":"ignored","expected":true,"passed":true},{"actual":true,"check":"trigger opens","expected":true,"passed":true},{"actual":false,"check":"trigger closes","expected":false,"passed":true},{"actual":true,"check":"inside descendant","expected":true,"passed":true},{"actual":true,"check":"parameterized descendant depth","expected":true,"passed":true},{"actual":true,"check":"repeat inside descendant","expected":true,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"cancelled open\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"cancelled closed\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"escape open\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"escape closed\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"ignored\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"trigger opens\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"trigger closes\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"inside descendant\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"parameterized descendant depth\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"repeat inside descendant\", \"actual\": true, \"expected\": true, \"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."}}