FAILURE MAP
← Case archive

FA-22886 / Autocomplete interactions / Open access

Selected suggestion label resolution: label lookup result is inserted as a query suggestion · case 01

The separate-rows completion transition produces an incorrect observable state.

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

ROOT CAUSE

At label-resolution/separate-rows, the implementation evaluates `[d['response_id']]` instead of preserving the specified completion transition.

THE FAILURE

At label-resolution/separate-rows, the implementation evaluates `[d['response_id']]` instead of preserving the specified completion transition.

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

Case contract

A selected identifier may need asynchronous label resolution independently of query suggestions. Responses bind to selected identity and selection epoch. Until resolved the identity stays committed; failed resolution shows an explicit fallback and never inserts the identifier into the query. Empty labels are valid resolutions.

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 == 'identity': return d['response_id']==d['value']
    if event == 'epoch': return d['response_epoch']==d['epoch']
    if event == 'value': return d['value']
    if event == 'query': return d['query']
    if event == 'empty-label': return d['label']
    if event == 'failure': return d['fallback'] if d['error'] else d['label']
    if event == 'pending': return d['pending'] and not d['resolved']
    if event == 'request': return [d['value'],d['epoch']]
    if event == 'clear-error': return None
    if event == 'separate-rows': return [d['response_id']]
    return {'unchanged': True}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
normal = {'value':'p1','response_id':'p0','label':'Pear','fallback':'Unknown choice','epoch':N,'response_epoch':N-1,'query':'pe','pending':True,'error':'missing','resolved':False}
boundary = {'value':'','response_id':'','label':'','fallback':'Unknown choice','epoch':N,'response_epoch':N,'query':'','pending':False,'error':None,'resolved':True}
check('normal identity', solve('identity', normal), False)
check('boundary identity', solve('identity', boundary), True)
check('normal epoch', solve('epoch', normal), False)
check('boundary epoch', solve('epoch', boundary), True)
check('normal value', solve('value', normal), 'p1')
check('boundary value', solve('value', boundary), '')
check('normal query', solve('query', normal), 'pe')
check('boundary query', solve('query', boundary), '')
check('normal empty-label', solve('empty-label', normal), 'Pear')
check('boundary empty-label', solve('empty-label', boundary), '')
check('normal failure', solve('failure', normal), 'Unknown choice')
check('boundary failure', solve('failure', boundary), '')
check('normal pending', solve('pending', normal), True)
check('boundary pending', solve('pending', boundary), False)
check('normal request', solve('request', normal), ['p1',N])
check('boundary request', solve('request', boundary), ['',N])
check('normal clear-error', solve('clear-error', normal), None)
check('boundary clear-error', solve('clear-error', boundary), None)
check('normal separate-rows', solve('separate-rows', normal), [])
check('boundary separate-rows', solve('separate-rows', boundary), [])
variant = dict(normal, **{'value':'id'+str(N)})
check('variant query or selection payload', solve('value', variant), 'id'+str(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 identityFalseFalsePassed
boundary identityTrueTruePassed
normal epochFalseFalsePassed
boundary epochTrueTruePassed
normal valuep1p1Passed
boundary valuePassed
normal querypepePassed
boundary queryPassed
normal empty-labelPearPearPassed
boundary empty-labelPassed
normal failureUnknown choiceUnknown choicePassed
boundary failurePassed
normal pendingTrueTruePassed
boundary pendingFalseFalsePassed
normal request['p1', 1]['p1', 1]Passed
boundary request['', 1]['', 1]Passed
normal clear-errorNoneNonePassed
boundary clear-errorNoneNonePassed
normal separate-rows['p0'][]Failed
boundary separate-rows[''][]Failed
variant query or selection payloadid1id1Passed
unknown completion event{'unchanged': True}{'unchanged': True}Passed

SHA-256 / 4dff4f7662802f19e48c2704599a6910a800493446605807c7b9bba279bd7692

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 == 'identity': return d['response_id']==d['value']
    if event == 'epoch': return d['response_epoch']==d['epoch']
    if event == 'value': return d['value']
    if event == 'query': return d['query']
    if event == 'empty-label': return d['label']
    if event == 'failure': return d['fallback'] if d['error'] else d['label']
    if event == 'pending': return d['pending'] and not d['resolved']
    if event == 'request': return [d['value'],d['epoch']]
    if event == 'clear-error': return None
    if event == 'separate-rows': return [d['label']]
    return {'unchanged': True}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
normal = {'value':'p1','response_id':'p0','label':'Pear','fallback':'Unknown choice','epoch':N,'response_epoch':N-1,'query':'pe','pending':True,'error':'missing','resolved':False}
boundary = {'value':'','response_id':'','label':'','fallback':'Unknown choice','epoch':N,'response_epoch':N,'query':'','pending':False,'error':None,'resolved':True}
check('normal identity', solve('identity', normal), False)
check('boundary identity', solve('identity', boundary), True)
check('normal epoch', solve('epoch', normal), False)
check('boundary epoch', solve('epoch', boundary), True)
check('normal value', solve('value', normal), 'p1')
check('boundary value', solve('value', boundary), '')
check('normal query', solve('query', normal), 'pe')
check('boundary query', solve('query', boundary), '')
check('normal empty-label', solve('empty-label', normal), 'Pear')
check('boundary empty-label', solve('empty-label', boundary), '')
check('normal failure', solve('failure', normal), 'Unknown choice')
check('boundary failure', solve('failure', boundary), '')
check('normal pending', solve('pending', normal), True)
check('boundary pending', solve('pending', boundary), False)
check('normal request', solve('request', normal), ['p1',N])
check('boundary request', solve('request', boundary), ['',N])
check('normal clear-error', solve('clear-error', normal), None)
check('boundary clear-error', solve('clear-error', boundary), None)
check('normal separate-rows', solve('separate-rows', normal), [])
check('boundary separate-rows', solve('separate-rows', boundary), [])
variant = dict(normal, **{'value':'id'+str(N)})
check('variant query or selection payload', solve('value', variant), 'id'+str(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 identityFalseFalsePassed
boundary identityTrueTruePassed
normal epochFalseFalsePassed
boundary epochTrueTruePassed
normal valuep1p1Passed
boundary valuePassed
normal querypepePassed
boundary queryPassed
normal empty-labelPearPearPassed
boundary empty-labelPassed
normal failureUnknown choiceUnknown choicePassed
boundary failurePassed
normal pendingTrueTruePassed
boundary pendingFalseFalsePassed
normal request['p1', 1]['p1', 1]Passed
boundary request['', 1]['', 1]Passed
normal clear-errorNoneNonePassed
boundary clear-errorNoneNonePassed
normal separate-rows['Pear'][]Failed
boundary separate-rows[''][]Failed
variant query or selection payloadid1id1Passed
unknown completion event{'unchanged': True}{'unchanged': True}Passed

SHA-256 / fe68e4c6895f7336649df25be447d4ac444a34e0c4145ea28d68dc818df88404

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:42.542872+00:00.

Case digest / 4a0ff043f9ef142d6c2859a5eed4ea4af893c77ec7722469c36f64ae8644859e