FAILURE MAP
← Case archive

FA-32976 / Menu interactions / Open access

Menu ancestor popup identifies the child definition instead of its owning menu row · case 01

Menu ancestor popup identifies the child definition instead of its owning menu row.

Verified by executionVariant 1 · 7 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

The breadcrumb-menu model applies `p['child']` at its owner-edge operation instead of the stipulated transformation.

VERIFIED REPAIR

Apply `p['edges'][p['child']]` at owner-edge.

Unsuccessful approach: The attempted repair `p['root']` still violates the owner-edge oracle.

Case contract

Menu breadcrumb controls reopen menu ancestors with captured context. Overflow entries retain complete menu paths; owner edges and displayed labels are separate.

Why this case matters

Cascading and context menus require coherent command and session state as content changes.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import math
import unicodedata
N = 1
observations = []
def solve(action, p):
    if action == 'reopen-action':
        return {'action':'reopen-menu','path':p['path'],'context':p['context']}
    if action == 'owner-edge':
        return p['child']
    if action == 'label':
        return p['labels'].get(p['id'],p['id'])
    if action == 'omitted-menu-levels':
        return [p['chain'][:i+1] for i in range(1,len(p['chain'])-1)]
    if action == 'duplicate-label':
        return [x['id'] for x in p]
    if action == 'jump':
        return p['chain'][:p['index']+1]
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('reopen-action contract', solve('reopen-action', {'path':['root','tools'],'context':N}), {'action':'reopen-menu','path':['root','tools'],'context':N})
check('owner-edge contract', solve('owner-edge', {'child':'child'+str(N),'edges':{'child'+str(N):'owner'},'root':'root'}), 'owner')
check('label contract', solve('label', {'id':'item'+str(N),'parent':'root','labels':{'item'+str(N):'Item','root':'Root'}}), 'Item')
check('omitted-menu-levels contract', solve('omitted-menu-levels', {'chain':['root','a','b','leaf'+str(N)]}), [['root','a'],['root','a','b']])
check('duplicate-label contract', solve('duplicate-label', [{'id':N,'label':'Same'},{'id':N+1,'label':'Same'}]), [N,N+1])
check('jump contract', solve('jump', {'chain':['r','a',str(N)],'index':1}), ['r','a'])
check('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
reopen-action contract{'action': 'reopen-menu', 'context': 1, 'path': ['root', 'tools']}{'action': 'reopen-menu', 'context': 1, 'path': ['root', 'tools']}Passed
owner-edge contractchild1ownerFailed
label contractItemItemPassed
omitted-menu-levels contract[['root', 'a'], ['root', 'a', 'b']][['root', 'a'], ['root', 'a', 'b']]Passed
duplicate-label contract[1, 2][1, 2]Passed
jump contract['r', 'a']['r', 'a']Passed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / c041c76298a5ed4987f7cc2e6d594a4ee00712cafefb48117c134b8242b08c48

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import math
import unicodedata
N = 1
observations = []
def solve(action, p):
    if action == 'reopen-action':
        return {'action':'reopen-menu','path':p['path'],'context':p['context']}
    if action == 'owner-edge':
        return p['root']
    if action == 'label':
        return p['labels'].get(p['id'],p['id'])
    if action == 'omitted-menu-levels':
        return [p['chain'][:i+1] for i in range(1,len(p['chain'])-1)]
    if action == 'duplicate-label':
        return [x['id'] for x in p]
    if action == 'jump':
        return p['chain'][:p['index']+1]
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('reopen-action contract', solve('reopen-action', {'path':['root','tools'],'context':N}), {'action':'reopen-menu','path':['root','tools'],'context':N})
check('owner-edge contract', solve('owner-edge', {'child':'child'+str(N),'edges':{'child'+str(N):'owner'},'root':'root'}), 'owner')
check('label contract', solve('label', {'id':'item'+str(N),'parent':'root','labels':{'item'+str(N):'Item','root':'Root'}}), 'Item')
check('omitted-menu-levels contract', solve('omitted-menu-levels', {'chain':['root','a','b','leaf'+str(N)]}), [['root','a'],['root','a','b']])
check('duplicate-label contract', solve('duplicate-label', [{'id':N,'label':'Same'},{'id':N+1,'label':'Same'}]), [N,N+1])
check('jump contract', solve('jump', {'chain':['r','a',str(N)],'index':1}), ['r','a'])
check('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
reopen-action contract{'action': 'reopen-menu', 'context': 1, 'path': ['root', 'tools']}{'action': 'reopen-menu', 'context': 1, 'path': ['root', 'tools']}Passed
owner-edge contractrootownerFailed
label contractItemItemPassed
omitted-menu-levels contract[['root', 'a'], ['root', 'a', 'b']][['root', 'a'], ['root', 'a', 'b']]Passed
duplicate-label contract[1, 2][1, 2]Passed
jump contract['r', 'a']['r', 'a']Passed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / 0e23bcdb72cc6bec1b5dd9337c863f1ab395b9e3a55f99f3b2b61d18d0dd0a4f

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json
import math
import unicodedata
N = 1
observations = []
def solve(action, p):
    if action == 'reopen-action':
        return {'action':'reopen-menu','path':p['path'],'context':p['context']}
    if action == 'owner-edge':
        return p['edges'][p['child']]
    if action == 'label':
        return p['labels'].get(p['id'],p['id'])
    if action == 'omitted-menu-levels':
        return [p['chain'][:i+1] for i in range(1,len(p['chain'])-1)]
    if action == 'duplicate-label':
        return [x['id'] for x in p]
    if action == 'jump':
        return p['chain'][:p['index']+1]
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('reopen-action contract', solve('reopen-action', {'path':['root','tools'],'context':N}), {'action':'reopen-menu','path':['root','tools'],'context':N})
check('owner-edge contract', solve('owner-edge', {'child':'child'+str(N),'edges':{'child'+str(N):'owner'},'root':'root'}), 'owner')
check('label contract', solve('label', {'id':'item'+str(N),'parent':'root','labels':{'item'+str(N):'Item','root':'Root'}}), 'Item')
check('omitted-menu-levels contract', solve('omitted-menu-levels', {'chain':['root','a','b','leaf'+str(N)]}), [['root','a'],['root','a','b']])
check('duplicate-label contract', solve('duplicate-label', [{'id':N,'label':'Same'},{'id':N+1,'label':'Same'}]), [N,N+1])
check('jump contract', solve('jump', {'chain':['r','a',str(N)],'index':1}), ['r','a'])
check('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
reopen-action contract{'action': 'reopen-menu', 'context': 1, 'path': ['root', 'tools']}{'action': 'reopen-menu', 'context': 1, 'path': ['root', 'tools']}Passed
owner-edge contractownerownerPassed
label contractItemItemPassed
omitted-menu-levels contract[['root', 'a'], ['root', 'a', 'b']][['root', 'a'], ['root', 'a', 'b']]Passed
duplicate-label contract[1, 2][1, 2]Passed
jump contract['r', 'a']['r', 'a']Passed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / 2f9a511a41f17f5910dd63a1b2f8c906171657f9931d104319e7062086c1ef4d

Verification & scope

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.

Observations recorded using Python 3.12.14 at 2026-09-29T14:42:17.690537+00:00.

Case digest / 72d857e95f38fb306ef69cbdc126c6d1e8e5f8ae887cc86c407b86576ea13378