{"abstract":"A titlecase digraph is reduced to an uppercase digraph.","category":"Unicode","checks":4,"contract":"Titlecase every word using Unicode titlecase mappings.","evaluation_group":"model-a3e3da8da3c9908c","failed_approach":"The attempted repair handles the primary example but still violates a separate boundary of the same contract.","family":"xp-titlecase-digraph","id":"FA-2901","implementations":{"attempt":{"sha256":"af26d1d550ed83369fccef9f62e1faa320b177aa000b71e6d785ebe2d73f1fa5","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(w.capitalize() for w 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('ǳuro'), 'ǲuro')\ncheck('boundary 2', solve(\"they're\"), \"They'Re\")\ncheck('boundary 3', solve('hello-world'), 'Hello-World')\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":"533f326946beb214e03105f2c5e6ad979256813f4ca8013824bb18f8f8b114d1","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.upper()\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('ǳuro'), 'ǲuro')\ncheck('boundary 2', solve(\"they're\"), \"They'Re\")\ncheck('boundary 3', solve('hello-world'), 'Hello-World')\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":"078e76a39634fc3520dbebcf030bd645d03545f2499edfaf2e73a46f5881ac9f","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.title()\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('ǳuro'), 'ǲuro')\ncheck('boundary 2', solve(\"they're\"), \"They'Re\")\ncheck('boundary 3', solve('hello-world'), 'Hello-World')\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-titlecase-digraph","generated_at":"2026-09-29T14:37:18.804622+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: Titlecase every word using Unicode titlecase mappings.","root_cause":"The implementation applies an operation whose text or grammar semantics violate this contract: Titlecase every word using Unicode titlecase mappings.","sha256":"137e555f8306d13e2c39308c0c95eb34ed262277a10aada25c2101e7218d5e92","title":"A titlecase digraph is reduced to an uppercase digraph · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":58.781,"exit_code":1,"observations":[{"actual":"ǲuro","check":"boundary 1","expected":"ǲuro","passed":true},{"actual":"They're","check":"boundary 2","expected":"They'Re","passed":false},{"actual":"Hello-world","check":"boundary 3","expected":"Hello-World","passed":false},{"actual":"","check":"boundary 4","expected":"","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"ǲuro\", \"expected\": \"ǲuro\", \"passed\": true}, {\"check\": \"boundary 2\", \"actual\": \"They're\", \"expected\": \"They'Re\", \"passed\": false}, {\"check\": \"boundary 3\", \"actual\": \"Hello-world\", \"expected\": \"Hello-World\", \"passed\": false}, {\"check\": \"boundary 4\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":53.162,"exit_code":1,"observations":[{"actual":"ǱURO","check":"boundary 1","expected":"ǲuro","passed":false},{"actual":"THEY'RE","check":"boundary 2","expected":"They'Re","passed":false},{"actual":"HELLO-WORLD","check":"boundary 3","expected":"Hello-World","passed":false},{"actual":"","check":"boundary 4","expected":"","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"ǱURO\", \"expected\": \"ǲuro\", \"passed\": false}, {\"check\": \"boundary 2\", \"actual\": \"THEY'RE\", \"expected\": \"They'Re\", \"passed\": false}, {\"check\": \"boundary 3\", \"actual\": \"HELLO-WORLD\", \"expected\": \"Hello-World\", \"passed\": false}, {\"check\": \"boundary 4\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":52.746,"exit_code":0,"observations":[{"actual":"ǲuro","check":"boundary 1","expected":"ǲuro","passed":true},{"actual":"They'Re","check":"boundary 2","expected":"They'Re","passed":true},{"actual":"Hello-World","check":"boundary 3","expected":"Hello-World","passed":true},{"actual":"","check":"boundary 4","expected":"","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"ǲuro\", \"expected\": \"ǲuro\", \"passed\": true}, {\"check\": \"boundary 2\", \"actual\": \"They'Re\", \"expected\": \"They'Re\", \"passed\": true}, {\"check\": \"boundary 3\", \"actual\": \"Hello-World\", \"expected\": \"Hello-World\", \"passed\": true}, {\"check\": \"boundary 4\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}