FAILURE MAP
← Case archive

FA-2926 / Unicode / Open access

Invisible format controls survive control filtering · case 01

Invisible format controls survive control filtering.

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

ROOT CAUSE

The implementation applies an operation whose text or grammar semantics violate this contract: Remove Unicode categories Cc and Cf; preserve spacing and private-use characters.

THE FAILURE

The implementation applies an operation whose text or grammar semantics violate this contract: Remove Unicode categories Cc and Cf; preserve spacing and private-use characters.

Unsuccessful approach: The attempted repair handles the primary example but still violates a separate boundary of the same contract.

Case contract

Remove Unicode categories Cc and Cf; preserve spacing and private-use characters.

Why this case matters

A local executable model for consumers of structured text; oracle values are authored literals, not outputs copied from the repaired implementation.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import re, unicodedata, json, csv, io, html, base64, binascii, codecs, struct
from urllib.parse import quote, unquote, unquote_to_bytes, urlencode, parse_qsl, urlsplit, urlunsplit
from email.header import decode_header, make_header
from email.utils import getaddresses
from xml.etree import ElementTree as ET
import shlex, string, textwrap

N = 1
observations = []
def solve(x):
    try:
        return ''.join(c for c in x if unicodedata.category(c)!='Cc')
    except Exception as exc:
        return {"error": type(exc).__name__}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('boundary 1', solve('a\u200bb'), 'ab')
check('boundary 2', solve('a\x00b'), 'ab')
check('boundary 3', solve('\ue000'), '\ue000')
check('boundary 4', solve('a b'), 'a b')
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
boundary 1a​babFailed
boundary 2ababPassed
boundary 3Passed
boundary 4a ba bPassed

SHA-256 / b07aa2a0edd2c6f5b6dbb7dedb878d9e2c292782d2c4b3eb0c11fa3c07f4fbd1

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import re, unicodedata, json, csv, io, html, base64, binascii, codecs, struct
from urllib.parse import quote, unquote, unquote_to_bytes, urlencode, parse_qsl, urlsplit, urlunsplit
from email.header import decode_header, make_header
from email.utils import getaddresses
from xml.etree import ElementTree as ET
import shlex, string, textwrap

N = 1
observations = []
def solve(x):
    try:
        return ''.join(c for c in x if not unicodedata.category(c).startswith('C'))
    except Exception as exc:
        return {"error": type(exc).__name__}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('boundary 1', solve('a\u200bb'), 'ab')
check('boundary 2', solve('a\x00b'), 'ab')
check('boundary 3', solve('\ue000'), '\ue000')
check('boundary 4', solve('a b'), 'a b')
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
boundary 1ababPassed
boundary 2ababPassed
boundary 3Failed
boundary 4a ba bPassed

SHA-256 / d9c8554923151e518f5645b11d7704d7830f091c99ebb5a724ffcdb67642ebbb

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 4 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

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

Case digest / ffdf7becb4a44ec70a5a8b388802ad7aa4aa5358faef851c3b26095915e392d3