{"abstract":"Menu ownership transfer cancels an intentionally retained command.","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.","contract_signature":"action, p","evaluation_group":"s3-menu-interactions-menu-dismissal-policy","failed_approach":"The attempted repair `p['pending'] if p['reason']=='command' else []` still violates the pending-command oracle.","family":"s3-menu-interactions-menu-dismissal-policy-pending-command","id":"FA-33501","implementations":{"attempt":{"sha256":"b57fcbc78d60a67fc3d2c9157bb008322007ad6843e5038cebc386f432ef3cc0","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']=='command' 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"},"broken":{"sha256":"1a446d3883d9fe5d94fac30b593fb5a52c19dca6832aae5c80677c4f6972c279","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 []\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-pending-command","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.","root_cause":"The menu-dismissal-policy model applies `[]` at its pending-command operation instead of the stipulated transformation.","sha256":"d150e1def4a0c4b010772a8e77aeed431808118bd6f7f3d9f29d470868d97e17","title":"Menu ownership transfer cancels an intentionally retained command · 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":42.918,"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":[],"check":"pending-command contract","expected":[1],"passed":false},{"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":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\": [], \"expected\": [1], \"passed\": false}, {\"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\": false}\n"},"broken":{"elapsed_ms":43.984,"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":[],"check":"pending-command contract","expected":[1],"passed":false},{"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":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\": [], \"expected\": [1], \"passed\": false}, {\"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\": 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."}}