FA-21816 / Assistive announcements / Open access
Speech acknowledgment marks both channels complete · case 01
The announcement trace violates the stated dual-channel-barrier contract.
ROOT CAUSE
Fault site: if e[0]=='speech': row[1]=True is implemented as if e[0]=='speech': row[1]=True; row[2]=True
THE FAILURE
Fault site: if e[0]=='speech': row[1]=True is implemented as if e[0]=='speech': row[1]=True; row[2]=True
Unsuccessful approach: The attempted repair substitutes if e[0]=='speech': row[2]=True 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.pop(e[1],None)
elif len(e)>1 and e[1] in pending:
row=pending[e[1]]
if e[0]=='speech': row[1]=True; row[2]=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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| trace-1 | [['hello'], [], True] | [[], [['a', 'hello', True, False]], True] | Failed |
| 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 / 4984a45b1ad2bd1a045bc922d5d235742e252366991d42a6d51dcd33b605ad8e
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': pending.pop(e[1],None)
elif len(e)>1 and e[1] in pending:
row=pending[e[1]]
if e[0]=='speech': row[2]=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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| trace-1 | [[], [['a', 'hello', False, True]], True] | [[], [['a', 'hello', True, False]], True] | Failed |
| trace-2 | [[], [['a', 'hello', False, True]], True] | [[], [['a', 'hello', False, True]], True] | Passed |
| trace-3 | [[], [['a', 'hello', False, True], ['b', 'keep', False, False]], True] | [['hello'], [['b', 'keep', False, False]], True] | Failed |
| trace-4 | [[], [['a', 'new', False, False]], True] | [[], [['a', 'new', False, False]], True] | Passed |
| trace-5 | [[], [['a', 'pending', False, True], ['b', 'future', False, True]], True] | [['future'], [['a', 'pending', False, True]], True] | Failed |
| trace-6 | [[], [['a', 'new', False, True]], False] | [[], [['a', 'new', False, True]], False] | Passed |
| trace-7 | [[], [['a', 'new', False, True]], False] | [['new'], [], False] | Failed |
| trace-8 | [[], [['b', 'b', False, False]], True] | [[], [['b', 'b', False, False]], True] | Passed |
| trace-9 | [[], [], True] | [[], [], True] | Passed |
SHA-256 / e89d60a62ad7bf8bef4a0d880da11ac613ad0d1dd32cf81bea9cb18f7475d821
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
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.592991+00:00.
Case digest / 181161c496cf0f39797b178eb5cbc74cbc2e33115f2f0a484605021efaa2f9c9