{"abstract":"Successful empty provider is confused with pending menu content.","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 `['loading'] if not p['rows'] else p['rows']` still violates the empty-success oracle.","family":"s3-menu-interactions-provider-state-presentation-empty-success","id":"FA-33111","implementations":{"attempt":{"sha256":"db2423fe965fd9a6500f36a119c18cf34ff91e60caafd1fbf572b1df3da80344","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 ['loading'] if 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":"900f1a00296b02479fa0f23dff398f089e641e96f68a788f982a173b155c9f1a","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 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-empty-success","generated_at":"2026-09-29T14:42:19.046850+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 `['empty'] if p['completed'] and not p['rows'] else p['rows']` at empty-success.","root_cause":"The provider-state-presentation model applies `p['rows']` at its empty-success operation instead of the stipulated transformation.","sha256":"47eb73003d6b28f321becbaf952d1fcfe08fddd9f1cfdeaa9b357f29c4183a66","title":"Successful empty provider is confused with pending menu content · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":50.362,"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":["loading"],"check":"empty-success contract","expected":["empty"],"passed":false},{"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\", \"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\": [\"loading\"], \"expected\": [\"empty\"], \"passed\": false}, {\"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.984,"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":[],"check":"empty-success contract","expected":["empty"],"passed":false},{"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\", \"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\": [], \"expected\": [\"empty\"], \"passed\": false}, {\"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":48.111,"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"}