FAILURE MAP
← Case archive

FA-22641 / Autocomplete interactions / Open access

Dependent autocomplete scope changes: child suggestion request sends parent label instead of stable value · case 01

The scope completion transition produces an incorrect observable state.

Verified by executionVariant 1 · 22 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

At dependent-picker/scope, the implementation evaluates `d['parent_label']` instead of preserving the specified completion transition.

THE FAILURE

At dependent-picker/scope, the implementation evaluates `d['parent_label']` instead of preserving the specified completion transition.

Unsuccessful approach: The attempted repair uses `d['old_parent']`, which still violates a normal or boundary completion fixture.

Case 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.

Why this case matters

Autocomplete couples draft text, suggestion identity and asynchronous presentation; this bounded lifecycle model isolates one observable interaction defect.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(event, d):
    if event == 'scope': return d['parent_label']
    if event == 'child': return d['child'] if d['child'] in d['members'] else None
    if event == 'rows': return [] if d['parent']!=d['old_parent'] else d['rows']
    if event == 'parent-difference': return d['parent']!=d['old_parent']
    if event == 'draft': return d['draft']
    if event == 'enabled': return d['parent'] is not None
    if event == 'response': return d['response_parent']==d['parent']
    if event == 'pending': return None if d['parent']!=d['old_parent'] else d['pending']
    if event == 'membership': return d['child'] is None or d['child'] in d['members']
    if event == 'descriptor': return [d['parent'],d['draft'],d['epoch']]
    return {'unchanged': True}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
normal = {'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'}
boundary = {'parent':None,'old_parent':None,'child':None,'members':[],'draft':'','rows':[],'epoch':N,'response_parent':None,'parent_label':'','pending':None}
check('normal scope', solve('scope', normal), 'country-b')
check('boundary scope', solve('scope', boundary), None)
check('normal child', solve('child', normal), None)
check('boundary child', solve('child', boundary), None)
check('normal rows', solve('rows', normal), [])
check('boundary rows', solve('rows', boundary), [])
check('normal parent-difference', solve('parent-difference', normal), True)
check('boundary parent-difference', solve('parent-difference', boundary), False)
check('normal draft', solve('draft', normal), 'san')
check('boundary draft', solve('draft', boundary), '')
check('normal enabled', solve('enabled', normal), True)
check('boundary enabled', solve('enabled', boundary), False)
check('normal response', solve('response', normal), False)
check('boundary response', solve('response', boundary), True)
check('normal pending', solve('pending', normal), None)
check('boundary pending', solve('pending', boundary), None)
check('normal membership', solve('membership', normal), False)
check('boundary membership', solve('membership', boundary), True)
check('normal descriptor', solve('descriptor', normal), ['country-b','san',N])
check('boundary descriptor', solve('descriptor', boundary), [None,'',N])
variant = dict(normal, **{'draft':'q'*N})
check('variant query or selection payload', solve('draft', variant), 'q'*N)
check('unknown completion event', solve('unrecognized', normal), {'unchanged': True})
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
normal scopeCountry Bcountry-bFailed
boundary scopeNoneFailed
normal childNoneNonePassed
boundary childNoneNonePassed
normal rows[][]Passed
boundary rows[][]Passed
normal parent-differenceTrueTruePassed
boundary parent-differenceFalseFalsePassed
normal draftsansanPassed
boundary draftPassed
normal enabledTrueTruePassed
boundary enabledFalseFalsePassed
normal responseFalseFalsePassed
boundary responseTrueTruePassed
normal pendingNoneNonePassed
boundary pendingNoneNonePassed
normal membershipFalseFalsePassed
boundary membershipTrueTruePassed
normal descriptor['country-b', 'san', 1]['country-b', 'san', 1]Passed
boundary descriptor[None, '', 1][None, '', 1]Passed
variant query or selection payloadqqPassed
unknown completion event{'unchanged': True}{'unchanged': True}Passed

SHA-256 / b6563801fc3088655a029bdfa71af5eb82afbb98f77f7496dce913e347ae842d

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(event, d):
    if event == 'scope': return d['old_parent']
    if event == 'child': return d['child'] if d['child'] in d['members'] else None
    if event == 'rows': return [] if d['parent']!=d['old_parent'] else d['rows']
    if event == 'parent-difference': return d['parent']!=d['old_parent']
    if event == 'draft': return d['draft']
    if event == 'enabled': return d['parent'] is not None
    if event == 'response': return d['response_parent']==d['parent']
    if event == 'pending': return None if d['parent']!=d['old_parent'] else d['pending']
    if event == 'membership': return d['child'] is None or d['child'] in d['members']
    if event == 'descriptor': return [d['parent'],d['draft'],d['epoch']]
    return {'unchanged': True}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
normal = {'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'}
boundary = {'parent':None,'old_parent':None,'child':None,'members':[],'draft':'','rows':[],'epoch':N,'response_parent':None,'parent_label':'','pending':None}
check('normal scope', solve('scope', normal), 'country-b')
check('boundary scope', solve('scope', boundary), None)
check('normal child', solve('child', normal), None)
check('boundary child', solve('child', boundary), None)
check('normal rows', solve('rows', normal), [])
check('boundary rows', solve('rows', boundary), [])
check('normal parent-difference', solve('parent-difference', normal), True)
check('boundary parent-difference', solve('parent-difference', boundary), False)
check('normal draft', solve('draft', normal), 'san')
check('boundary draft', solve('draft', boundary), '')
check('normal enabled', solve('enabled', normal), True)
check('boundary enabled', solve('enabled', boundary), False)
check('normal response', solve('response', normal), False)
check('boundary response', solve('response', boundary), True)
check('normal pending', solve('pending', normal), None)
check('boundary pending', solve('pending', boundary), None)
check('normal membership', solve('membership', normal), False)
check('boundary membership', solve('membership', boundary), True)
check('normal descriptor', solve('descriptor', normal), ['country-b','san',N])
check('boundary descriptor', solve('descriptor', boundary), [None,'',N])
variant = dict(normal, **{'draft':'q'*N})
check('variant query or selection payload', solve('draft', variant), 'q'*N)
check('unknown completion event', solve('unrecognized', normal), {'unchanged': True})
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
normal scopecountry-acountry-bFailed
boundary scopeNoneNonePassed
normal childNoneNonePassed
boundary childNoneNonePassed
normal rows[][]Passed
boundary rows[][]Passed
normal parent-differenceTrueTruePassed
boundary parent-differenceFalseFalsePassed
normal draftsansanPassed
boundary draftPassed
normal enabledTrueTruePassed
boundary enabledFalseFalsePassed
normal responseFalseFalsePassed
boundary responseTrueTruePassed
normal pendingNoneNonePassed
boundary pendingNoneNonePassed
normal membershipFalseFalsePassed
boundary membershipTrueTruePassed
normal descriptor['country-b', 'san', 1]['country-b', 'san', 1]Passed
boundary descriptor[None, '', 1][None, '', 1]Passed
variant query or selection payloadqqPassed
unknown completion event{'unchanged': True}{'unchanged': True}Passed

SHA-256 / 63b1fef3fb1447312e7c68e1cf5c4ac6169077e16d0eb8504f2a7bc490c99657

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 22 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.

Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.

Member access is invitation-based. Sign in with your invited account to inspect the repair.

Sign in to the archive ↗

Verification & scope

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.

Observations recorded using Python 3.12.14 at 2026-09-29T14:40:40.740047+00:00.

Case digest / 0cbd0fbc03ee798334e5e9c8b33358ca687f22599c6a20cf889a5e5c49c404cf