FA-23161 / Autocomplete interactions / Open access
Locking an active autocomplete: read-only selected-label rendering exposes the highlighted suggestion identifier · case 01
The selected-row completion transition produces an incorrect observable state.
ROOT CAUSE
At locked-picker/selected-row, the implementation evaluates `[d['active']]` instead of preserving the specified completion transition.
VERIFIED REPAIR
Implement the selected-row contract using `[d['label']] if d['value'] is not None else []`.
Unsuccessful approach: The attempted repair uses `[d['value']]`, which still violates a normal or boundary completion fixture.
Case contract
Switching an active picker to read-only cancels mutable suggestion interaction while retaining its selected value and label. Draft is reverted to the selected label, pending requests and create transactions are detached, transient preview and result activation are removed, and unlocking does not replay an old acceptance.
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 == 'retain-value': return d['value']
if event == 'retain-label': return d['label']
if event == 'query-cancel': return None
if event == 'create-detach': return None
if event == 'selected-row': return [d['active']]
if event == 'copy-selected-label': return d['label']
if event == 'create-display': return {'id':d['value'],'label':d['label']}
if event == 'deferred-drop': return None
if event == 'allow-accept': return not d['locked']
if event == 'unlock-draft': 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','label':'Pear','draft':'peach','pending':'pe','create':'new-plum','active':'p2','preview':'ach','epoch':N,'deferred':'p2','locked':True}
boundary = {'value':'','label':'','draft':'x','pending':None,'create':None,'active':None,'preview':'','epoch':N,'deferred':None,'locked':False}
check('normal retain-value', solve('retain-value', normal), 'p1')
check('boundary retain-value', solve('retain-value', boundary), '')
check('normal retain-label', solve('retain-label', normal), 'Pear')
check('boundary retain-label', solve('retain-label', boundary), '')
check('normal query-cancel', solve('query-cancel', normal), None)
check('boundary query-cancel', solve('query-cancel', boundary), None)
check('normal create-detach', solve('create-detach', normal), None)
check('boundary create-detach', solve('create-detach', boundary), None)
check('normal selected-row', solve('selected-row', normal), ['Pear'])
check('boundary selected-row', solve('selected-row', boundary), [''])
check('normal copy-selected-label', solve('copy-selected-label', normal), 'Pear')
check('boundary copy-selected-label', solve('copy-selected-label', boundary), '')
check('normal create-display', solve('create-display', normal), {'id':'p1','label':'Pear'})
check('boundary create-display', solve('create-display', boundary), {'id':'','label':''})
check('normal deferred-drop', solve('deferred-drop', normal), None)
check('boundary deferred-drop', solve('deferred-drop', boundary), None)
check('normal allow-accept', solve('allow-accept', normal), False)
check('boundary allow-accept', solve('allow-accept', boundary), True)
check('normal unlock-draft', solve('unlock-draft', normal), 'Pear')
check('boundary unlock-draft', solve('unlock-draft', boundary), '')
variant = dict(normal, **{'label':'L'*N})
check('variant query or selection payload', solve('retain-label', 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 retain-value | p1 | p1 | Passed |
| boundary retain-value | | | Passed |
| normal retain-label | Pear | Pear | Passed |
| boundary retain-label | | | Passed |
| normal query-cancel | None | None | Passed |
| boundary query-cancel | None | None | Passed |
| normal create-detach | None | None | Passed |
| boundary create-detach | None | None | Passed |
| normal selected-row | ['p2'] | ['Pear'] | Failed |
| boundary selected-row | [None] | [''] | Failed |
| normal copy-selected-label | Pear | Pear | Passed |
| boundary copy-selected-label | | | Passed |
| normal create-display | {'id': 'p1', 'label': 'Pear'} | {'id': 'p1', 'label': 'Pear'} | Passed |
| boundary create-display | {'id': '', 'label': ''} | {'id': '', 'label': ''} | Passed |
| normal deferred-drop | None | None | Passed |
| boundary deferred-drop | None | None | Passed |
| normal allow-accept | False | False | Passed |
| boundary allow-accept | True | True | Passed |
| normal unlock-draft | Pear | Pear | Passed |
| boundary unlock-draft | | | Passed |
| variant query or selection payload | L | L | Passed |
| unknown completion event | {'unchanged': True} | {'unchanged': True} | Passed |
SHA-256 / e5f0a502050cd9d175ebda2387dc8def9977d778a6a21752d84f7de0b49906cd
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 == 'retain-value': return d['value']
if event == 'retain-label': return d['label']
if event == 'query-cancel': return None
if event == 'create-detach': return None
if event == 'selected-row': return [d['value']]
if event == 'copy-selected-label': return d['label']
if event == 'create-display': return {'id':d['value'],'label':d['label']}
if event == 'deferred-drop': return None
if event == 'allow-accept': return not d['locked']
if event == 'unlock-draft': 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','label':'Pear','draft':'peach','pending':'pe','create':'new-plum','active':'p2','preview':'ach','epoch':N,'deferred':'p2','locked':True}
boundary = {'value':'','label':'','draft':'x','pending':None,'create':None,'active':None,'preview':'','epoch':N,'deferred':None,'locked':False}
check('normal retain-value', solve('retain-value', normal), 'p1')
check('boundary retain-value', solve('retain-value', boundary), '')
check('normal retain-label', solve('retain-label', normal), 'Pear')
check('boundary retain-label', solve('retain-label', boundary), '')
check('normal query-cancel', solve('query-cancel', normal), None)
check('boundary query-cancel', solve('query-cancel', boundary), None)
check('normal create-detach', solve('create-detach', normal), None)
check('boundary create-detach', solve('create-detach', boundary), None)
check('normal selected-row', solve('selected-row', normal), ['Pear'])
check('boundary selected-row', solve('selected-row', boundary), [''])
check('normal copy-selected-label', solve('copy-selected-label', normal), 'Pear')
check('boundary copy-selected-label', solve('copy-selected-label', boundary), '')
check('normal create-display', solve('create-display', normal), {'id':'p1','label':'Pear'})
check('boundary create-display', solve('create-display', boundary), {'id':'','label':''})
check('normal deferred-drop', solve('deferred-drop', normal), None)
check('boundary deferred-drop', solve('deferred-drop', boundary), None)
check('normal allow-accept', solve('allow-accept', normal), False)
check('boundary allow-accept', solve('allow-accept', boundary), True)
check('normal unlock-draft', solve('unlock-draft', normal), 'Pear')
check('boundary unlock-draft', solve('unlock-draft', boundary), '')
variant = dict(normal, **{'label':'L'*N})
check('variant query or selection payload', solve('retain-label', 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 retain-value | p1 | p1 | Passed |
| boundary retain-value | | | Passed |
| normal retain-label | Pear | Pear | Passed |
| boundary retain-label | | | Passed |
| normal query-cancel | None | None | Passed |
| boundary query-cancel | None | None | Passed |
| normal create-detach | None | None | Passed |
| boundary create-detach | None | None | Passed |
| normal selected-row | ['p1'] | ['Pear'] | Failed |
| boundary selected-row | [''] | [''] | Passed |
| normal copy-selected-label | Pear | Pear | Passed |
| boundary copy-selected-label | | | Passed |
| normal create-display | {'id': 'p1', 'label': 'Pear'} | {'id': 'p1', 'label': 'Pear'} | Passed |
| boundary create-display | {'id': '', 'label': ''} | {'id': '', 'label': ''} | Passed |
| normal deferred-drop | None | None | Passed |
| boundary deferred-drop | None | None | Passed |
| normal allow-accept | False | False | Passed |
| boundary allow-accept | True | True | Passed |
| normal unlock-draft | Pear | Pear | Passed |
| boundary unlock-draft | | | Passed |
| variant query or selection payload | L | L | Passed |
| unknown completion event | {'unchanged': True} | {'unchanged': True} | Passed |
SHA-256 / b7f8013e64ff8bb5623d60d8ba41ea09706f6a390b8b31a30b38b194c8059dce
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 == 'retain-value': return d['value']
if event == 'retain-label': return d['label']
if event == 'query-cancel': return None
if event == 'create-detach': return None
if event == 'selected-row': return [d['label']] if d['value'] is not None else []
if event == 'copy-selected-label': return d['label']
if event == 'create-display': return {'id':d['value'],'label':d['label']}
if event == 'deferred-drop': return None
if event == 'allow-accept': return not d['locked']
if event == 'unlock-draft': 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','label':'Pear','draft':'peach','pending':'pe','create':'new-plum','active':'p2','preview':'ach','epoch':N,'deferred':'p2','locked':True}
boundary = {'value':'','label':'','draft':'x','pending':None,'create':None,'active':None,'preview':'','epoch':N,'deferred':None,'locked':False}
check('normal retain-value', solve('retain-value', normal), 'p1')
check('boundary retain-value', solve('retain-value', boundary), '')
check('normal retain-label', solve('retain-label', normal), 'Pear')
check('boundary retain-label', solve('retain-label', boundary), '')
check('normal query-cancel', solve('query-cancel', normal), None)
check('boundary query-cancel', solve('query-cancel', boundary), None)
check('normal create-detach', solve('create-detach', normal), None)
check('boundary create-detach', solve('create-detach', boundary), None)
check('normal selected-row', solve('selected-row', normal), ['Pear'])
check('boundary selected-row', solve('selected-row', boundary), [''])
check('normal copy-selected-label', solve('copy-selected-label', normal), 'Pear')
check('boundary copy-selected-label', solve('copy-selected-label', boundary), '')
check('normal create-display', solve('create-display', normal), {'id':'p1','label':'Pear'})
check('boundary create-display', solve('create-display', boundary), {'id':'','label':''})
check('normal deferred-drop', solve('deferred-drop', normal), None)
check('boundary deferred-drop', solve('deferred-drop', boundary), None)
check('normal allow-accept', solve('allow-accept', normal), False)
check('boundary allow-accept', solve('allow-accept', boundary), True)
check('normal unlock-draft', solve('unlock-draft', normal), 'Pear')
check('boundary unlock-draft', solve('unlock-draft', boundary), '')
variant = dict(normal, **{'label':'L'*N})
check('variant query or selection payload', solve('retain-label', 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 retain-value | p1 | p1 | Passed |
| boundary retain-value | | | Passed |
| normal retain-label | Pear | Pear | Passed |
| boundary retain-label | | | Passed |
| normal query-cancel | None | None | Passed |
| boundary query-cancel | None | None | Passed |
| normal create-detach | None | None | Passed |
| boundary create-detach | None | None | Passed |
| normal selected-row | ['Pear'] | ['Pear'] | Passed |
| boundary selected-row | [''] | [''] | Passed |
| normal copy-selected-label | Pear | Pear | Passed |
| boundary copy-selected-label | | | Passed |
| normal create-display | {'id': 'p1', 'label': 'Pear'} | {'id': 'p1', 'label': 'Pear'} | Passed |
| boundary create-display | {'id': '', 'label': ''} | {'id': '', 'label': ''} | Passed |
| normal deferred-drop | None | None | Passed |
| boundary deferred-drop | None | None | Passed |
| normal allow-accept | False | False | Passed |
| boundary allow-accept | True | True | Passed |
| normal unlock-draft | Pear | Pear | Passed |
| boundary unlock-draft | | | Passed |
| variant query or selection payload | L | L | Passed |
| unknown completion event | {'unchanged': True} | {'unchanged': True} | Passed |
SHA-256 / 3974b898ffc15f675b2ca0acb7e15b59c9c4204c2e5f1805b92397a56f90da79
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:45.060852+00:00.
Case digest / a5f8b9e5469c441e5c9a22cc3b4ae9644e33a077267fb39ad889f67e4463593c