{"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: later map entries silently replace an earlier named value.","family":"s3-delimited-text-map-cell-map-duplicates","id":"FA-48536","implementations":{"attempt":{"sha256":"feca63a2c597622ae04a7ada3ec5eeaae97e2fff2b1d83f078b58a68b449ec32","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 and mapping[parts[0]]==parts[1]): 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":"21004511cc577aaa4ec4dc956a37c09b3bdba0aef274250dd267656dc7ecc665","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] : 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-duplicates","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":"Later map entries silently replace an earlier named value.","sha256":"2f2004d55af7f6bcc61282731a21411c6a74f4aae96bec3ac49ed87960df4e62","title":"Later map entries silently replace an earlier named value · 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":40.746,"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":[{"a":"y"}],"check":"duplicate","expected":null,"passed":false},{"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\": 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\": [{\"a\": \"y\"}], \"expected\": null, \"passed\": false}, {\"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":39.802,"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":[{"a":"y"}],"check":"duplicate","expected":null,"passed":false},{"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\": 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\": [{\"a\": \"y\"}], \"expected\": null, \"passed\": false}, {\"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"}},"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."}}