{"abstract":"Removing a suffix erases unrelated trailing characters.","category":"Text processing","checks":4,"contract":"Remove the exact suffix .log once.","evaluation_group":"model-a0a5d4cd39c2d1c4","failed_approach":"The attempted repair handles the primary example but still violates a separate boundary of the same contract.","family":"xp-suffix-is-not-strip","id":"FA-2981","implementations":{"attempt":{"sha256":"273adc1d2f2e27d4444703d89bbd28f61507fca7fa32861191bb2781e82f45f3","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('.log','')\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('catalog'), 'catalog')\ncheck('boundary 2', solve('a.log'), 'a')\ncheck('boundary 3', solve('a.log.log'), 'a.log')\ncheck('boundary 4', solve('.logx'), '.logx')\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":"b34017eb3e7fc3a84ed0ae81232cc7b33544ea636a9e1ea37d7d29d3dfc25e8d","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.rstrip('.log')\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('catalog'), 'catalog')\ncheck('boundary 2', solve('a.log'), 'a')\ncheck('boundary 3', solve('a.log.log'), 'a.log')\ncheck('boundary 4', solve('.logx'), '.logx')\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":"7676cdf425f369705555b55580eda061edf08482519324796e5e520795546b02","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.removesuffix('.log')\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('catalog'), 'catalog')\ncheck('boundary 2', solve('a.log'), 'a')\ncheck('boundary 3', solve('a.log.log'), 'a.log')\ncheck('boundary 4', solve('.logx'), '.logx')\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-suffix-is-not-strip","generated_at":"2026-09-29T14:37:19.791201+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: Remove the exact suffix .log once.","root_cause":"The implementation applies an operation whose text or grammar semantics violate this contract: Remove the exact suffix .log once.","sha256":"0726e86e52a6871f24c5532166374ff1eaa7949c71f915975b5f0ff1aeb0e129","title":"Removing a suffix erases unrelated trailing characters · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":53.432,"exit_code":1,"observations":[{"actual":"catalog","check":"boundary 1","expected":"catalog","passed":true},{"actual":"a","check":"boundary 2","expected":"a","passed":true},{"actual":"a","check":"boundary 3","expected":"a.log","passed":false},{"actual":"x","check":"boundary 4","expected":".logx","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"catalog\", \"expected\": \"catalog\", \"passed\": true}, {\"check\": \"boundary 2\", \"actual\": \"a\", \"expected\": \"a\", \"passed\": true}, {\"check\": \"boundary 3\", \"actual\": \"a\", \"expected\": \"a.log\", \"passed\": false}, {\"check\": \"boundary 4\", \"actual\": \"x\", \"expected\": \".logx\", \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":50.725,"exit_code":1,"observations":[{"actual":"cata","check":"boundary 1","expected":"catalog","passed":false},{"actual":"a","check":"boundary 2","expected":"a","passed":true},{"actual":"a","check":"boundary 3","expected":"a.log","passed":false},{"actual":".logx","check":"boundary 4","expected":".logx","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"cata\", \"expected\": \"catalog\", \"passed\": false}, {\"check\": \"boundary 2\", \"actual\": \"a\", \"expected\": \"a\", \"passed\": true}, {\"check\": \"boundary 3\", \"actual\": \"a\", \"expected\": \"a.log\", \"passed\": false}, {\"check\": \"boundary 4\", \"actual\": \".logx\", \"expected\": \".logx\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":55.979,"exit_code":0,"observations":[{"actual":"catalog","check":"boundary 1","expected":"catalog","passed":true},{"actual":"a","check":"boundary 2","expected":"a","passed":true},{"actual":"a.log","check":"boundary 3","expected":"a.log","passed":true},{"actual":".logx","check":"boundary 4","expected":".logx","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"catalog\", \"expected\": \"catalog\", \"passed\": true}, {\"check\": \"boundary 2\", \"actual\": \"a\", \"expected\": \"a\", \"passed\": true}, {\"check\": \"boundary 3\", \"actual\": \"a.log\", \"expected\": \"a.log\", \"passed\": true}, {\"check\": \"boundary 4\", \"actual\": \".logx\", \"expected\": \".logx\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}