{"abstract":"Short lazy menu page is mistaken for exhaustion.","category":"Menu interactions","checks":8,"contract":"Lazy submenu pages retain provider order, unique IDs and opaque cursors; loading indicators disappear on final empty results.","contract_signature":"action, p","evaluation_group":"s3-menu-interactions-lazy-pages","failed_approach":"The attempted repair `len(p['items'])<p['limit']` still violates the done oracle.","family":"s3-menu-interactions-lazy-pages-done","id":"FA-32471","implementations":{"attempt":{"sha256":"75dfb3c64d4fec75fac3c731c8aca34094723d24259b4cd784da24ef00ea7996","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 len(p['items'])<p['limit']\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":"1f5b55af6ab09c3547cea54ff88e2e8fbf848285d3a982dcd7c9e95c6ffdb0bf","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 not p['items']\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-done","generated_at":"2026-09-29T14:42:12.677943+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 lazy-pages model applies `not p['items']` at its done operation instead of the stipulated transformation.","sha256":"1495e84841dc9e61e7f44df569aeb76c56b747dd8c4d499481b3badf5d9a4505","title":"Short lazy menu page is mistaken for exhaustion · 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":47.485,"exit_code":1,"observations":[{"actual":[1,2],"check":"append contract","expected":[1,2],"passed":true},{"actual":"cursor1","check":"cursor contract","expected":"cursor1","passed":true},{"actual":true,"check":"done contract","expected":false,"passed":false},{"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\": \"cursor1\", \"expected\": \"cursor1\", \"passed\": true}, {\"check\": \"done contract\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"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":49.989,"exit_code":1,"observations":[{"actual":[1,2],"check":"append contract","expected":[1,2],"passed":true},{"actual":"cursor1","check":"cursor contract","expected":"cursor1","passed":true},{"actual":true,"check":"done contract","expected":false,"passed":false},{"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\": \"cursor1\", \"expected\": \"cursor1\", \"passed\": true}, {\"check\": \"done contract\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"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"}},"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."}}