FA-33381 / Menu interactions / Open access
Menu rows without icons lose alignment with decorated siblings · case 01
Menu rows without icons lose alignment with decorated siblings.
ROOT CAUSE
The menu-row-decoration model applies `p['own_width']` at its icon-space operation instead of the stipulated transformation.
THE FAILURE
The menu-row-decoration model applies `p['own_width']` at its icon-space operation instead of the stipulated transformation.
Unsuccessful approach: The attempted repair `p['column_width'] if p['own_width'] else 0` still violates the icon-space oracle.
Case contract
Menu decoration columns are measured from visible command rows; text, badges and submenu indicators remain separate from command identity.
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 == 'indicator-column':
return max((x['indicator_width'] for x in p if x['visible']),default=0)
if action == 'badge':
return None if p['count'] is None else str(p['count'])
if action == 'label-command':
return p['command']
if action == 'suffix-order':
return p['label']+(' '+p['suffix'] if p['suffix'] else '')
if action == 'icon-space':
return p['own_width']
if action == 'separator-span':
return sum(p['columns'])+p['gap']*(len(p['columns'])-1)
return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('indicator-column contract', solve('indicator-column', [{'visible':False,'indicator_width':N+10},{'visible':True,'indicator_width':2}]), 2)
check('badge contract', solve('badge', {'count':0,'revision':N}), '0')
check('label-command contract', solve('label-command', {'command':'cmd'+str(N),'label':'Copy','badge':'2'}), 'cmd'+str(N))
check('suffix-order contract', solve('suffix-order', {'label':'Item '+str(N),'suffix':'(new)'}), 'Item '+str(N)+' (new)')
check('icon-space contract', solve('icon-space', {'column_width':N+4,'column_enabled':True,'own_width':0}), N+4)
check('separator-span contract', solve('separator-span', {'columns':[N,10,4],'gap':2}), N+18)
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 |
|---|---|---|---|
| indicator-column contract | 2 | 2 | Passed |
| badge contract | 0 | 0 | Passed |
| label-command contract | cmd1 | cmd1 | Passed |
| suffix-order contract | Item 1 (new) | Item 1 (new) | Passed |
| icon-space contract | 0 | 5 | Failed |
| separator-span contract | 19 | 19 | Passed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
SHA-256 / 9be421f4b12d8a78fd374ea428c07b3f973772b618244f32f8c9814ba417443f
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 == 'indicator-column':
return max((x['indicator_width'] for x in p if x['visible']),default=0)
if action == 'badge':
return None if p['count'] is None else str(p['count'])
if action == 'label-command':
return p['command']
if action == 'suffix-order':
return p['label']+(' '+p['suffix'] if p['suffix'] else '')
if action == 'icon-space':
return p['column_width'] if p['own_width'] else 0
if action == 'separator-span':
return sum(p['columns'])+p['gap']*(len(p['columns'])-1)
return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('indicator-column contract', solve('indicator-column', [{'visible':False,'indicator_width':N+10},{'visible':True,'indicator_width':2}]), 2)
check('badge contract', solve('badge', {'count':0,'revision':N}), '0')
check('label-command contract', solve('label-command', {'command':'cmd'+str(N),'label':'Copy','badge':'2'}), 'cmd'+str(N))
check('suffix-order contract', solve('suffix-order', {'label':'Item '+str(N),'suffix':'(new)'}), 'Item '+str(N)+' (new)')
check('icon-space contract', solve('icon-space', {'column_width':N+4,'column_enabled':True,'own_width':0}), N+4)
check('separator-span contract', solve('separator-span', {'columns':[N,10,4],'gap':2}), N+18)
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 |
|---|---|---|---|
| indicator-column contract | 2 | 2 | Passed |
| badge contract | 0 | 0 | Passed |
| label-command contract | cmd1 | cmd1 | Passed |
| suffix-order contract | Item 1 (new) | Item 1 (new) | Passed |
| icon-space contract | 0 | 5 | Failed |
| separator-span contract | 19 | 19 | Passed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
SHA-256 / 3bfeb3689d1c8d894a406711796d03042ce544b26e88885a57d0c414d063b2c8
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 7 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:21.893339+00:00.
Case digest / da5d8190af7e2aaa0a3e3d9bd1efda6de086185082e82fbf1755d1255ced4f1e