FA-8426 / Assistive announcements / Open access
Live-region announcement scheduling: Atomic announcements read only the appended fragment · case 01
Atomic announcements read only the appended fragment.
ROOT CAUSE
The atomic operation uses `if atomic: return (queue, text[len(current):])` where the contract requires `if atomic: return (queue, text)`.
VERIFIED REPAIR
Implement the atomic operation as `if atomic: return (queue, text)`.
Unsuccessful approach: Concatenating old and new repeats obsolete content.
Case contract
Suppress identical and off updates; busy queues preserve order; assertive updates supersede pending work; atomic reads full content and incremental mode reads appended content.
Why this case matters
A deterministic model of live-region announcement scheduling; 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(queue, current, text, priority, busy, atomic):
queue = list(queue)
if text == current: return (queue, current)
if priority == 'off': return (queue, current)
if busy: return (queue + [text], current)
if priority == 'assertive': return ([], text)
if atomic: return (queue, text[len(current):])
return (queue, text[len(current):] if text.startswith(current) else text)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('duplicate', solve(['later'], 'done', 'done', 'polite', False, True), (['later'], 'done'))
check('off', solve(['later'], 'old', 'new', 'off', False, True), (['later'], 'old'))
check('busy', solve(['first'], 'old', 'new', 'polite', True, True), (['first', 'new'], 'old'))
check('urgent', solve(['old pending'], 'old', 'urgent', 'assertive', False, True), ([], 'urgent'))
check('atomic', solve([], '2 of ', '2 of 5', 'polite', False, True), ([], '2 of 5'))
check('incremental', solve([], '2 of ', '2 of 5', 'polite', False, False), ([], '5'))
check('parameterized atomic content', solve([], '', 'status'+str(N), 'polite', False, True), ([], 'status'+str(N)))
for repetition in range(N):
check('repeat incremental', solve([], '2 of ', '2 of 5', 'polite', False, False), ([], '5'))
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 |
|---|---|---|---|
| duplicate | [['later'], 'done'] | [['later'], 'done'] | Passed |
| off | [['later'], 'old'] | [['later'], 'old'] | Passed |
| busy | [['first', 'new'], 'old'] | [['first', 'new'], 'old'] | Passed |
| urgent | [[], 'urgent'] | [[], 'urgent'] | Passed |
| atomic | [[], '5'] | [[], '2 of 5'] | Failed |
| incremental | [[], '5'] | [[], '5'] | Passed |
| parameterized atomic content | [[], 'status1'] | [[], 'status1'] | Passed |
| repeat incremental | [[], '5'] | [[], '5'] | Passed |
SHA-256 / 0450cf9a23b92fd40bec77d24efc0efd42a72dcefa920222d544d5d44c4ebd94
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(queue, current, text, priority, busy, atomic):
queue = list(queue)
if text == current: return (queue, current)
if priority == 'off': return (queue, current)
if busy: return (queue + [text], current)
if priority == 'assertive': return ([], text)
if atomic: return (queue, current + text)
return (queue, text[len(current):] if text.startswith(current) else text)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('duplicate', solve(['later'], 'done', 'done', 'polite', False, True), (['later'], 'done'))
check('off', solve(['later'], 'old', 'new', 'off', False, True), (['later'], 'old'))
check('busy', solve(['first'], 'old', 'new', 'polite', True, True), (['first', 'new'], 'old'))
check('urgent', solve(['old pending'], 'old', 'urgent', 'assertive', False, True), ([], 'urgent'))
check('atomic', solve([], '2 of ', '2 of 5', 'polite', False, True), ([], '2 of 5'))
check('incremental', solve([], '2 of ', '2 of 5', 'polite', False, False), ([], '5'))
check('parameterized atomic content', solve([], '', 'status'+str(N), 'polite', False, True), ([], 'status'+str(N)))
for repetition in range(N):
check('repeat incremental', solve([], '2 of ', '2 of 5', 'polite', False, False), ([], '5'))
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 |
|---|---|---|---|
| duplicate | [['later'], 'done'] | [['later'], 'done'] | Passed |
| off | [['later'], 'old'] | [['later'], 'old'] | Passed |
| busy | [['first', 'new'], 'old'] | [['first', 'new'], 'old'] | Passed |
| urgent | [[], 'urgent'] | [[], 'urgent'] | Passed |
| atomic | [[], '2 of 2 of 5'] | [[], '2 of 5'] | Failed |
| incremental | [[], '5'] | [[], '5'] | Passed |
| parameterized atomic content | [[], 'status1'] | [[], 'status1'] | Passed |
| repeat incremental | [[], '5'] | [[], '5'] | Passed |
SHA-256 / 1a3ae3282f09dd1ddef255af64ab8998462e82ccb4d2009ba2c359f6cb28c653
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(queue, current, text, priority, busy, atomic):
queue = list(queue)
if text == current: return (queue, current)
if priority == 'off': return (queue, current)
if busy: return (queue + [text], current)
if priority == 'assertive': return ([], text)
if atomic: return (queue, text)
return (queue, text[len(current):] if text.startswith(current) else text)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('duplicate', solve(['later'], 'done', 'done', 'polite', False, True), (['later'], 'done'))
check('off', solve(['later'], 'old', 'new', 'off', False, True), (['later'], 'old'))
check('busy', solve(['first'], 'old', 'new', 'polite', True, True), (['first', 'new'], 'old'))
check('urgent', solve(['old pending'], 'old', 'urgent', 'assertive', False, True), ([], 'urgent'))
check('atomic', solve([], '2 of ', '2 of 5', 'polite', False, True), ([], '2 of 5'))
check('incremental', solve([], '2 of ', '2 of 5', 'polite', False, False), ([], '5'))
check('parameterized atomic content', solve([], '', 'status'+str(N), 'polite', False, True), ([], 'status'+str(N)))
for repetition in range(N):
check('repeat incremental', solve([], '2 of ', '2 of 5', 'polite', False, False), ([], '5'))
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 |
|---|---|---|---|
| duplicate | [['later'], 'done'] | [['later'], 'done'] | Passed |
| off | [['later'], 'old'] | [['later'], 'old'] | Passed |
| busy | [['first', 'new'], 'old'] | [['first', 'new'], 'old'] | Passed |
| urgent | [[], 'urgent'] | [[], 'urgent'] | Passed |
| atomic | [[], '2 of 5'] | [[], '2 of 5'] | Passed |
| incremental | [[], '5'] | [[], '5'] | Passed |
| parameterized atomic content | [[], 'status1'] | [[], 'status1'] | Passed |
| repeat incremental | [[], '5'] | [[], '5'] | Passed |
SHA-256 / 1d08f40e03d5830fe3875eaf5b80614c19ae995cf26ba3402a2654b3bc440d6d
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:21.380991+00:00.
Case digest / ddfcddfaa262471ebc6d5b5a0525528ae2772b98b9acac02f98e64ab3d0aab1b