FAILURE MAP
← Case archive

FA-31260 / Keyboard interactions / Member archive

Keyboard layout mapping generations: Physical code and device identity are misplaced in the layout cache key · case 05

The event trace violates the map key rule and produces incorrect keyboard state or command output.

Member previewVariant 5 · 3 implementations · 9 checks per implementation

Case contract

Events [kind,device,a,b]. layout replaces device generation a and clears cached labels; map caches physical code a to label b in current generation; lookup emits cached label or code a as fallback. Disconnect removes generation and cache. Maps and lookups before layout are ignored. Return emitted labels, generations and cached [device,code,label] rows. Inputs are finite ordered event traces; return the stated deterministic state. Batch entries are independent. N varies the number of independent input transactions.

Why this case matters

Controlled keyboard event processing model for debugging application event logic.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
layout-cache scenario 2[[["KeyA"], [["a", 1]], [["KeyA", "a", "x"]]], [["KeyA"], [["a", 1]], [["KeyA", "a", "x"]]], [["KeyA"], [["a", 1]], [["KeyA", "a", "x"]]], [["KeyA"], [["a", 1]], [["KeyA", "a", "x"]]], [["KeyA"], [["a", 1]], [["KeyA", "a", "x"]]]][[["x"], [["a", 1]], [["a", "KeyA", "x"]]], [["x"], [["a", 1]], [["a", "KeyA", "x"]]], [["x"], [["a", 1]], [["a", "KeyA", "x"]]], [["x"], [["a", 1]], [["a", "KeyA", "x"]]], [["x"], [["a", 1]], [["a", "KeyA", "x"]]]]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 ↗