{"abstract":"A structured table violates the declared record or column contract.","category":"Delimited text","checks":8,"contract":"Decode comma rows with header label followed by data cells. First field is a row label; labels must be unique, including empty label. Return labels and values separately. All data rows have the width specified in data.width; preserve label spelling and row order.","contract_signature":"data","evaluation_group":"s3-delimited-text-labelled-rows","failed_approach":"The alternate implementation still violates the same declared invariant: an explicitly empty label is converted to an ordinal.","family":"s3-delimited-text-labelled-rows-empty-label","id":"FA-48636","implementations":{"attempt":{"sha256":"fca454d5528703c650a4b1401a4776499a5e2dbb15bb983e807c8ea7a20d3ea6","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    labels,values=[],[]\n    for line in data['lines']:\n        cells=line.split(',')\n        label,row=cells[0],cells[1:]\n        if len(row)!=data['width'] or label in labels: return None\n        labels.append(label if label else None); values.append(row)\n    return {'labels':labels,'values':values}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('rows', solve(_vary({'width': 2, 'lines': ['r,@,x', 'q,y,z']})), _vary({'labels': ['r', 'q'], 'values': [['@', 'x'], ['y', 'z']]}))\ncheck('empty label', solve(_vary({'width': 1, 'lines': [',@']})), _vary({'labels': [''], 'values': [['@']]}))\ncheck('duplicate', solve(_vary({'width': 1, 'lines': ['r,@', 'r,z']})), _vary(None))\ncheck('bad width', solve(_vary({'width': 2, 'lines': ['r,@']})), _vary(None))\ncheck('spaces', solve(_vary({'width': 1, 'lines': [' r ,@']})), _vary({'labels': [' r '], 'values': [['@']]}))\ncheck('uppercase label', solve(_vary({'width': 1, 'lines': ['ROW,@']})), _vary({'labels': ['ROW'], 'values': [['@']]}))\ncheck('zero width', solve(_vary({'width': 0, 'lines': ['@']})), _vary({'labels': ['@'], 'values': [[]]}))\ncheck('empty table', solve(_vary({'width': 2, 'lines': []})), _vary({'labels': [], 'values': []}))\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":"2187196ef9678b6e73b63364d84697eda822c2bad31e2f3de1bf452b0e5647f4","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    labels,values=[],[]\n    for line in data['lines']:\n        cells=line.split(',')\n        label,row=cells[0],cells[1:]\n        if len(row)!=data['width'] or label in labels: return None\n        labels.append(label if label else str(len(labels))); values.append(row)\n    return {'labels':labels,'values':values}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('rows', solve(_vary({'width': 2, 'lines': ['r,@,x', 'q,y,z']})), _vary({'labels': ['r', 'q'], 'values': [['@', 'x'], ['y', 'z']]}))\ncheck('empty label', solve(_vary({'width': 1, 'lines': [',@']})), _vary({'labels': [''], 'values': [['@']]}))\ncheck('duplicate', solve(_vary({'width': 1, 'lines': ['r,@', 'r,z']})), _vary(None))\ncheck('bad width', solve(_vary({'width': 2, 'lines': ['r,@']})), _vary(None))\ncheck('spaces', solve(_vary({'width': 1, 'lines': [' r ,@']})), _vary({'labels': [' r '], 'values': [['@']]}))\ncheck('uppercase label', solve(_vary({'width': 1, 'lines': ['ROW,@']})), _vary({'labels': ['ROW'], 'values': [['@']]}))\ncheck('zero width', solve(_vary({'width': 0, 'lines': ['@']})), _vary({'labels': ['@'], 'values': [[]]}))\ncheck('empty table', solve(_vary({'width': 2, 'lines': []})), _vary({'labels': [], 'values': []}))\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-labelled-rows-empty-label","generated_at":"2026-09-29T14:44:52.535526+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":"An explicitly empty label is converted to an ordinal.","sha256":"ed39fbc621b4c87819a3a1165bb95d9c49833d7c207a4a05dd1685ce6cf86bff","title":"An explicitly empty label is converted to an ordinal · 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.017,"exit_code":1,"observations":[{"actual":{"labels":["r","q"],"values":[["cell","x"],["y","z"]]},"check":"rows","expected":{"labels":["r","q"],"values":[["cell","x"],["y","z"]]},"passed":true},{"actual":{"labels":[null],"values":[["cell"]]},"check":"empty label","expected":{"labels":[""],"values":[["cell"]]},"passed":false},{"actual":null,"check":"duplicate","expected":null,"passed":true},{"actual":null,"check":"bad width","expected":null,"passed":true},{"actual":{"labels":[" r "],"values":[["cell"]]},"check":"spaces","expected":{"labels":[" r "],"values":[["cell"]]},"passed":true},{"actual":{"labels":["ROW"],"values":[["cell"]]},"check":"uppercase label","expected":{"labels":["ROW"],"values":[["cell"]]},"passed":true},{"actual":{"labels":["cell"],"values":[[]]},"check":"zero width","expected":{"labels":["cell"],"values":[[]]},"passed":true},{"actual":{"labels":[],"values":[]},"check":"empty table","expected":{"labels":[],"values":[]},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"rows\", \"actual\": {\"labels\": [\"r\", \"q\"], \"values\": [[\"cell\", \"x\"], [\"y\", \"z\"]]}, \"expected\": {\"labels\": [\"r\", \"q\"], \"values\": [[\"cell\", \"x\"], [\"y\", \"z\"]]}, \"passed\": true}, {\"check\": \"empty label\", \"actual\": {\"labels\": [null], \"values\": [[\"cell\"]]}, \"expected\": {\"labels\": [\"\"], \"values\": [[\"cell\"]]}, \"passed\": false}, {\"check\": \"duplicate\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"bad width\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"spaces\", \"actual\": {\"labels\": [\" r \"], \"values\": [[\"cell\"]]}, \"expected\": {\"labels\": [\" r \"], \"values\": [[\"cell\"]]}, \"passed\": true}, {\"check\": \"uppercase label\", \"actual\": {\"labels\": [\"ROW\"], \"values\": [[\"cell\"]]}, \"expected\": {\"labels\": [\"ROW\"], \"values\": [[\"cell\"]]}, \"passed\": true}, {\"check\": \"zero width\", \"actual\": {\"labels\": [\"cell\"], \"values\": [[]]}, \"expected\": {\"labels\": [\"cell\"], \"values\": [[]]}, \"passed\": true}, {\"check\": \"empty table\", \"actual\": {\"labels\": [], \"values\": []}, \"expected\": {\"labels\": [], \"values\": []}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.771,"exit_code":1,"observations":[{"actual":{"labels":["r","q"],"values":[["cell","x"],["y","z"]]},"check":"rows","expected":{"labels":["r","q"],"values":[["cell","x"],["y","z"]]},"passed":true},{"actual":{"labels":["0"],"values":[["cell"]]},"check":"empty label","expected":{"labels":[""],"values":[["cell"]]},"passed":false},{"actual":null,"check":"duplicate","expected":null,"passed":true},{"actual":null,"check":"bad width","expected":null,"passed":true},{"actual":{"labels":[" r "],"values":[["cell"]]},"check":"spaces","expected":{"labels":[" r "],"values":[["cell"]]},"passed":true},{"actual":{"labels":["ROW"],"values":[["cell"]]},"check":"uppercase label","expected":{"labels":["ROW"],"values":[["cell"]]},"passed":true},{"actual":{"labels":["cell"],"values":[[]]},"check":"zero width","expected":{"labels":["cell"],"values":[[]]},"passed":true},{"actual":{"labels":[],"values":[]},"check":"empty table","expected":{"labels":[],"values":[]},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"rows\", \"actual\": {\"labels\": [\"r\", \"q\"], \"values\": [[\"cell\", \"x\"], [\"y\", \"z\"]]}, \"expected\": {\"labels\": [\"r\", \"q\"], \"values\": [[\"cell\", \"x\"], [\"y\", \"z\"]]}, \"passed\": true}, {\"check\": \"empty label\", \"actual\": {\"labels\": [\"0\"], \"values\": [[\"cell\"]]}, \"expected\": {\"labels\": [\"\"], \"values\": [[\"cell\"]]}, \"passed\": false}, {\"check\": \"duplicate\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"bad width\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"spaces\", \"actual\": {\"labels\": [\" r \"], \"values\": [[\"cell\"]]}, \"expected\": {\"labels\": [\" r \"], \"values\": [[\"cell\"]]}, \"passed\": true}, {\"check\": \"uppercase label\", \"actual\": {\"labels\": [\"ROW\"], \"values\": [[\"cell\"]]}, \"expected\": {\"labels\": [\"ROW\"], \"values\": [[\"cell\"]]}, \"passed\": true}, {\"check\": \"zero width\", \"actual\": {\"labels\": [\"cell\"], \"values\": [[]]}, \"expected\": {\"labels\": [\"cell\"], \"values\": [[]]}, \"passed\": true}, {\"check\": \"empty table\", \"actual\": {\"labels\": [], \"values\": []}, \"expected\": {\"labels\": [], \"values\": []}, \"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."}}