{"abstract":"Retryable submenu failure omits its retry affordance.","category":"Menu interactions","checks":8,"contract":"Lazy submenu presentation distinguishes first load, refresh, stale content, retryable failure and empty success without disguising provider state as commands.","evaluation_group":"s3-menu-interactions-provider-state-presentation","failed_approach":"The attempted repair `['retry']` still violates the retryable oracle.","family":"s3-menu-interactions-provider-state-presentation-retryable","id":"FA-33101","implementations":{"attempt":{"sha256":"65729f4c51f2a4b63526a057028e95e20d8e618ddaacfe0891df87023e37881a","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 == 'initial':\n        return ['loading'] if p['loading'] and not p['rows'] else p['rows']\n    if action == 'refresh':\n        return p['rows']+(['refreshing'] if p['loading'] else [])\n    if action == 'retryable':\n        return ['retry']\n    if action == 'stale-error':\n        return p['rows']+['stale','error']\n    if action == 'empty-success':\n        return ['empty'] if p['completed'] and not p['rows'] else p['rows']\n    if action == 'status-actionable':\n        return [x for x in p if x['kind']=='command']\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('initial contract', solve('initial', {'loading':True,'rows':[],'generation':N}), ['loading'])\ncheck('refresh contract', solve('refresh', {'loading':True,'rows':[N,N+1]}), [N,N+1,'refreshing'])\ncheck('retryable contract', solve('retryable', {'retryable':True,'code':N}), ['error','retry'])\ncheck('stale-error contract', solve('stale-error', {'rows':[N],'error':'offline'}), [N,'stale','error'])\ncheck('empty-success contract', solve('empty-success', {'completed':True,'rows':[],'version':N}), ['empty'])\ncheck('status-actionable contract', solve('status-actionable', [{'kind':'error','id':N},{'kind':'command','id':N+1}]), [{'kind':'command','id':N+1}])\ncheck('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})\ncheck('initial content ready',solve('initial',{'loading':False,'rows':[N]}),[N])\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":"98ca4bd1c121cafd5fb300de5d09f39154789482dad9f7e0ab1577f6cdc5f60c","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 == 'initial':\n        return ['loading'] if p['loading'] and not p['rows'] else p['rows']\n    if action == 'refresh':\n        return p['rows']+(['refreshing'] if p['loading'] else [])\n    if action == 'retryable':\n        return ['error']\n    if action == 'stale-error':\n        return p['rows']+['stale','error']\n    if action == 'empty-success':\n        return ['empty'] if p['completed'] and not p['rows'] else p['rows']\n    if action == 'status-actionable':\n        return [x for x in p if x['kind']=='command']\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('initial contract', solve('initial', {'loading':True,'rows':[],'generation':N}), ['loading'])\ncheck('refresh contract', solve('refresh', {'loading':True,'rows':[N,N+1]}), [N,N+1,'refreshing'])\ncheck('retryable contract', solve('retryable', {'retryable':True,'code':N}), ['error','retry'])\ncheck('stale-error contract', solve('stale-error', {'rows':[N],'error':'offline'}), [N,'stale','error'])\ncheck('empty-success contract', solve('empty-success', {'completed':True,'rows':[],'version':N}), ['empty'])\ncheck('status-actionable contract', solve('status-actionable', [{'kind':'error','id':N},{'kind':'command','id':N+1}]), [{'kind':'command','id':N+1}])\ncheck('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})\ncheck('initial content ready',solve('initial',{'loading':False,'rows':[N]}),[N])\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":"a6b2be79553a66247f441d499dd57a05e70857449f1c6d43f1b74bb943f0e044","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 == 'initial':\n        return ['loading'] if p['loading'] and not p['rows'] else p['rows']\n    if action == 'refresh':\n        return p['rows']+(['refreshing'] if p['loading'] else [])\n    if action == 'retryable':\n        return ['error', 'retry'] if p['retryable'] else ['error']\n    if action == 'stale-error':\n        return p['rows']+['stale','error']\n    if action == 'empty-success':\n        return ['empty'] if p['completed'] and not p['rows'] else p['rows']\n    if action == 'status-actionable':\n        return [x for x in p if x['kind']=='command']\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('initial contract', solve('initial', {'loading':True,'rows':[],'generation':N}), ['loading'])\ncheck('refresh contract', solve('refresh', {'loading':True,'rows':[N,N+1]}), [N,N+1,'refreshing'])\ncheck('retryable contract', solve('retryable', {'retryable':True,'code':N}), ['error','retry'])\ncheck('stale-error contract', solve('stale-error', {'rows':[N],'error':'offline'}), [N,'stale','error'])\ncheck('empty-success contract', solve('empty-success', {'completed':True,'rows':[],'version':N}), ['empty'])\ncheck('status-actionable contract', solve('status-actionable', [{'kind':'error','id':N},{'kind':'command','id':N+1}]), [{'kind':'command','id':N+1}])\ncheck('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})\ncheck('initial content ready',solve('initial',{'loading':False,'rows':[N]}),[N])\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-provider-state-presentation-retryable","generated_at":"2026-09-29T14:42:18.878926+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 `['error', 'retry'] if p['retryable'] else ['error']` at retryable.","root_cause":"The provider-state-presentation model applies `['error']` at its retryable operation instead of the stipulated transformation.","sha256":"190e7196c989ee5e94bde742ba2ad8f42609c89eab3f305adf269b0ff143acc7","title":"Retryable submenu failure omits its retry affordance · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":43.676,"exit_code":1,"observations":[{"actual":["loading"],"check":"initial contract","expected":["loading"],"passed":true},{"actual":[1,2,"refreshing"],"check":"refresh contract","expected":[1,2,"refreshing"],"passed":true},{"actual":["retry"],"check":"retryable contract","expected":["error","retry"],"passed":false},{"actual":[1,"stale","error"],"check":"stale-error contract","expected":[1,"stale","error"],"passed":true},{"actual":["empty"],"check":"empty-success contract","expected":["empty"],"passed":true},{"actual":[{"id":2,"kind":"command"}],"check":"status-actionable contract","expected":[{"id":2,"kind":"command"}],"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true},{"actual":[1],"check":"initial content ready","expected":[1],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"initial contract\", \"actual\": [\"loading\"], \"expected\": [\"loading\"], \"passed\": true}, {\"check\": \"refresh contract\", \"actual\": [1, 2, \"refreshing\"], \"expected\": [1, 2, \"refreshing\"], \"passed\": true}, {\"check\": \"retryable contract\", \"actual\": [\"retry\"], \"expected\": [\"error\", \"retry\"], \"passed\": false}, {\"check\": \"stale-error contract\", \"actual\": [1, \"stale\", \"error\"], \"expected\": [1, \"stale\", \"error\"], \"passed\": true}, {\"check\": \"empty-success contract\", \"actual\": [\"empty\"], \"expected\": [\"empty\"], \"passed\": true}, {\"check\": \"status-actionable contract\", \"actual\": [{\"kind\": \"command\", \"id\": 2}], \"expected\": [{\"kind\": \"command\", \"id\": 2}], \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}, {\"check\": \"initial content ready\", \"actual\": [1], \"expected\": [1], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.437,"exit_code":1,"observations":[{"actual":["loading"],"check":"initial contract","expected":["loading"],"passed":true},{"actual":[1,2,"refreshing"],"check":"refresh contract","expected":[1,2,"refreshing"],"passed":true},{"actual":["error"],"check":"retryable contract","expected":["error","retry"],"passed":false},{"actual":[1,"stale","error"],"check":"stale-error contract","expected":[1,"stale","error"],"passed":true},{"actual":["empty"],"check":"empty-success contract","expected":["empty"],"passed":true},{"actual":[{"id":2,"kind":"command"}],"check":"status-actionable contract","expected":[{"id":2,"kind":"command"}],"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true},{"actual":[1],"check":"initial content ready","expected":[1],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"initial contract\", \"actual\": [\"loading\"], \"expected\": [\"loading\"], \"passed\": true}, {\"check\": \"refresh contract\", \"actual\": [1, 2, \"refreshing\"], \"expected\": [1, 2, \"refreshing\"], \"passed\": true}, {\"check\": \"retryable contract\", \"actual\": [\"error\"], \"expected\": [\"error\", \"retry\"], \"passed\": false}, {\"check\": \"stale-error contract\", \"actual\": [1, \"stale\", \"error\"], \"expected\": [1, \"stale\", \"error\"], \"passed\": true}, {\"check\": \"empty-success contract\", \"actual\": [\"empty\"], \"expected\": [\"empty\"], \"passed\": true}, {\"check\": \"status-actionable contract\", \"actual\": [{\"kind\": \"command\", \"id\": 2}], \"expected\": [{\"kind\": \"command\", \"id\": 2}], \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}, {\"check\": \"initial content ready\", \"actual\": [1], \"expected\": [1], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":43.465,"exit_code":0,"observations":[{"actual":["loading"],"check":"initial contract","expected":["loading"],"passed":true},{"actual":[1,2,"refreshing"],"check":"refresh contract","expected":[1,2,"refreshing"],"passed":true},{"actual":["error","retry"],"check":"retryable contract","expected":["error","retry"],"passed":true},{"actual":[1,"stale","error"],"check":"stale-error contract","expected":[1,"stale","error"],"passed":true},{"actual":["empty"],"check":"empty-success contract","expected":["empty"],"passed":true},{"actual":[{"id":2,"kind":"command"}],"check":"status-actionable contract","expected":[{"id":2,"kind":"command"}],"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true},{"actual":[1],"check":"initial content ready","expected":[1],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"initial contract\", \"actual\": [\"loading\"], \"expected\": [\"loading\"], \"passed\": true}, {\"check\": \"refresh contract\", \"actual\": [1, 2, \"refreshing\"], \"expected\": [1, 2, \"refreshing\"], \"passed\": true}, {\"check\": \"retryable contract\", \"actual\": [\"error\", \"retry\"], \"expected\": [\"error\", \"retry\"], \"passed\": true}, {\"check\": \"stale-error contract\", \"actual\": [1, \"stale\", \"error\"], \"expected\": [1, \"stale\", \"error\"], \"passed\": true}, {\"check\": \"empty-success contract\", \"actual\": [\"empty\"], \"expected\": [\"empty\"], \"passed\": true}, {\"check\": \"status-actionable contract\", \"actual\": [{\"kind\": \"command\", \"id\": 2}], \"expected\": [{\"kind\": \"command\", \"id\": 2}], \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}, {\"check\": \"initial content ready\", \"actual\": [1], \"expected\": [1], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}