{"abstract":"Keyword prefix matching splits an identifier.","category":"Tokenization","checks":4,"contract":"Tokenize ASCII identifiers and label exact if/else as keywords.","contract_signature":"x","evaluation_group":"model-e2697a2bd26e2333","failed_approach":"The attempted repair handles the primary example but still violates a separate boundary of the same contract.","family":"xp-keyword-word-boundary","id":"FA-3766","implementations":{"attempt":{"sha256":"aaaad2c10b71610dcf518c04e1e699adf573b63d441ea2d86e591dc58fd63294","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 [['keyword' if 'if' in w or 'else' in w else 'name',w] for w in re.findall(r'[A-Za-z_][A-Za-z0-9_]*',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('iffy'), [['name', 'iffy']])\ncheck('boundary 2', solve('shelf_else'), [['name', 'shelf_else']])\ncheck('boundary 3', solve('if else'), [['keyword', 'if'], ['keyword', 'else']])\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":"9fd976c502c4c4d9feebed180259dd16d168225a8e8ec87ef82e1ea879818f48","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 [['keyword' if w.startswith(('if','else')) else 'name',w] for w in re.findall(r'[A-Za-z_][A-Za-z0-9_]*',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('iffy'), [['name', 'iffy']])\ncheck('boundary 2', solve('shelf_else'), [['name', 'shelf_else']])\ncheck('boundary 3', solve('if else'), [['keyword', 'if'], ['keyword', 'else']])\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-keyword-word-boundary","generated_at":"2026-09-29T14:37:30.447727+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: Tokenize ASCII identifiers and label exact if/else as keywords.","sha256":"030643eb51bb2c157c5dc78f30bddb318d3f346afd464f3458dccb9bbc1c6fff","title":"Keyword prefix matching splits an identifier · 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":47.766,"exit_code":1,"observations":[{"actual":[["keyword","iffy"]],"check":"boundary 1","expected":[["name","iffy"]],"passed":false},{"actual":[["keyword","shelf_else"]],"check":"boundary 2","expected":[["name","shelf_else"]],"passed":false},{"actual":[["keyword","if"],["keyword","else"]],"check":"boundary 3","expected":[["keyword","if"],["keyword","else"]],"passed":true},{"actual":[],"check":"boundary 4","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": [[\"keyword\", \"iffy\"]], \"expected\": [[\"name\", \"iffy\"]], \"passed\": false}, {\"check\": \"boundary 2\", \"actual\": [[\"keyword\", \"shelf_else\"]], \"expected\": [[\"name\", \"shelf_else\"]], \"passed\": false}, {\"check\": \"boundary 3\", \"actual\": [[\"keyword\", \"if\"], [\"keyword\", \"else\"]], \"expected\": [[\"keyword\", \"if\"], [\"keyword\", \"else\"]], \"passed\": true}, {\"check\": \"boundary 4\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":55.26,"exit_code":1,"observations":[{"actual":[["keyword","iffy"]],"check":"boundary 1","expected":[["name","iffy"]],"passed":false},{"actual":[["name","shelf_else"]],"check":"boundary 2","expected":[["name","shelf_else"]],"passed":true},{"actual":[["keyword","if"],["keyword","else"]],"check":"boundary 3","expected":[["keyword","if"],["keyword","else"]],"passed":true},{"actual":[],"check":"boundary 4","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": [[\"keyword\", \"iffy\"]], \"expected\": [[\"name\", \"iffy\"]], \"passed\": false}, {\"check\": \"boundary 2\", \"actual\": [[\"name\", \"shelf_else\"]], \"expected\": [[\"name\", \"shelf_else\"]], \"passed\": true}, {\"check\": \"boundary 3\", \"actual\": [[\"keyword\", \"if\"], [\"keyword\", \"else\"]], \"expected\": [[\"keyword\", \"if\"], [\"keyword\", \"else\"]], \"passed\": true}, {\"check\": \"boundary 4\", \"actual\": [], \"expected\": [], \"passed\": true}], \"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."}}