{"abstract":"Character translation cannot expand or delete.","category":"Text processing","checks":4,"contract":"Translate ampersand to and, delete asterisk, and preserve other code points.","evaluation_group":"model-a76214c6514ecb03","failed_approach":"The attempted repair handles the primary example but still violates a separate boundary of the same contract.","family":"xp-translate-expansion","id":"FA-3036","implementations":{"attempt":{"sha256":"1954d0aff3d73cbe04c12deef267e1cac27022cc1b9cee21c9fcff2cb2b54a43","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport re, unicodedata, json, csv, io, html, base64, binascii, codecs, struct\nfrom urllib.parse import quote, unquote, unquote_to_bytes, urlencode, parse_qsl, urlsplit, urlunsplit\nfrom email.header import decode_header, make_header\nfrom email.utils import getaddresses\nfrom xml.etree import ElementTree as ET\nimport shlex, string, textwrap\n\nN = 1\nobservations = []\ndef solve(x):\n    try:\n        return ''.join('and' if c=='&' else '' if c in '* ' else c for c in x)\n    except Exception as exc:\n        return {\"error\": type(exc).__name__}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('boundary 1', solve('a*b'), 'ab')\ncheck('boundary 2', solve('a & b'), 'a and b')\ncheck('boundary 3', solve('&&'), 'andand')\ncheck('boundary 4', solve(''), '')\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"55c9a3b1382528a2c449af500715a10dd6188e42d43f8ad7910129fc8ade5cbf","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport re, unicodedata, json, csv, io, html, base64, binascii, codecs, struct\nfrom urllib.parse import quote, unquote, unquote_to_bytes, urlencode, parse_qsl, urlsplit, urlunsplit\nfrom email.header import decode_header, make_header\nfrom email.utils import getaddresses\nfrom xml.etree import ElementTree as ET\nimport shlex, string, textwrap\n\nN = 1\nobservations = []\ndef solve(x):\n    try:\n        return x.replace('&','and')\n    except Exception as exc:\n        return {\"error\": type(exc).__name__}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('boundary 1', solve('a*b'), 'ab')\ncheck('boundary 2', solve('a & b'), 'a and b')\ncheck('boundary 3', solve('&&'), 'andand')\ncheck('boundary 4', solve(''), '')\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"fixed":{"sha256":"a34f6db94e3ef13cbf62e92562e2ead7b51eefb01655847c3d5f0c05ae300e74","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport re, unicodedata, json, csv, io, html, base64, binascii, codecs, struct\nfrom urllib.parse import quote, unquote, unquote_to_bytes, urlencode, parse_qsl, urlsplit, urlunsplit\nfrom email.header import decode_header, make_header\nfrom email.utils import getaddresses\nfrom xml.etree import ElementTree as ET\nimport shlex, string, textwrap\n\nN = 1\nobservations = []\ndef solve(x):\n    try:\n        return x.translate({ord('&'):'and',ord('*'):None})\n    except Exception as exc:\n        return {\"error\": type(exc).__name__}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('boundary 1', solve('a*b'), 'ab')\ncheck('boundary 2', solve('a & b'), 'a and b')\ncheck('boundary 3', solve('&&'), 'andand')\ncheck('boundary 4', solve(''), '')\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":" 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.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"xp-translate-expansion","generated_at":"2026-09-29T14:37:20.525558+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A local executable model for consumers of structured text; oracle values are authored literals, not outputs copied from the repaired implementation.","repair":"Implement the complete stated contract, including the boundary fixtures: Translate ampersand to and, delete asterisk, and preserve other code points.","root_cause":"The implementation applies an operation whose text or grammar semantics violate this contract: Translate ampersand to and, delete asterisk, and preserve other code points.","sha256":"e311e5bfb5fcfccb58cdf811bf1459475b0931e7b79468f6f2543588099849be","title":"Character translation cannot expand or delete · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":56.153,"exit_code":1,"observations":[{"actual":"ab","check":"boundary 1","expected":"ab","passed":true},{"actual":"aandb","check":"boundary 2","expected":"a and b","passed":false},{"actual":"andand","check":"boundary 3","expected":"andand","passed":true},{"actual":"","check":"boundary 4","expected":"","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"ab\", \"expected\": \"ab\", \"passed\": true}, {\"check\": \"boundary 2\", \"actual\": \"aandb\", \"expected\": \"a and b\", \"passed\": false}, {\"check\": \"boundary 3\", \"actual\": \"andand\", \"expected\": \"andand\", \"passed\": true}, {\"check\": \"boundary 4\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":61.305,"exit_code":1,"observations":[{"actual":"a*b","check":"boundary 1","expected":"ab","passed":false},{"actual":"a and b","check":"boundary 2","expected":"a and b","passed":true},{"actual":"andand","check":"boundary 3","expected":"andand","passed":true},{"actual":"","check":"boundary 4","expected":"","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"a*b\", \"expected\": \"ab\", \"passed\": false}, {\"check\": \"boundary 2\", \"actual\": \"a and b\", \"expected\": \"a and b\", \"passed\": true}, {\"check\": \"boundary 3\", \"actual\": \"andand\", \"expected\": \"andand\", \"passed\": true}, {\"check\": \"boundary 4\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":53.738,"exit_code":0,"observations":[{"actual":"ab","check":"boundary 1","expected":"ab","passed":true},{"actual":"a and b","check":"boundary 2","expected":"a and b","passed":true},{"actual":"andand","check":"boundary 3","expected":"andand","passed":true},{"actual":"","check":"boundary 4","expected":"","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"ab\", \"expected\": \"ab\", \"passed\": true}, {\"check\": \"boundary 2\", \"actual\": \"a and b\", \"expected\": \"a and b\", \"passed\": true}, {\"check\": \"boundary 3\", \"actual\": \"andand\", \"expected\": \"andand\", \"passed\": true}, {\"check\": \"boundary 4\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}