{"abstract":"Hidden submenu indicator widens every visible menu row.","category":"Menu interactions","checks":7,"contract":"Menu decoration columns are measured from visible command rows; text, badges and submenu indicators remain separate from command identity.","evaluation_group":"s3-menu-interactions-menu-row-decoration","failed_approach":"The attempted repair `sum(x['indicator_width'] for x in p)` still violates the indicator-column oracle.","family":"s3-menu-interactions-menu-row-decoration-indicator-column","id":"FA-33361","implementations":{"attempt":{"sha256":"0b3fe14c7c71079e01e0e39b42cf20812bb5b72f579a04ce4c8ab42352e953e1","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 == 'indicator-column':\n        return sum(x['indicator_width'] for x in p)\n    if action == 'badge':\n        return None if p['count'] is None else str(p['count'])\n    if action == 'label-command':\n        return p['command']\n    if action == 'suffix-order':\n        return p['label']+(' '+p['suffix'] if p['suffix'] else '')\n    if action == 'icon-space':\n        return p['column_width'] if p['column_enabled'] else 0\n    if action == 'separator-span':\n        return sum(p['columns'])+p['gap']*(len(p['columns'])-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('indicator-column contract', solve('indicator-column', [{'visible':False,'indicator_width':N+10},{'visible':True,'indicator_width':2}]), 2)\ncheck('badge contract', solve('badge', {'count':0,'revision':N}), '0')\ncheck('label-command contract', solve('label-command', {'command':'cmd'+str(N),'label':'Copy','badge':'2'}), 'cmd'+str(N))\ncheck('suffix-order contract', solve('suffix-order', {'label':'Item '+str(N),'suffix':'(new)'}), 'Item '+str(N)+' (new)')\ncheck('icon-space contract', solve('icon-space', {'column_width':N+4,'column_enabled':True,'own_width':0}), N+4)\ncheck('separator-span contract', solve('separator-span', {'columns':[N,10,4],'gap':2}), N+18)\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":"4493b5a15105e149a9c16b056f8131754b57c6b11e69a85c94218ca3ac946975","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 == 'indicator-column':\n        return max((x['indicator_width'] for x in p),default=0)\n    if action == 'badge':\n        return None if p['count'] is None else str(p['count'])\n    if action == 'label-command':\n        return p['command']\n    if action == 'suffix-order':\n        return p['label']+(' '+p['suffix'] if p['suffix'] else '')\n    if action == 'icon-space':\n        return p['column_width'] if p['column_enabled'] else 0\n    if action == 'separator-span':\n        return sum(p['columns'])+p['gap']*(len(p['columns'])-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('indicator-column contract', solve('indicator-column', [{'visible':False,'indicator_width':N+10},{'visible':True,'indicator_width':2}]), 2)\ncheck('badge contract', solve('badge', {'count':0,'revision':N}), '0')\ncheck('label-command contract', solve('label-command', {'command':'cmd'+str(N),'label':'Copy','badge':'2'}), 'cmd'+str(N))\ncheck('suffix-order contract', solve('suffix-order', {'label':'Item '+str(N),'suffix':'(new)'}), 'Item '+str(N)+' (new)')\ncheck('icon-space contract', solve('icon-space', {'column_width':N+4,'column_enabled':True,'own_width':0}), N+4)\ncheck('separator-span contract', solve('separator-span', {'columns':[N,10,4],'gap':2}), N+18)\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"},"fixed":{"sha256":"b25a4b2dbb7acabb0df2f8600c0094f4e65eff71c3b5dddb4702e3071755f959","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 == 'indicator-column':\n        return max((x['indicator_width'] for x in p if x['visible']),default=0)\n    if action == 'badge':\n        return None if p['count'] is None else str(p['count'])\n    if action == 'label-command':\n        return p['command']\n    if action == 'suffix-order':\n        return p['label']+(' '+p['suffix'] if p['suffix'] else '')\n    if action == 'icon-space':\n        return p['column_width'] if p['column_enabled'] else 0\n    if action == 'separator-span':\n        return sum(p['columns'])+p['gap']*(len(p['columns'])-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('indicator-column contract', solve('indicator-column', [{'visible':False,'indicator_width':N+10},{'visible':True,'indicator_width':2}]), 2)\ncheck('badge contract', solve('badge', {'count':0,'revision':N}), '0')\ncheck('label-command contract', solve('label-command', {'command':'cmd'+str(N),'label':'Copy','badge':'2'}), 'cmd'+str(N))\ncheck('suffix-order contract', solve('suffix-order', {'label':'Item '+str(N),'suffix':'(new)'}), 'Item '+str(N)+' (new)')\ncheck('icon-space contract', solve('icon-space', {'column_width':N+4,'column_enabled':True,'own_width':0}), N+4)\ncheck('separator-span contract', solve('separator-span', {'columns':[N,10,4],'gap':2}), N+18)\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-row-decoration-indicator-column","generated_at":"2026-09-29T14:42:21.619792+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.","repair":"Apply `max((x['indicator_width'] for x in p if x['visible']),default=0)` at indicator-column.","root_cause":"The menu-row-decoration model applies `max((x['indicator_width'] for x in p),default=0)` at its indicator-column operation instead of the stipulated transformation.","sha256":"6dab5458b1969851fe8120402aa6fc413e8af3aa71771a17d73aaa95a258009d","title":"Hidden submenu indicator widens every visible menu row · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.887,"exit_code":1,"observations":[{"actual":13,"check":"indicator-column contract","expected":2,"passed":false},{"actual":"0","check":"badge contract","expected":"0","passed":true},{"actual":"cmd1","check":"label-command contract","expected":"cmd1","passed":true},{"actual":"Item 1 (new)","check":"suffix-order contract","expected":"Item 1 (new)","passed":true},{"actual":5,"check":"icon-space contract","expected":5,"passed":true},{"actual":19,"check":"separator-span contract","expected":19,"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"indicator-column contract\", \"actual\": 13, \"expected\": 2, \"passed\": false}, {\"check\": \"badge contract\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"label-command contract\", \"actual\": \"cmd1\", \"expected\": \"cmd1\", \"passed\": true}, {\"check\": \"suffix-order contract\", \"actual\": \"Item 1 (new)\", \"expected\": \"Item 1 (new)\", \"passed\": true}, {\"check\": \"icon-space contract\", \"actual\": 5, \"expected\": 5, \"passed\": true}, {\"check\": \"separator-span contract\", \"actual\": 19, \"expected\": 19, \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.11,"exit_code":1,"observations":[{"actual":11,"check":"indicator-column contract","expected":2,"passed":false},{"actual":"0","check":"badge contract","expected":"0","passed":true},{"actual":"cmd1","check":"label-command contract","expected":"cmd1","passed":true},{"actual":"Item 1 (new)","check":"suffix-order contract","expected":"Item 1 (new)","passed":true},{"actual":5,"check":"icon-space contract","expected":5,"passed":true},{"actual":19,"check":"separator-span contract","expected":19,"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"indicator-column contract\", \"actual\": 11, \"expected\": 2, \"passed\": false}, {\"check\": \"badge contract\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"label-command contract\", \"actual\": \"cmd1\", \"expected\": \"cmd1\", \"passed\": true}, {\"check\": \"suffix-order contract\", \"actual\": \"Item 1 (new)\", \"expected\": \"Item 1 (new)\", \"passed\": true}, {\"check\": \"icon-space contract\", \"actual\": 5, \"expected\": 5, \"passed\": true}, {\"check\": \"separator-span contract\", \"actual\": 19, \"expected\": 19, \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":43.705,"exit_code":0,"observations":[{"actual":2,"check":"indicator-column contract","expected":2,"passed":true},{"actual":"0","check":"badge contract","expected":"0","passed":true},{"actual":"cmd1","check":"label-command contract","expected":"cmd1","passed":true},{"actual":"Item 1 (new)","check":"suffix-order contract","expected":"Item 1 (new)","passed":true},{"actual":5,"check":"icon-space contract","expected":5,"passed":true},{"actual":19,"check":"separator-span contract","expected":19,"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"indicator-column contract\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"badge contract\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"label-command contract\", \"actual\": \"cmd1\", \"expected\": \"cmd1\", \"passed\": true}, {\"check\": \"suffix-order contract\", \"actual\": \"Item 1 (new)\", \"expected\": \"Item 1 (new)\", \"passed\": true}, {\"check\": \"icon-space contract\", \"actual\": 5, \"expected\": 5, \"passed\": true}, {\"check\": \"separator-span contract\", \"actual\": 19, \"expected\": 19, \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}