FAILURE MAP
← Case archive

FA-21811 / Assistive announcements / Open access

Canceling one coupled announcement cancels every delivery · case 01

The announcement trace violates the stated dual-channel-barrier contract.

Verified by executionVariant 1 · 9 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

Fault site: elif e[0]=='cancel': pending.pop(e[1],None) is implemented as elif e[0]=='cancel': pending.clear()

VERIFIED REPAIR

Restore the stated transition: elif e[0]=='cancel': pending.pop(e[1],None)

Unsuccessful approach: The attempted repair substitutes elif e[0]=='cancel': pass and still violates a regression oracle.

Case contract

An announcement delivery couples speech and braille with per-message receipts. Submit creates [text,speechDone=False,brailleDone=False]. Speech and braille ACK set only their channel. Commit emits completion once only when both acknowledged and removes message. Disable-braille marks pending braille complete and affects future submissions; enable only affects future submissions. Replace text resets both receipts according to current enabled channels. Cancel drops one pending item. Report completion text, pending receipts and braille enabled.

Why this case matters

Deterministic controlled model of assistive announcement delivery.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(events):
    pending={}; braille=True; out=[]
    for e in events:
        if e[0]=='submit': pending[e[1]]=[e[2],False,not braille]
        elif e[0]=='disable-braille':
            braille=False
            for row in pending.values(): row[2]=True
        elif e[0]=='enable-braille': braille=True
        elif e[0]=='cancel': pending.clear()
        elif len(e)>1 and e[1] in pending:
            row=pending[e[1]]
            if e[0]=='speech': row[1]=True
            elif e[0]=='braille': row[2]=True
            elif e[0]=='replace': row[:]=[e[2],False,not braille]
            elif e[0]=='commit':
                if not(row[1] and row[2]): continue
                out.append(row[0])
                del pending[e[1]]
    return [out,[[k]+v for k,v in pending.items()],braille]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = ["[['submit','a','hello'*N],['speech','a'],['commit','a']]", "[['submit','a','hello'*N],['braille','a'],['commit','a']]", "[['submit','a','hello'*N],['speech','a'],['braille','a'],['submit','b','keep'],['commit','a'],['commit','a']]", "[['submit','a','old'],['speech','a'],['braille','a'],['replace','a','new'*N],['commit','a']]", "[['submit','a','pending'*N],['disable-braille'],['commit','a'],['submit','b','future'],['speech','b'],['commit','b'],['enable-braille']]", "[['disable-braille'],['submit','a','new'*N],['commit','a']]", "[['disable-braille'],['submit','a','old'],['replace','a','new'*N],['speech','a'],['commit','a']]", "[['submit','a','a'*N],['submit','b','b'],['cancel','a']]", '[]']
expected = {1: [[[], [['a', 'hello', True, False]], True], [[], [['a', 'hello', False, True]], True], [['hello'], [['b', 'keep', False, False]], True], [[], [['a', 'new', False, False]], True], [['future'], [['a', 'pending', False, True]], True], [[], [['a', 'new', False, True]], False], [['new'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]], 2: [[[], [['a', 'hellohello', True, False]], True], [[], [['a', 'hellohello', False, True]], True], [['hellohello'], [['b', 'keep', False, False]], True], [[], [['a', 'newnew', False, False]], True], [['future'], [['a', 'pendingpending', False, True]], True], [[], [['a', 'newnew', False, True]], False], [['newnew'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]], 3: [[[], [['a', 'hellohellohello', True, False]], True], [[], [['a', 'hellohellohello', False, True]], True], [['hellohellohello'], [['b', 'keep', False, False]], True], [[], [['a', 'newnewnew', False, False]], True], [['future'], [['a', 'pendingpendingpending', False, True]], True], [[], [['a', 'newnewnew', False, True]], False], [['newnewnew'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]], 4: [[[], [['a', 'hellohellohellohello', True, False]], True], [[], [['a', 'hellohellohellohello', False, True]], True], [['hellohellohellohello'], [['b', 'keep', False, False]], True], [[], [['a', 'newnewnewnew', False, False]], True], [['future'], [['a', 'pendingpendingpendingpending', False, True]], True], [[], [['a', 'newnewnewnew', False, True]], False], [['newnewnewnew'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]], 5: [[[], [['a', 'hellohellohellohellohello', True, False]], True], [[], [['a', 'hellohellohellohellohello', False, True]], True], [['hellohellohellohellohello'], [['b', 'keep', False, False]], True], [[], [['a', 'newnewnewnewnew', False, False]], True], [['future'], [['a', 'pendingpendingpendingpendingpending', False, True]], True], [[], [['a', 'newnewnewnewnew', False, True]], False], [['newnewnewnewnew'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]]}[N]
for i, expression in enumerate(fixtures):
    check("trace-"+str(i+1), solve(eval(expression)), expected[i])
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 fixtureActualExpectedOutcome
trace-1[[], [['a', 'hello', True, False]], True][[], [['a', 'hello', True, False]], True]Passed
trace-2[[], [['a', 'hello', False, True]], True][[], [['a', 'hello', False, True]], True]Passed
trace-3[['hello'], [['b', 'keep', False, False]], True][['hello'], [['b', 'keep', False, False]], True]Passed
trace-4[[], [['a', 'new', False, False]], True][[], [['a', 'new', False, False]], True]Passed
trace-5[['future'], [['a', 'pending', False, True]], True][['future'], [['a', 'pending', False, True]], True]Passed
trace-6[[], [['a', 'new', False, True]], False][[], [['a', 'new', False, True]], False]Passed
trace-7[['new'], [], False][['new'], [], False]Passed
trace-8[[], [], True][[], [['b', 'b', False, False]], True]Failed
trace-9[[], [], True][[], [], True]Passed

SHA-256 / 7d0058d85f9eb521f7880e8d864609ed5c10b480ca1585b84c3c875d7d6d6177

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(events):
    pending={}; braille=True; out=[]
    for e in events:
        if e[0]=='submit': pending[e[1]]=[e[2],False,not braille]
        elif e[0]=='disable-braille':
            braille=False
            for row in pending.values(): row[2]=True
        elif e[0]=='enable-braille': braille=True
        elif e[0]=='cancel': pass
        elif len(e)>1 and e[1] in pending:
            row=pending[e[1]]
            if e[0]=='speech': row[1]=True
            elif e[0]=='braille': row[2]=True
            elif e[0]=='replace': row[:]=[e[2],False,not braille]
            elif e[0]=='commit':
                if not(row[1] and row[2]): continue
                out.append(row[0])
                del pending[e[1]]
    return [out,[[k]+v for k,v in pending.items()],braille]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = ["[['submit','a','hello'*N],['speech','a'],['commit','a']]", "[['submit','a','hello'*N],['braille','a'],['commit','a']]", "[['submit','a','hello'*N],['speech','a'],['braille','a'],['submit','b','keep'],['commit','a'],['commit','a']]", "[['submit','a','old'],['speech','a'],['braille','a'],['replace','a','new'*N],['commit','a']]", "[['submit','a','pending'*N],['disable-braille'],['commit','a'],['submit','b','future'],['speech','b'],['commit','b'],['enable-braille']]", "[['disable-braille'],['submit','a','new'*N],['commit','a']]", "[['disable-braille'],['submit','a','old'],['replace','a','new'*N],['speech','a'],['commit','a']]", "[['submit','a','a'*N],['submit','b','b'],['cancel','a']]", '[]']
expected = {1: [[[], [['a', 'hello', True, False]], True], [[], [['a', 'hello', False, True]], True], [['hello'], [['b', 'keep', False, False]], True], [[], [['a', 'new', False, False]], True], [['future'], [['a', 'pending', False, True]], True], [[], [['a', 'new', False, True]], False], [['new'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]], 2: [[[], [['a', 'hellohello', True, False]], True], [[], [['a', 'hellohello', False, True]], True], [['hellohello'], [['b', 'keep', False, False]], True], [[], [['a', 'newnew', False, False]], True], [['future'], [['a', 'pendingpending', False, True]], True], [[], [['a', 'newnew', False, True]], False], [['newnew'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]], 3: [[[], [['a', 'hellohellohello', True, False]], True], [[], [['a', 'hellohellohello', False, True]], True], [['hellohellohello'], [['b', 'keep', False, False]], True], [[], [['a', 'newnewnew', False, False]], True], [['future'], [['a', 'pendingpendingpending', False, True]], True], [[], [['a', 'newnewnew', False, True]], False], [['newnewnew'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]], 4: [[[], [['a', 'hellohellohellohello', True, False]], True], [[], [['a', 'hellohellohellohello', False, True]], True], [['hellohellohellohello'], [['b', 'keep', False, False]], True], [[], [['a', 'newnewnewnew', False, False]], True], [['future'], [['a', 'pendingpendingpendingpending', False, True]], True], [[], [['a', 'newnewnewnew', False, True]], False], [['newnewnewnew'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]], 5: [[[], [['a', 'hellohellohellohellohello', True, False]], True], [[], [['a', 'hellohellohellohellohello', False, True]], True], [['hellohellohellohellohello'], [['b', 'keep', False, False]], True], [[], [['a', 'newnewnewnewnew', False, False]], True], [['future'], [['a', 'pendingpendingpendingpendingpending', False, True]], True], [[], [['a', 'newnewnewnewnew', False, True]], False], [['newnewnewnewnew'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]]}[N]
for i, expression in enumerate(fixtures):
    check("trace-"+str(i+1), solve(eval(expression)), expected[i])
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 fixtureActualExpectedOutcome
trace-1[[], [['a', 'hello', True, False]], True][[], [['a', 'hello', True, False]], True]Passed
trace-2[[], [['a', 'hello', False, True]], True][[], [['a', 'hello', False, True]], True]Passed
trace-3[['hello'], [['b', 'keep', False, False]], True][['hello'], [['b', 'keep', False, False]], True]Passed
trace-4[[], [['a', 'new', False, False]], True][[], [['a', 'new', False, False]], True]Passed
trace-5[['future'], [['a', 'pending', False, True]], True][['future'], [['a', 'pending', False, True]], True]Passed
trace-6[[], [['a', 'new', False, True]], False][[], [['a', 'new', False, True]], False]Passed
trace-7[['new'], [], False][['new'], [], False]Passed
trace-8[[], [['a', 'a', False, False], ['b', 'b', False, False]], True][[], [['b', 'b', False, False]], True]Failed
trace-9[[], [], True][[], [], True]Passed

SHA-256 / 714f98c3aef502f303a0fef6c9f9af5c0832dc81e14ba529a8cb060a3fb20cef

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(events):
    pending={}; braille=True; out=[]
    for e in events:
        if e[0]=='submit': pending[e[1]]=[e[2],False,not braille]
        elif e[0]=='disable-braille':
            braille=False
            for row in pending.values(): row[2]=True
        elif e[0]=='enable-braille': braille=True
        elif e[0]=='cancel': pending.pop(e[1],None)
        elif len(e)>1 and e[1] in pending:
            row=pending[e[1]]
            if e[0]=='speech': row[1]=True
            elif e[0]=='braille': row[2]=True
            elif e[0]=='replace': row[:]=[e[2],False,not braille]
            elif e[0]=='commit':
                if not(row[1] and row[2]): continue
                out.append(row[0])
                del pending[e[1]]
    return [out,[[k]+v for k,v in pending.items()],braille]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = ["[['submit','a','hello'*N],['speech','a'],['commit','a']]", "[['submit','a','hello'*N],['braille','a'],['commit','a']]", "[['submit','a','hello'*N],['speech','a'],['braille','a'],['submit','b','keep'],['commit','a'],['commit','a']]", "[['submit','a','old'],['speech','a'],['braille','a'],['replace','a','new'*N],['commit','a']]", "[['submit','a','pending'*N],['disable-braille'],['commit','a'],['submit','b','future'],['speech','b'],['commit','b'],['enable-braille']]", "[['disable-braille'],['submit','a','new'*N],['commit','a']]", "[['disable-braille'],['submit','a','old'],['replace','a','new'*N],['speech','a'],['commit','a']]", "[['submit','a','a'*N],['submit','b','b'],['cancel','a']]", '[]']
expected = {1: [[[], [['a', 'hello', True, False]], True], [[], [['a', 'hello', False, True]], True], [['hello'], [['b', 'keep', False, False]], True], [[], [['a', 'new', False, False]], True], [['future'], [['a', 'pending', False, True]], True], [[], [['a', 'new', False, True]], False], [['new'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]], 2: [[[], [['a', 'hellohello', True, False]], True], [[], [['a', 'hellohello', False, True]], True], [['hellohello'], [['b', 'keep', False, False]], True], [[], [['a', 'newnew', False, False]], True], [['future'], [['a', 'pendingpending', False, True]], True], [[], [['a', 'newnew', False, True]], False], [['newnew'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]], 3: [[[], [['a', 'hellohellohello', True, False]], True], [[], [['a', 'hellohellohello', False, True]], True], [['hellohellohello'], [['b', 'keep', False, False]], True], [[], [['a', 'newnewnew', False, False]], True], [['future'], [['a', 'pendingpendingpending', False, True]], True], [[], [['a', 'newnewnew', False, True]], False], [['newnewnew'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]], 4: [[[], [['a', 'hellohellohellohello', True, False]], True], [[], [['a', 'hellohellohellohello', False, True]], True], [['hellohellohellohello'], [['b', 'keep', False, False]], True], [[], [['a', 'newnewnewnew', False, False]], True], [['future'], [['a', 'pendingpendingpendingpending', False, True]], True], [[], [['a', 'newnewnewnew', False, True]], False], [['newnewnewnew'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]], 5: [[[], [['a', 'hellohellohellohellohello', True, False]], True], [[], [['a', 'hellohellohellohellohello', False, True]], True], [['hellohellohellohellohello'], [['b', 'keep', False, False]], True], [[], [['a', 'newnewnewnewnew', False, False]], True], [['future'], [['a', 'pendingpendingpendingpendingpending', False, True]], True], [[], [['a', 'newnewnewnewnew', False, True]], False], [['newnewnewnewnew'], [], False], [[], [['b', 'b', False, False]], True], [[], [], True]]}[N]
for i, expression in enumerate(fixtures):
    check("trace-"+str(i+1), solve(eval(expression)), expected[i])
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 fixtureActualExpectedOutcome
trace-1[[], [['a', 'hello', True, False]], True][[], [['a', 'hello', True, False]], True]Passed
trace-2[[], [['a', 'hello', False, True]], True][[], [['a', 'hello', False, True]], True]Passed
trace-3[['hello'], [['b', 'keep', False, False]], True][['hello'], [['b', 'keep', False, False]], True]Passed
trace-4[[], [['a', 'new', False, False]], True][[], [['a', 'new', False, False]], True]Passed
trace-5[['future'], [['a', 'pending', False, True]], True][['future'], [['a', 'pending', False, True]], True]Passed
trace-6[[], [['a', 'new', False, True]], False][[], [['a', 'new', False, True]], False]Passed
trace-7[['new'], [], False][['new'], [], False]Passed
trace-8[[], [['b', 'b', False, False]], True][[], [['b', 'b', False, False]], True]Passed
trace-9[[], [], True][[], [], True]Passed

SHA-256 / fcc8db3bcf8f18aa25e464439e39158c579f6c98ec529b14bcf6c1f9a04e9e5e

Verification & scope

Stipulated bounded policy, not a browser, speech engine, platform API, or standards conformance claim. 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:40:32.438505+00:00.

Case digest / f818c871b5baa4dfa6467d29baa19f48f78d2b09f3243dc6ac12f8a3f7e565f0