{"abstract":"Changing split-menu default rewrites the owning submenu label.","category":"Menu interactions","checks":8,"contract":"Split menu owners have separate primary command and secondary submenu zones. Their default command is explicit, direct and independently available; the owner label is stable.","evaluation_group":"s3-menu-interactions-split-button-menu","failed_approach":"The attempted repair `p['owner_label']+' '+p['default_label']` still violates the owner-label oracle.","family":"s3-menu-interactions-split-button-menu-owner-label","id":"FA-33591","implementations":{"attempt":{"sha256":"fc0c00d788af4c30e60919a49fc1220dc97f5f5af9a540f13d81aa6b3d96f9aa","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 == 'primary':\n        return {'command':p['default'],'open':False}\n    if action == 'secondary':\n        return {'command':None,'open':True}\n    if action == 'zone':\n        return 'secondary' if p['x']>=p['divider'] else 'primary'\n    if action == 'default-availability':\n        return next((x['available'] for x in p['children'] if x['command']==p['default']),False)\n    if action == 'owner-label':\n        return p['owner_label']+' '+p['default_label']\n    if action == 'primary-empty-default':\n        return {'command':p['default'],'open':p['default'] is None}\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('primary contract', solve('primary', {'default':'run'+str(N)}), {'command':'run'+str(N),'open':False})\ncheck('secondary contract', solve('secondary', {'default':'run'+str(N)}), {'command':None,'open':True})\ncheck('zone contract', solve('zone', {'x':N+20,'divider':N+20}), 'secondary')\ncheck('default-availability contract', solve('default-availability', {'default':'run','children':[{'command':'run','available':True},{'command':'other'+str(N),'available':False}]}), True)\ncheck('owner-label contract', solve('owner-label', {'owner_label':'Export','default_label':'Format '+str(N)}), 'Export')\ncheck('primary-empty-default contract', solve('primary-empty-default', {'default':None,'fallback':'first'+str(N)}), {'command':None,'open':True})\ncheck('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})\ncheck('other available alternatives do not enable default',solve('default-availability',{'default':'run','children':[{'command':'run','available':False},{'command':'other'+str(N),'available':True}]}),False)\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":"70ce77ddeae7684615d2be234244e4ace6bbf0214e9341b465f204e6659ee339","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 == 'primary':\n        return {'command':p['default'],'open':False}\n    if action == 'secondary':\n        return {'command':None,'open':True}\n    if action == 'zone':\n        return 'secondary' if p['x']>=p['divider'] else 'primary'\n    if action == 'default-availability':\n        return next((x['available'] for x in p['children'] if x['command']==p['default']),False)\n    if action == 'owner-label':\n        return p['default_label']\n    if action == 'primary-empty-default':\n        return {'command':p['default'],'open':p['default'] is None}\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('primary contract', solve('primary', {'default':'run'+str(N)}), {'command':'run'+str(N),'open':False})\ncheck('secondary contract', solve('secondary', {'default':'run'+str(N)}), {'command':None,'open':True})\ncheck('zone contract', solve('zone', {'x':N+20,'divider':N+20}), 'secondary')\ncheck('default-availability contract', solve('default-availability', {'default':'run','children':[{'command':'run','available':True},{'command':'other'+str(N),'available':False}]}), True)\ncheck('owner-label contract', solve('owner-label', {'owner_label':'Export','default_label':'Format '+str(N)}), 'Export')\ncheck('primary-empty-default contract', solve('primary-empty-default', {'default':None,'fallback':'first'+str(N)}), {'command':None,'open':True})\ncheck('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})\ncheck('other available alternatives do not enable default',solve('default-availability',{'default':'run','children':[{'command':'run','available':False},{'command':'other'+str(N),'available':True}]}),False)\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":"fb86a3bd6e0891954965545b9bc4605e6ed0d3e9e1fa62ae53591e36d962f4b7","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 == 'primary':\n        return {'command':p['default'],'open':False}\n    if action == 'secondary':\n        return {'command':None,'open':True}\n    if action == 'zone':\n        return 'secondary' if p['x']>=p['divider'] else 'primary'\n    if action == 'default-availability':\n        return next((x['available'] for x in p['children'] if x['command']==p['default']),False)\n    if action == 'owner-label':\n        return p['owner_label']\n    if action == 'primary-empty-default':\n        return {'command':p['default'],'open':p['default'] is None}\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('primary contract', solve('primary', {'default':'run'+str(N)}), {'command':'run'+str(N),'open':False})\ncheck('secondary contract', solve('secondary', {'default':'run'+str(N)}), {'command':None,'open':True})\ncheck('zone contract', solve('zone', {'x':N+20,'divider':N+20}), 'secondary')\ncheck('default-availability contract', solve('default-availability', {'default':'run','children':[{'command':'run','available':True},{'command':'other'+str(N),'available':False}]}), True)\ncheck('owner-label contract', solve('owner-label', {'owner_label':'Export','default_label':'Format '+str(N)}), 'Export')\ncheck('primary-empty-default contract', solve('primary-empty-default', {'default':None,'fallback':'first'+str(N)}), {'command':None,'open':True})\ncheck('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})\ncheck('other available alternatives do not enable default',solve('default-availability',{'default':'run','children':[{'command':'run','available':False},{'command':'other'+str(N),'available':True}]}),False)\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-split-button-menu-owner-label","generated_at":"2026-09-29T14:42:23.828071+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['owner_label']` at owner-label.","root_cause":"The split-button-menu model applies `p['default_label']` at its owner-label operation instead of the stipulated transformation.","sha256":"22a9fbda5bf20b6c4e56481c3634ef16a843982c48de314145f124235773144d","title":"Changing split-menu default rewrites the owning submenu label · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":44.706,"exit_code":1,"observations":[{"actual":{"command":"run1","open":false},"check":"primary contract","expected":{"command":"run1","open":false},"passed":true},{"actual":{"command":null,"open":true},"check":"secondary contract","expected":{"command":null,"open":true},"passed":true},{"actual":"secondary","check":"zone contract","expected":"secondary","passed":true},{"actual":true,"check":"default-availability contract","expected":true,"passed":true},{"actual":"Export Format 1","check":"owner-label contract","expected":"Export","passed":false},{"actual":{"command":null,"open":true},"check":"primary-empty-default contract","expected":{"command":null,"open":true},"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true},{"actual":false,"check":"other available alternatives do not enable default","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"primary contract\", \"actual\": {\"command\": \"run1\", \"open\": false}, \"expected\": {\"command\": \"run1\", \"open\": false}, \"passed\": true}, {\"check\": \"secondary contract\", \"actual\": {\"command\": null, \"open\": true}, \"expected\": {\"command\": null, \"open\": true}, \"passed\": true}, {\"check\": \"zone contract\", \"actual\": \"secondary\", \"expected\": \"secondary\", \"passed\": true}, {\"check\": \"default-availability contract\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"owner-label contract\", \"actual\": \"Export Format 1\", \"expected\": \"Export\", \"passed\": false}, {\"check\": \"primary-empty-default contract\", \"actual\": {\"command\": null, \"open\": true}, \"expected\": {\"command\": null, \"open\": true}, \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}, {\"check\": \"other available alternatives do not enable default\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":44.776,"exit_code":1,"observations":[{"actual":{"command":"run1","open":false},"check":"primary contract","expected":{"command":"run1","open":false},"passed":true},{"actual":{"command":null,"open":true},"check":"secondary contract","expected":{"command":null,"open":true},"passed":true},{"actual":"secondary","check":"zone contract","expected":"secondary","passed":true},{"actual":true,"check":"default-availability contract","expected":true,"passed":true},{"actual":"Format 1","check":"owner-label contract","expected":"Export","passed":false},{"actual":{"command":null,"open":true},"check":"primary-empty-default contract","expected":{"command":null,"open":true},"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true},{"actual":false,"check":"other available alternatives do not enable default","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"primary contract\", \"actual\": {\"command\": \"run1\", \"open\": false}, \"expected\": {\"command\": \"run1\", \"open\": false}, \"passed\": true}, {\"check\": \"secondary contract\", \"actual\": {\"command\": null, \"open\": true}, \"expected\": {\"command\": null, \"open\": true}, \"passed\": true}, {\"check\": \"zone contract\", \"actual\": \"secondary\", \"expected\": \"secondary\", \"passed\": true}, {\"check\": \"default-availability contract\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"owner-label contract\", \"actual\": \"Format 1\", \"expected\": \"Export\", \"passed\": false}, {\"check\": \"primary-empty-default contract\", \"actual\": {\"command\": null, \"open\": true}, \"expected\": {\"command\": null, \"open\": true}, \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}, {\"check\": \"other available alternatives do not enable default\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.3,"exit_code":0,"observations":[{"actual":{"command":"run1","open":false},"check":"primary contract","expected":{"command":"run1","open":false},"passed":true},{"actual":{"command":null,"open":true},"check":"secondary contract","expected":{"command":null,"open":true},"passed":true},{"actual":"secondary","check":"zone contract","expected":"secondary","passed":true},{"actual":true,"check":"default-availability contract","expected":true,"passed":true},{"actual":"Export","check":"owner-label contract","expected":"Export","passed":true},{"actual":{"command":null,"open":true},"check":"primary-empty-default contract","expected":{"command":null,"open":true},"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true},{"actual":false,"check":"other available alternatives do not enable default","expected":false,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"primary contract\", \"actual\": {\"command\": \"run1\", \"open\": false}, \"expected\": {\"command\": \"run1\", \"open\": false}, \"passed\": true}, {\"check\": \"secondary contract\", \"actual\": {\"command\": null, \"open\": true}, \"expected\": {\"command\": null, \"open\": true}, \"passed\": true}, {\"check\": \"zone contract\", \"actual\": \"secondary\", \"expected\": \"secondary\", \"passed\": true}, {\"check\": \"default-availability contract\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"owner-label contract\", \"actual\": \"Export\", \"expected\": \"Export\", \"passed\": true}, {\"check\": \"primary-empty-default contract\", \"actual\": {\"command\": null, \"open\": true}, \"expected\": {\"command\": null, \"open\": true}, \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}, {\"check\": \"other available alternatives do not enable default\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}