{"abstract":"Recoverable menu command failure loses retry state.","category":"Menu interactions","checks":7,"contract":"Menu command transactions have explicit preparation, execution, success and failure phases; close policy and duplicate suppression are separate.","contract_signature":"action, p","evaluation_group":"s3-menu-interactions-dispatch-lifecycle","failed_approach":"The attempted repair `{'state':'failed','error':p['error'],'retry':False}` still violates the failure oracle.","family":"s3-menu-interactions-dispatch-lifecycle-failure","id":"FA-32626","implementations":{"attempt":{"sha256":"080b2ca8e746e87ed9fb9119bc9888704bc32615e97e965b95a9fe5e75eacbca","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 == 'prepare':\n        return 'prepared' if p['validated'] and p['authorized'] else 'rejected'\n    if action == 'pending':\n        return p['state']=='prepared' and not p['inflight']\n    if action == 'success-close':\n        return p['success'] and p['policy']=='success'\n    if action == 'failure':\n        return {'state':'failed','error':p['error'],'retry':False}\n    if action == 'retry-id':\n        return {'command':p['command'],'attempt':p['attempt']+1,'context':p['context']}\n    if action == 'completion':\n        return p['transaction']==p['pending']\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('prepare contract', solve('prepare', {'validated':True,'authorized':False,'command':N}), 'rejected')\ncheck('pending contract', solve('pending', {'state':'prepared','inflight':True,'id':N}), False)\ncheck('success-close contract', solve('success-close', {'success':False,'policy':'success','id':N}), False)\ncheck('failure contract', solve('failure', {'error':'e'+str(N),'retryable':True}), {'state':'failed','error':'e'+str(N),'retry':True})\ncheck('retry-id contract', solve('retry-id', {'command':'copy','attempt':N,'context':'doc'}), {'command':'copy','attempt':N+1,'context':'doc'})\ncheck('completion contract', solve('completion', {'transaction':N,'pending':N+1}), False)\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":"158994b0a2ccaab0e2aa25a07b7f74e9485472ccd7daca708821b40d085a34ef","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 == 'prepare':\n        return 'prepared' if p['validated'] and p['authorized'] else 'rejected'\n    if action == 'pending':\n        return p['state']=='prepared' and not p['inflight']\n    if action == 'success-close':\n        return p['success'] and p['policy']=='success'\n    if action == 'failure':\n        return {'state':'done','error':None,'retry':False}\n    if action == 'retry-id':\n        return {'command':p['command'],'attempt':p['attempt']+1,'context':p['context']}\n    if action == 'completion':\n        return p['transaction']==p['pending']\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('prepare contract', solve('prepare', {'validated':True,'authorized':False,'command':N}), 'rejected')\ncheck('pending contract', solve('pending', {'state':'prepared','inflight':True,'id':N}), False)\ncheck('success-close contract', solve('success-close', {'success':False,'policy':'success','id':N}), False)\ncheck('failure contract', solve('failure', {'error':'e'+str(N),'retryable':True}), {'state':'failed','error':'e'+str(N),'retry':True})\ncheck('retry-id contract', solve('retry-id', {'command':'copy','attempt':N,'context':'doc'}), {'command':'copy','attempt':N+1,'context':'doc'})\ncheck('completion contract', solve('completion', {'transaction':N,'pending':N+1}), False)\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-dispatch-lifecycle-failure","generated_at":"2026-09-29T14:42:14.198425+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.","root_cause":"The dispatch-lifecycle model applies `{'state':'done','error':None,'retry':False}` at its failure operation instead of the stipulated transformation.","sha256":"1d1e2fc2169035dc5f858d1feb3b7121f64474ef759f699a1297b7bcdcce4108","title":"Recoverable menu command failure loses retry state · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":42.618,"exit_code":1,"observations":[{"actual":"rejected","check":"prepare contract","expected":"rejected","passed":true},{"actual":false,"check":"pending contract","expected":false,"passed":true},{"actual":false,"check":"success-close contract","expected":false,"passed":true},{"actual":{"error":"e1","retry":false,"state":"failed"},"check":"failure contract","expected":{"error":"e1","retry":true,"state":"failed"},"passed":false},{"actual":{"attempt":2,"command":"copy","context":"doc"},"check":"retry-id contract","expected":{"attempt":2,"command":"copy","context":"doc"},"passed":true},{"actual":false,"check":"completion contract","expected":false,"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"prepare contract\", \"actual\": \"rejected\", \"expected\": \"rejected\", \"passed\": true}, {\"check\": \"pending contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"success-close contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"failure contract\", \"actual\": {\"state\": \"failed\", \"error\": \"e1\", \"retry\": false}, \"expected\": {\"state\": \"failed\", \"error\": \"e1\", \"retry\": true}, \"passed\": false}, {\"check\": \"retry-id contract\", \"actual\": {\"command\": \"copy\", \"attempt\": 2, \"context\": \"doc\"}, \"expected\": {\"command\": \"copy\", \"attempt\": 2, \"context\": \"doc\"}, \"passed\": true}, {\"check\": \"completion contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.976,"exit_code":1,"observations":[{"actual":"rejected","check":"prepare contract","expected":"rejected","passed":true},{"actual":false,"check":"pending contract","expected":false,"passed":true},{"actual":false,"check":"success-close contract","expected":false,"passed":true},{"actual":{"error":null,"retry":false,"state":"done"},"check":"failure contract","expected":{"error":"e1","retry":true,"state":"failed"},"passed":false},{"actual":{"attempt":2,"command":"copy","context":"doc"},"check":"retry-id contract","expected":{"attempt":2,"command":"copy","context":"doc"},"passed":true},{"actual":false,"check":"completion contract","expected":false,"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"prepare contract\", \"actual\": \"rejected\", \"expected\": \"rejected\", \"passed\": true}, {\"check\": \"pending contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"success-close contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"failure contract\", \"actual\": {\"state\": \"done\", \"error\": null, \"retry\": false}, \"expected\": {\"state\": \"failed\", \"error\": \"e1\", \"retry\": true}, \"passed\": false}, {\"check\": \"retry-id contract\", \"actual\": {\"command\": \"copy\", \"attempt\": 2, \"context\": \"doc\"}, \"expected\": {\"command\": \"copy\", \"attempt\": 2, \"context\": \"doc\"}, \"passed\": true}, {\"check\": \"completion contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}