{"abstract":"A structured table violates the declared record or column contract.","category":"Delimited text","checks":8,"contract":"Decode a semicolon-delimited row of map cells enclosed in braces. Inside a map, comma separates entries and first equals separates key and value. Empty braces represent an empty map; empty values are legal, empty or duplicate keys reject. Ordinary scalar cells remain text, even with equals.","contract_signature":"data","evaluation_group":"s3-delimited-text-map-cell","failed_approach":"The alternate implementation still violates the same declared invariant: map-cell keys leak into the next map in the same row.","family":"s3-delimited-text-map-cell-map-scope","id":"FA-48516","implementations":{"attempt":{"sha256":"c1bb897feab37134bcd852cfa34077c6457b9503120b3d58040f4a1ed6e03a2b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\ndef _vary(value):\n    if value == '@END': return 3 + 4*N\n    if isinstance(value, str): return value.replace('@', 'cell' * N)\n    if isinstance(value, list): return [_vary(x) for x in value]\n    if isinstance(value, dict): return {_vary(k): _vary(v) for k,v in value.items()}\n    return value\nN = 1\nobservations = []\ndef solve(data):\n    out=[]\n    for cell in data.split(';'):\n        if cell.startswith('{'):\n            if not cell.endswith('}'): return None\n            inner=cell[1:-1]; mapping=dict(out[-1]) if out and isinstance(out[-1],dict) else {}\n            for pair in inner.split(',') if inner else []:\n                parts=pair.split('=',1)\n                if len(parts)!=2 or not parts[0] or parts[0] in mapping: return None\n                mapping[parts[0]]=parts[1]\n            out.append(mapping)\n        else:\n            if '{' in cell or '}' in cell: return None\n            out.append(cell)\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('mixed', solve(_vary('@;{a=x,b=y}')), _vary(['@', {'a': 'x', 'b': 'y'}]))\ncheck('empty', solve(_vary('{}')), _vary([{}]))\ncheck('equals value', solve(_vary('{a=x=y}')), _vary([{'a': 'x=y'}]))\ncheck('empty value', solve(_vary('{a=}')), _vary([{'a': ''}]))\ncheck('duplicate', solve(_vary('{a=x,a=y}')), _vary(None))\ncheck('empty key', solve(_vary('{=x}')), _vary(None))\ncheck('scalar equals', solve(_vary('a=x')), _vary(['a=x']))\ncheck('two maps', solve(_vary('{a=@};{a=z}')), _vary([{'a': '@'}, {'a': 'z'}]))\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":"78bcda78a4b2e71ebb6fdad74ce0c04a34828be3c5c223cf6e85ef5cc9ad3d28","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\ndef _vary(value):\n    if value == '@END': return 3 + 4*N\n    if isinstance(value, str): return value.replace('@', 'cell' * N)\n    if isinstance(value, list): return [_vary(x) for x in value]\n    if isinstance(value, dict): return {_vary(k): _vary(v) for k,v in value.items()}\n    return value\nN = 1\nobservations = []\ndef solve(data):\n    out=[]\n    for cell in data.split(';'):\n        if cell.startswith('{'):\n            if not cell.endswith('}'): return None\n            inner=cell[1:-1]; mapping=out[-1] if out and isinstance(out[-1],dict) else {}\n            for pair in inner.split(',') if inner else []:\n                parts=pair.split('=',1)\n                if len(parts)!=2 or not parts[0] or parts[0] in mapping: return None\n                mapping[parts[0]]=parts[1]\n            out.append(mapping)\n        else:\n            if '{' in cell or '}' in cell: return None\n            out.append(cell)\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('mixed', solve(_vary('@;{a=x,b=y}')), _vary(['@', {'a': 'x', 'b': 'y'}]))\ncheck('empty', solve(_vary('{}')), _vary([{}]))\ncheck('equals value', solve(_vary('{a=x=y}')), _vary([{'a': 'x=y'}]))\ncheck('empty value', solve(_vary('{a=}')), _vary([{'a': ''}]))\ncheck('duplicate', solve(_vary('{a=x,a=y}')), _vary(None))\ncheck('empty key', solve(_vary('{=x}')), _vary(None))\ncheck('scalar equals', solve(_vary('a=x')), _vary(['a=x']))\ncheck('two maps', solve(_vary('{a=@};{a=z}')), _vary([{'a': '@'}, {'a': 'z'}]))\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":"Deterministic bounded in-memory model. No claim of complete CSV or external format conformance. 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":"s3-delimited-text-map-cell-map-scope","generated_at":"2026-09-29T14:44:51.598319+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Delimited interchange needs explicit framing, schema and field semantics at ingestion and emission boundaries.","root_cause":"Map-cell keys leak into the next map in the same row.","sha256":"5c367926f2e96872354e5d35344f7e175ee3f4257fca58347424131983865c02","title":"Map-cell keys leak into the next map in the same row · 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":41.395,"exit_code":1,"observations":[{"actual":["cell",{"a":"x","b":"y"}],"check":"mixed","expected":["cell",{"a":"x","b":"y"}],"passed":true},{"actual":[{}],"check":"empty","expected":[{}],"passed":true},{"actual":[{"a":"x=y"}],"check":"equals value","expected":[{"a":"x=y"}],"passed":true},{"actual":[{"a":""}],"check":"empty value","expected":[{"a":""}],"passed":true},{"actual":null,"check":"duplicate","expected":null,"passed":true},{"actual":null,"check":"empty key","expected":null,"passed":true},{"actual":["a=x"],"check":"scalar equals","expected":["a=x"],"passed":true},{"actual":null,"check":"two maps","expected":[{"a":"cell"},{"a":"z"}],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"mixed\", \"actual\": [\"cell\", {\"a\": \"x\", \"b\": \"y\"}], \"expected\": [\"cell\", {\"a\": \"x\", \"b\": \"y\"}], \"passed\": true}, {\"check\": \"empty\", \"actual\": [{}], \"expected\": [{}], \"passed\": true}, {\"check\": \"equals value\", \"actual\": [{\"a\": \"x=y\"}], \"expected\": [{\"a\": \"x=y\"}], \"passed\": true}, {\"check\": \"empty value\", \"actual\": [{\"a\": \"\"}], \"expected\": [{\"a\": \"\"}], \"passed\": true}, {\"check\": \"duplicate\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty key\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"scalar equals\", \"actual\": [\"a=x\"], \"expected\": [\"a=x\"], \"passed\": true}, {\"check\": \"two maps\", \"actual\": null, \"expected\": [{\"a\": \"cell\"}, {\"a\": \"z\"}], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.72,"exit_code":1,"observations":[{"actual":["cell",{"a":"x","b":"y"}],"check":"mixed","expected":["cell",{"a":"x","b":"y"}],"passed":true},{"actual":[{}],"check":"empty","expected":[{}],"passed":true},{"actual":[{"a":"x=y"}],"check":"equals value","expected":[{"a":"x=y"}],"passed":true},{"actual":[{"a":""}],"check":"empty value","expected":[{"a":""}],"passed":true},{"actual":null,"check":"duplicate","expected":null,"passed":true},{"actual":null,"check":"empty key","expected":null,"passed":true},{"actual":["a=x"],"check":"scalar equals","expected":["a=x"],"passed":true},{"actual":null,"check":"two maps","expected":[{"a":"cell"},{"a":"z"}],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"mixed\", \"actual\": [\"cell\", {\"a\": \"x\", \"b\": \"y\"}], \"expected\": [\"cell\", {\"a\": \"x\", \"b\": \"y\"}], \"passed\": true}, {\"check\": \"empty\", \"actual\": [{}], \"expected\": [{}], \"passed\": true}, {\"check\": \"equals value\", \"actual\": [{\"a\": \"x=y\"}], \"expected\": [{\"a\": \"x=y\"}], \"passed\": true}, {\"check\": \"empty value\", \"actual\": [{\"a\": \"\"}], \"expected\": [{\"a\": \"\"}], \"passed\": true}, {\"check\": \"duplicate\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty key\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"scalar equals\", \"actual\": [\"a=x\"], \"expected\": [\"a=x\"], \"passed\": true}, {\"check\": \"two maps\", \"actual\": null, \"expected\": [{\"a\": \"cell\"}, {\"a\": \"z\"}], \"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."}}