FA-23286 / Autocomplete interactions / Open access
Unresolved autocomplete draft on blur: blur emits a value change solely because search draft differs · case 01
The changed completion transition produces an incorrect observable state.
ROOT CAUSE
At blur-resolution/changed, the implementation evaluates `d['draft']!=d['label']` instead of preserving the specified completion transition.
VERIFIED REPAIR
Implement the changed contract using `False`.
Unsuccessful approach: The attempted repair uses `True`, which still violates a normal or boundary completion fixture.
Case contract
This strict-selection picker reverts an unresolved draft to the committed label after blur unless a suggestion pointer acceptance or IME composition is in progress. Exact unique candidate confirmation is an explicit separate transition. Blur never chooses a highlighted candidate merely because it exists.
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 == 'revert': return d['label']
if event == 'value': return d['value']
if event == 'pointer': return not d['pointer_pending']
if event == 'composition': return not d['composing']
if event == 'exact': return d['exact_ids'][0] if len(d['exact_ids'])==1 else None
if event == 'touched': return True
if event == 'pending': return None
if event == 'free-text-rejection': return {'resolved':d['value'] is not None,'free_text':None}
if event == 'unresolved-validation': return {'invalid_draft':d['draft']!=d['label'],'candidate':None}
if event == 'changed': return d['draft']!=d['label']
return {'unchanged': True}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
normal = {'draft':'peach','value':'p1','label':'Pear','active':'p2','pointer_pending':True,'composing':True,'exact_ids':['p3','p4'],'query_epoch':N,'pending':'peach','touched':False}
boundary = {'draft':'','value':None,'label':'','active':None,'pointer_pending':False,'composing':False,'exact_ids':[''],'query_epoch':N,'pending':None,'touched':True}
check('normal revert', solve('revert', normal), 'Pear')
check('boundary revert', solve('revert', boundary), '')
check('normal value', solve('value', normal), 'p1')
check('boundary value', solve('value', boundary), None)
check('normal pointer', solve('pointer', normal), False)
check('boundary pointer', solve('pointer', boundary), True)
check('normal composition', solve('composition', normal), False)
check('boundary composition', solve('composition', boundary), True)
check('normal exact', solve('exact', normal), None)
check('boundary exact', solve('exact', boundary), '')
check('normal touched', solve('touched', normal), True)
check('boundary touched', solve('touched', boundary), True)
check('normal pending', solve('pending', normal), None)
check('boundary pending', solve('pending', boundary), None)
check('normal free-text-rejection', solve('free-text-rejection', normal), {'resolved':True,'free_text':None})
check('boundary free-text-rejection', solve('free-text-rejection', boundary), {'resolved':False,'free_text':None})
check('normal unresolved-validation', solve('unresolved-validation', normal), {'invalid_draft':True,'candidate':None})
check('boundary unresolved-validation', solve('unresolved-validation', boundary), {'invalid_draft':False,'candidate':None})
check('normal changed', solve('changed', normal), False)
check('boundary changed', solve('changed', boundary), False)
variant = dict(normal, **{'label':'L'*N})
check('variant query or selection payload', solve('revert', variant), 'L'*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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| normal revert | Pear | Pear | Passed |
| boundary revert | | | Passed |
| normal value | p1 | p1 | Passed |
| boundary value | None | None | Passed |
| normal pointer | False | False | Passed |
| boundary pointer | True | True | Passed |
| normal composition | False | False | Passed |
| boundary composition | True | True | Passed |
| normal exact | None | None | Passed |
| boundary exact | | | Passed |
| normal touched | True | True | Passed |
| boundary touched | True | True | Passed |
| normal pending | None | None | Passed |
| boundary pending | None | None | Passed |
| normal free-text-rejection | {'free_text': None, 'resolved': True} | {'free_text': None, 'resolved': True} | Passed |
| boundary free-text-rejection | {'free_text': None, 'resolved': False} | {'free_text': None, 'resolved': False} | Passed |
| normal unresolved-validation | {'candidate': None, 'invalid_draft': True} | {'candidate': None, 'invalid_draft': True} | Passed |
| boundary unresolved-validation | {'candidate': None, 'invalid_draft': False} | {'candidate': None, 'invalid_draft': False} | Passed |
| normal changed | True | False | Failed |
| boundary changed | False | False | Passed |
| variant query or selection payload | L | L | Passed |
| unknown completion event | {'unchanged': True} | {'unchanged': True} | Passed |
SHA-256 / 4d0368bd6eefeec131795ce07c40fc324ab636f9b239f33e018725a873b01082
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 == 'revert': return d['label']
if event == 'value': return d['value']
if event == 'pointer': return not d['pointer_pending']
if event == 'composition': return not d['composing']
if event == 'exact': return d['exact_ids'][0] if len(d['exact_ids'])==1 else None
if event == 'touched': return True
if event == 'pending': return None
if event == 'free-text-rejection': return {'resolved':d['value'] is not None,'free_text':None}
if event == 'unresolved-validation': return {'invalid_draft':d['draft']!=d['label'],'candidate':None}
if event == 'changed': return True
return {'unchanged': True}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
normal = {'draft':'peach','value':'p1','label':'Pear','active':'p2','pointer_pending':True,'composing':True,'exact_ids':['p3','p4'],'query_epoch':N,'pending':'peach','touched':False}
boundary = {'draft':'','value':None,'label':'','active':None,'pointer_pending':False,'composing':False,'exact_ids':[''],'query_epoch':N,'pending':None,'touched':True}
check('normal revert', solve('revert', normal), 'Pear')
check('boundary revert', solve('revert', boundary), '')
check('normal value', solve('value', normal), 'p1')
check('boundary value', solve('value', boundary), None)
check('normal pointer', solve('pointer', normal), False)
check('boundary pointer', solve('pointer', boundary), True)
check('normal composition', solve('composition', normal), False)
check('boundary composition', solve('composition', boundary), True)
check('normal exact', solve('exact', normal), None)
check('boundary exact', solve('exact', boundary), '')
check('normal touched', solve('touched', normal), True)
check('boundary touched', solve('touched', boundary), True)
check('normal pending', solve('pending', normal), None)
check('boundary pending', solve('pending', boundary), None)
check('normal free-text-rejection', solve('free-text-rejection', normal), {'resolved':True,'free_text':None})
check('boundary free-text-rejection', solve('free-text-rejection', boundary), {'resolved':False,'free_text':None})
check('normal unresolved-validation', solve('unresolved-validation', normal), {'invalid_draft':True,'candidate':None})
check('boundary unresolved-validation', solve('unresolved-validation', boundary), {'invalid_draft':False,'candidate':None})
check('normal changed', solve('changed', normal), False)
check('boundary changed', solve('changed', boundary), False)
variant = dict(normal, **{'label':'L'*N})
check('variant query or selection payload', solve('revert', variant), 'L'*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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| normal revert | Pear | Pear | Passed |
| boundary revert | | | Passed |
| normal value | p1 | p1 | Passed |
| boundary value | None | None | Passed |
| normal pointer | False | False | Passed |
| boundary pointer | True | True | Passed |
| normal composition | False | False | Passed |
| boundary composition | True | True | Passed |
| normal exact | None | None | Passed |
| boundary exact | | | Passed |
| normal touched | True | True | Passed |
| boundary touched | True | True | Passed |
| normal pending | None | None | Passed |
| boundary pending | None | None | Passed |
| normal free-text-rejection | {'free_text': None, 'resolved': True} | {'free_text': None, 'resolved': True} | Passed |
| boundary free-text-rejection | {'free_text': None, 'resolved': False} | {'free_text': None, 'resolved': False} | Passed |
| normal unresolved-validation | {'candidate': None, 'invalid_draft': True} | {'candidate': None, 'invalid_draft': True} | Passed |
| boundary unresolved-validation | {'candidate': None, 'invalid_draft': False} | {'candidate': None, 'invalid_draft': False} | Passed |
| normal changed | True | False | Failed |
| boundary changed | True | False | Failed |
| variant query or selection payload | L | L | Passed |
| unknown completion event | {'unchanged': True} | {'unchanged': True} | Passed |
SHA-256 / fbd283e29bc3512c66dd14511c90d6c1367cfd5b2829da89018a25ac38bd8632
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(event, d):
if event == 'revert': return d['label']
if event == 'value': return d['value']
if event == 'pointer': return not d['pointer_pending']
if event == 'composition': return not d['composing']
if event == 'exact': return d['exact_ids'][0] if len(d['exact_ids'])==1 else None
if event == 'touched': return True
if event == 'pending': return None
if event == 'free-text-rejection': return {'resolved':d['value'] is not None,'free_text':None}
if event == 'unresolved-validation': return {'invalid_draft':d['draft']!=d['label'],'candidate':None}
if event == 'changed': return False
return {'unchanged': True}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
normal = {'draft':'peach','value':'p1','label':'Pear','active':'p2','pointer_pending':True,'composing':True,'exact_ids':['p3','p4'],'query_epoch':N,'pending':'peach','touched':False}
boundary = {'draft':'','value':None,'label':'','active':None,'pointer_pending':False,'composing':False,'exact_ids':[''],'query_epoch':N,'pending':None,'touched':True}
check('normal revert', solve('revert', normal), 'Pear')
check('boundary revert', solve('revert', boundary), '')
check('normal value', solve('value', normal), 'p1')
check('boundary value', solve('value', boundary), None)
check('normal pointer', solve('pointer', normal), False)
check('boundary pointer', solve('pointer', boundary), True)
check('normal composition', solve('composition', normal), False)
check('boundary composition', solve('composition', boundary), True)
check('normal exact', solve('exact', normal), None)
check('boundary exact', solve('exact', boundary), '')
check('normal touched', solve('touched', normal), True)
check('boundary touched', solve('touched', boundary), True)
check('normal pending', solve('pending', normal), None)
check('boundary pending', solve('pending', boundary), None)
check('normal free-text-rejection', solve('free-text-rejection', normal), {'resolved':True,'free_text':None})
check('boundary free-text-rejection', solve('free-text-rejection', boundary), {'resolved':False,'free_text':None})
check('normal unresolved-validation', solve('unresolved-validation', normal), {'invalid_draft':True,'candidate':None})
check('boundary unresolved-validation', solve('unresolved-validation', boundary), {'invalid_draft':False,'candidate':None})
check('normal changed', solve('changed', normal), False)
check('boundary changed', solve('changed', boundary), False)
variant = dict(normal, **{'label':'L'*N})
check('variant query or selection payload', solve('revert', variant), 'L'*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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| normal revert | Pear | Pear | Passed |
| boundary revert | | | Passed |
| normal value | p1 | p1 | Passed |
| boundary value | None | None | Passed |
| normal pointer | False | False | Passed |
| boundary pointer | True | True | Passed |
| normal composition | False | False | Passed |
| boundary composition | True | True | Passed |
| normal exact | None | None | Passed |
| boundary exact | | | Passed |
| normal touched | True | True | Passed |
| boundary touched | True | True | Passed |
| normal pending | None | None | Passed |
| boundary pending | None | None | Passed |
| normal free-text-rejection | {'free_text': None, 'resolved': True} | {'free_text': None, 'resolved': True} | Passed |
| boundary free-text-rejection | {'free_text': None, 'resolved': False} | {'free_text': None, 'resolved': False} | Passed |
| normal unresolved-validation | {'candidate': None, 'invalid_draft': True} | {'candidate': None, 'invalid_draft': True} | Passed |
| boundary unresolved-validation | {'candidate': None, 'invalid_draft': False} | {'candidate': None, 'invalid_draft': False} | Passed |
| normal changed | False | False | Passed |
| boundary changed | False | False | Passed |
| variant query or selection payload | L | L | Passed |
| unknown completion event | {'unchanged': True} | {'unchanged': True} | Passed |
SHA-256 / 818133182f73b0899f627a02617f5229006c28cf27444e1a7ae9aba1a8f916d2
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:46.183136+00:00.
Case digest / b802df5ccf9a169f385ae0f775300ca09bb06cfd1994ef241bbd150ca6ae789e