{"abstract":"Scoped context menu dismissal crosses its declared root boundary.","category":"Menu interactions","checks":7,"contract":"Menu dismissal reasons map to explicit close scopes; command completion, owner removal and outside dismissal do not share a universal policy.","evaluation_group":"s3-menu-interactions-menu-dismissal-policy","failed_approach":"The attempted repair `p['chain'][:p['boundary']+1]` still violates the nested-boundary oracle.","family":"s3-menu-interactions-menu-dismissal-policy-nested-boundary","id":"FA-33506","implementations":{"attempt":{"sha256":"fda106dfe8613104ee52593acb579f0c3342295ff4d28ab859e01e9aef6a6f48","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport unicodedata\nN = 1\nobservations = []\ndef solve(action, p):\n    if action == 'leaf-scope':\n        return p['chain'][:p['depth']] if p['scope']=='branch' else []\n    if action == 'veto':\n        return p['requested'] and not p['vetoed']\n    if action == 'mandatory-teardown':\n        return p['owner_removed'] or not p['vetoed']\n    if action == 'reason-priority':\n        return next(x for x in ['owner-removed','command','outside'] if x in p)\n    if action == 'pending-command':\n        return p['pending'] if p['reason']=='transfer' else []\n    if action == 'nested-boundary':\n        return p['chain'][:p['boundary']+1]\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('leaf-scope contract', solve('leaf-scope', {'chain':['root','sub',str(N)],'depth':1,'scope':'branch'}), ['root'])\ncheck('veto contract', solve('veto', {'requested':True,'vetoed':True,'owner':N}), False)\ncheck('mandatory-teardown contract', solve('mandatory-teardown', {'owner_removed':True,'vetoed':True,'id':N}), True)\ncheck('reason-priority contract', solve('reason-priority', ['outside','owner-removed','command']), 'owner-removed')\ncheck('pending-command contract', solve('pending-command', {'pending':[N],'reason':'transfer'}), [N])\ncheck('nested-boundary contract', solve('nested-boundary', {'chain':['outer','local','child'+str(N)],'boundary':1}), ['outer'])\ncheck('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})\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":"af79dc620f549995e92a52579e64c157039c7a4ce12f6fe1ef4bdd1fa7a3dc77","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport unicodedata\nN = 1\nobservations = []\ndef solve(action, p):\n    if action == 'leaf-scope':\n        return p['chain'][:p['depth']] if p['scope']=='branch' else []\n    if action == 'veto':\n        return p['requested'] and not p['vetoed']\n    if action == 'mandatory-teardown':\n        return p['owner_removed'] or not p['vetoed']\n    if action == 'reason-priority':\n        return next(x for x in ['owner-removed','command','outside'] if x in p)\n    if action == 'pending-command':\n        return p['pending'] if p['reason']=='transfer' else []\n    if action == 'nested-boundary':\n        return []\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('leaf-scope contract', solve('leaf-scope', {'chain':['root','sub',str(N)],'depth':1,'scope':'branch'}), ['root'])\ncheck('veto contract', solve('veto', {'requested':True,'vetoed':True,'owner':N}), False)\ncheck('mandatory-teardown contract', solve('mandatory-teardown', {'owner_removed':True,'vetoed':True,'id':N}), True)\ncheck('reason-priority contract', solve('reason-priority', ['outside','owner-removed','command']), 'owner-removed')\ncheck('pending-command contract', solve('pending-command', {'pending':[N],'reason':'transfer'}), [N])\ncheck('nested-boundary contract', solve('nested-boundary', {'chain':['outer','local','child'+str(N)],'boundary':1}), ['outer'])\ncheck('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})\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":"8ff895ce62b2a56a133c23051c0c1e7bd551080975c15f5cb8d3cd0859557719","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport unicodedata\nN = 1\nobservations = []\ndef solve(action, p):\n    if action == 'leaf-scope':\n        return p['chain'][:p['depth']] if p['scope']=='branch' else []\n    if action == 'veto':\n        return p['requested'] and not p['vetoed']\n    if action == 'mandatory-teardown':\n        return p['owner_removed'] or not p['vetoed']\n    if action == 'reason-priority':\n        return next(x for x in ['owner-removed','command','outside'] if x in p)\n    if action == 'pending-command':\n        return p['pending'] if p['reason']=='transfer' else []\n    if action == 'nested-boundary':\n        return p['chain'][:p['boundary']]\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('leaf-scope contract', solve('leaf-scope', {'chain':['root','sub',str(N)],'depth':1,'scope':'branch'}), ['root'])\ncheck('veto contract', solve('veto', {'requested':True,'vetoed':True,'owner':N}), False)\ncheck('mandatory-teardown contract', solve('mandatory-teardown', {'owner_removed':True,'vetoed':True,'id':N}), True)\ncheck('reason-priority contract', solve('reason-priority', ['outside','owner-removed','command']), 'owner-removed')\ncheck('pending-command contract', solve('pending-command', {'pending':[N],'reason':'transfer'}), [N])\ncheck('nested-boundary contract', solve('nested-boundary', {'chain':['outer','local','child'+str(N)],'boundary':1}), ['outer'])\ncheck('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})\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":"Offline supplied-valid-payload model; excludes DOM, keyboard, focus, selection, announcements and browser conformance. 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":"s3-menu-interactions-menu-dismissal-policy-nested-boundary","generated_at":"2026-09-29T14:42:23.083724+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Cascading and context menus require coherent command and session state as content changes.","repair":"Apply `p['chain'][:p['boundary']]` at nested-boundary.","root_cause":"The menu-dismissal-policy model applies `[]` at its nested-boundary operation instead of the stipulated transformation.","sha256":"e8b6421c2c899a8975120b1fc8f4a6e8e2a8ff353e95d8e38c6dd779aee8ed2b","title":"Scoped context menu dismissal crosses its declared root boundary · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":47.176,"exit_code":1,"observations":[{"actual":["root"],"check":"leaf-scope contract","expected":["root"],"passed":true},{"actual":false,"check":"veto contract","expected":false,"passed":true},{"actual":true,"check":"mandatory-teardown contract","expected":true,"passed":true},{"actual":"owner-removed","check":"reason-priority contract","expected":"owner-removed","passed":true},{"actual":[1],"check":"pending-command contract","expected":[1],"passed":true},{"actual":["outer","local"],"check":"nested-boundary contract","expected":["outer"],"passed":false},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"leaf-scope contract\", \"actual\": [\"root\"], \"expected\": [\"root\"], \"passed\": true}, {\"check\": \"veto contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"mandatory-teardown contract\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"reason-priority contract\", \"actual\": \"owner-removed\", \"expected\": \"owner-removed\", \"passed\": true}, {\"check\": \"pending-command contract\", \"actual\": [1], \"expected\": [1], \"passed\": true}, {\"check\": \"nested-boundary contract\", \"actual\": [\"outer\", \"local\"], \"expected\": [\"outer\"], \"passed\": false}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.522,"exit_code":1,"observations":[{"actual":["root"],"check":"leaf-scope contract","expected":["root"],"passed":true},{"actual":false,"check":"veto contract","expected":false,"passed":true},{"actual":true,"check":"mandatory-teardown contract","expected":true,"passed":true},{"actual":"owner-removed","check":"reason-priority contract","expected":"owner-removed","passed":true},{"actual":[1],"check":"pending-command contract","expected":[1],"passed":true},{"actual":[],"check":"nested-boundary contract","expected":["outer"],"passed":false},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"leaf-scope contract\", \"actual\": [\"root\"], \"expected\": [\"root\"], \"passed\": true}, {\"check\": \"veto contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"mandatory-teardown contract\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"reason-priority contract\", \"actual\": \"owner-removed\", \"expected\": \"owner-removed\", \"passed\": true}, {\"check\": \"pending-command contract\", \"actual\": [1], \"expected\": [1], \"passed\": true}, {\"check\": \"nested-boundary contract\", \"actual\": [], \"expected\": [\"outer\"], \"passed\": false}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":45.099,"exit_code":0,"observations":[{"actual":["root"],"check":"leaf-scope contract","expected":["root"],"passed":true},{"actual":false,"check":"veto contract","expected":false,"passed":true},{"actual":true,"check":"mandatory-teardown contract","expected":true,"passed":true},{"actual":"owner-removed","check":"reason-priority contract","expected":"owner-removed","passed":true},{"actual":[1],"check":"pending-command contract","expected":[1],"passed":true},{"actual":["outer"],"check":"nested-boundary contract","expected":["outer"],"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"leaf-scope contract\", \"actual\": [\"root\"], \"expected\": [\"root\"], \"passed\": true}, {\"check\": \"veto contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"mandatory-teardown contract\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"reason-priority contract\", \"actual\": \"owner-removed\", \"expected\": \"owner-removed\", \"passed\": true}, {\"check\": \"pending-command contract\", \"actual\": [1], \"expected\": [1], \"passed\": true}, {\"check\": \"nested-boundary contract\", \"actual\": [\"outer\"], \"expected\": [\"outer\"], \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}