FA-20656 / Assistive announcements / Open access
Negated state is announced affirmatively · case 01
The announcement trace violates the stated speech-envelope contract.
ROOT CAUSE
Fault site: if negative: value='not '+value is implemented as if negative: value=value
THE FAILURE
Fault site: if negative: value='not '+value is implemented as if negative: value=value
Unsuccessful approach: The attempted repair substitutes if negative: value='not '+text and still violates a regression oracle.
Case contract
Each input row is [text,role,ordinal,total,unit,negated,language,private,label,detail]. Compose a speech envelope: redact private values, prefix label, apply negation, append units, prepend ordinal of known positive total, append role, append nonempty detail once, preserve language fallback en, and omit empty nonprivate values. Return [language,spoken] pairs. This is an explicit product grammar, not natural language localization.
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):
out=[]
for text,role,pos,total,unit,negative,lang,private,label,detail in events:
if not text and not private: continue
value='hidden' if private else text
if label: value=label+': '+value
if negative: value=value
if unit and not private: value+=' '+unit
if total>0: value=str(pos)+' of '+str(total)+': '+value
if role: value+=' ('+role+')'
if detail and detail!=text and not private: value+='; '+detail
language=lang if lang else 'en'
out.append([language,value])
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = ["[['value'*N,'status',2,N+3,'items',True,'fr',False,'Count','detail']]", "[['secret'*N,'status',1,3,'kg',False,'en',True,'Weight','private detail']]", "[['','',0,0,'',False,'',False,'Label',''],['','',0,0,'',False,'',True,'','']]", "[['same'*N,'',0,-1,'',False,'de',False,'','same'*N]]", "[[' x '*N,'',0,0,'',False,'',False,'','']]", '[]']
expected = {1: [[['fr', '2 of 4: not Count: value items (status); detail']], [['en', '1 of 3: Weight: hidden (status)']], [['en', 'hidden']], [['de', 'same']], [['en', ' x ']], []], 2: [[['fr', '2 of 5: not Count: valuevalue items (status); detail']], [['en', '1 of 3: Weight: hidden (status)']], [['en', 'hidden']], [['de', 'samesame']], [['en', ' x x ']], []], 3: [[['fr', '2 of 6: not Count: valuevaluevalue items (status); detail']], [['en', '1 of 3: Weight: hidden (status)']], [['en', 'hidden']], [['de', 'samesamesame']], [['en', ' x x x ']], []], 4: [[['fr', '2 of 7: not Count: valuevaluevaluevalue items (status); detail']], [['en', '1 of 3: Weight: hidden (status)']], [['en', 'hidden']], [['de', 'samesamesamesame']], [['en', ' x x x x ']], []], 5: [[['fr', '2 of 8: not Count: valuevaluevaluevaluevalue items (status); detail']], [['en', '1 of 3: Weight: hidden (status)']], [['en', 'hidden']], [['de', 'samesamesamesamesame']], [['en', ' x x x x x ']], []]}[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 | [['fr', '2 of 4: Count: value items (status); detail']] | [['fr', '2 of 4: not Count: value items (status); detail']] | Failed |
| trace-2 | [['en', '1 of 3: Weight: hidden (status)']] | [['en', '1 of 3: Weight: hidden (status)']] | Passed |
| trace-3 | [['en', 'hidden']] | [['en', 'hidden']] | Passed |
| trace-4 | [['de', 'same']] | [['de', 'same']] | Passed |
| trace-5 | [['en', ' x ']] | [['en', ' x ']] | Passed |
| trace-6 | [] | [] | Passed |
SHA-256 / d8de55aa3b2936809ff2f9dd8b8a9550cd9103d920fc6450b14cbf53aae3896b
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(events):
out=[]
for text,role,pos,total,unit,negative,lang,private,label,detail in events:
if not text and not private: continue
value='hidden' if private else text
if label: value=label+': '+value
if negative: value='not '+text
if unit and not private: value+=' '+unit
if total>0: value=str(pos)+' of '+str(total)+': '+value
if role: value+=' ('+role+')'
if detail and detail!=text and not private: value+='; '+detail
language=lang if lang else 'en'
out.append([language,value])
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = ["[['value'*N,'status',2,N+3,'items',True,'fr',False,'Count','detail']]", "[['secret'*N,'status',1,3,'kg',False,'en',True,'Weight','private detail']]", "[['','',0,0,'',False,'',False,'Label',''],['','',0,0,'',False,'',True,'','']]", "[['same'*N,'',0,-1,'',False,'de',False,'','same'*N]]", "[[' x '*N,'',0,0,'',False,'',False,'','']]", '[]']
expected = {1: [[['fr', '2 of 4: not Count: value items (status); detail']], [['en', '1 of 3: Weight: hidden (status)']], [['en', 'hidden']], [['de', 'same']], [['en', ' x ']], []], 2: [[['fr', '2 of 5: not Count: valuevalue items (status); detail']], [['en', '1 of 3: Weight: hidden (status)']], [['en', 'hidden']], [['de', 'samesame']], [['en', ' x x ']], []], 3: [[['fr', '2 of 6: not Count: valuevaluevalue items (status); detail']], [['en', '1 of 3: Weight: hidden (status)']], [['en', 'hidden']], [['de', 'samesamesame']], [['en', ' x x x ']], []], 4: [[['fr', '2 of 7: not Count: valuevaluevaluevalue items (status); detail']], [['en', '1 of 3: Weight: hidden (status)']], [['en', 'hidden']], [['de', 'samesamesamesame']], [['en', ' x x x x ']], []], 5: [[['fr', '2 of 8: not Count: valuevaluevaluevaluevalue items (status); detail']], [['en', '1 of 3: Weight: hidden (status)']], [['en', 'hidden']], [['de', 'samesamesamesamesame']], [['en', ' x x x x x ']], []]}[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 | [['fr', '2 of 4: not value items (status); detail']] | [['fr', '2 of 4: not Count: value items (status); detail']] | Failed |
| trace-2 | [['en', '1 of 3: Weight: hidden (status)']] | [['en', '1 of 3: Weight: hidden (status)']] | Passed |
| trace-3 | [['en', 'hidden']] | [['en', 'hidden']] | Passed |
| trace-4 | [['de', 'same']] | [['de', 'same']] | Passed |
| trace-5 | [['en', ' x ']] | [['en', ' x ']] | Passed |
| trace-6 | [] | [] | Passed |
SHA-256 / b576cb96c470175c11c924bac4561412393540336aba92a24266dd9a61489c37
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 6 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:21.307795+00:00.
Case digest / e83e4c7e1b436b1a9622736e2146c99dbc6f4487f39a909abeb6e4b6f19a3217