{"abstract":"A nested comment ends at its first inner terminator.","category":"Parsing","checks":4,"contract":"Remove nested /* */ comments from otherwise literal text; unclosed comments return None.","evaluation_group":"model-e6a723431c2e6831","failed_approach":"The attempted repair handles the primary example but still violates a separate boundary of the same contract.","family":"xp-nested-block-comment","id":"FA-3811","implementations":{"attempt":{"sha256":"b48f9a34e96bef915d3131b24b79a05c80c2ca4b29078b5f037df57d21f52b98","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 re.sub(r'/\\*.*\\*/','',x,flags=re.S)\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('a/*b/*c*/d*/e'), 'ae')\ncheck('boundary 2', solve('a/*x*/b/*y*/c'), 'abc')\ncheck('boundary 3', solve('a/*'), None)\ncheck('boundary 4', solve('plain'), 'plain')\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":"00c6596bfe8e9ed0a3ce581a02621a53c88cee906c0c92a1709a50560b6d99a1","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 re.sub(r'/\\*.*?\\*/','',x,flags=re.S)\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('a/*b/*c*/d*/e'), 'ae')\ncheck('boundary 2', solve('a/*x*/b/*y*/c'), 'abc')\ncheck('boundary 3', solve('a/*'), None)\ncheck('boundary 4', solve('plain'), 'plain')\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":"fa526a5666b4ab37c2cd894e33c5d104cf1214328dbf7186514776a5229c1afd","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        out=[]\n        i=depth=0\n        while i<len(x):\n            if x[i:i+2]=='/*': depth+=1; i+=2\n            elif depth and x[i:i+2]=='*/': depth-=1; i+=2\n            else:\n                if not depth: out.append(x[i])\n                i+=1\n        return None if depth else ''.join(out)\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('a/*b/*c*/d*/e'), 'ae')\ncheck('boundary 2', solve('a/*x*/b/*y*/c'), 'abc')\ncheck('boundary 3', solve('a/*'), None)\ncheck('boundary 4', solve('plain'), 'plain')\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-nested-block-comment","generated_at":"2026-09-29T14:37:31.264008+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 nested /* */ comments from otherwise literal text; unclosed comments return None.","root_cause":"The implementation applies an operation whose text or grammar semantics violate this contract: Remove nested /* */ comments from otherwise literal text; unclosed comments return None.","sha256":"8349f57e5d92843a92c627e7c307ae9a39d797e39e8b81694d461c5aba78b064","title":"A nested comment ends at its first inner terminator · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":49.399,"exit_code":1,"observations":[{"actual":"ae","check":"boundary 1","expected":"ae","passed":true},{"actual":"ac","check":"boundary 2","expected":"abc","passed":false},{"actual":"a/*","check":"boundary 3","expected":null,"passed":false},{"actual":"plain","check":"boundary 4","expected":"plain","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"ae\", \"expected\": \"ae\", \"passed\": true}, {\"check\": \"boundary 2\", \"actual\": \"ac\", \"expected\": \"abc\", \"passed\": false}, {\"check\": \"boundary 3\", \"actual\": \"a/*\", \"expected\": null, \"passed\": false}, {\"check\": \"boundary 4\", \"actual\": \"plain\", \"expected\": \"plain\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":136.951,"exit_code":1,"observations":[{"actual":"ad*/e","check":"boundary 1","expected":"ae","passed":false},{"actual":"abc","check":"boundary 2","expected":"abc","passed":true},{"actual":"a/*","check":"boundary 3","expected":null,"passed":false},{"actual":"plain","check":"boundary 4","expected":"plain","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"ad*/e\", \"expected\": \"ae\", \"passed\": false}, {\"check\": \"boundary 2\", \"actual\": \"abc\", \"expected\": \"abc\", \"passed\": true}, {\"check\": \"boundary 3\", \"actual\": \"a/*\", \"expected\": null, \"passed\": false}, {\"check\": \"boundary 4\", \"actual\": \"plain\", \"expected\": \"plain\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":53.207,"exit_code":0,"observations":[{"actual":"ae","check":"boundary 1","expected":"ae","passed":true},{"actual":"abc","check":"boundary 2","expected":"abc","passed":true},{"actual":null,"check":"boundary 3","expected":null,"passed":true},{"actual":"plain","check":"boundary 4","expected":"plain","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary 1\", \"actual\": \"ae\", \"expected\": \"ae\", \"passed\": true}, {\"check\": \"boundary 2\", \"actual\": \"abc\", \"expected\": \"abc\", \"passed\": true}, {\"check\": \"boundary 3\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"boundary 4\", \"actual\": \"plain\", \"expected\": \"plain\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}