{"abstract":"A structured table violates the declared record or column contract.","category":"Delimited text","checks":8,"contract":"Transpose comma records into physical columns. Pad missing trailing cells with null, preserving explicit empty strings. Width is the largest source row width; empty input has no columns. Output columns are in increasing physical position.","evaluation_group":"s3-delimited-text-ragged-table-transpose","failed_approach":"The alternate implementation still violates the same declared invariant: transpose width is taken only from the first record.","family":"s3-delimited-text-ragged-table-transpose-width-first","id":"FA-48191","implementations":{"attempt":{"sha256":"88f5bb0a3186af14d2cc9f8d4a9ca0e4ed0a88c47cb2c56a9f79753ed1933ae4","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    rows=[line.split(',') for line in data]\n    width=min((len(row) for row in rows),default=0)\n    out=[]\n    for col in range(width):\n        out.append([row[col] if col<len(row) else None for row in rows])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('ragged', solve(_vary(['@,a,b', 'x'])), _vary([['@', 'x'], ['a', None], ['b', None]]))\ncheck('later wider', solve(_vary(['@', 'x,y'])), _vary([['@', 'x'], [None, 'y']]))\ncheck('explicit empty', solve(_vary(['@,', 'x'])), _vary([['@', 'x'], ['', None]]))\ncheck('empty input', solve(_vary([])), _vary([]))\ncheck('one empty', solve(_vary([''])), _vary([['']]))\ncheck('rectangular', solve(_vary(['a,b', 'c,d'])), _vary([['a', 'c'], ['b', 'd']]))\ncheck('unsorted', solve(_vary(['z,1', 'a,2'])), _vary([['z', 'a'], ['1', '2']]))\ncheck('three rows', solve(_vary(['@,x', 'y', 'z,w'])), _vary([['@', 'y', 'z'], ['x', None, 'w']]))\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":"76051b70de8b7f9ceebcc7a2fbc22749fee267bef6e57b5b8681c30b66ef5611","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    rows=[line.split(',') for line in data]\n    width=len(rows[0]) if rows else 0\n    out=[]\n    for col in range(width):\n        out.append([row[col] if col<len(row) else None for row in rows])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('ragged', solve(_vary(['@,a,b', 'x'])), _vary([['@', 'x'], ['a', None], ['b', None]]))\ncheck('later wider', solve(_vary(['@', 'x,y'])), _vary([['@', 'x'], [None, 'y']]))\ncheck('explicit empty', solve(_vary(['@,', 'x'])), _vary([['@', 'x'], ['', None]]))\ncheck('empty input', solve(_vary([])), _vary([]))\ncheck('one empty', solve(_vary([''])), _vary([['']]))\ncheck('rectangular', solve(_vary(['a,b', 'c,d'])), _vary([['a', 'c'], ['b', 'd']]))\ncheck('unsorted', solve(_vary(['z,1', 'a,2'])), _vary([['z', 'a'], ['1', '2']]))\ncheck('three rows', solve(_vary(['@,x', 'y', 'z,w'])), _vary([['@', 'y', 'z'], ['x', None, 'w']]))\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":"6296caec6a781f64e40df8dd2aeb6f8b323ee72696f392451e1d19df3db97602","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    rows=[line.split(',') for line in data]\n    width=max((len(row) for row in rows),default=0)\n    out=[]\n    for col in range(width):\n        out.append([row[col] if col<len(row) else None for row in rows])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('ragged', solve(_vary(['@,a,b', 'x'])), _vary([['@', 'x'], ['a', None], ['b', None]]))\ncheck('later wider', solve(_vary(['@', 'x,y'])), _vary([['@', 'x'], [None, 'y']]))\ncheck('explicit empty', solve(_vary(['@,', 'x'])), _vary([['@', 'x'], ['', None]]))\ncheck('empty input', solve(_vary([])), _vary([]))\ncheck('one empty', solve(_vary([''])), _vary([['']]))\ncheck('rectangular', solve(_vary(['a,b', 'c,d'])), _vary([['a', 'c'], ['b', 'd']]))\ncheck('unsorted', solve(_vary(['z,1', 'a,2'])), _vary([['z', 'a'], ['1', '2']]))\ncheck('three rows', solve(_vary(['@,x', 'y', 'z,w'])), _vary([['@', 'y', 'z'], ['x', None, 'w']]))\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-ragged-table-transpose-width-first","generated_at":"2026-09-29T14:44:48.599177+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: width=max((len(row) for row in rows),default=0)","root_cause":"Transpose width is taken only from the first record.","sha256":"fb2262e8123aaa7e907b920e8255ae654ebc81c73f87b5275d84f2608bffb1ee","title":"Transpose width is taken only from the first record · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":43.529,"exit_code":1,"observations":[{"actual":[["cell","x"]],"check":"ragged","expected":[["cell","x"],["a",null],["b",null]],"passed":false},{"actual":[["cell","x"]],"check":"later wider","expected":[["cell","x"],[null,"y"]],"passed":false},{"actual":[["cell","x"]],"check":"explicit empty","expected":[["cell","x"],["",null]],"passed":false},{"actual":[],"check":"empty input","expected":[],"passed":true},{"actual":[[""]],"check":"one empty","expected":[[""]],"passed":true},{"actual":[["a","c"],["b","d"]],"check":"rectangular","expected":[["a","c"],["b","d"]],"passed":true},{"actual":[["z","a"],["1","2"]],"check":"unsorted","expected":[["z","a"],["1","2"]],"passed":true},{"actual":[["cell","y","z"]],"check":"three rows","expected":[["cell","y","z"],["x",null,"w"]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"ragged\", \"actual\": [[\"cell\", \"x\"]], \"expected\": [[\"cell\", \"x\"], [\"a\", null], [\"b\", null]], \"passed\": false}, {\"check\": \"later wider\", \"actual\": [[\"cell\", \"x\"]], \"expected\": [[\"cell\", \"x\"], [null, \"y\"]], \"passed\": false}, {\"check\": \"explicit empty\", \"actual\": [[\"cell\", \"x\"]], \"expected\": [[\"cell\", \"x\"], [\"\", null]], \"passed\": false}, {\"check\": \"empty input\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"one empty\", \"actual\": [[\"\"]], \"expected\": [[\"\"]], \"passed\": true}, {\"check\": \"rectangular\", \"actual\": [[\"a\", \"c\"], [\"b\", \"d\"]], \"expected\": [[\"a\", \"c\"], [\"b\", \"d\"]], \"passed\": true}, {\"check\": \"unsorted\", \"actual\": [[\"z\", \"a\"], [\"1\", \"2\"]], \"expected\": [[\"z\", \"a\"], [\"1\", \"2\"]], \"passed\": true}, {\"check\": \"three rows\", \"actual\": [[\"cell\", \"y\", \"z\"]], \"expected\": [[\"cell\", \"y\", \"z\"], [\"x\", null, \"w\"]], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.556,"exit_code":1,"observations":[{"actual":[["cell","x"],["a",null],["b",null]],"check":"ragged","expected":[["cell","x"],["a",null],["b",null]],"passed":true},{"actual":[["cell","x"]],"check":"later wider","expected":[["cell","x"],[null,"y"]],"passed":false},{"actual":[["cell","x"],["",null]],"check":"explicit empty","expected":[["cell","x"],["",null]],"passed":true},{"actual":[],"check":"empty input","expected":[],"passed":true},{"actual":[[""]],"check":"one empty","expected":[[""]],"passed":true},{"actual":[["a","c"],["b","d"]],"check":"rectangular","expected":[["a","c"],["b","d"]],"passed":true},{"actual":[["z","a"],["1","2"]],"check":"unsorted","expected":[["z","a"],["1","2"]],"passed":true},{"actual":[["cell","y","z"],["x",null,"w"]],"check":"three rows","expected":[["cell","y","z"],["x",null,"w"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"ragged\", \"actual\": [[\"cell\", \"x\"], [\"a\", null], [\"b\", null]], \"expected\": [[\"cell\", \"x\"], [\"a\", null], [\"b\", null]], \"passed\": true}, {\"check\": \"later wider\", \"actual\": [[\"cell\", \"x\"]], \"expected\": [[\"cell\", \"x\"], [null, \"y\"]], \"passed\": false}, {\"check\": \"explicit empty\", \"actual\": [[\"cell\", \"x\"], [\"\", null]], \"expected\": [[\"cell\", \"x\"], [\"\", null]], \"passed\": true}, {\"check\": \"empty input\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"one empty\", \"actual\": [[\"\"]], \"expected\": [[\"\"]], \"passed\": true}, {\"check\": \"rectangular\", \"actual\": [[\"a\", \"c\"], [\"b\", \"d\"]], \"expected\": [[\"a\", \"c\"], [\"b\", \"d\"]], \"passed\": true}, {\"check\": \"unsorted\", \"actual\": [[\"z\", \"a\"], [\"1\", \"2\"]], \"expected\": [[\"z\", \"a\"], [\"1\", \"2\"]], \"passed\": true}, {\"check\": \"three rows\", \"actual\": [[\"cell\", \"y\", \"z\"], [\"x\", null, \"w\"]], \"expected\": [[\"cell\", \"y\", \"z\"], [\"x\", null, \"w\"]], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.079,"exit_code":0,"observations":[{"actual":[["cell","x"],["a",null],["b",null]],"check":"ragged","expected":[["cell","x"],["a",null],["b",null]],"passed":true},{"actual":[["cell","x"],[null,"y"]],"check":"later wider","expected":[["cell","x"],[null,"y"]],"passed":true},{"actual":[["cell","x"],["",null]],"check":"explicit empty","expected":[["cell","x"],["",null]],"passed":true},{"actual":[],"check":"empty input","expected":[],"passed":true},{"actual":[[""]],"check":"one empty","expected":[[""]],"passed":true},{"actual":[["a","c"],["b","d"]],"check":"rectangular","expected":[["a","c"],["b","d"]],"passed":true},{"actual":[["z","a"],["1","2"]],"check":"unsorted","expected":[["z","a"],["1","2"]],"passed":true},{"actual":[["cell","y","z"],["x",null,"w"]],"check":"three rows","expected":[["cell","y","z"],["x",null,"w"]],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"ragged\", \"actual\": [[\"cell\", \"x\"], [\"a\", null], [\"b\", null]], \"expected\": [[\"cell\", \"x\"], [\"a\", null], [\"b\", null]], \"passed\": true}, {\"check\": \"later wider\", \"actual\": [[\"cell\", \"x\"], [null, \"y\"]], \"expected\": [[\"cell\", \"x\"], [null, \"y\"]], \"passed\": true}, {\"check\": \"explicit empty\", \"actual\": [[\"cell\", \"x\"], [\"\", null]], \"expected\": [[\"cell\", \"x\"], [\"\", null]], \"passed\": true}, {\"check\": \"empty input\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"one empty\", \"actual\": [[\"\"]], \"expected\": [[\"\"]], \"passed\": true}, {\"check\": \"rectangular\", \"actual\": [[\"a\", \"c\"], [\"b\", \"d\"]], \"expected\": [[\"a\", \"c\"], [\"b\", \"d\"]], \"passed\": true}, {\"check\": \"unsorted\", \"actual\": [[\"z\", \"a\"], [\"1\", \"2\"]], \"expected\": [[\"z\", \"a\"], [\"1\", \"2\"]], \"passed\": true}, {\"check\": \"three rows\", \"actual\": [[\"cell\", \"y\", \"z\"], [\"x\", null, \"w\"]], \"expected\": [[\"cell\", \"y\", \"z\"], [\"x\", null, \"w\"]], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}