FA-8416 / Assistive announcements / Open access
Live-region announcement scheduling: Busy live regions announce incomplete updates · case 01
Busy live regions announce incomplete updates.
ROOT CAUSE
The busy operation uses `if busy: return (queue, text)` where the contract requires `if busy: return (queue + [text], current)`.
VERIFIED REPAIR
Implement the busy operation as `if busy: return (queue + [text], current)`.
Unsuccessful approach: Replacing the queue loses earlier deferred changes.
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)
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'] | [['first', 'new'], 'old'] | Failed |
| 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 / 9cfba4e95c018f4799e6d3296b2a07674955dd7cf00b942a0d0db2c265120754
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 ([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 | [['new'], 'old'] | [['first', 'new'], 'old'] | Failed |
| 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 / ebe77cbf4e02206aee1cfa3670030ce5179c6e7164d03db9b52a88d7668e580f
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.222087+00:00.
Case digest / d868cfb65ac7a880af800fbd4398d44a7d20a22de79ba7a7af01bbada6700136