{"abstract":"Menu retry control forgets consumed provider retry attempts.","category":"Menu interactions","checks":7,"contract":"A failed menu provider is isolated to its owned section; fallback content and error records are distinct, and recovery clears only that provider error.","evaluation_group":"s3-menu-interactions-menu-provider-error-boundary","failed_approach":"The attempted repair `p['budget']-1` still violates the retry-budget oracle.","family":"s3-menu-interactions-menu-provider-error-boundary-retry-budget","id":"FA-33686","implementations":{"attempt":{"sha256":"9f4c86b5246babd2713773a933f36b01bcd2a9e500f0a296d2d0f05c42eec031","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 == 'isolate':\n        return [x for x in p['rows'] if x['provider']!=p['failed']]\n    if action == 'fallback':\n        return p['fallback'] if p['failed'] else p['content']\n    if action == 'error-record':\n        return {'provider':p['provider'],'code':p['code'],'generation':p['generation']}\n    if action == 'recovery':\n        return {k:v for k,v in p['errors'].items() if k!=p['provider']}\n    if action == 'fatal':\n        return p['fallback'] if not p['fatal'] else []\n    if action == 'retry-budget':\n        return p['budget']-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('isolate contract', solve('isolate', {'rows':[{'provider':'a','id':N},{'provider':'b','id':N+1}],'failed':'a'}), [{'provider':'b','id':N+1}])\ncheck('fallback contract', solve('fallback', {'failed':True,'fallback':[N],'content':[N+1]}), [N])\ncheck('error-record contract', solve('error-record', {'provider':'child','root':'root','code':'parse','generation':N}), {'provider':'child','code':'parse','generation':N})\ncheck('recovery contract', solve('recovery', {'errors':{'a':N,'b':N+1},'provider':'a'}), {'b':N+1})\ncheck('fatal contract', solve('fatal', {'fallback':[N],'fatal':True}), [])\ncheck('retry-budget contract', solve('retry-budget', {'budget':N+4,'attempts':3}), N+1)\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":"57e6916d84aad09e08f9bb353fbc5bbb7746f125d84ceddcbfc55f5aad2cdfb3","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 == 'isolate':\n        return [x for x in p['rows'] if x['provider']!=p['failed']]\n    if action == 'fallback':\n        return p['fallback'] if p['failed'] else p['content']\n    if action == 'error-record':\n        return {'provider':p['provider'],'code':p['code'],'generation':p['generation']}\n    if action == 'recovery':\n        return {k:v for k,v in p['errors'].items() if k!=p['provider']}\n    if action == 'fatal':\n        return p['fallback'] if not p['fatal'] else []\n    if action == 'retry-budget':\n        return p['budget']\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('isolate contract', solve('isolate', {'rows':[{'provider':'a','id':N},{'provider':'b','id':N+1}],'failed':'a'}), [{'provider':'b','id':N+1}])\ncheck('fallback contract', solve('fallback', {'failed':True,'fallback':[N],'content':[N+1]}), [N])\ncheck('error-record contract', solve('error-record', {'provider':'child','root':'root','code':'parse','generation':N}), {'provider':'child','code':'parse','generation':N})\ncheck('recovery contract', solve('recovery', {'errors':{'a':N,'b':N+1},'provider':'a'}), {'b':N+1})\ncheck('fatal contract', solve('fatal', {'fallback':[N],'fatal':True}), [])\ncheck('retry-budget contract', solve('retry-budget', {'budget':N+4,'attempts':3}), N+1)\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":"44cff4c146a29b2f1b1931cddf3828115c1b1f56dc741a80369330057c847753","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 == 'isolate':\n        return [x for x in p['rows'] if x['provider']!=p['failed']]\n    if action == 'fallback':\n        return p['fallback'] if p['failed'] else p['content']\n    if action == 'error-record':\n        return {'provider':p['provider'],'code':p['code'],'generation':p['generation']}\n    if action == 'recovery':\n        return {k:v for k,v in p['errors'].items() if k!=p['provider']}\n    if action == 'fatal':\n        return p['fallback'] if not p['fatal'] else []\n    if action == 'retry-budget':\n        return max(0,p['budget']-p['attempts'])\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('isolate contract', solve('isolate', {'rows':[{'provider':'a','id':N},{'provider':'b','id':N+1}],'failed':'a'}), [{'provider':'b','id':N+1}])\ncheck('fallback contract', solve('fallback', {'failed':True,'fallback':[N],'content':[N+1]}), [N])\ncheck('error-record contract', solve('error-record', {'provider':'child','root':'root','code':'parse','generation':N}), {'provider':'child','code':'parse','generation':N})\ncheck('recovery contract', solve('recovery', {'errors':{'a':N,'b':N+1},'provider':'a'}), {'b':N+1})\ncheck('fatal contract', solve('fatal', {'fallback':[N],'fatal':True}), [])\ncheck('retry-budget contract', solve('retry-budget', {'budget':N+4,'attempts':3}), N+1)\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-provider-error-boundary-retry-budget","generated_at":"2026-09-29T14:42:24.762845+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(0,p['budget']-p['attempts'])` at retry-budget.","root_cause":"The menu-provider-error-boundary model applies `p['budget']` at its retry-budget operation instead of the stipulated transformation.","sha256":"c9ce61cde5a8466faaa5d0fa73d31766d8bd4e540b01dbd3706bc007f89fabf7","title":"Menu retry control forgets consumed provider retry attempts · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.715,"exit_code":1,"observations":[{"actual":[{"id":2,"provider":"b"}],"check":"isolate contract","expected":[{"id":2,"provider":"b"}],"passed":true},{"actual":[1],"check":"fallback contract","expected":[1],"passed":true},{"actual":{"code":"parse","generation":1,"provider":"child"},"check":"error-record contract","expected":{"code":"parse","generation":1,"provider":"child"},"passed":true},{"actual":{"b":2},"check":"recovery contract","expected":{"b":2},"passed":true},{"actual":[],"check":"fatal contract","expected":[],"passed":true},{"actual":4,"check":"retry-budget contract","expected":2,"passed":false},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"isolate contract\", \"actual\": [{\"provider\": \"b\", \"id\": 2}], \"expected\": [{\"provider\": \"b\", \"id\": 2}], \"passed\": true}, {\"check\": \"fallback contract\", \"actual\": [1], \"expected\": [1], \"passed\": true}, {\"check\": \"error-record contract\", \"actual\": {\"provider\": \"child\", \"code\": \"parse\", \"generation\": 1}, \"expected\": {\"provider\": \"child\", \"code\": \"parse\", \"generation\": 1}, \"passed\": true}, {\"check\": \"recovery contract\", \"actual\": {\"b\": 2}, \"expected\": {\"b\": 2}, \"passed\": true}, {\"check\": \"fatal contract\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"retry-budget contract\", \"actual\": 4, \"expected\": 2, \"passed\": false}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":44.103,"exit_code":1,"observations":[{"actual":[{"id":2,"provider":"b"}],"check":"isolate contract","expected":[{"id":2,"provider":"b"}],"passed":true},{"actual":[1],"check":"fallback contract","expected":[1],"passed":true},{"actual":{"code":"parse","generation":1,"provider":"child"},"check":"error-record contract","expected":{"code":"parse","generation":1,"provider":"child"},"passed":true},{"actual":{"b":2},"check":"recovery contract","expected":{"b":2},"passed":true},{"actual":[],"check":"fatal contract","expected":[],"passed":true},{"actual":5,"check":"retry-budget contract","expected":2,"passed":false},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"isolate contract\", \"actual\": [{\"provider\": \"b\", \"id\": 2}], \"expected\": [{\"provider\": \"b\", \"id\": 2}], \"passed\": true}, {\"check\": \"fallback contract\", \"actual\": [1], \"expected\": [1], \"passed\": true}, {\"check\": \"error-record contract\", \"actual\": {\"provider\": \"child\", \"code\": \"parse\", \"generation\": 1}, \"expected\": {\"provider\": \"child\", \"code\": \"parse\", \"generation\": 1}, \"passed\": true}, {\"check\": \"recovery contract\", \"actual\": {\"b\": 2}, \"expected\": {\"b\": 2}, \"passed\": true}, {\"check\": \"fatal contract\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"retry-budget contract\", \"actual\": 5, \"expected\": 2, \"passed\": false}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.077,"exit_code":0,"observations":[{"actual":[{"id":2,"provider":"b"}],"check":"isolate contract","expected":[{"id":2,"provider":"b"}],"passed":true},{"actual":[1],"check":"fallback contract","expected":[1],"passed":true},{"actual":{"code":"parse","generation":1,"provider":"child"},"check":"error-record contract","expected":{"code":"parse","generation":1,"provider":"child"},"passed":true},{"actual":{"b":2},"check":"recovery contract","expected":{"b":2},"passed":true},{"actual":[],"check":"fatal contract","expected":[],"passed":true},{"actual":2,"check":"retry-budget contract","expected":2,"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"isolate contract\", \"actual\": [{\"provider\": \"b\", \"id\": 2}], \"expected\": [{\"provider\": \"b\", \"id\": 2}], \"passed\": true}, {\"check\": \"fallback contract\", \"actual\": [1], \"expected\": [1], \"passed\": true}, {\"check\": \"error-record contract\", \"actual\": {\"provider\": \"child\", \"code\": \"parse\", \"generation\": 1}, \"expected\": {\"provider\": \"child\", \"code\": \"parse\", \"generation\": 1}, \"passed\": true}, {\"check\": \"recovery contract\", \"actual\": {\"b\": 2}, \"expected\": {\"b\": 2}, \"passed\": true}, {\"check\": \"fatal contract\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"retry-budget contract\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}