{"abstract":"The child completion transition produces an incorrect observable state.","category":"Autocomplete interactions","checks":22,"contract":"Changing the parent picker invalidates child suggestions, child query epoch and incompatible child value. Draft may be preserved for a new scoped search. Child labels are never used as parent identifiers, and clearing a parent disables dependent search. Compatible values survive explicit scope membership checks.","evaluation_group":"s3-autocomplete-dependent-picker","failed_approach":"The attempted repair uses `d['members'][0] if d['members'] else None`, which still violates a normal or boundary completion fixture.","family":"s3-autocomplete-interactions-dependent-picker-child","id":"FA-22646","implementations":{"attempt":{"sha256":"cf55a433c83f457217f0a39d686d1c33b32be1e5ddc4afaa7a1b00d4f965e915","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(event, d):\n    if event == 'scope': return d['parent']\n    if event == 'child': return d['members'][0] if d['members'] else None\n    if event == 'rows': return [] if d['parent']!=d['old_parent'] else d['rows']\n    if event == 'parent-difference': return d['parent']!=d['old_parent']\n    if event == 'draft': return d['draft']\n    if event == 'enabled': return d['parent'] is not None\n    if event == 'response': return d['response_parent']==d['parent']\n    if event == 'pending': return None if d['parent']!=d['old_parent'] else d['pending']\n    if event == 'membership': return d['child'] is None or d['child'] in d['members']\n    if event == 'descriptor': return [d['parent'],d['draft'],d['epoch']]\n    return {'unchanged': True}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nnormal = {'parent':'country-b','old_parent':'country-a','child':'city-a','members':['city-b'],'draft':'san','rows':['city-a'],'epoch':N,'response_parent':'country-a','parent_label':'Country B','pending':'san'}\nboundary = {'parent':None,'old_parent':None,'child':None,'members':[],'draft':'','rows':[],'epoch':N,'response_parent':None,'parent_label':'','pending':None}\ncheck('normal scope', solve('scope', normal), 'country-b')\ncheck('boundary scope', solve('scope', boundary), None)\ncheck('normal child', solve('child', normal), None)\ncheck('boundary child', solve('child', boundary), None)\ncheck('normal rows', solve('rows', normal), [])\ncheck('boundary rows', solve('rows', boundary), [])\ncheck('normal parent-difference', solve('parent-difference', normal), True)\ncheck('boundary parent-difference', solve('parent-difference', boundary), False)\ncheck('normal draft', solve('draft', normal), 'san')\ncheck('boundary draft', solve('draft', boundary), '')\ncheck('normal enabled', solve('enabled', normal), True)\ncheck('boundary enabled', solve('enabled', boundary), False)\ncheck('normal response', solve('response', normal), False)\ncheck('boundary response', solve('response', boundary), True)\ncheck('normal pending', solve('pending', normal), None)\ncheck('boundary pending', solve('pending', boundary), None)\ncheck('normal membership', solve('membership', normal), False)\ncheck('boundary membership', solve('membership', boundary), True)\ncheck('normal descriptor', solve('descriptor', normal), ['country-b','san',N])\ncheck('boundary descriptor', solve('descriptor', boundary), [None,'',N])\nvariant = dict(normal, **{'draft':'q'*N})\ncheck('variant query or selection payload', solve('draft', variant), 'q'*N)\ncheck('unknown completion event', solve('unrecognized', normal), {'unchanged': True})\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":"8a03ba349ca1c6885265edbb4dbe59f3fbc3378364ffd6f74b6e8b12d0e540c9","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(event, d):\n    if event == 'scope': return d['parent']\n    if event == 'child': return d['child']\n    if event == 'rows': return [] if d['parent']!=d['old_parent'] else d['rows']\n    if event == 'parent-difference': return d['parent']!=d['old_parent']\n    if event == 'draft': return d['draft']\n    if event == 'enabled': return d['parent'] is not None\n    if event == 'response': return d['response_parent']==d['parent']\n    if event == 'pending': return None if d['parent']!=d['old_parent'] else d['pending']\n    if event == 'membership': return d['child'] is None or d['child'] in d['members']\n    if event == 'descriptor': return [d['parent'],d['draft'],d['epoch']]\n    return {'unchanged': True}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nnormal = {'parent':'country-b','old_parent':'country-a','child':'city-a','members':['city-b'],'draft':'san','rows':['city-a'],'epoch':N,'response_parent':'country-a','parent_label':'Country B','pending':'san'}\nboundary = {'parent':None,'old_parent':None,'child':None,'members':[],'draft':'','rows':[],'epoch':N,'response_parent':None,'parent_label':'','pending':None}\ncheck('normal scope', solve('scope', normal), 'country-b')\ncheck('boundary scope', solve('scope', boundary), None)\ncheck('normal child', solve('child', normal), None)\ncheck('boundary child', solve('child', boundary), None)\ncheck('normal rows', solve('rows', normal), [])\ncheck('boundary rows', solve('rows', boundary), [])\ncheck('normal parent-difference', solve('parent-difference', normal), True)\ncheck('boundary parent-difference', solve('parent-difference', boundary), False)\ncheck('normal draft', solve('draft', normal), 'san')\ncheck('boundary draft', solve('draft', boundary), '')\ncheck('normal enabled', solve('enabled', normal), True)\ncheck('boundary enabled', solve('enabled', boundary), False)\ncheck('normal response', solve('response', normal), False)\ncheck('boundary response', solve('response', boundary), True)\ncheck('normal pending', solve('pending', normal), None)\ncheck('boundary pending', solve('pending', boundary), None)\ncheck('normal membership', solve('membership', normal), False)\ncheck('boundary membership', solve('membership', boundary), True)\ncheck('normal descriptor', solve('descriptor', normal), ['country-b','san',N])\ncheck('boundary descriptor', solve('descriptor', boundary), [None,'',N])\nvariant = dict(normal, **{'draft':'q'*N})\ncheck('variant query or selection payload', solve('draft', variant), 'q'*N)\ncheck('unknown completion event', solve('unrecognized', normal), {'unchanged': True})\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":"49160f4aaa837a98a771ebd1f5682e6a8bd23f5be7f9d795500256439857d83a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(event, d):\n    if event == 'scope': return d['parent']\n    if event == 'child': return d['child'] if d['child'] in d['members'] else None\n    if event == 'rows': return [] if d['parent']!=d['old_parent'] else d['rows']\n    if event == 'parent-difference': return d['parent']!=d['old_parent']\n    if event == 'draft': return d['draft']\n    if event == 'enabled': return d['parent'] is not None\n    if event == 'response': return d['response_parent']==d['parent']\n    if event == 'pending': return None if d['parent']!=d['old_parent'] else d['pending']\n    if event == 'membership': return d['child'] is None or d['child'] in d['members']\n    if event == 'descriptor': return [d['parent'],d['draft'],d['epoch']]\n    return {'unchanged': True}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nnormal = {'parent':'country-b','old_parent':'country-a','child':'city-a','members':['city-b'],'draft':'san','rows':['city-a'],'epoch':N,'response_parent':'country-a','parent_label':'Country B','pending':'san'}\nboundary = {'parent':None,'old_parent':None,'child':None,'members':[],'draft':'','rows':[],'epoch':N,'response_parent':None,'parent_label':'','pending':None}\ncheck('normal scope', solve('scope', normal), 'country-b')\ncheck('boundary scope', solve('scope', boundary), None)\ncheck('normal child', solve('child', normal), None)\ncheck('boundary child', solve('child', boundary), None)\ncheck('normal rows', solve('rows', normal), [])\ncheck('boundary rows', solve('rows', boundary), [])\ncheck('normal parent-difference', solve('parent-difference', normal), True)\ncheck('boundary parent-difference', solve('parent-difference', boundary), False)\ncheck('normal draft', solve('draft', normal), 'san')\ncheck('boundary draft', solve('draft', boundary), '')\ncheck('normal enabled', solve('enabled', normal), True)\ncheck('boundary enabled', solve('enabled', boundary), False)\ncheck('normal response', solve('response', normal), False)\ncheck('boundary response', solve('response', boundary), True)\ncheck('normal pending', solve('pending', normal), None)\ncheck('boundary pending', solve('pending', boundary), None)\ncheck('normal membership', solve('membership', normal), False)\ncheck('boundary membership', solve('membership', boundary), True)\ncheck('normal descriptor', solve('descriptor', normal), ['country-b','san',N])\ncheck('boundary descriptor', solve('descriptor', boundary), [None,'',N])\nvariant = dict(normal, **{'draft':'q'*N})\ncheck('variant query or selection payload', solve('draft', variant), 'q'*N)\ncheck('unknown completion event', solve('unrecognized', normal), {'unchanged': True})\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":"Stipulated deterministic widget transition model; inputs are validated snapshots. It does not model browser event dispatch, network transport, or linguistic standards. 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-autocomplete-interactions-dependent-picker-child","generated_at":"2026-09-29T14:40:40.260415+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Autocomplete couples draft text, suggestion identity and asynchronous presentation; this bounded lifecycle model isolates one observable interaction defect.","repair":"Implement the child contract using `d['child'] if d['child'] in d['members'] else None`.","root_cause":"At dependent-picker/child, the implementation evaluates `d['child']` instead of preserving the specified completion transition.","sha256":"c2a5c0133f6e95b966dd934dce3fe6742122f7e63585337bd0cff8353984e3eb","title":"Dependent autocomplete scope changes: incompatible selected child survives a parent change · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.821,"exit_code":1,"observations":[{"actual":"country-b","check":"normal scope","expected":"country-b","passed":true},{"actual":null,"check":"boundary scope","expected":null,"passed":true},{"actual":"city-b","check":"normal child","expected":null,"passed":false},{"actual":null,"check":"boundary child","expected":null,"passed":true},{"actual":[],"check":"normal rows","expected":[],"passed":true},{"actual":[],"check":"boundary rows","expected":[],"passed":true},{"actual":true,"check":"normal parent-difference","expected":true,"passed":true},{"actual":false,"check":"boundary parent-difference","expected":false,"passed":true},{"actual":"san","check":"normal draft","expected":"san","passed":true},{"actual":"","check":"boundary draft","expected":"","passed":true},{"actual":true,"check":"normal enabled","expected":true,"passed":true},{"actual":false,"check":"boundary enabled","expected":false,"passed":true},{"actual":false,"check":"normal response","expected":false,"passed":true},{"actual":true,"check":"boundary response","expected":true,"passed":true},{"actual":null,"check":"normal pending","expected":null,"passed":true},{"actual":null,"check":"boundary pending","expected":null,"passed":true},{"actual":false,"check":"normal membership","expected":false,"passed":true},{"actual":true,"check":"boundary membership","expected":true,"passed":true},{"actual":["country-b","san",1],"check":"normal descriptor","expected":["country-b","san",1],"passed":true},{"actual":[null,"",1],"check":"boundary descriptor","expected":[null,"",1],"passed":true},{"actual":"q","check":"variant query or selection payload","expected":"q","passed":true},{"actual":{"unchanged":true},"check":"unknown completion event","expected":{"unchanged":true},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"normal scope\", \"actual\": \"country-b\", \"expected\": \"country-b\", \"passed\": true}, {\"check\": \"boundary scope\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"normal child\", \"actual\": \"city-b\", \"expected\": null, \"passed\": false}, {\"check\": \"boundary child\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"normal rows\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"boundary rows\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"normal parent-difference\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"boundary parent-difference\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"normal draft\", \"actual\": \"san\", \"expected\": \"san\", \"passed\": true}, {\"check\": \"boundary draft\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}, {\"check\": \"normal enabled\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"boundary enabled\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"normal response\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"boundary response\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"normal pending\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"boundary pending\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"normal membership\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"boundary membership\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"normal descriptor\", \"actual\": [\"country-b\", \"san\", 1], \"expected\": [\"country-b\", \"san\", 1], \"passed\": true}, {\"check\": \"boundary descriptor\", \"actual\": [null, \"\", 1], \"expected\": [null, \"\", 1], \"passed\": true}, {\"check\": \"variant query or selection payload\", \"actual\": \"q\", \"expected\": \"q\", \"passed\": true}, {\"check\": \"unknown completion event\", \"actual\": {\"unchanged\": true}, \"expected\": {\"unchanged\": true}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.175,"exit_code":1,"observations":[{"actual":"country-b","check":"normal scope","expected":"country-b","passed":true},{"actual":null,"check":"boundary scope","expected":null,"passed":true},{"actual":"city-a","check":"normal child","expected":null,"passed":false},{"actual":null,"check":"boundary child","expected":null,"passed":true},{"actual":[],"check":"normal rows","expected":[],"passed":true},{"actual":[],"check":"boundary rows","expected":[],"passed":true},{"actual":true,"check":"normal parent-difference","expected":true,"passed":true},{"actual":false,"check":"boundary parent-difference","expected":false,"passed":true},{"actual":"san","check":"normal draft","expected":"san","passed":true},{"actual":"","check":"boundary draft","expected":"","passed":true},{"actual":true,"check":"normal enabled","expected":true,"passed":true},{"actual":false,"check":"boundary enabled","expected":false,"passed":true},{"actual":false,"check":"normal response","expected":false,"passed":true},{"actual":true,"check":"boundary response","expected":true,"passed":true},{"actual":null,"check":"normal pending","expected":null,"passed":true},{"actual":null,"check":"boundary pending","expected":null,"passed":true},{"actual":false,"check":"normal membership","expected":false,"passed":true},{"actual":true,"check":"boundary membership","expected":true,"passed":true},{"actual":["country-b","san",1],"check":"normal descriptor","expected":["country-b","san",1],"passed":true},{"actual":[null,"",1],"check":"boundary descriptor","expected":[null,"",1],"passed":true},{"actual":"q","check":"variant query or selection payload","expected":"q","passed":true},{"actual":{"unchanged":true},"check":"unknown completion event","expected":{"unchanged":true},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"normal scope\", \"actual\": \"country-b\", \"expected\": \"country-b\", \"passed\": true}, {\"check\": \"boundary scope\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"normal child\", \"actual\": \"city-a\", \"expected\": null, \"passed\": false}, {\"check\": \"boundary child\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"normal rows\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"boundary rows\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"normal parent-difference\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"boundary parent-difference\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"normal draft\", \"actual\": \"san\", \"expected\": \"san\", \"passed\": true}, {\"check\": \"boundary draft\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}, {\"check\": \"normal enabled\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"boundary enabled\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"normal response\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"boundary response\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"normal pending\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"boundary pending\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"normal membership\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"boundary membership\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"normal descriptor\", \"actual\": [\"country-b\", \"san\", 1], \"expected\": [\"country-b\", \"san\", 1], \"passed\": true}, {\"check\": \"boundary descriptor\", \"actual\": [null, \"\", 1], \"expected\": [null, \"\", 1], \"passed\": true}, {\"check\": \"variant query or selection payload\", \"actual\": \"q\", \"expected\": \"q\", \"passed\": true}, {\"check\": \"unknown completion event\", \"actual\": {\"unchanged\": true}, \"expected\": {\"unchanged\": true}, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":38.769,"exit_code":0,"observations":[{"actual":"country-b","check":"normal scope","expected":"country-b","passed":true},{"actual":null,"check":"boundary scope","expected":null,"passed":true},{"actual":null,"check":"normal child","expected":null,"passed":true},{"actual":null,"check":"boundary child","expected":null,"passed":true},{"actual":[],"check":"normal rows","expected":[],"passed":true},{"actual":[],"check":"boundary rows","expected":[],"passed":true},{"actual":true,"check":"normal parent-difference","expected":true,"passed":true},{"actual":false,"check":"boundary parent-difference","expected":false,"passed":true},{"actual":"san","check":"normal draft","expected":"san","passed":true},{"actual":"","check":"boundary draft","expected":"","passed":true},{"actual":true,"check":"normal enabled","expected":true,"passed":true},{"actual":false,"check":"boundary enabled","expected":false,"passed":true},{"actual":false,"check":"normal response","expected":false,"passed":true},{"actual":true,"check":"boundary response","expected":true,"passed":true},{"actual":null,"check":"normal pending","expected":null,"passed":true},{"actual":null,"check":"boundary pending","expected":null,"passed":true},{"actual":false,"check":"normal membership","expected":false,"passed":true},{"actual":true,"check":"boundary membership","expected":true,"passed":true},{"actual":["country-b","san",1],"check":"normal descriptor","expected":["country-b","san",1],"passed":true},{"actual":[null,"",1],"check":"boundary descriptor","expected":[null,"",1],"passed":true},{"actual":"q","check":"variant query or selection payload","expected":"q","passed":true},{"actual":{"unchanged":true},"check":"unknown completion event","expected":{"unchanged":true},"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"normal scope\", \"actual\": \"country-b\", \"expected\": \"country-b\", \"passed\": true}, {\"check\": \"boundary scope\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"normal child\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"boundary child\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"normal rows\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"boundary rows\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"normal parent-difference\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"boundary parent-difference\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"normal draft\", \"actual\": \"san\", \"expected\": \"san\", \"passed\": true}, {\"check\": \"boundary draft\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}, {\"check\": \"normal enabled\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"boundary enabled\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"normal response\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"boundary response\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"normal pending\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"boundary pending\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"normal membership\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"boundary membership\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"normal descriptor\", \"actual\": [\"country-b\", \"san\", 1], \"expected\": [\"country-b\", \"san\", 1], \"passed\": true}, {\"check\": \"boundary descriptor\", \"actual\": [null, \"\", 1], \"expected\": [null, \"\", 1], \"passed\": true}, {\"check\": \"variant query or selection payload\", \"actual\": \"q\", \"expected\": \"q\", \"passed\": true}, {\"check\": \"unknown completion event\", \"actual\": {\"unchanged\": true}, \"expected\": {\"unchanged\": true}, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}