FAILURE MAP
← Case archive

FA-22147 / Autocomplete interactions / Member archive

Completion replacement spans: replacement prefix extends to the caret inside the token · case 02

The prefix completion transition produces an incorrect observable state.

Member previewVariant 2 · 3 implementations · 22 checks per implementation

Case contract

Suggestion insertion replaces the half-open token span [start,end), preserving surrounding text. Caret moves after inserted text, explicit selection takes precedence over token fallback, and a stale text epoch rejects replacement. These spans count Python code points, not browser UTF-16 units.

Why this case matters

Autocomplete couples draft text, suggestion identity and asynchronous presentation; this bounded lifecycle model isolates one observable interaction defect.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
normal prefix"red pe""red "Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗