FA-23171 / Autocomplete interactions / Open access
Locking an active autocomplete: locking leaks an unpersisted create draft into the read-only selection display · case 01
The create-display completion transition produces an incorrect observable state.
ROOT CAUSE
At locked-picker/create-display, the implementation evaluates `{'id':d['create'],'label':d['draft']}` instead of preserving the specified completion transition.
THE FAILURE
At locked-picker/create-display, the implementation evaluates `{'id':d['create'],'label':d['draft']}` instead of preserving the specified completion transition.
Unsuccessful approach: The attempted repair uses `{'id':d['value'],'label':d['draft']}`, 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['label']] if d['value'] is not None else []
if event == 'copy-selected-label': return d['label']
if event == 'create-display': return {'id':d['create'],'label':d['draft']}
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': 'new-plum', 'label': 'peach'} | {'id': 'p1', 'label': 'Pear'} | Failed |
| boundary create-display | {'id': None, 'label': 'x'} | {'id': '', 'label': ''} | Failed |
| 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 / 35959d34df5d4530f3897d90e2706783f272cc95d6728568a34b0fab8cd78765
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['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['draft']}
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': 'peach'} | {'id': 'p1', 'label': 'Pear'} | Failed |
| boundary create-display | {'id': '', 'label': 'x'} | {'id': '', 'label': ''} | Failed |
| 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 / 8968649c0926ddea8c9c3d056dd4560984f0353e610b171a11c0c79caa64c628
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:45.361784+00:00.
Case digest / 69e0db33d54ae80d1eb112d6057f9a6747aaf316d4d470854f40865858f71514