{"abstract":"Submenu continuation cursor is synthesized from row count.","category":"Menu interactions","checks":8,"contract":"Lazy submenu pages retain provider order, unique IDs and opaque cursors; loading indicators disappear on final empty results.","evaluation_group":"s3-menu-interactions-lazy-pages","failed_approach":"The attempted repair `p['previous']` still violates the cursor oracle.","family":"s3-menu-interactions-lazy-pages-cursor","id":"FA-32466","implementations":{"attempt":{"sha256":"8443b00999589e20a807ee288a7c2393b94595ba6a7b8d297908b7f6d3ea96cf","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 == 'append':\n        return p['old']+[x for x in p['page'] if x not in p['old']]\n    if action == 'cursor':\n        return p['previous']\n    if action == 'done':\n        return p['next'] is None\n    if action == 'empty':\n        return [] if p['done'] and not p['items'] else p['items']\n    if action == 'retry':\n        return p['failed']\n    if action == 'footer':\n        return p['rows'][:-1]+p['page']+[p['rows'][-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('append contract', solve('append', {'old':[N],'page':[N,N+1]}), [N,N+1])\ncheck('cursor contract', solve('cursor', {'next':'cursor'+str(N),'previous':'old','items':[1,2]}), 'cursor'+str(N))\ncheck('done contract', solve('done', {'next':'next'+str(N),'items':[],'limit':20}), False)\ncheck('empty contract', solve('empty', {'done':True,'items':[],'request':N}), [])\ncheck('retry contract', solve('retry', {'failed':'failed'+str(N),'next':'next'}), 'failed'+str(N))\ncheck('footer contract', solve('footer', {'rows':['existing','footer'],'page':['new'+str(N)]}), ['existing','new'+str(N),'footer'])\ncheck('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})\ncheck('retain earlier page', solve('append', {'old':[N-1,N], 'page':[N,N+1]}), [N-1,N,N+1])\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":"6c7c418e4f79e23483e66d9d6f2e893e1469f4367b5c2078a320ebdb3cd01689","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 == 'append':\n        return p['old']+[x for x in p['page'] if x not in p['old']]\n    if action == 'cursor':\n        return str(len(p['items']))\n    if action == 'done':\n        return p['next'] is None\n    if action == 'empty':\n        return [] if p['done'] and not p['items'] else p['items']\n    if action == 'retry':\n        return p['failed']\n    if action == 'footer':\n        return p['rows'][:-1]+p['page']+[p['rows'][-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('append contract', solve('append', {'old':[N],'page':[N,N+1]}), [N,N+1])\ncheck('cursor contract', solve('cursor', {'next':'cursor'+str(N),'previous':'old','items':[1,2]}), 'cursor'+str(N))\ncheck('done contract', solve('done', {'next':'next'+str(N),'items':[],'limit':20}), False)\ncheck('empty contract', solve('empty', {'done':True,'items':[],'request':N}), [])\ncheck('retry contract', solve('retry', {'failed':'failed'+str(N),'next':'next'}), 'failed'+str(N))\ncheck('footer contract', solve('footer', {'rows':['existing','footer'],'page':['new'+str(N)]}), ['existing','new'+str(N),'footer'])\ncheck('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})\ncheck('retain earlier page', solve('append', {'old':[N-1,N], 'page':[N,N+1]}), [N-1,N,N+1])\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":"5bfca9a8ddb800e3b119f9f1ba50be7331836d94de2996ce55181293459161f6","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 == 'append':\n        return p['old']+[x for x in p['page'] if x not in p['old']]\n    if action == 'cursor':\n        return p['next']\n    if action == 'done':\n        return p['next'] is None\n    if action == 'empty':\n        return [] if p['done'] and not p['items'] else p['items']\n    if action == 'retry':\n        return p['failed']\n    if action == 'footer':\n        return p['rows'][:-1]+p['page']+[p['rows'][-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('append contract', solve('append', {'old':[N],'page':[N,N+1]}), [N,N+1])\ncheck('cursor contract', solve('cursor', {'next':'cursor'+str(N),'previous':'old','items':[1,2]}), 'cursor'+str(N))\ncheck('done contract', solve('done', {'next':'next'+str(N),'items':[],'limit':20}), False)\ncheck('empty contract', solve('empty', {'done':True,'items':[],'request':N}), [])\ncheck('retry contract', solve('retry', {'failed':'failed'+str(N),'next':'next'}), 'failed'+str(N))\ncheck('footer contract', solve('footer', {'rows':['existing','footer'],'page':['new'+str(N)]}), ['existing','new'+str(N),'footer'])\ncheck('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})\ncheck('retain earlier page', solve('append', {'old':[N-1,N], 'page':[N,N+1]}), [N-1,N,N+1])\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-lazy-pages-cursor","generated_at":"2026-09-29T14:42:12.489268+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['next']` at cursor.","root_cause":"The lazy-pages model applies `str(len(p['items']))` at its cursor operation instead of the stipulated transformation.","sha256":"00368b67dd5ec8c3180ed64e88aa52580511f8405fdd4eb9f069245885becc71","title":"Submenu continuation cursor is synthesized from row count · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":47.044,"exit_code":1,"observations":[{"actual":[1,2],"check":"append contract","expected":[1,2],"passed":true},{"actual":"old","check":"cursor contract","expected":"cursor1","passed":false},{"actual":false,"check":"done contract","expected":false,"passed":true},{"actual":[],"check":"empty contract","expected":[],"passed":true},{"actual":"failed1","check":"retry contract","expected":"failed1","passed":true},{"actual":["existing","new1","footer"],"check":"footer contract","expected":["existing","new1","footer"],"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true},{"actual":[0,1,2],"check":"retain earlier page","expected":[0,1,2],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"append contract\", \"actual\": [1, 2], \"expected\": [1, 2], \"passed\": true}, {\"check\": \"cursor contract\", \"actual\": \"old\", \"expected\": \"cursor1\", \"passed\": false}, {\"check\": \"done contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"empty contract\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"retry contract\", \"actual\": \"failed1\", \"expected\": \"failed1\", \"passed\": true}, {\"check\": \"footer contract\", \"actual\": [\"existing\", \"new1\", \"footer\"], \"expected\": [\"existing\", \"new1\", \"footer\"], \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}, {\"check\": \"retain earlier page\", \"actual\": [0, 1, 2], \"expected\": [0, 1, 2], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":47.719,"exit_code":1,"observations":[{"actual":[1,2],"check":"append contract","expected":[1,2],"passed":true},{"actual":"2","check":"cursor contract","expected":"cursor1","passed":false},{"actual":false,"check":"done contract","expected":false,"passed":true},{"actual":[],"check":"empty contract","expected":[],"passed":true},{"actual":"failed1","check":"retry contract","expected":"failed1","passed":true},{"actual":["existing","new1","footer"],"check":"footer contract","expected":["existing","new1","footer"],"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true},{"actual":[0,1,2],"check":"retain earlier page","expected":[0,1,2],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"append contract\", \"actual\": [1, 2], \"expected\": [1, 2], \"passed\": true}, {\"check\": \"cursor contract\", \"actual\": \"2\", \"expected\": \"cursor1\", \"passed\": false}, {\"check\": \"done contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"empty contract\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"retry contract\", \"actual\": \"failed1\", \"expected\": \"failed1\", \"passed\": true}, {\"check\": \"footer contract\", \"actual\": [\"existing\", \"new1\", \"footer\"], \"expected\": [\"existing\", \"new1\", \"footer\"], \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}, {\"check\": \"retain earlier page\", \"actual\": [0, 1, 2], \"expected\": [0, 1, 2], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":47.17,"exit_code":0,"observations":[{"actual":[1,2],"check":"append contract","expected":[1,2],"passed":true},{"actual":"cursor1","check":"cursor contract","expected":"cursor1","passed":true},{"actual":false,"check":"done contract","expected":false,"passed":true},{"actual":[],"check":"empty contract","expected":[],"passed":true},{"actual":"failed1","check":"retry contract","expected":"failed1","passed":true},{"actual":["existing","new1","footer"],"check":"footer contract","expected":["existing","new1","footer"],"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true},{"actual":[0,1,2],"check":"retain earlier page","expected":[0,1,2],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"append contract\", \"actual\": [1, 2], \"expected\": [1, 2], \"passed\": true}, {\"check\": \"cursor contract\", \"actual\": \"cursor1\", \"expected\": \"cursor1\", \"passed\": true}, {\"check\": \"done contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"empty contract\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"retry contract\", \"actual\": \"failed1\", \"expected\": \"failed1\", \"passed\": true}, {\"check\": \"footer contract\", \"actual\": [\"existing\", \"new1\", \"footer\"], \"expected\": [\"existing\", \"new1\", \"footer\"], \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}, {\"check\": \"retain earlier page\", \"actual\": [0, 1, 2], \"expected\": [0, 1, 2], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}