FA-8596 / Tab interfaces / Open access
Tab selection and activation mode: Manual-activation tabs switch panels on arrow navigation · case 01
Manual-activation tabs switch panels on arrow navigation.
ROOT CAUSE
The manual mode operation uses `True` where the contract requires `automatic or key in ('Enter','Space')`.
THE FAILURE
The manual mode operation uses `True` where the contract requires `automatic or key in ('Enter','Space')`.
Unsuccessful approach: Supporting Enter alone omits Space activation.
Case contract
Focus traverses enabled tabs; automatic mode activates on focus, manual mode requires Enter or Space; removed focus or selection falls back to first enabled tab.
Why this case matters
A deterministic model of tab selection and activation mode; this isolates one interface invariant without requiring a browser.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(tabs, focused, selected, key, automatic, disabled):
available = [t for t in tabs if t not in disabled]
if not available: return (None, None)
if focused not in available: focused = available[0]
if key == 'Next': focused = available[(available.index(focused)+1) % len(available)]
if key == 'Previous': focused = available[(available.index(focused)-1) % len(available)]
if True: selected = focused
if selected not in available: selected = available[0]
return (focused, selected)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('disabled', solve(['a','b','c'], 'a', 'a', 'Next', True, ['b']), ('c', 'c'))
check('removed focus', solve(['a','b','c'], 'gone', 'a', 'none', False, []), ('a', 'a'))
check('next', solve(['a','b','c'], 'a', 'a', 'Next', True, []), ('b', 'b'))
check('manual', solve(['a','b','c'], 'a', 'a', 'Next', False, []), ('b', 'a'))
check('space', solve(['a','b'], 'b', 'a', 'Space', False, []), ('b', 'b'))
check('removed selection', solve(['a','b'], 'b', 'gone', 'none', False, []), ('b', 'a'))
check('empty', solve([], None, None, 'Next', True, []), (None, None))
check('parameterized tab identities', solve(list(range(N+2)), N, N, 'Next', True, []), (N+1,N+1))
for repetition in range(N):
check('repeat empty', solve([], None, None, 'Next', True, []), (None, None))
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 |
|---|---|---|---|
| disabled | ['c', 'c'] | ['c', 'c'] | Passed |
| removed focus | ['a', 'a'] | ['a', 'a'] | Passed |
| next | ['b', 'b'] | ['b', 'b'] | Passed |
| manual | ['b', 'b'] | ['b', 'a'] | Failed |
| space | ['b', 'b'] | ['b', 'b'] | Passed |
| removed selection | ['b', 'b'] | ['b', 'a'] | Failed |
| empty | [None, None] | [None, None] | Passed |
| parameterized tab identities | [2, 2] | [2, 2] | Passed |
| repeat empty | [None, None] | [None, None] | Passed |
SHA-256 / 573cd50a6c16beed3aad2177db38ceb82424dcc7ef32fd8654740cff46460d9a
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(tabs, focused, selected, key, automatic, disabled):
available = [t for t in tabs if t not in disabled]
if not available: return (None, None)
if focused not in available: focused = available[0]
if key == 'Next': focused = available[(available.index(focused)+1) % len(available)]
if key == 'Previous': focused = available[(available.index(focused)-1) % len(available)]
if automatic or key == 'Enter': selected = focused
if selected not in available: selected = available[0]
return (focused, selected)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('disabled', solve(['a','b','c'], 'a', 'a', 'Next', True, ['b']), ('c', 'c'))
check('removed focus', solve(['a','b','c'], 'gone', 'a', 'none', False, []), ('a', 'a'))
check('next', solve(['a','b','c'], 'a', 'a', 'Next', True, []), ('b', 'b'))
check('manual', solve(['a','b','c'], 'a', 'a', 'Next', False, []), ('b', 'a'))
check('space', solve(['a','b'], 'b', 'a', 'Space', False, []), ('b', 'b'))
check('removed selection', solve(['a','b'], 'b', 'gone', 'none', False, []), ('b', 'a'))
check('empty', solve([], None, None, 'Next', True, []), (None, None))
check('parameterized tab identities', solve(list(range(N+2)), N, N, 'Next', True, []), (N+1,N+1))
for repetition in range(N):
check('repeat empty', solve([], None, None, 'Next', True, []), (None, None))
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 |
|---|---|---|---|
| disabled | ['c', 'c'] | ['c', 'c'] | Passed |
| removed focus | ['a', 'a'] | ['a', 'a'] | Passed |
| next | ['b', 'b'] | ['b', 'b'] | Passed |
| manual | ['b', 'a'] | ['b', 'a'] | Passed |
| space | ['b', 'a'] | ['b', 'b'] | Failed |
| removed selection | ['b', 'a'] | ['b', 'a'] | Passed |
| empty | [None, None] | [None, None] | Passed |
| parameterized tab identities | [2, 2] | [2, 2] | Passed |
| repeat empty | [None, None] | [None, None] | Passed |
SHA-256 / b60d5aa8abb1d694d925caa347cf5aba35af87c521e548088732fb9f31ed0ef5
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 9 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
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:38:22.739483+00:00.
Case digest / ca2bc61714f708372ac4080602766e34b512289f3cc3272d34539fa9d54e2efd