FA-20841 / Assistive announcements / Open access
Backpressured speech is prepended ahead of earlier messages · case 01
The announcement trace violates the stated speech-backpressure contract.
ROOT CAUSE
Fault site: if e[0]=='queue': q.append([e[1],e[2]]) is implemented as if e[0]=='queue': q.insert(0,[e[1],e[2]])
VERIFIED REPAIR
Restore the stated transition: if e[0]=='queue': q.append([e[1],e[2]])
Unsuccessful approach: The attempted repair substitutes if e[0]=='queue': q.append([e[1],e[1]]) and still violates a regression oracle.
Case contract
Transport starts with two credits. Queue appends speech. Pump sends up to available credits, records inflight IDs and consumes credit. Acknowledge known inflight ID releases exactly one credit; unknown ACK does nothing. Window sets nonnegative capacity and credit to max(0,capacity-inflight). Disconnect moves inflight messages before queued ones in original send order and restores credits; cancel removes only queued matching IDs. Return sent text trace, inflight IDs, queue IDs and credit.
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):
capacity=2; credit=2; q=[]; flying={}; sent=[]
for e in events:
if e[0]=='queue': q.insert(0,[e[1],e[2]])
elif e[0]=='pump':
while q and credit>0:
ident,text=q.pop(0)
flying[ident]=text
sent.append(text)
credit-=1
elif e[0]=='ack' and e[1] in flying:
del flying[e[1]]
credit=max(0,capacity-len(flying))
elif e[0]=='window':
capacity=max(0,e[1]); credit=max(0,capacity-len(flying))
elif e[0]=='disconnect':
q=[[k,v] for k,v in flying.items()]+q
flying.clear(); credit=capacity
elif e[0]=='cancel': q=[x for x in q if x[0]!=e[1]]
return [sent,list(flying),[x[0] for x in q],credit]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = ["[['queue','a','alpha'*N],['queue','b','beta'],['queue','c','gamma'],['pump'],['ack','a']]", "[['queue','a','alpha'*N],['queue','b','beta'],['queue','c','gamma'],['pump'],['disconnect'],['pump']]", "[['window',0],['queue','a','x'*N],['pump']]", "[['window',N+2],['queue','a','alpha'],['pump'],['ack','a'],['ack','a']]", "[['queue','a','x'*N],['queue','b','y'],['cancel','b']]", "[['ack','missing'],['pump']]", "[['queue','a','x'*N],['queue','b','y'],['pump'],['window',1],['ack','a'],['pump']]"]
expected = {1: [[['alpha', 'beta'], ['b'], ['c'], 1], [['alpha', 'beta', 'alpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 3], [[], [], ['a'], 2], [[], [], [], 2], [['x', 'y'], ['b'], [], 0]], 2: [[['alphaalpha', 'beta'], ['b'], ['c'], 1], [['alphaalpha', 'beta', 'alphaalpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 4], [[], [], ['a'], 2], [[], [], [], 2], [['xx', 'y'], ['b'], [], 0]], 3: [[['alphaalphaalpha', 'beta'], ['b'], ['c'], 1], [['alphaalphaalpha', 'beta', 'alphaalphaalpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 5], [[], [], ['a'], 2], [[], [], [], 2], [['xxx', 'y'], ['b'], [], 0]], 4: [[['alphaalphaalphaalpha', 'beta'], ['b'], ['c'], 1], [['alphaalphaalphaalpha', 'beta', 'alphaalphaalphaalpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 6], [[], [], ['a'], 2], [[], [], [], 2], [['xxxx', 'y'], ['b'], [], 0]], 5: [[['alphaalphaalphaalphaalpha', 'beta'], ['b'], ['c'], 1], [['alphaalphaalphaalphaalpha', 'beta', 'alphaalphaalphaalphaalpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 7], [[], [], ['a'], 2], [[], [], [], 2], [['xxxxx', 'y'], ['b'], [], 0]]}[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 | [['gamma', 'beta'], ['c', 'b'], ['a'], 0] | [['alpha', 'beta'], ['b'], ['c'], 1] | Failed |
| trace-2 | [['gamma', 'beta', 'gamma', 'beta'], ['c', 'b'], ['a'], 0] | [['alpha', 'beta', 'alpha', 'beta'], ['a', 'b'], ['c'], 0] | Failed |
| trace-3 | [[], [], ['a'], 0] | [[], [], ['a'], 0] | Passed |
| trace-4 | [['alpha'], [], [], 3] | [['alpha'], [], [], 3] | Passed |
| trace-5 | [[], [], ['a'], 2] | [[], [], ['a'], 2] | Passed |
| trace-6 | [[], [], [], 2] | [[], [], [], 2] | Passed |
| trace-7 | [['y', 'x'], ['b'], [], 0] | [['x', 'y'], ['b'], [], 0] | Failed |
SHA-256 / 7f8837a538cc517e6c3d04c84bd031b493ebaa8557ea50c330a510e42e6a1f44
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(events):
capacity=2; credit=2; q=[]; flying={}; sent=[]
for e in events:
if e[0]=='queue': q.append([e[1],e[1]])
elif e[0]=='pump':
while q and credit>0:
ident,text=q.pop(0)
flying[ident]=text
sent.append(text)
credit-=1
elif e[0]=='ack' and e[1] in flying:
del flying[e[1]]
credit=max(0,capacity-len(flying))
elif e[0]=='window':
capacity=max(0,e[1]); credit=max(0,capacity-len(flying))
elif e[0]=='disconnect':
q=[[k,v] for k,v in flying.items()]+q
flying.clear(); credit=capacity
elif e[0]=='cancel': q=[x for x in q if x[0]!=e[1]]
return [sent,list(flying),[x[0] for x in q],credit]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = ["[['queue','a','alpha'*N],['queue','b','beta'],['queue','c','gamma'],['pump'],['ack','a']]", "[['queue','a','alpha'*N],['queue','b','beta'],['queue','c','gamma'],['pump'],['disconnect'],['pump']]", "[['window',0],['queue','a','x'*N],['pump']]", "[['window',N+2],['queue','a','alpha'],['pump'],['ack','a'],['ack','a']]", "[['queue','a','x'*N],['queue','b','y'],['cancel','b']]", "[['ack','missing'],['pump']]", "[['queue','a','x'*N],['queue','b','y'],['pump'],['window',1],['ack','a'],['pump']]"]
expected = {1: [[['alpha', 'beta'], ['b'], ['c'], 1], [['alpha', 'beta', 'alpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 3], [[], [], ['a'], 2], [[], [], [], 2], [['x', 'y'], ['b'], [], 0]], 2: [[['alphaalpha', 'beta'], ['b'], ['c'], 1], [['alphaalpha', 'beta', 'alphaalpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 4], [[], [], ['a'], 2], [[], [], [], 2], [['xx', 'y'], ['b'], [], 0]], 3: [[['alphaalphaalpha', 'beta'], ['b'], ['c'], 1], [['alphaalphaalpha', 'beta', 'alphaalphaalpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 5], [[], [], ['a'], 2], [[], [], [], 2], [['xxx', 'y'], ['b'], [], 0]], 4: [[['alphaalphaalphaalpha', 'beta'], ['b'], ['c'], 1], [['alphaalphaalphaalpha', 'beta', 'alphaalphaalphaalpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 6], [[], [], ['a'], 2], [[], [], [], 2], [['xxxx', 'y'], ['b'], [], 0]], 5: [[['alphaalphaalphaalphaalpha', 'beta'], ['b'], ['c'], 1], [['alphaalphaalphaalphaalpha', 'beta', 'alphaalphaalphaalphaalpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 7], [[], [], ['a'], 2], [[], [], [], 2], [['xxxxx', 'y'], ['b'], [], 0]]}[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', 'b'], ['b'], ['c'], 1] | [['alpha', 'beta'], ['b'], ['c'], 1] | Failed |
| trace-2 | [['a', 'b', 'a', 'b'], ['a', 'b'], ['c'], 0] | [['alpha', 'beta', 'alpha', 'beta'], ['a', 'b'], ['c'], 0] | Failed |
| trace-3 | [[], [], ['a'], 0] | [[], [], ['a'], 0] | Passed |
| trace-4 | [['a'], [], [], 3] | [['alpha'], [], [], 3] | Failed |
| trace-5 | [[], [], ['a'], 2] | [[], [], ['a'], 2] | Passed |
| trace-6 | [[], [], [], 2] | [[], [], [], 2] | Passed |
| trace-7 | [['a', 'b'], ['b'], [], 0] | [['x', 'y'], ['b'], [], 0] | Failed |
SHA-256 / 2f7a9f3aa9ea1d9a77500a288cd1196db70bfa55a18089fedf6cefc87ecd8476
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(events):
capacity=2; credit=2; q=[]; flying={}; sent=[]
for e in events:
if e[0]=='queue': q.append([e[1],e[2]])
elif e[0]=='pump':
while q and credit>0:
ident,text=q.pop(0)
flying[ident]=text
sent.append(text)
credit-=1
elif e[0]=='ack' and e[1] in flying:
del flying[e[1]]
credit=max(0,capacity-len(flying))
elif e[0]=='window':
capacity=max(0,e[1]); credit=max(0,capacity-len(flying))
elif e[0]=='disconnect':
q=[[k,v] for k,v in flying.items()]+q
flying.clear(); credit=capacity
elif e[0]=='cancel': q=[x for x in q if x[0]!=e[1]]
return [sent,list(flying),[x[0] for x in q],credit]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = ["[['queue','a','alpha'*N],['queue','b','beta'],['queue','c','gamma'],['pump'],['ack','a']]", "[['queue','a','alpha'*N],['queue','b','beta'],['queue','c','gamma'],['pump'],['disconnect'],['pump']]", "[['window',0],['queue','a','x'*N],['pump']]", "[['window',N+2],['queue','a','alpha'],['pump'],['ack','a'],['ack','a']]", "[['queue','a','x'*N],['queue','b','y'],['cancel','b']]", "[['ack','missing'],['pump']]", "[['queue','a','x'*N],['queue','b','y'],['pump'],['window',1],['ack','a'],['pump']]"]
expected = {1: [[['alpha', 'beta'], ['b'], ['c'], 1], [['alpha', 'beta', 'alpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 3], [[], [], ['a'], 2], [[], [], [], 2], [['x', 'y'], ['b'], [], 0]], 2: [[['alphaalpha', 'beta'], ['b'], ['c'], 1], [['alphaalpha', 'beta', 'alphaalpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 4], [[], [], ['a'], 2], [[], [], [], 2], [['xx', 'y'], ['b'], [], 0]], 3: [[['alphaalphaalpha', 'beta'], ['b'], ['c'], 1], [['alphaalphaalpha', 'beta', 'alphaalphaalpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 5], [[], [], ['a'], 2], [[], [], [], 2], [['xxx', 'y'], ['b'], [], 0]], 4: [[['alphaalphaalphaalpha', 'beta'], ['b'], ['c'], 1], [['alphaalphaalphaalpha', 'beta', 'alphaalphaalphaalpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 6], [[], [], ['a'], 2], [[], [], [], 2], [['xxxx', 'y'], ['b'], [], 0]], 5: [[['alphaalphaalphaalphaalpha', 'beta'], ['b'], ['c'], 1], [['alphaalphaalphaalphaalpha', 'beta', 'alphaalphaalphaalphaalpha', 'beta'], ['a', 'b'], ['c'], 0], [[], [], ['a'], 0], [['alpha'], [], [], 7], [[], [], ['a'], 2], [[], [], [], 2], [['xxxxx', 'y'], ['b'], [], 0]]}[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 | [['alpha', 'beta'], ['b'], ['c'], 1] | [['alpha', 'beta'], ['b'], ['c'], 1] | Passed |
| trace-2 | [['alpha', 'beta', 'alpha', 'beta'], ['a', 'b'], ['c'], 0] | [['alpha', 'beta', 'alpha', 'beta'], ['a', 'b'], ['c'], 0] | Passed |
| trace-3 | [[], [], ['a'], 0] | [[], [], ['a'], 0] | Passed |
| trace-4 | [['alpha'], [], [], 3] | [['alpha'], [], [], 3] | Passed |
| trace-5 | [[], [], ['a'], 2] | [[], [], ['a'], 2] | Passed |
| trace-6 | [[], [], [], 2] | [[], [], [], 2] | Passed |
| trace-7 | [['x', 'y'], ['b'], [], 0] | [['x', 'y'], ['b'], [], 0] | Passed |
SHA-256 / 16e65ceb467686a05f36258ecd9dade7b2330f81cdabb3f7cf6b584c97e44bb4
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:22.910802+00:00.
Case digest / 42d7f5c0df6a98dff1aa2c0bb8144900965351c4104854c72082d81e2bdd6aaf