{"abstract":"Menu ancestor breadcrumb dispatches a document action instead of reopening its menu.","category":"Menu interactions","checks":7,"contract":"Menu breadcrumb controls reopen menu ancestors with captured context. Overflow entries retain complete menu paths; owner edges and displayed labels are separate.","contract_signature":"action, p","evaluation_group":"s3-menu-interactions-breadcrumb-menu","failed_approach":"The attempted repair `{'action':'execute-command','path':p['path'],'context':p['context']}` still violates the reopen-action oracle.","family":"s3-menu-interactions-breadcrumb-menu-reopen-action","id":"FA-32971","implementations":{"attempt":{"sha256":"147ad687161df23d6bd3ffdc348ad5c0593e3279877034a274ffbfce090ab15b","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 == 'reopen-action':\n        return {'action':'execute-command','path':p['path'],'context':p['context']}\n    if action == 'owner-edge':\n        return p['edges'][p['child']]\n    if action == 'label':\n        return p['labels'].get(p['id'],p['id'])\n    if action == 'omitted-menu-levels':\n        return [p['chain'][:i+1] for i in range(1,len(p['chain'])-1)]\n    if action == 'duplicate-label':\n        return [x['id'] for x in p]\n    if action == 'jump':\n        return p['chain'][:p['index']+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('reopen-action contract', solve('reopen-action', {'path':['root','tools'],'context':N}), {'action':'reopen-menu','path':['root','tools'],'context':N})\ncheck('owner-edge contract', solve('owner-edge', {'child':'child'+str(N),'edges':{'child'+str(N):'owner'},'root':'root'}), 'owner')\ncheck('label contract', solve('label', {'id':'item'+str(N),'parent':'root','labels':{'item'+str(N):'Item','root':'Root'}}), 'Item')\ncheck('omitted-menu-levels contract', solve('omitted-menu-levels', {'chain':['root','a','b','leaf'+str(N)]}), [['root','a'],['root','a','b']])\ncheck('duplicate-label contract', solve('duplicate-label', [{'id':N,'label':'Same'},{'id':N+1,'label':'Same'}]), [N,N+1])\ncheck('jump contract', solve('jump', {'chain':['r','a',str(N)],'index':1}), ['r','a'])\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":"c3181e84f9e6b82a20ae5ca1167c4c29627fc732674a410259498510ea19ecfe","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 == 'reopen-action':\n        return {'action':'navigate-document','path':p['path'],'context':p['context']}\n    if action == 'owner-edge':\n        return p['edges'][p['child']]\n    if action == 'label':\n        return p['labels'].get(p['id'],p['id'])\n    if action == 'omitted-menu-levels':\n        return [p['chain'][:i+1] for i in range(1,len(p['chain'])-1)]\n    if action == 'duplicate-label':\n        return [x['id'] for x in p]\n    if action == 'jump':\n        return p['chain'][:p['index']+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('reopen-action contract', solve('reopen-action', {'path':['root','tools'],'context':N}), {'action':'reopen-menu','path':['root','tools'],'context':N})\ncheck('owner-edge contract', solve('owner-edge', {'child':'child'+str(N),'edges':{'child'+str(N):'owner'},'root':'root'}), 'owner')\ncheck('label contract', solve('label', {'id':'item'+str(N),'parent':'root','labels':{'item'+str(N):'Item','root':'Root'}}), 'Item')\ncheck('omitted-menu-levels contract', solve('omitted-menu-levels', {'chain':['root','a','b','leaf'+str(N)]}), [['root','a'],['root','a','b']])\ncheck('duplicate-label contract', solve('duplicate-label', [{'id':N,'label':'Same'},{'id':N+1,'label':'Same'}]), [N,N+1])\ncheck('jump contract', solve('jump', {'chain':['r','a',str(N)],'index':1}), ['r','a'])\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-breadcrumb-menu-reopen-action","generated_at":"2026-09-29T14:42:17.881485+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 breadcrumb-menu model applies `{'action':'navigate-document','path':p['path'],'context':p['context']}` at its reopen-action operation instead of the stipulated transformation.","sha256":"bea12499044a3fe0a1a10583a479044cb04b0ca748089a8befe0939dfa458707","title":"Menu ancestor breadcrumb dispatches a document action instead of reopening its menu · 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":41.878,"exit_code":1,"observations":[{"actual":{"action":"execute-command","context":1,"path":["root","tools"]},"check":"reopen-action contract","expected":{"action":"reopen-menu","context":1,"path":["root","tools"]},"passed":false},{"actual":"owner","check":"owner-edge contract","expected":"owner","passed":true},{"actual":"Item","check":"label contract","expected":"Item","passed":true},{"actual":[["root","a"],["root","a","b"]],"check":"omitted-menu-levels contract","expected":[["root","a"],["root","a","b"]],"passed":true},{"actual":[1,2],"check":"duplicate-label contract","expected":[1,2],"passed":true},{"actual":["r","a"],"check":"jump contract","expected":["r","a"],"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"reopen-action contract\", \"actual\": {\"action\": \"execute-command\", \"path\": [\"root\", \"tools\"], \"context\": 1}, \"expected\": {\"action\": \"reopen-menu\", \"path\": [\"root\", \"tools\"], \"context\": 1}, \"passed\": false}, {\"check\": \"owner-edge contract\", \"actual\": \"owner\", \"expected\": \"owner\", \"passed\": true}, {\"check\": \"label contract\", \"actual\": \"Item\", \"expected\": \"Item\", \"passed\": true}, {\"check\": \"omitted-menu-levels contract\", \"actual\": [[\"root\", \"a\"], [\"root\", \"a\", \"b\"]], \"expected\": [[\"root\", \"a\"], [\"root\", \"a\", \"b\"]], \"passed\": true}, {\"check\": \"duplicate-label contract\", \"actual\": [1, 2], \"expected\": [1, 2], \"passed\": true}, {\"check\": \"jump contract\", \"actual\": [\"r\", \"a\"], \"expected\": [\"r\", \"a\"], \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.099,"exit_code":1,"observations":[{"actual":{"action":"navigate-document","context":1,"path":["root","tools"]},"check":"reopen-action contract","expected":{"action":"reopen-menu","context":1,"path":["root","tools"]},"passed":false},{"actual":"owner","check":"owner-edge contract","expected":"owner","passed":true},{"actual":"Item","check":"label contract","expected":"Item","passed":true},{"actual":[["root","a"],["root","a","b"]],"check":"omitted-menu-levels contract","expected":[["root","a"],["root","a","b"]],"passed":true},{"actual":[1,2],"check":"duplicate-label contract","expected":[1,2],"passed":true},{"actual":["r","a"],"check":"jump contract","expected":["r","a"],"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"reopen-action contract\", \"actual\": {\"action\": \"navigate-document\", \"path\": [\"root\", \"tools\"], \"context\": 1}, \"expected\": {\"action\": \"reopen-menu\", \"path\": [\"root\", \"tools\"], \"context\": 1}, \"passed\": false}, {\"check\": \"owner-edge contract\", \"actual\": \"owner\", \"expected\": \"owner\", \"passed\": true}, {\"check\": \"label contract\", \"actual\": \"Item\", \"expected\": \"Item\", \"passed\": true}, {\"check\": \"omitted-menu-levels contract\", \"actual\": [[\"root\", \"a\"], [\"root\", \"a\", \"b\"]], \"expected\": [[\"root\", \"a\"], [\"root\", \"a\", \"b\"]], \"passed\": true}, {\"check\": \"duplicate-label contract\", \"actual\": [1, 2], \"expected\": [1, 2], \"passed\": true}, {\"check\": \"jump contract\", \"actual\": [\"r\", \"a\"], \"expected\": [\"r\", \"a\"], \"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."}}