{"abstract":"Equal-version menu snapshots unnecessarily replace live content.","category":"Menu interactions","checks":7,"contract":"Refreshing an open menu reconciles immutable command IDs, provider revisions and annotations without confusing display positions with identity.","evaluation_group":"s3-menu-interactions-menu-snapshot-refresh","failed_approach":"The attempted repair `True` still violates the provider-version oracle.","family":"s3-menu-interactions-menu-snapshot-refresh-provider-version","id":"FA-32866","implementations":{"attempt":{"sha256":"f5f1f4b0b5374dd4d2e792c9f597ed833af05c781d2dc2283a04b401ef6a8e13","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 == 'retain-live':\n        return [x for x in p['old'] if x in p['new']]\n    if action == 'new-order':\n        return [x for x in p['new'] if x in p['old']]\n    if action == 'annotation':\n        return {x:p['annotations'][x] for x in p['new'] if x in p['annotations']}\n    if action == 'provider-version':\n        return True\n    if action == 'path-valid':\n        return all(x in p['parents'] and p['parents'][x]==y for y,x in zip(p['chain'],p['chain'][1:]))\n    if action == 'anchor-id':\n        return next((i for i,x in enumerate(p['rows']) if x==p['owner']),None)\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('retain-live contract', solve('retain-live', {'old':[N,N+1],'new':[N+1,N+2]}), [N+1])\ncheck('new-order contract', solve('new-order', {'old':[N,N+1],'new':[N+1,N]}), [N+1,N])\ncheck('annotation contract', solve('annotation', {'new':['a'],'annotations':{'a':N,'gone':N+1}}), {'a':N})\ncheck('provider-version contract', solve('provider-version', {'incoming':N,'current':N}), False)\ncheck('path-valid contract', solve('path-valid', {'chain':['r','a',str(N)],'parents':{'a':'r',str(N):'other'}}), False)\ncheck('anchor-id contract', solve('anchor-id', {'rows':['x','y','owner'+str(N)],'owner':'owner'+str(N),'old_index':1}), 2)\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":"1303d62664b5175513a7a42ceda961c4d228e3ddbfe481892e541d7a90d1f6af","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 == 'retain-live':\n        return [x for x in p['old'] if x in p['new']]\n    if action == 'new-order':\n        return [x for x in p['new'] if x in p['old']]\n    if action == 'annotation':\n        return {x:p['annotations'][x] for x in p['new'] if x in p['annotations']}\n    if action == 'provider-version':\n        return p['incoming']>=p['current']\n    if action == 'path-valid':\n        return all(x in p['parents'] and p['parents'][x]==y for y,x in zip(p['chain'],p['chain'][1:]))\n    if action == 'anchor-id':\n        return next((i for i,x in enumerate(p['rows']) if x==p['owner']),None)\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('retain-live contract', solve('retain-live', {'old':[N,N+1],'new':[N+1,N+2]}), [N+1])\ncheck('new-order contract', solve('new-order', {'old':[N,N+1],'new':[N+1,N]}), [N+1,N])\ncheck('annotation contract', solve('annotation', {'new':['a'],'annotations':{'a':N,'gone':N+1}}), {'a':N})\ncheck('provider-version contract', solve('provider-version', {'incoming':N,'current':N}), False)\ncheck('path-valid contract', solve('path-valid', {'chain':['r','a',str(N)],'parents':{'a':'r',str(N):'other'}}), False)\ncheck('anchor-id contract', solve('anchor-id', {'rows':['x','y','owner'+str(N)],'owner':'owner'+str(N),'old_index':1}), 2)\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":"e5e786fe9f306d2f561b29e4fc91cac9805d2ffe825254ca3106b58c592f5932","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 == 'retain-live':\n        return [x for x in p['old'] if x in p['new']]\n    if action == 'new-order':\n        return [x for x in p['new'] if x in p['old']]\n    if action == 'annotation':\n        return {x:p['annotations'][x] for x in p['new'] if x in p['annotations']}\n    if action == 'provider-version':\n        return p['incoming']>p['current']\n    if action == 'path-valid':\n        return all(x in p['parents'] and p['parents'][x]==y for y,x in zip(p['chain'],p['chain'][1:]))\n    if action == 'anchor-id':\n        return next((i for i,x in enumerate(p['rows']) if x==p['owner']),None)\n    return {'error': 'unsupported menu operation'}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('retain-live contract', solve('retain-live', {'old':[N,N+1],'new':[N+1,N+2]}), [N+1])\ncheck('new-order contract', solve('new-order', {'old':[N,N+1],'new':[N+1,N]}), [N+1,N])\ncheck('annotation contract', solve('annotation', {'new':['a'],'annotations':{'a':N,'gone':N+1}}), {'a':N})\ncheck('provider-version contract', solve('provider-version', {'incoming':N,'current':N}), False)\ncheck('path-valid contract', solve('path-valid', {'chain':['r','a',str(N)],'parents':{'a':'r',str(N):'other'}}), False)\ncheck('anchor-id contract', solve('anchor-id', {'rows':['x','y','owner'+str(N)],'owner':'owner'+str(N),'old_index':1}), 2)\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-snapshot-refresh-provider-version","generated_at":"2026-09-29T14:42:16.541178+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 `p['incoming']>p['current']` at provider-version.","root_cause":"The menu-snapshot-refresh model applies `p['incoming']>=p['current']` at its provider-version operation instead of the stipulated transformation.","sha256":"5046ab120c7269066830a98e5f30c93b321d2d7a61fe51357db072c99231fa80","title":"Equal-version menu snapshots unnecessarily replace live content · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.689,"exit_code":1,"observations":[{"actual":[2],"check":"retain-live contract","expected":[2],"passed":true},{"actual":[2,1],"check":"new-order contract","expected":[2,1],"passed":true},{"actual":{"a":1},"check":"annotation contract","expected":{"a":1},"passed":true},{"actual":true,"check":"provider-version contract","expected":false,"passed":false},{"actual":false,"check":"path-valid contract","expected":false,"passed":true},{"actual":2,"check":"anchor-id contract","expected":2,"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"retain-live contract\", \"actual\": [2], \"expected\": [2], \"passed\": true}, {\"check\": \"new-order contract\", \"actual\": [2, 1], \"expected\": [2, 1], \"passed\": true}, {\"check\": \"annotation contract\", \"actual\": {\"a\": 1}, \"expected\": {\"a\": 1}, \"passed\": true}, {\"check\": \"provider-version contract\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"path-valid contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"anchor-id contract\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.097,"exit_code":1,"observations":[{"actual":[2],"check":"retain-live contract","expected":[2],"passed":true},{"actual":[2,1],"check":"new-order contract","expected":[2,1],"passed":true},{"actual":{"a":1},"check":"annotation contract","expected":{"a":1},"passed":true},{"actual":true,"check":"provider-version contract","expected":false,"passed":false},{"actual":false,"check":"path-valid contract","expected":false,"passed":true},{"actual":2,"check":"anchor-id contract","expected":2,"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"retain-live contract\", \"actual\": [2], \"expected\": [2], \"passed\": true}, {\"check\": \"new-order contract\", \"actual\": [2, 1], \"expected\": [2, 1], \"passed\": true}, {\"check\": \"annotation contract\", \"actual\": {\"a\": 1}, \"expected\": {\"a\": 1}, \"passed\": true}, {\"check\": \"provider-version contract\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"path-valid contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"anchor-id contract\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.203,"exit_code":0,"observations":[{"actual":[2],"check":"retain-live contract","expected":[2],"passed":true},{"actual":[2,1],"check":"new-order contract","expected":[2,1],"passed":true},{"actual":{"a":1},"check":"annotation contract","expected":{"a":1},"passed":true},{"actual":false,"check":"provider-version contract","expected":false,"passed":true},{"actual":false,"check":"path-valid contract","expected":false,"passed":true},{"actual":2,"check":"anchor-id 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\": \"retain-live contract\", \"actual\": [2], \"expected\": [2], \"passed\": true}, {\"check\": \"new-order contract\", \"actual\": [2, 1], \"expected\": [2, 1], \"passed\": true}, {\"check\": \"annotation contract\", \"actual\": {\"a\": 1}, \"expected\": {\"a\": 1}, \"passed\": true}, {\"check\": \"provider-version contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"path-valid contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"anchor-id 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"}