{"abstract":"Menu restore remaps only the root and leaves obsolete descendant presentation IDs.","category":"Menu interactions","checks":7,"contract":"Restored cascades reopen only a contiguous valid prefix of menu owners. Missing, lazy, reparented or unavailable owners stop restoration; root identity and independent menu windows are retained.","contract_signature":"action, p","evaluation_group":"s3-menu-interactions-menu-cascade-restoration","failed_approach":"The attempted repair `[p['mapping'].get(p['chain'][0],p['chain'][0])]+p['chain'][1:]` still violates the owner-remap oracle.","family":"s3-menu-interactions-menu-cascade-restoration-owner-remap","id":"FA-33566","implementations":{"attempt":{"sha256":"c86efef23ec6f7404ab496260feff2d1e66d7d490f81c41a701423099bed62da","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 == 'missing-prefix':\n        return p['chain'][:next((i for i,x in enumerate(p['chain']) if x not in p['live']),len(p['chain']))]\n    if action == 'lazy-boundary':\n        return p['chain'][:next((i+1 for i,x in enumerate(p['chain']) if x in p['lazy']),len(p['chain']))]\n    if action == 'owner-edge':\n        return p['chain'][:next((i+1 for i,(a,b) in enumerate(zip(p['chain'],p['chain'][1:])) if p['parents'].get(b)!=a),len(p['chain']))]\n    if action == 'availability-prefix':\n        return p['chain'][:next((i for i,x in enumerate(p['chain']) if not p['available'].get(x,False)),len(p['chain']))]\n    if action == 'window-paths':\n        return {x['window']:x['path'] for x in p}\n    if action == 'owner-remap':\n        return [p['mapping'].get(p['chain'][0],p['chain'][0])]+p['chain'][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('missing-prefix contract', solve('missing-prefix', {'chain':['root','gone','child'+str(N)],'live':['root','child'+str(N)]}), ['root'])\ncheck('lazy-boundary contract', solve('lazy-boundary', {'chain':['root','lazy','child'+str(N)],'lazy':['lazy']}), ['root','lazy'])\ncheck('owner-edge contract', solve('owner-edge', {'chain':['root','a','b'+str(N)],'parents':{'a':'root','b'+str(N):'other'}}), ['root','a'])\ncheck('availability-prefix contract', solve('availability-prefix', {'chain':['root','locked','b'+str(N)],'available':{'root':True,'locked':False,'b'+str(N):True}}), ['root'])\ncheck('window-paths contract', solve('window-paths', [{'window':N,'path':['root','a']},{'window':N+1,'path':['root','b']}]), {N:['root','a'],N+1:['root','b']})\ncheck('owner-remap contract', solve('owner-remap', {'chain':['root','old'+str(N)],'mapping':{'old'+str(N):'new'+str(N)}}), ['root','new'+str(N)])\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":"9f2e5cffe2c779e37c3eea60b4c7bada75a960f861b1f0f1fb52dc167a1fa5b5","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 == 'missing-prefix':\n        return p['chain'][:next((i for i,x in enumerate(p['chain']) if x not in p['live']),len(p['chain']))]\n    if action == 'lazy-boundary':\n        return p['chain'][:next((i+1 for i,x in enumerate(p['chain']) if x in p['lazy']),len(p['chain']))]\n    if action == 'owner-edge':\n        return p['chain'][:next((i+1 for i,(a,b) in enumerate(zip(p['chain'],p['chain'][1:])) if p['parents'].get(b)!=a),len(p['chain']))]\n    if action == 'availability-prefix':\n        return p['chain'][:next((i for i,x in enumerate(p['chain']) if not p['available'].get(x,False)),len(p['chain']))]\n    if action == 'window-paths':\n        return {x['window']:x['path'] for x in p}\n    if action == 'owner-remap':\n        return p['chain']\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('missing-prefix contract', solve('missing-prefix', {'chain':['root','gone','child'+str(N)],'live':['root','child'+str(N)]}), ['root'])\ncheck('lazy-boundary contract', solve('lazy-boundary', {'chain':['root','lazy','child'+str(N)],'lazy':['lazy']}), ['root','lazy'])\ncheck('owner-edge contract', solve('owner-edge', {'chain':['root','a','b'+str(N)],'parents':{'a':'root','b'+str(N):'other'}}), ['root','a'])\ncheck('availability-prefix contract', solve('availability-prefix', {'chain':['root','locked','b'+str(N)],'available':{'root':True,'locked':False,'b'+str(N):True}}), ['root'])\ncheck('window-paths contract', solve('window-paths', [{'window':N,'path':['root','a']},{'window':N+1,'path':['root','b']}]), {N:['root','a'],N+1:['root','b']})\ncheck('owner-remap contract', solve('owner-remap', {'chain':['root','old'+str(N)],'mapping':{'old'+str(N):'new'+str(N)}}), ['root','new'+str(N)])\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-cascade-restoration-owner-remap","generated_at":"2026-09-29T14:42:23.629518+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-cascade-restoration model applies `p['chain']` at its owner-remap operation instead of the stipulated transformation.","sha256":"a5d0e96306d10bc86538f5f341371a860af94fe6887e21be1093f0db69b2bac4","title":"Menu restore remaps only the root and leaves obsolete descendant presentation IDs · 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":43.237,"exit_code":1,"observations":[{"actual":["root"],"check":"missing-prefix contract","expected":["root"],"passed":true},{"actual":["root","lazy"],"check":"lazy-boundary contract","expected":["root","lazy"],"passed":true},{"actual":["root","a"],"check":"owner-edge contract","expected":["root","a"],"passed":true},{"actual":["root"],"check":"availability-prefix contract","expected":["root"],"passed":true},{"actual":{"1":["root","a"],"2":["root","b"]},"check":"window-paths contract","expected":{"1":["root","a"],"2":["root","b"]},"passed":true},{"actual":["root","old1"],"check":"owner-remap contract","expected":["root","new1"],"passed":false},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"missing-prefix contract\", \"actual\": [\"root\"], \"expected\": [\"root\"], \"passed\": true}, {\"check\": \"lazy-boundary contract\", \"actual\": [\"root\", \"lazy\"], \"expected\": [\"root\", \"lazy\"], \"passed\": true}, {\"check\": \"owner-edge contract\", \"actual\": [\"root\", \"a\"], \"expected\": [\"root\", \"a\"], \"passed\": true}, {\"check\": \"availability-prefix contract\", \"actual\": [\"root\"], \"expected\": [\"root\"], \"passed\": true}, {\"check\": \"window-paths contract\", \"actual\": {\"1\": [\"root\", \"a\"], \"2\": [\"root\", \"b\"]}, \"expected\": {\"1\": [\"root\", \"a\"], \"2\": [\"root\", \"b\"]}, \"passed\": true}, {\"check\": \"owner-remap contract\", \"actual\": [\"root\", \"old1\"], \"expected\": [\"root\", \"new1\"], \"passed\": false}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.315,"exit_code":1,"observations":[{"actual":["root"],"check":"missing-prefix contract","expected":["root"],"passed":true},{"actual":["root","lazy"],"check":"lazy-boundary contract","expected":["root","lazy"],"passed":true},{"actual":["root","a"],"check":"owner-edge contract","expected":["root","a"],"passed":true},{"actual":["root"],"check":"availability-prefix contract","expected":["root"],"passed":true},{"actual":{"1":["root","a"],"2":["root","b"]},"check":"window-paths contract","expected":{"1":["root","a"],"2":["root","b"]},"passed":true},{"actual":["root","old1"],"check":"owner-remap contract","expected":["root","new1"],"passed":false},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"missing-prefix contract\", \"actual\": [\"root\"], \"expected\": [\"root\"], \"passed\": true}, {\"check\": \"lazy-boundary contract\", \"actual\": [\"root\", \"lazy\"], \"expected\": [\"root\", \"lazy\"], \"passed\": true}, {\"check\": \"owner-edge contract\", \"actual\": [\"root\", \"a\"], \"expected\": [\"root\", \"a\"], \"passed\": true}, {\"check\": \"availability-prefix contract\", \"actual\": [\"root\"], \"expected\": [\"root\"], \"passed\": true}, {\"check\": \"window-paths contract\", \"actual\": {\"1\": [\"root\", \"a\"], \"2\": [\"root\", \"b\"]}, \"expected\": {\"1\": [\"root\", \"a\"], \"2\": [\"root\", \"b\"]}, \"passed\": true}, {\"check\": \"owner-remap contract\", \"actual\": [\"root\", \"old1\"], \"expected\": [\"root\", \"new1\"], \"passed\": false}, {\"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."}}