{"abstract":"A structured table violates the declared record or column contract.","category":"Delimited text","checks":7,"contract":"Bind a comma-split header and data row. Header keys are ASCII case insensitive and stripped. Reject empty or duplicate canonical names, reserved _extra, and unequal width. Preserve data cell whitespace.","evaluation_group":"s3-delimited-text-header-bind","failed_approach":"Checking only the single-column empty header misses embedded empty names.","family":"s3-delimited-text-header-bind-empty","id":"FA-47346","implementations":{"attempt":{"sha256":"84f412f9787d647e81bd5c12770c2b60556db4c9944a44bbf30de9799f916394","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    headers = [h.strip().lower() for h in data[0].split(',')]\n    values = data[1].split(',')\n    if headers == ['']: return None\n    if len(set(headers)) != len(headers): return None\n    if '_extra' in headers: return None\n    if len(values) != len(headers): return None\n    return dict(zip(headers, values))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('canonical names', solve(_vary([' A ,B', '@, y '])), _vary({'a': '@', 'b': ' y '}))\ncheck('duplicate canonical', solve(_vary(['A,a', 'x,y'])), _vary(None))\ncheck('empty header', solve(_vary(['a,', 'x,y'])), _vary(None))\ncheck('reserved header', solve(_vary(['_extra,b', 'x,y'])), _vary(None))\ncheck('short row', solve(_vary(['a,b', '@'])), _vary(None))\ncheck('long row', solve(_vary(['a', 'x,y'])), _vary(None))\ncheck('normal', solve(_vary(['a,b', 'x,y'])), _vary({'a': 'x', 'b': 'y'}))\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":"55492991aa26e61714f95cc8446bc98045b4b4069e0a17efc0f3b9255d8acc79","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    headers = [h.strip().lower() for h in data[0].split(',')]\n    values = data[1].split(',')\n    if not headers: return None\n    if len(set(headers)) != len(headers): return None\n    if '_extra' in headers: return None\n    if len(values) != len(headers): return None\n    return dict(zip(headers, values))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('canonical names', solve(_vary([' A ,B', '@, y '])), _vary({'a': '@', 'b': ' y '}))\ncheck('duplicate canonical', solve(_vary(['A,a', 'x,y'])), _vary(None))\ncheck('empty header', solve(_vary(['a,', 'x,y'])), _vary(None))\ncheck('reserved header', solve(_vary(['_extra,b', 'x,y'])), _vary(None))\ncheck('short row', solve(_vary(['a,b', '@'])), _vary(None))\ncheck('long row', solve(_vary(['a', 'x,y'])), _vary(None))\ncheck('normal', solve(_vary(['a,b', 'x,y'])), _vary({'a': 'x', 'b': 'y'}))\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":"50216bd5abca5160fea3b9512c15cdee50dba035faedc7567df31b012c704763","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    headers = [h.strip().lower() for h in data[0].split(',')]\n    values = data[1].split(',')\n    if any(not h for h in headers): return None\n    if len(set(headers)) != len(headers): return None\n    if '_extra' in headers: return None\n    if len(values) != len(headers): return None\n    return dict(zip(headers, values))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('canonical names', solve(_vary([' A ,B', '@, y '])), _vary({'a': '@', 'b': ' y '}))\ncheck('duplicate canonical', solve(_vary(['A,a', 'x,y'])), _vary(None))\ncheck('empty header', solve(_vary(['a,', 'x,y'])), _vary(None))\ncheck('reserved header', solve(_vary(['_extra,b', 'x,y'])), _vary(None))\ncheck('short row', solve(_vary(['a,b', '@'])), _vary(None))\ncheck('long row', solve(_vary(['a', 'x,y'])), _vary(None))\ncheck('normal', solve(_vary(['a,b', 'x,y'])), _vary({'a': 'x', 'b': 'y'}))\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-header-bind-empty","generated_at":"2026-09-29T14:44:40.579775+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: if any(not h for h in headers): return None","root_cause":"Empty names within nonempty header lists pass validation.","sha256":"48aff4d79ec16898d7b91ac810e3ca84872471ac5aebdf4685aff1e9c67acc38","title":"An unnamed column becomes a dictionary key · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.616,"exit_code":1,"observations":[{"actual":{"a":"cell","b":" y "},"check":"canonical names","expected":{"a":"cell","b":" y "},"passed":true},{"actual":null,"check":"duplicate canonical","expected":null,"passed":true},{"actual":{"":"y","a":"x"},"check":"empty header","expected":null,"passed":false},{"actual":null,"check":"reserved header","expected":null,"passed":true},{"actual":null,"check":"short row","expected":null,"passed":true},{"actual":null,"check":"long row","expected":null,"passed":true},{"actual":{"a":"x","b":"y"},"check":"normal","expected":{"a":"x","b":"y"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"canonical names\", \"actual\": {\"a\": \"cell\", \"b\": \" y \"}, \"expected\": {\"a\": \"cell\", \"b\": \" y \"}, \"passed\": true}, {\"check\": \"duplicate canonical\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty header\", \"actual\": {\"a\": \"x\", \"\": \"y\"}, \"expected\": null, \"passed\": false}, {\"check\": \"reserved header\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"short row\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"long row\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"normal\", \"actual\": {\"a\": \"x\", \"b\": \"y\"}, \"expected\": {\"a\": \"x\", \"b\": \"y\"}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.96,"exit_code":1,"observations":[{"actual":{"a":"cell","b":" y "},"check":"canonical names","expected":{"a":"cell","b":" y "},"passed":true},{"actual":null,"check":"duplicate canonical","expected":null,"passed":true},{"actual":{"":"y","a":"x"},"check":"empty header","expected":null,"passed":false},{"actual":null,"check":"reserved header","expected":null,"passed":true},{"actual":null,"check":"short row","expected":null,"passed":true},{"actual":null,"check":"long row","expected":null,"passed":true},{"actual":{"a":"x","b":"y"},"check":"normal","expected":{"a":"x","b":"y"},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"canonical names\", \"actual\": {\"a\": \"cell\", \"b\": \" y \"}, \"expected\": {\"a\": \"cell\", \"b\": \" y \"}, \"passed\": true}, {\"check\": \"duplicate canonical\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty header\", \"actual\": {\"a\": \"x\", \"\": \"y\"}, \"expected\": null, \"passed\": false}, {\"check\": \"reserved header\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"short row\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"long row\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"normal\", \"actual\": {\"a\": \"x\", \"b\": \"y\"}, \"expected\": {\"a\": \"x\", \"b\": \"y\"}, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":43.828,"exit_code":0,"observations":[{"actual":{"a":"cell","b":" y "},"check":"canonical names","expected":{"a":"cell","b":" y "},"passed":true},{"actual":null,"check":"duplicate canonical","expected":null,"passed":true},{"actual":null,"check":"empty header","expected":null,"passed":true},{"actual":null,"check":"reserved header","expected":null,"passed":true},{"actual":null,"check":"short row","expected":null,"passed":true},{"actual":null,"check":"long row","expected":null,"passed":true},{"actual":{"a":"x","b":"y"},"check":"normal","expected":{"a":"x","b":"y"},"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"canonical names\", \"actual\": {\"a\": \"cell\", \"b\": \" y \"}, \"expected\": {\"a\": \"cell\", \"b\": \" y \"}, \"passed\": true}, {\"check\": \"duplicate canonical\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty header\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"reserved header\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"short row\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"long row\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"normal\", \"actual\": {\"a\": \"x\", \"b\": \"y\"}, \"expected\": {\"a\": \"x\", \"b\": \"y\"}, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}