{"abstract":"Menu preview commit applies the command delta twice.","category":"Menu interactions","checks":7,"contract":"Hover previews are provisional document overlays; changing preview restores the base, commit applies the actual command once and cancellation removes only the menu-owned preview.","contract_signature":"action, p","evaluation_group":"s3-menu-interactions-menu-command-preview","failed_approach":"The attempted repair `p['base']` still violates the commit-once oracle.","family":"s3-menu-interactions-menu-command-preview-commit-once","id":"FA-33791","implementations":{"attempt":{"sha256":"41caf766b4f5cf40f8d01df89028e6996cf86a74907dfe6b37bac50cdadb3823","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 == 'base':\n        return p['base']+p['delta']\n    if action == 'cancel':\n        return p['base']\n    if action == 'commit-once':\n        return p['base']\n    if action == 'owner-cleanup':\n        return [x for x in p['overlays'] if x['menu']!=p['menu']]\n    if action == 'supported':\n        return p['previewable'] and p['reversible']\n    if action == 'exit-mode':\n        return 'commit' if p['reason']=='execute' else 'restore'\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('base contract', solve('base', {'base':N,'current_preview':N+5,'delta':2}), N+2)\ncheck('cancel contract', solve('cancel', {'base':N,'current':N+3}), N)\ncheck('commit-once contract', solve('commit-once', {'base':N,'preview':N+2,'delta':2}), N+2)\ncheck('owner-cleanup contract', solve('owner-cleanup', {'overlays':[{'menu':'a','id':N},{'menu':'b','id':N+1}],'menu':'a'}), [{'menu':'b','id':N+1}])\ncheck('supported contract', solve('supported', {'previewable':True,'reversible':False,'command':N}), False)\ncheck('exit-mode contract', solve('exit-mode', {'reason':'leave','owner':N}), 'restore')\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":"72cc414face33a921f606ef610bfea63fc19babd0ebca5a3c3e777d7eae0d34e","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 == 'base':\n        return p['base']+p['delta']\n    if action == 'cancel':\n        return p['base']\n    if action == 'commit-once':\n        return p['preview']+p['delta']\n    if action == 'owner-cleanup':\n        return [x for x in p['overlays'] if x['menu']!=p['menu']]\n    if action == 'supported':\n        return p['previewable'] and p['reversible']\n    if action == 'exit-mode':\n        return 'commit' if p['reason']=='execute' else 'restore'\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('base contract', solve('base', {'base':N,'current_preview':N+5,'delta':2}), N+2)\ncheck('cancel contract', solve('cancel', {'base':N,'current':N+3}), N)\ncheck('commit-once contract', solve('commit-once', {'base':N,'preview':N+2,'delta':2}), N+2)\ncheck('owner-cleanup contract', solve('owner-cleanup', {'overlays':[{'menu':'a','id':N},{'menu':'b','id':N+1}],'menu':'a'}), [{'menu':'b','id':N+1}])\ncheck('supported contract', solve('supported', {'previewable':True,'reversible':False,'command':N}), False)\ncheck('exit-mode contract', solve('exit-mode', {'reason':'leave','owner':N}), 'restore')\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-command-preview-commit-once","generated_at":"2026-09-29T14:42:25.900247+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-command-preview model applies `p['preview']+p['delta']` at its commit-once operation instead of the stipulated transformation.","sha256":"6f01534fb6032181300d26ef7836f4f824d451385d5c11e107a675c974978130","title":"Menu preview commit applies the command delta twice · 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":39.949,"exit_code":1,"observations":[{"actual":3,"check":"base contract","expected":3,"passed":true},{"actual":1,"check":"cancel contract","expected":1,"passed":true},{"actual":1,"check":"commit-once contract","expected":3,"passed":false},{"actual":[{"id":2,"menu":"b"}],"check":"owner-cleanup contract","expected":[{"id":2,"menu":"b"}],"passed":true},{"actual":false,"check":"supported contract","expected":false,"passed":true},{"actual":"restore","check":"exit-mode contract","expected":"restore","passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"base contract\", \"actual\": 3, \"expected\": 3, \"passed\": true}, {\"check\": \"cancel contract\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"commit-once contract\", \"actual\": 1, \"expected\": 3, \"passed\": false}, {\"check\": \"owner-cleanup contract\", \"actual\": [{\"menu\": \"b\", \"id\": 2}], \"expected\": [{\"menu\": \"b\", \"id\": 2}], \"passed\": true}, {\"check\": \"supported contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"exit-mode contract\", \"actual\": \"restore\", \"expected\": \"restore\", \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.439,"exit_code":1,"observations":[{"actual":3,"check":"base contract","expected":3,"passed":true},{"actual":1,"check":"cancel contract","expected":1,"passed":true},{"actual":5,"check":"commit-once contract","expected":3,"passed":false},{"actual":[{"id":2,"menu":"b"}],"check":"owner-cleanup contract","expected":[{"id":2,"menu":"b"}],"passed":true},{"actual":false,"check":"supported contract","expected":false,"passed":true},{"actual":"restore","check":"exit-mode contract","expected":"restore","passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"base contract\", \"actual\": 3, \"expected\": 3, \"passed\": true}, {\"check\": \"cancel contract\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"commit-once contract\", \"actual\": 5, \"expected\": 3, \"passed\": false}, {\"check\": \"owner-cleanup contract\", \"actual\": [{\"menu\": \"b\", \"id\": 2}], \"expected\": [{\"menu\": \"b\", \"id\": 2}], \"passed\": true}, {\"check\": \"supported contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"exit-mode contract\", \"actual\": \"restore\", \"expected\": \"restore\", \"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."}}