{"abstract":"Parameter submenu loses earlier parent command bindings.","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 `dict({p['name']:p['value']},**p['bound'])` still violates the bind oracle.","family":"s3-menu-interactions-parameter-submenu-bind","id":"FA-33601","implementations":{"attempt":{"sha256":"28d71271c78204415bd52c9c2096a047d4b14ff40334a03e0e5d60abe7174b37","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['name']:p['value']},**p['bound'])\n    if action == 'parent-command':\n        return p['parent_command']\n    if action == 'cancel':\n        return p['committed']\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":"0e5678aa5a1e844d96ea64a33ccd7faef1fbcef087eebfc427c6025e9db423eb","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 {p['name']:p['value']}\n    if action == 'parent-command':\n        return p['parent_command']\n    if action == 'cancel':\n        return p['committed']\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-bind","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['name']:p['value']}` at its bind operation instead of the stipulated transformation.","sha256":"468cb69e8f62b8361acc54a97d1665a1d9dc07dfdaa2cb71df1f4a9c3d66d0fb","title":"Parameter submenu loses earlier parent command bindings · 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":45.776,"exit_code":1,"observations":[{"actual":{"format":"old","target":"doc"},"check":"bind contract","expected":{"format":"new1","target":"doc"},"passed":false},{"actual":"export1","check":"parent-command contract","expected":"export1","passed":true},{"actual":{"size":1},"check":"cancel contract","expected":{"size":1},"passed":true},{"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\": \"old\", \"target\": \"doc\"}, \"expected\": {\"format\": \"new1\", \"target\": \"doc\"}, \"passed\": false}, {\"check\": \"parent-command contract\", \"actual\": \"export1\", \"expected\": \"export1\", \"passed\": true}, {\"check\": \"cancel contract\", \"actual\": {\"size\": 1}, \"expected\": {\"size\": 1}, \"passed\": true}, {\"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":38.859,"exit_code":1,"observations":[{"actual":{"format":"new1"},"check":"bind contract","expected":{"format":"new1","target":"doc"},"passed":false},{"actual":"export1","check":"parent-command contract","expected":"export1","passed":true},{"actual":{"size":1},"check":"cancel contract","expected":{"size":1},"passed":true},{"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\"}, \"expected\": {\"format\": \"new1\", \"target\": \"doc\"}, \"passed\": false}, {\"check\": \"parent-command contract\", \"actual\": \"export1\", \"expected\": \"export1\", \"passed\": true}, {\"check\": \"cancel contract\", \"actual\": {\"size\": 1}, \"expected\": {\"size\": 1}, \"passed\": true}, {\"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."}}