{"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.","contract_signature":"data","evaluation_group":"s3-delimited-text-header-bind","failed_approach":"Lowercasing alone leaves surrounding header spaces.","family":"s3-delimited-text-header-bind-canonical","id":"FA-47341","implementations":{"attempt":{"sha256":"b19165ab593bff5d7f85f3fc8f0de1fd44f86faba799b6372af3bcbfde6f1a75","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.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"},"broken":{"sha256":"4b97a79ad567852f42cd56e2fdac6cf5c4cd9550e2c4956285e432649ac5f209","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() 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-canonical","generated_at":"2026-09-29T14:44:40.759715+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":"Header identity uses raw case instead of canonical form.","sha256":"46c0e7a39910e45b5c0027cfc5cf0161624be4a0800f13193c84982b02380aea","title":"Header canonicalization happens after binding · 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":43.022,"exit_code":1,"observations":[{"actual":{" a ":"cell","b":" y "},"check":"canonical names","expected":{"a":"cell","b":" y "},"passed":false},{"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":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"canonical names\", \"actual\": {\" a \": \"cell\", \"b\": \" y \"}, \"expected\": {\"a\": \"cell\", \"b\": \" y \"}, \"passed\": false}, {\"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\": false}\n"},"broken":{"elapsed_ms":42.653,"exit_code":1,"observations":[{"actual":{"A":"cell","B":" y "},"check":"canonical names","expected":{"a":"cell","b":" y "},"passed":false},{"actual":{"A":"x","a":"y"},"check":"duplicate canonical","expected":null,"passed":false},{"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":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"canonical names\", \"actual\": {\"A\": \"cell\", \"B\": \" y \"}, \"expected\": {\"a\": \"cell\", \"b\": \" y \"}, \"passed\": false}, {\"check\": \"duplicate canonical\", \"actual\": {\"A\": \"x\", \"a\": \"y\"}, \"expected\": null, \"passed\": false}, {\"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\": 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."}}