{"abstract":"Empty-pattern replacement misses text boundaries.","category":"Text processing","checks":4,"contract":"Insert a vertical bar at every boundary using empty substring replacement.","evaluation_group":"model-b5b1ab5b05432afa","failed_approach":"The attempted repair handles the primary example but still violates a separate boundary of the same contract.","family":"xp-replace-empty-boundaries","id":"FA-3026","implementations":{"attempt":{"sha256":"bea4d3fb91c9b5b5e9e3f8b00719270f51c8141a1507371ada93b0df9e8f22ba","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(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('ab'), '|a|b|')\ncheck('boundary 2', solve(''), '|')\ncheck('boundary 3', solve('é'), '|é|')\ncheck('boundary 4', solve('a b'), '|a| |b|')\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":"b468cc0cef4f49400cf94a1eddcc84e95d65c83271371a04dd0ac3f9e1ad1065","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(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('ab'), '|a|b|')\ncheck('boundary 2', solve(''), '|')\ncheck('boundary 3', solve('é'), '|é|')\ncheck('boundary 4', solve('a b'), '|a| |b|')\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":"cc12d4708b7a91fb7196297d5b4347af1d49b05b609d80633e084db7029a40c8","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('','|')\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('ab'), '|a|b|')\ncheck('boundary 2', solve(''), '|')\ncheck('boundary 3', solve('é'), '|é|')\ncheck('boundary 4', solve('a b'), '|a| |b|')\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-replace-empty-boundaries","generated_at":"2026-09-29T14:37:20.474633+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: Insert a vertical bar at every boundary using empty substring replacement.","root_cause":"The implementation applies an operation whose text or grammar semantics violate this contract: Insert a vertical bar at every boundary using empty substring replacement.","sha256":"a222eb799a1d87067e77c51cccfd9fd618c7d958556e54e096fdc38d93f3d5e1","title":"Empty-pattern replacement misses text boundaries · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":57.991,"exit_code":1,"observations":[{"actual":"|a|b|","check":"boundary 1","expected":"|a|b|","passed":true},{"actual":"||","check":"boundary 2","expected":"|","passed":false},{"actual":"|é|","check":"boundary 3","expected":"|é|","passed":true},{"actual":"|a| |b|","check":"boundary 4","expected":"|a| |b|","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"|a|b|\", \"expected\": \"|a|b|\", \"passed\": true}, {\"check\": \"boundary 2\", \"actual\": \"||\", \"expected\": \"|\", \"passed\": false}, {\"check\": \"boundary 3\", \"actual\": \"|é|\", \"expected\": \"|é|\", \"passed\": true}, {\"check\": \"boundary 4\", \"actual\": \"|a| |b|\", \"expected\": \"|a| |b|\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":57.667,"exit_code":1,"observations":[{"actual":"a|b","check":"boundary 1","expected":"|a|b|","passed":false},{"actual":"","check":"boundary 2","expected":"|","passed":false},{"actual":"é","check":"boundary 3","expected":"|é|","passed":false},{"actual":"a| |b","check":"boundary 4","expected":"|a| |b|","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"a|b\", \"expected\": \"|a|b|\", \"passed\": false}, {\"check\": \"boundary 2\", \"actual\": \"\", \"expected\": \"|\", \"passed\": false}, {\"check\": \"boundary 3\", \"actual\": \"é\", \"expected\": \"|é|\", \"passed\": false}, {\"check\": \"boundary 4\", \"actual\": \"a| |b\", \"expected\": \"|a| |b|\", \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":60.646,"exit_code":0,"observations":[{"actual":"|a|b|","check":"boundary 1","expected":"|a|b|","passed":true},{"actual":"|","check":"boundary 2","expected":"|","passed":true},{"actual":"|é|","check":"boundary 3","expected":"|é|","passed":true},{"actual":"|a| |b|","check":"boundary 4","expected":"|a| |b|","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"|a|b|\", \"expected\": \"|a|b|\", \"passed\": true}, {\"check\": \"boundary 2\", \"actual\": \"|\", \"expected\": \"|\", \"passed\": true}, {\"check\": \"boundary 3\", \"actual\": \"|é|\", \"expected\": \"|é|\", \"passed\": true}, {\"check\": \"boundary 4\", \"actual\": \"|a| |b|\", \"expected\": \"|a| |b|\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}