FA-32996 / Menu interactions / Open access
Breadcrumb menu jump removes the target ancestor itself · case 01
Breadcrumb menu jump removes the target ancestor itself.
ROOT CAUSE
The breadcrumb-menu model applies `p['chain'][:p['index']]` at its jump operation instead of the stipulated transformation.
VERIFIED REPAIR
Apply `p['chain'][:p['index']+1]` at jump.
Unsuccessful approach: The attempted repair `p['chain'][p['index']:]` still violates the jump 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['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']]
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| reopen-action contract | {'action': 'reopen-menu', 'context': 1, 'path': ['root', 'tools']} | {'action': 'reopen-menu', 'context': 1, 'path': ['root', 'tools']} | Passed |
| owner-edge contract | owner | owner | Passed |
| label contract | Item | Item | Passed |
| 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'] | ['r', 'a'] | Failed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
SHA-256 / 3d37e39211729805270a35497290a54f522435327a2c69c0b111b20b5125ff49
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['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']:]
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| reopen-action contract | {'action': 'reopen-menu', 'context': 1, 'path': ['root', 'tools']} | {'action': 'reopen-menu', 'context': 1, 'path': ['root', 'tools']} | Passed |
| owner-edge contract | owner | owner | Passed |
| label contract | Item | Item | Passed |
| 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 | ['a', '1'] | ['r', 'a'] | Failed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
SHA-256 / eb8c16336d2b016db7a5c03224a128d0a2b6c2ab792f7538c529398366eb8fd1
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| reopen-action contract | {'action': 'reopen-menu', 'context': 1, 'path': ['root', 'tools']} | {'action': 'reopen-menu', 'context': 1, 'path': ['root', 'tools']} | Passed |
| owner-edge contract | owner | owner | Passed |
| label contract | Item | Item | Passed |
| 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.881485+00:00.
Case digest / e99e32d0398f5d63375cb0459aee26b916658e1103fd52322d94407a508cd66c