{"abstract":"Cancelling a parameter submenu commits unfinished arguments.","category":"Menu interactions","checks":7,"contract":"A parameter submenu binds a chosen parameter to a parent command while preserving other bindings; cancel discards provisional parameters and commit requires all required fields.","contract_signature":"action, p","evaluation_group":"s3-menu-interactions-parameter-submenu","failed_approach":"The attempted repair `{}` still violates the cancel oracle.","family":"s3-menu-interactions-parameter-submenu-cancel","id":"FA-33611","implementations":{"attempt":{"sha256":"f0244213646d6a38b71cf80fc17afcb48c1cc4310db54ba8d14b117e80111e31","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 == 'bind':\n        return dict(p['bound'],**{p['name']:p['value']})\n    if action == 'parent-command':\n        return p['parent_command']\n    if action == 'cancel':\n        return {}\n    if action == 'required-fields':\n        return all(k in p['bound'] for k in p['required'])\n    if action == 'value-identity':\n        return p['value']\n    if action == 'return-path':\n        return p['path'][:-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('bind contract', solve('bind', {'bound':{'format':'old','target':'doc'},'name':'format','value':'new'+str(N)}), {'format':'new'+str(N),'target':'doc'})\ncheck('parent-command contract', solve('parent-command', {'parent_command':'export'+str(N),'row_id':'pdf','submenu_id':'formats'}), 'export'+str(N))\ncheck('cancel contract', solve('cancel', {'committed':{'size':N},'provisional':{'size':N+1}}), {'size':N})\ncheck('required-fields contract', solve('required-fields', {'bound':{'format':'pdf','scale':N},'required':['format','destination']}), False)\ncheck('value-identity contract', solve('value-identity', {'value':N,'label':'Size '+str(N)}), N)\ncheck('return-path contract', solve('return-path', {'path':['root','export','size'+str(N)]}), ['root','export'])\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":"a18ee6bbdff119d209b0bca70c84004cc9b680c445c34968ced2d4864c784ad0","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 == 'bind':\n        return dict(p['bound'],**{p['name']:p['value']})\n    if action == 'parent-command':\n        return p['parent_command']\n    if action == 'cancel':\n        return p['provisional']\n    if action == 'required-fields':\n        return all(k in p['bound'] for k in p['required'])\n    if action == 'value-identity':\n        return p['value']\n    if action == 'return-path':\n        return p['path'][:-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('bind contract', solve('bind', {'bound':{'format':'old','target':'doc'},'name':'format','value':'new'+str(N)}), {'format':'new'+str(N),'target':'doc'})\ncheck('parent-command contract', solve('parent-command', {'parent_command':'export'+str(N),'row_id':'pdf','submenu_id':'formats'}), 'export'+str(N))\ncheck('cancel contract', solve('cancel', {'committed':{'size':N},'provisional':{'size':N+1}}), {'size':N})\ncheck('required-fields contract', solve('required-fields', {'bound':{'format':'pdf','scale':N},'required':['format','destination']}), False)\ncheck('value-identity contract', solve('value-identity', {'value':N,'label':'Size '+str(N)}), N)\ncheck('return-path contract', solve('return-path', {'path':['root','export','size'+str(N)]}), ['root','export'])\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-parameter-submenu-cancel","generated_at":"2026-09-29T14:42:24.174175+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 parameter-submenu model applies `p['provisional']` at its cancel operation instead of the stipulated transformation.","sha256":"f6bb91d0e784d8ed92edb85ca9c22606f0082a296df6537f59efc434c1855c2b","title":"Cancelling a parameter submenu commits unfinished arguments · 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":39.715,"exit_code":1,"observations":[{"actual":{"format":"new1","target":"doc"},"check":"bind contract","expected":{"format":"new1","target":"doc"},"passed":true},{"actual":"export1","check":"parent-command contract","expected":"export1","passed":true},{"actual":{},"check":"cancel contract","expected":{"size":1},"passed":false},{"actual":false,"check":"required-fields contract","expected":false,"passed":true},{"actual":1,"check":"value-identity contract","expected":1,"passed":true},{"actual":["root","export"],"check":"return-path contract","expected":["root","export"],"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"bind contract\", \"actual\": {\"format\": \"new1\", \"target\": \"doc\"}, \"expected\": {\"format\": \"new1\", \"target\": \"doc\"}, \"passed\": true}, {\"check\": \"parent-command contract\", \"actual\": \"export1\", \"expected\": \"export1\", \"passed\": true}, {\"check\": \"cancel contract\", \"actual\": {}, \"expected\": {\"size\": 1}, \"passed\": false}, {\"check\": \"required-fields contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"value-identity contract\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"return-path contract\", \"actual\": [\"root\", \"export\"], \"expected\": [\"root\", \"export\"], \"passed\": true}, {\"check\": \"unknown operation\", \"actual\": {\"error\": \"unsupported menu operation\"}, \"expected\": {\"error\": \"unsupported menu operation\"}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":44.456,"exit_code":1,"observations":[{"actual":{"format":"new1","target":"doc"},"check":"bind contract","expected":{"format":"new1","target":"doc"},"passed":true},{"actual":"export1","check":"parent-command contract","expected":"export1","passed":true},{"actual":{"size":2},"check":"cancel contract","expected":{"size":1},"passed":false},{"actual":false,"check":"required-fields contract","expected":false,"passed":true},{"actual":1,"check":"value-identity contract","expected":1,"passed":true},{"actual":["root","export"],"check":"return-path contract","expected":["root","export"],"passed":true},{"actual":{"error":"unsupported menu operation"},"check":"unknown operation","expected":{"error":"unsupported menu operation"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"bind contract\", \"actual\": {\"format\": \"new1\", \"target\": \"doc\"}, \"expected\": {\"format\": \"new1\", \"target\": \"doc\"}, \"passed\": true}, {\"check\": \"parent-command contract\", \"actual\": \"export1\", \"expected\": \"export1\", \"passed\": true}, {\"check\": \"cancel contract\", \"actual\": {\"size\": 2}, \"expected\": {\"size\": 1}, \"passed\": false}, {\"check\": \"required-fields contract\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"value-identity contract\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"return-path contract\", \"actual\": [\"root\", \"export\"], \"expected\": [\"root\", \"export\"], \"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."}}