{"abstract":"Provider error status row is treated as a menu command.","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 `[x for x in p if x['kind']!='loading']` still violates the status-actionable oracle.","family":"s3-menu-interactions-provider-state-presentation-status-actionable","id":"FA-33116","implementations":{"attempt":{"sha256":"c39bf6ffc2c31544b3bf9883e602bbb8af3f680fd5b3e96ce7aa5419a1d75165","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']!='loading']\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":"ab3795be805f3df09dc9e146542edf18f50045530fafbc04883eaae7cba84265","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 p\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-status-actionable","generated_at":"2026-09-29T14:42:19.098907+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 `[x for x in p if x['kind']=='command']` at status-actionable.","root_cause":"The provider-state-presentation model applies `p` at its status-actionable operation instead of the stipulated transformation.","sha256":"bf6f28c7e9cfd45f9addd5b381e0509f5bad9f9d8b74437cfb4f4b29f13904ad","title":"Provider error status row is treated as a menu command · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":52.489,"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","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":1,"kind":"error"},{"id":2,"kind":"command"}],"check":"status-actionable contract","expected":[{"id":2,"kind":"command"}],"passed":false},{"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\", \"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\": \"error\", \"id\": 1}, {\"kind\": \"command\", \"id\": 2}], \"expected\": [{\"kind\": \"command\", \"id\": 2}], \"passed\": false}, {\"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":44.253,"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","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":1,"kind":"error"},{"id":2,"kind":"command"}],"check":"status-actionable contract","expected":[{"id":2,"kind":"command"}],"passed":false},{"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\", \"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\": \"error\", \"id\": 1}, {\"kind\": \"command\", \"id\": 2}], \"expected\": [{\"kind\": \"command\", \"id\": 2}], \"passed\": false}, {\"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":48.064,"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"}