{"abstract":"Split-menu primary zone with no default guesses an arbitrary alternative command.","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 `{'command':p['fallback'],'open':False}` still violates the primary-empty-default oracle.","family":"s3-menu-interactions-split-button-menu-primary-empty-default","id":"FA-33596","implementations":{"attempt":{"sha256":"0141e16dcadf208b8e53bb3e95497e6dfe0b639284bc771f8e1cba848e575305","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['fallback'],'open':False}\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":"45e0a590615135b6f822a88445ec0c6b964e683b4dbbbd3fb668c1caf2ac8eed","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':False}\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-primary-empty-default","generated_at":"2026-09-29T14:42:23.935148+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 `{'command':p['default'],'open':p['default'] is None}` at primary-empty-default.","root_cause":"The split-button-menu model applies `{'command':p['default'],'open':False}` at its primary-empty-default operation instead of the stipulated transformation.","sha256":"84269a6bdf183645c55fb8680133acb0e0fa1432c75a1a4740542c9740bbd071","title":"Split-menu primary zone with no default guesses an arbitrary alternative command · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.15,"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","check":"owner-label contract","expected":"Export","passed":true},{"actual":{"command":"first1","open":false},"check":"primary-empty-default contract","expected":{"command":null,"open":true},"passed":false},{"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\", \"expected\": \"Export\", \"passed\": true}, {\"check\": \"primary-empty-default contract\", \"actual\": {\"command\": \"first1\", \"open\": false}, \"expected\": {\"command\": null, \"open\": true}, \"passed\": false}, {\"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":43.916,"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","check":"owner-label contract","expected":"Export","passed":true},{"actual":{"command":null,"open":false},"check":"primary-empty-default contract","expected":{"command":null,"open":true},"passed":false},{"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\", \"expected\": \"Export\", \"passed\": true}, {\"check\": \"primary-empty-default contract\", \"actual\": {\"command\": null, \"open\": false}, \"expected\": {\"command\": null, \"open\": true}, \"passed\": false}, {\"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.969,"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"}