FA-22271 / Autocomplete interactions / Open access
Free-text option creation: created option retains the temporary identifier after persistence · case 01
The resolve completion transition produces an incorrect observable state.
ROOT CAUSE
At create-option/resolve, the implementation evaluates `d['temporary']` instead of preserving the specified completion transition.
THE FAILURE
At create-option/resolve, the implementation evaluates `d['temporary']` instead of preserving the specified completion transition.
Unsuccessful approach: The attempted repair uses `d['persisted'] or d['temporary']`, which still violates a normal or boundary completion fixture.
Case contract
This picker may create a new option from trimmed draft only when creation is enabled, the draft is nonempty, no case-insensitive exact label exists, and no create transaction is pending. Synthetic create rows carry a distinct namespace and raw text is never mistaken for a persisted identifier.
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 == 'trim': return d['draft'].strip()
if event == 'exact': return d['draft'].strip().casefold() in [x.casefold() for x in d['labels']]
if event == 'nonempty': return bool(d['draft'].strip())
if event == 'permission': return d['allow']
if event == 'busy': return not d['pending']
if event == 'row-id': return 'create:'+d['draft'].strip()
if event == 'resolve': return d['temporary']
if event == 'failure': return {'draft':d['draft'],'error':d['error'],'pending':False}
if event == 'pending-value': return None if d['pending'] else d['persisted']
if event == 'retry': return {'text':d['draft'].strip(),'query_epoch':d['query_epoch']+1}
return {'unchanged': True}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
normal = {'draft':' Plum ','labels':['Pear','plum'],'allow':True,'pending':True,'temporary':'tmp:'+str(N),'persisted':'p'+str(N),'error':'rejected','query_epoch':N}
boundary = {'draft':' ','labels':[],'allow':False,'pending':False,'temporary':'tmp:'+str(N),'persisted':'','error':None,'query_epoch':N}
check('normal trim', solve('trim', normal), 'Plum')
check('boundary trim', solve('trim', boundary), '')
check('normal exact', solve('exact', normal), True)
check('boundary exact', solve('exact', boundary), False)
check('normal nonempty', solve('nonempty', normal), True)
check('boundary nonempty', solve('nonempty', boundary), False)
check('normal permission', solve('permission', normal), True)
check('boundary permission', solve('permission', boundary), False)
check('normal busy', solve('busy', normal), False)
check('boundary busy', solve('busy', boundary), True)
check('normal row-id', solve('row-id', normal), 'create:Plum')
check('boundary row-id', solve('row-id', boundary), 'create:')
check('normal resolve', solve('resolve', normal), 'p'+str(N))
check('boundary resolve', solve('resolve', boundary), '')
check('normal failure', solve('failure', normal), {'draft':' Plum ','error':'rejected','pending':False})
check('boundary failure', solve('failure', boundary), {'draft':' ','error':None,'pending':False})
check('normal pending-value', solve('pending-value', normal), None)
check('boundary pending-value', solve('pending-value', boundary), '')
check('normal retry', solve('retry', normal), {'text':'Plum','query_epoch':N+1})
check('boundary retry', solve('retry', boundary), {'text':'','query_epoch':N+1})
variant = dict(normal, **{'draft':' '*N+'Plum'+' '*N})
check('variant query or selection payload', solve('trim', variant), 'Plum')
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 trim | Plum | Plum | Passed |
| boundary trim | | | Passed |
| normal exact | True | True | Passed |
| boundary exact | False | False | Passed |
| normal nonempty | True | True | Passed |
| boundary nonempty | False | False | Passed |
| normal permission | True | True | Passed |
| boundary permission | False | False | Passed |
| normal busy | False | False | Passed |
| boundary busy | True | True | Passed |
| normal row-id | create:Plum | create:Plum | Passed |
| boundary row-id | create: | create: | Passed |
| normal resolve | tmp:1 | p1 | Failed |
| boundary resolve | tmp:1 | | Failed |
| normal failure | {'draft': ' Plum ', 'error': 'rejected', 'pending': False} | {'draft': ' Plum ', 'error': 'rejected', 'pending': False} | Passed |
| boundary failure | {'draft': ' ', 'error': None, 'pending': False} | {'draft': ' ', 'error': None, 'pending': False} | Passed |
| normal pending-value | None | None | Passed |
| boundary pending-value | | | Passed |
| normal retry | {'query_epoch': 2, 'text': 'Plum'} | {'query_epoch': 2, 'text': 'Plum'} | Passed |
| boundary retry | {'query_epoch': 2, 'text': ''} | {'query_epoch': 2, 'text': ''} | Passed |
| variant query or selection payload | Plum | Plum | Passed |
| unknown completion event | {'unchanged': True} | {'unchanged': True} | Passed |
SHA-256 / 12f1c0113559b97b54b0031c3726a74ac87ab156da2c478a246499d99db5d5a4
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 == 'trim': return d['draft'].strip()
if event == 'exact': return d['draft'].strip().casefold() in [x.casefold() for x in d['labels']]
if event == 'nonempty': return bool(d['draft'].strip())
if event == 'permission': return d['allow']
if event == 'busy': return not d['pending']
if event == 'row-id': return 'create:'+d['draft'].strip()
if event == 'resolve': return d['persisted'] or d['temporary']
if event == 'failure': return {'draft':d['draft'],'error':d['error'],'pending':False}
if event == 'pending-value': return None if d['pending'] else d['persisted']
if event == 'retry': return {'text':d['draft'].strip(),'query_epoch':d['query_epoch']+1}
return {'unchanged': True}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
normal = {'draft':' Plum ','labels':['Pear','plum'],'allow':True,'pending':True,'temporary':'tmp:'+str(N),'persisted':'p'+str(N),'error':'rejected','query_epoch':N}
boundary = {'draft':' ','labels':[],'allow':False,'pending':False,'temporary':'tmp:'+str(N),'persisted':'','error':None,'query_epoch':N}
check('normal trim', solve('trim', normal), 'Plum')
check('boundary trim', solve('trim', boundary), '')
check('normal exact', solve('exact', normal), True)
check('boundary exact', solve('exact', boundary), False)
check('normal nonempty', solve('nonempty', normal), True)
check('boundary nonempty', solve('nonempty', boundary), False)
check('normal permission', solve('permission', normal), True)
check('boundary permission', solve('permission', boundary), False)
check('normal busy', solve('busy', normal), False)
check('boundary busy', solve('busy', boundary), True)
check('normal row-id', solve('row-id', normal), 'create:Plum')
check('boundary row-id', solve('row-id', boundary), 'create:')
check('normal resolve', solve('resolve', normal), 'p'+str(N))
check('boundary resolve', solve('resolve', boundary), '')
check('normal failure', solve('failure', normal), {'draft':' Plum ','error':'rejected','pending':False})
check('boundary failure', solve('failure', boundary), {'draft':' ','error':None,'pending':False})
check('normal pending-value', solve('pending-value', normal), None)
check('boundary pending-value', solve('pending-value', boundary), '')
check('normal retry', solve('retry', normal), {'text':'Plum','query_epoch':N+1})
check('boundary retry', solve('retry', boundary), {'text':'','query_epoch':N+1})
variant = dict(normal, **{'draft':' '*N+'Plum'+' '*N})
check('variant query or selection payload', solve('trim', variant), 'Plum')
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 trim | Plum | Plum | Passed |
| boundary trim | | | Passed |
| normal exact | True | True | Passed |
| boundary exact | False | False | Passed |
| normal nonempty | True | True | Passed |
| boundary nonempty | False | False | Passed |
| normal permission | True | True | Passed |
| boundary permission | False | False | Passed |
| normal busy | False | False | Passed |
| boundary busy | True | True | Passed |
| normal row-id | create:Plum | create:Plum | Passed |
| boundary row-id | create: | create: | Passed |
| normal resolve | p1 | p1 | Passed |
| boundary resolve | tmp:1 | | Failed |
| normal failure | {'draft': ' Plum ', 'error': 'rejected', 'pending': False} | {'draft': ' Plum ', 'error': 'rejected', 'pending': False} | Passed |
| boundary failure | {'draft': ' ', 'error': None, 'pending': False} | {'draft': ' ', 'error': None, 'pending': False} | Passed |
| normal pending-value | None | None | Passed |
| boundary pending-value | | | Passed |
| normal retry | {'query_epoch': 2, 'text': 'Plum'} | {'query_epoch': 2, 'text': 'Plum'} | Passed |
| boundary retry | {'query_epoch': 2, 'text': ''} | {'query_epoch': 2, 'text': ''} | Passed |
| variant query or selection payload | Plum | Plum | Passed |
| unknown completion event | {'unchanged': True} | {'unchanged': True} | Passed |
SHA-256 / 4cb4b9b872f5f996edbaa359d095a099bfda367ff50d33fab5dcf3005947b3cd
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:36.972081+00:00.
Case digest / 881c7f1ba47fbf724e311cc988bf9647077194776e6460df9044a72c4ff1143b