{"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.","evaluation_group":"s3-delimited-text-map-cell","failed_approach":"The alternate implementation still violates the same declared invariant: an empty map cell is emitted as an empty list.","family":"s3-delimited-text-map-cell-empty-map-type","id":"FA-48531","implementations":{"attempt":{"sha256":"16bac75f6044bc5c9c900142cdddb2658dfcf23a3206895342f12aeb7e94ff64","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={}\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 if mapping else None)\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":"c22de13c84013d9ebd28dabc58acafb4dc6afb9def4567b30b778fb5e8dc7d3f","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={}\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 if mapping else [])\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"},"fixed":{"sha256":"8c44ae1fdb3dae1cb9afe1c90d4a8d6e4a548a595041ee0b39d61c5e4f1131d1","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={}\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-empty-map-type","generated_at":"2026-09-29T14:44:51.511769+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.","repair":"Preserve the named invariant at the faulty decision: out.append(mapping)","root_cause":"An empty map cell is emitted as an empty list.","sha256":"078090579f884e9e1f8b81db630436b0da85540caa251c8e2730ff07afc6a6ae","title":"An empty map cell is emitted as an empty list · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":43.111,"exit_code":1,"observations":[{"actual":["cell",{"a":"x","b":"y"}],"check":"mixed","expected":["cell",{"a":"x","b":"y"}],"passed":true},{"actual":[null],"check":"empty","expected":[{}],"passed":false},{"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":[{"a":"cell"},{"a":"z"}],"check":"two maps","expected":[{"a":"cell"},{"a":"z"}],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"mixed\", \"actual\": [\"cell\", {\"a\": \"x\", \"b\": \"y\"}], \"expected\": [\"cell\", {\"a\": \"x\", \"b\": \"y\"}], \"passed\": true}, {\"check\": \"empty\", \"actual\": [null], \"expected\": [{}], \"passed\": false}, {\"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\": [{\"a\": \"cell\"}, {\"a\": \"z\"}], \"expected\": [{\"a\": \"cell\"}, {\"a\": \"z\"}], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.75,"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":false},{"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":[{"a":"cell"},{"a":"z"}],"check":"two maps","expected":[{"a":"cell"},{"a":"z"}],"passed":true}],"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\": false}, {\"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\": [{\"a\": \"cell\"}, {\"a\": \"z\"}], \"expected\": [{\"a\": \"cell\"}, {\"a\": \"z\"}], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":39.703,"exit_code":0,"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":[{"a":"cell"},{"a":"z"}],"check":"two maps","expected":[{"a":"cell"},{"a":"z"}],"passed":true}],"passed":true,"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\": [{\"a\": \"cell\"}, {\"a\": \"z\"}], \"expected\": [{\"a\": \"cell\"}, {\"a\": \"z\"}], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}