FA-33586 / Menu interactions / Open access
Split-menu default availability is inferred from unrelated alternatives · case 01
Split-menu default availability is inferred from unrelated alternatives.
ROOT CAUSE
The split-button-menu model applies `any(x['available'] for x in p['children'])` at its default-availability operation instead of the stipulated transformation.
THE FAILURE
The split-button-menu model applies `any(x['available'] for x in p['children'])` at its default-availability operation instead of the stipulated transformation.
Unsuccessful approach: The attempted repair `all(x['available'] for x in p['children'])` still violates the default-availability oracle.
Case 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.
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 == 'primary':
return {'command':p['default'],'open':False}
if action == 'secondary':
return {'command':None,'open':True}
if action == 'zone':
return 'secondary' if p['x']>=p['divider'] else 'primary'
if action == 'default-availability':
return any(x['available'] for x in p['children'])
if action == 'owner-label':
return p['owner_label']
if action == 'primary-empty-default':
return {'command':p['default'],'open':p['default'] is None}
return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('primary contract', solve('primary', {'default':'run'+str(N)}), {'command':'run'+str(N),'open':False})
check('secondary contract', solve('secondary', {'default':'run'+str(N)}), {'command':None,'open':True})
check('zone contract', solve('zone', {'x':N+20,'divider':N+20}), 'secondary')
check('default-availability contract', solve('default-availability', {'default':'run','children':[{'command':'run','available':True},{'command':'other'+str(N),'available':False}]}), True)
check('owner-label contract', solve('owner-label', {'owner_label':'Export','default_label':'Format '+str(N)}), 'Export')
check('primary-empty-default contract', solve('primary-empty-default', {'default':None,'fallback':'first'+str(N)}), {'command':None,'open':True})
check('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})
check('other available alternatives do not enable default',solve('default-availability',{'default':'run','children':[{'command':'run','available':False},{'command':'other'+str(N),'available':True}]}),False)
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 |
|---|---|---|---|
| primary contract | {'command': 'run1', 'open': False} | {'command': 'run1', 'open': False} | Passed |
| secondary contract | {'command': None, 'open': True} | {'command': None, 'open': True} | Passed |
| zone contract | secondary | secondary | Passed |
| default-availability contract | True | True | Passed |
| owner-label contract | Export | Export | Passed |
| primary-empty-default contract | {'command': None, 'open': True} | {'command': None, 'open': True} | Passed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
| other available alternatives do not enable default | True | False | Failed |
SHA-256 / d2618474b87e890df9fb26d55a7160bd9ac9942e417ef7d1427f26a76c93d2db
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 == 'primary':
return {'command':p['default'],'open':False}
if action == 'secondary':
return {'command':None,'open':True}
if action == 'zone':
return 'secondary' if p['x']>=p['divider'] else 'primary'
if action == 'default-availability':
return all(x['available'] for x in p['children'])
if action == 'owner-label':
return p['owner_label']
if action == 'primary-empty-default':
return {'command':p['default'],'open':p['default'] is None}
return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('primary contract', solve('primary', {'default':'run'+str(N)}), {'command':'run'+str(N),'open':False})
check('secondary contract', solve('secondary', {'default':'run'+str(N)}), {'command':None,'open':True})
check('zone contract', solve('zone', {'x':N+20,'divider':N+20}), 'secondary')
check('default-availability contract', solve('default-availability', {'default':'run','children':[{'command':'run','available':True},{'command':'other'+str(N),'available':False}]}), True)
check('owner-label contract', solve('owner-label', {'owner_label':'Export','default_label':'Format '+str(N)}), 'Export')
check('primary-empty-default contract', solve('primary-empty-default', {'default':None,'fallback':'first'+str(N)}), {'command':None,'open':True})
check('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})
check('other available alternatives do not enable default',solve('default-availability',{'default':'run','children':[{'command':'run','available':False},{'command':'other'+str(N),'available':True}]}),False)
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 |
|---|---|---|---|
| primary contract | {'command': 'run1', 'open': False} | {'command': 'run1', 'open': False} | Passed |
| secondary contract | {'command': None, 'open': True} | {'command': None, 'open': True} | Passed |
| zone contract | secondary | secondary | Passed |
| default-availability contract | False | True | Failed |
| owner-label contract | Export | Export | Passed |
| primary-empty-default contract | {'command': None, 'open': True} | {'command': None, 'open': True} | Passed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
| other available alternatives do not enable default | False | False | Passed |
SHA-256 / e781bfb9ff45900d5a6483c1b6ac0a3ff5dbc972472fffcccf04bc408312ec0d
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 8 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.
Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.
Member access is invitation-based. Sign in with your invited account to inspect the repair.
Sign in to the archive ↗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:23.935148+00:00.
Case digest / 5d9e6d7949d7c19fa8c5063b19346566f6e324a3a29d2efc2baec1721dd1ac69