{"abstract":"Adjacent encoded words retain separating whitespace.","category":"Encodings","checks":4,"contract":"Decode RFC-style encoded words through the standard email header codec.","contract_signature":"x","evaluation_group":"model-a617a40bb3f7316b","failed_approach":"The attempted repair handles the primary example but still violates a separate boundary of the same contract.","family":"xp-mime-header-adjacency","id":"FA-3346","implementations":{"attempt":{"sha256":"3c946506892a4f0a895d5beefccc20e8a358c74f19dd811b14c01ebf035f9f22","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(str(make_header(decode_header(v))) for v in x.split())\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('=?utf-8?q?caf=C3=A9?='), 'café')\ncheck('boundary 2', solve('=?utf-8?q?a?= =?utf-8?q?b?='), 'ab')\ncheck('boundary 3', solve('plain'), 'plain')\ncheck('boundary 4', solve('=?iso-8859-1?q?=E9?='), 'é')\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":"8b661da02394a1419e087498e3d92e1591284d52d651610db79098c83be90013","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\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('=?utf-8?q?caf=C3=A9?='), 'café')\ncheck('boundary 2', solve('=?utf-8?q?a?= =?utf-8?q?b?='), 'ab')\ncheck('boundary 3', solve('plain'), 'plain')\ncheck('boundary 4', solve('=?iso-8859-1?q?=E9?='), 'é')\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-mime-header-adjacency","generated_at":"2026-09-29T14:37:24.501874+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.","root_cause":"The implementation applies an operation whose text or grammar semantics violate this contract: Decode RFC-style encoded words through the standard email header codec.","sha256":"ae66af689f19f2a3d34b9a34b27471e9dbc3c9712e1680247974d503b6f0f9cb","title":"Adjacent encoded words retain separating whitespace · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":52.0,"exit_code":1,"observations":[{"actual":"café","check":"boundary 1","expected":"café","passed":true},{"actual":"a b","check":"boundary 2","expected":"ab","passed":false},{"actual":"plain","check":"boundary 3","expected":"plain","passed":true},{"actual":"é","check":"boundary 4","expected":"é","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"café\", \"expected\": \"café\", \"passed\": true}, {\"check\": \"boundary 2\", \"actual\": \"a b\", \"expected\": \"ab\", \"passed\": false}, {\"check\": \"boundary 3\", \"actual\": \"plain\", \"expected\": \"plain\", \"passed\": true}, {\"check\": \"boundary 4\", \"actual\": \"é\", \"expected\": \"é\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":53.255,"exit_code":1,"observations":[{"actual":"=?utf-8?q?caf=C3=A9?=","check":"boundary 1","expected":"café","passed":false},{"actual":"=?utf-8?q?a?= =?utf-8?q?b?=","check":"boundary 2","expected":"ab","passed":false},{"actual":"plain","check":"boundary 3","expected":"plain","passed":true},{"actual":"=?iso-8859-1?q?=E9?=","check":"boundary 4","expected":"é","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"=?utf-8?q?caf=C3=A9?=\", \"expected\": \"café\", \"passed\": false}, {\"check\": \"boundary 2\", \"actual\": \"=?utf-8?q?a?= =?utf-8?q?b?=\", \"expected\": \"ab\", \"passed\": false}, {\"check\": \"boundary 3\", \"actual\": \"plain\", \"expected\": \"plain\", \"passed\": true}, {\"check\": \"boundary 4\", \"actual\": \"=?iso-8859-1?q?=E9?=\", \"expected\": \"é\", \"passed\": false}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}