FAILURE MAP
← Case archive

FA-20646 / Assistive announcements / Open access

Private announcement speaks its raw value · case 01

The announcement trace violates the stated speech-envelope contract.

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

ROOT CAUSE

Fault site: value='hidden' if private else text is implemented as value=text

VERIFIED REPAIR

Restore the stated transition: value='hidden' if private else text

Unsuccessful approach: The attempted repair substitutes value='hidden' if private and text else 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=text
        if label: value=label+': '+value
        if negative: value='not '+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 fixtureActualExpectedOutcome
trace-1[['fr', '2 of 4: not Count: value items (status); detail']][['fr', '2 of 4: not Count: value items (status); detail']]Passed
trace-2[['en', '1 of 3: Weight: secret (status)']][['en', '1 of 3: Weight: hidden (status)']]Failed
trace-3[['en', '']][['en', 'hidden']]Failed
trace-4[['de', 'same']][['de', 'same']]Passed
trace-5[['en', ' x ']][['en', ' x ']]Passed
trace-6[][]Passed

SHA-256 / bb766293a4b40077f5bf382b7bda19937a121733306f497c76460597443e81e1

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 and text else text
        if label: value=label+': '+value
        if negative: value='not '+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 fixtureActualExpectedOutcome
trace-1[['fr', '2 of 4: not Count: value items (status); detail']][['fr', '2 of 4: not Count: value items (status); detail']]Passed
trace-2[['en', '1 of 3: Weight: hidden (status)']][['en', '1 of 3: Weight: hidden (status)']]Passed
trace-3[['en', '']][['en', 'hidden']]Failed
trace-4[['de', 'same']][['de', 'same']]Passed
trace-5[['en', ' x ']][['en', ' x ']]Passed
trace-6[][]Passed

SHA-256 / c0dba19b29a0604097e18f80f6dac75c99fd2700505627d7db2afaa3518e2832

3 / The verified repair

Exit 0
"""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 '+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 fixtureActualExpectedOutcome
trace-1[['fr', '2 of 4: not Count: value items (status); detail']][['fr', '2 of 4: not Count: value items (status); detail']]Passed
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 / a5f27ef3b1e258d4ca28c3afe1b0b8229eaa53eb14fe09c3f3b814beb5ef11d2

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:20.906935+00:00.

Case digest / 38fa49d111c6871103ce8d324a535b7edc1f750e6493fde48ccbee4b34cd6d5c