FA-22571 / Autocomplete interactions / Open access
Suggestion pointer acceptance transaction: input blur destroys a pending suggestion press transaction · case 01
The blur-defer completion transition produces an incorrect observable state.
ROOT CAUSE
At pointer-acceptance/blur-defer, the implementation evaluates `False` instead of preserving the specified completion transition.
VERIFIED REPAIR
Implement the blur-defer contract using `d['pressed'] is not None`.
Unsuccessful approach: The attempted repair uses `True`, which still violates a normal or boundary completion fixture.
Case contract
Pointer acceptance captures option identity on press; release must match the captured pointer and row, remain inside, and exceed neither drag slop nor query epoch. Blur defers while a valid option press is pending. Hover is only preview and never a value commit.
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 == 'capture': return d['pressed']
if event == 'same-row': return d['pressed'] is not None and d['pressed']==d['released']
if event == 'same-pointer': return d['pointer']==d['release_pointer']
if event == 'inside': return d['inside']
if event == 'slop': return d['distance']<=d['slop']
if event == 'fresh': return d['press_epoch']==d['epoch']
if event == 'blur-defer': return False
if event == 'hover-value': return d['value']
if event == 'cancel': return {'pressed':None,'pointer':None}
if event == 'press-epoch': return d['epoch']
return {'unchanged': True}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
normal = {'pressed':'a','released':'b','pointer':N,'release_pointer':N+1,'inside':False,'distance':8,'slop':3,'epoch':N,'press_epoch':N-1,'hover':'c','value':'v'}
boundary = {'pressed':None,'released':None,'pointer':N,'release_pointer':N,'inside':True,'distance':0,'slop':0,'epoch':N,'press_epoch':N,'hover':None,'value':None}
check('normal capture', solve('capture', normal), 'a')
check('boundary capture', solve('capture', boundary), None)
check('normal same-row', solve('same-row', normal), False)
check('boundary same-row', solve('same-row', boundary), False)
check('normal same-pointer', solve('same-pointer', normal), False)
check('boundary same-pointer', solve('same-pointer', boundary), True)
check('normal inside', solve('inside', normal), False)
check('boundary inside', solve('inside', boundary), True)
check('normal slop', solve('slop', normal), False)
check('boundary slop', solve('slop', boundary), True)
check('normal fresh', solve('fresh', normal), False)
check('boundary fresh', solve('fresh', boundary), True)
check('normal blur-defer', solve('blur-defer', normal), True)
check('boundary blur-defer', solve('blur-defer', boundary), False)
check('normal hover-value', solve('hover-value', normal), 'v')
check('boundary hover-value', solve('hover-value', boundary), None)
check('normal cancel', solve('cancel', normal), {'pressed':None,'pointer':None})
check('boundary cancel', solve('cancel', boundary), {'pressed':None,'pointer':None})
check('normal press-epoch', solve('press-epoch', normal), N)
check('boundary press-epoch', solve('press-epoch', boundary), N)
variant = dict(normal, **{'pressed':'id'+str(N)})
check('variant query or selection payload', solve('capture', 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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| normal capture | a | a | Passed |
| boundary capture | None | None | Passed |
| normal same-row | False | False | Passed |
| boundary same-row | False | False | Passed |
| normal same-pointer | False | False | Passed |
| boundary same-pointer | True | True | Passed |
| normal inside | False | False | Passed |
| boundary inside | True | True | Passed |
| normal slop | False | False | Passed |
| boundary slop | True | True | Passed |
| normal fresh | False | False | Passed |
| boundary fresh | True | True | Passed |
| normal blur-defer | False | True | Failed |
| boundary blur-defer | False | False | Passed |
| normal hover-value | v | v | Passed |
| boundary hover-value | None | None | Passed |
| normal cancel | {'pointer': None, 'pressed': None} | {'pointer': None, 'pressed': None} | Passed |
| boundary cancel | {'pointer': None, 'pressed': None} | {'pointer': None, 'pressed': None} | Passed |
| normal press-epoch | 1 | 1 | Passed |
| boundary press-epoch | 1 | 1 | Passed |
| variant query or selection payload | id1 | id1 | Passed |
| unknown completion event | {'unchanged': True} | {'unchanged': True} | Passed |
SHA-256 / 0f913f0e67a4c3150f77c0d0d35be855ce758ca4e2d009db50a2fb85297f1900
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 == 'capture': return d['pressed']
if event == 'same-row': return d['pressed'] is not None and d['pressed']==d['released']
if event == 'same-pointer': return d['pointer']==d['release_pointer']
if event == 'inside': return d['inside']
if event == 'slop': return d['distance']<=d['slop']
if event == 'fresh': return d['press_epoch']==d['epoch']
if event == 'blur-defer': return True
if event == 'hover-value': return d['value']
if event == 'cancel': return {'pressed':None,'pointer':None}
if event == 'press-epoch': return d['epoch']
return {'unchanged': True}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
normal = {'pressed':'a','released':'b','pointer':N,'release_pointer':N+1,'inside':False,'distance':8,'slop':3,'epoch':N,'press_epoch':N-1,'hover':'c','value':'v'}
boundary = {'pressed':None,'released':None,'pointer':N,'release_pointer':N,'inside':True,'distance':0,'slop':0,'epoch':N,'press_epoch':N,'hover':None,'value':None}
check('normal capture', solve('capture', normal), 'a')
check('boundary capture', solve('capture', boundary), None)
check('normal same-row', solve('same-row', normal), False)
check('boundary same-row', solve('same-row', boundary), False)
check('normal same-pointer', solve('same-pointer', normal), False)
check('boundary same-pointer', solve('same-pointer', boundary), True)
check('normal inside', solve('inside', normal), False)
check('boundary inside', solve('inside', boundary), True)
check('normal slop', solve('slop', normal), False)
check('boundary slop', solve('slop', boundary), True)
check('normal fresh', solve('fresh', normal), False)
check('boundary fresh', solve('fresh', boundary), True)
check('normal blur-defer', solve('blur-defer', normal), True)
check('boundary blur-defer', solve('blur-defer', boundary), False)
check('normal hover-value', solve('hover-value', normal), 'v')
check('boundary hover-value', solve('hover-value', boundary), None)
check('normal cancel', solve('cancel', normal), {'pressed':None,'pointer':None})
check('boundary cancel', solve('cancel', boundary), {'pressed':None,'pointer':None})
check('normal press-epoch', solve('press-epoch', normal), N)
check('boundary press-epoch', solve('press-epoch', boundary), N)
variant = dict(normal, **{'pressed':'id'+str(N)})
check('variant query or selection payload', solve('capture', 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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| normal capture | a | a | Passed |
| boundary capture | None | None | Passed |
| normal same-row | False | False | Passed |
| boundary same-row | False | False | Passed |
| normal same-pointer | False | False | Passed |
| boundary same-pointer | True | True | Passed |
| normal inside | False | False | Passed |
| boundary inside | True | True | Passed |
| normal slop | False | False | Passed |
| boundary slop | True | True | Passed |
| normal fresh | False | False | Passed |
| boundary fresh | True | True | Passed |
| normal blur-defer | True | True | Passed |
| boundary blur-defer | True | False | Failed |
| normal hover-value | v | v | Passed |
| boundary hover-value | None | None | Passed |
| normal cancel | {'pointer': None, 'pressed': None} | {'pointer': None, 'pressed': None} | Passed |
| boundary cancel | {'pointer': None, 'pressed': None} | {'pointer': None, 'pressed': None} | Passed |
| normal press-epoch | 1 | 1 | Passed |
| boundary press-epoch | 1 | 1 | Passed |
| variant query or selection payload | id1 | id1 | Passed |
| unknown completion event | {'unchanged': True} | {'unchanged': True} | Passed |
SHA-256 / 7affc0bb2c8338698ce9294bcb2d748dc3555196778fc2790f08257eb685702f
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 == 'capture': return d['pressed']
if event == 'same-row': return d['pressed'] is not None and d['pressed']==d['released']
if event == 'same-pointer': return d['pointer']==d['release_pointer']
if event == 'inside': return d['inside']
if event == 'slop': return d['distance']<=d['slop']
if event == 'fresh': return d['press_epoch']==d['epoch']
if event == 'blur-defer': return d['pressed'] is not None
if event == 'hover-value': return d['value']
if event == 'cancel': return {'pressed':None,'pointer':None}
if event == 'press-epoch': return d['epoch']
return {'unchanged': True}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
normal = {'pressed':'a','released':'b','pointer':N,'release_pointer':N+1,'inside':False,'distance':8,'slop':3,'epoch':N,'press_epoch':N-1,'hover':'c','value':'v'}
boundary = {'pressed':None,'released':None,'pointer':N,'release_pointer':N,'inside':True,'distance':0,'slop':0,'epoch':N,'press_epoch':N,'hover':None,'value':None}
check('normal capture', solve('capture', normal), 'a')
check('boundary capture', solve('capture', boundary), None)
check('normal same-row', solve('same-row', normal), False)
check('boundary same-row', solve('same-row', boundary), False)
check('normal same-pointer', solve('same-pointer', normal), False)
check('boundary same-pointer', solve('same-pointer', boundary), True)
check('normal inside', solve('inside', normal), False)
check('boundary inside', solve('inside', boundary), True)
check('normal slop', solve('slop', normal), False)
check('boundary slop', solve('slop', boundary), True)
check('normal fresh', solve('fresh', normal), False)
check('boundary fresh', solve('fresh', boundary), True)
check('normal blur-defer', solve('blur-defer', normal), True)
check('boundary blur-defer', solve('blur-defer', boundary), False)
check('normal hover-value', solve('hover-value', normal), 'v')
check('boundary hover-value', solve('hover-value', boundary), None)
check('normal cancel', solve('cancel', normal), {'pressed':None,'pointer':None})
check('boundary cancel', solve('cancel', boundary), {'pressed':None,'pointer':None})
check('normal press-epoch', solve('press-epoch', normal), N)
check('boundary press-epoch', solve('press-epoch', boundary), N)
variant = dict(normal, **{'pressed':'id'+str(N)})
check('variant query or selection payload', solve('capture', 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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| normal capture | a | a | Passed |
| boundary capture | None | None | Passed |
| normal same-row | False | False | Passed |
| boundary same-row | False | False | Passed |
| normal same-pointer | False | False | Passed |
| boundary same-pointer | True | True | Passed |
| normal inside | False | False | Passed |
| boundary inside | True | True | Passed |
| normal slop | False | False | Passed |
| boundary slop | True | True | Passed |
| normal fresh | False | False | Passed |
| boundary fresh | True | True | Passed |
| normal blur-defer | True | True | Passed |
| boundary blur-defer | False | False | Passed |
| normal hover-value | v | v | Passed |
| boundary hover-value | None | None | Passed |
| normal cancel | {'pointer': None, 'pressed': None} | {'pointer': None, 'pressed': None} | Passed |
| boundary cancel | {'pointer': None, 'pressed': None} | {'pointer': None, 'pressed': None} | Passed |
| normal press-epoch | 1 | 1 | Passed |
| boundary press-epoch | 1 | 1 | Passed |
| variant query or selection payload | id1 | id1 | Passed |
| unknown completion event | {'unchanged': True} | {'unchanged': True} | Passed |
SHA-256 / 52ac3cd93717db8abf2112d83e623d7b77c761d4ab0a8454b3e592707793dc4d
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:39.617252+00:00.
Case digest / af2c1d0f4e28c1a2ea4753585df7a3a2173a32786d57eb1468ca93d8da9973f5