{"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: short records are omitted from a transposed column.","family":"s3-delimited-text-ragged-table-transpose-padding-compaction","id":"FA-48201","implementations":{"attempt":{"sha256":"c8fd25b7d9744ade9e5bb41316e15bf2da423c5f72eb78fb82d84562794284c3","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] for row in rows if col<len(row) and row[col]])\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":"1870d0ed7683b436f08645533c90c88d21eed4580cb3dc3aefd3f20982d0274a","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] for row in rows if col<len(row)])\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-padding-compaction","generated_at":"2026-09-29T14:44:48.620575+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: row[col] if col<len(row) else None for row in rows","root_cause":"Short records are omitted from a transposed column.","sha256":"02cb0e40e443c211f30845fb6d0f52d69a0b104d13af234065c4b9b7a36d0671","title":"Short records are omitted from a transposed column · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.366,"exit_code":1,"observations":[{"actual":[["cell","x"],["a"],["b"]],"check":"ragged","expected":[["cell","x"],["a",null],["b",null]],"passed":false},{"actual":[["cell","x"],["y"]],"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":false},{"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","w"]],"check":"three rows","expected":[["cell","y","z"],["x",null,"w"]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"ragged\", \"actual\": [[\"cell\", \"x\"], [\"a\"], [\"b\"]], \"expected\": [[\"cell\", \"x\"], [\"a\", null], [\"b\", null]], \"passed\": false}, {\"check\": \"later wider\", \"actual\": [[\"cell\", \"x\"], [\"y\"]], \"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\": false}, {\"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\", \"w\"]], \"expected\": [[\"cell\", \"y\", \"z\"], [\"x\", null, \"w\"]], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.368,"exit_code":1,"observations":[{"actual":[["cell","x"],["a"],["b"]],"check":"ragged","expected":[["cell","x"],["a",null],["b",null]],"passed":false},{"actual":[["cell","x"],["y"]],"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"],["x","w"]],"check":"three rows","expected":[["cell","y","z"],["x",null,"w"]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"ragged\", \"actual\": [[\"cell\", \"x\"], [\"a\"], [\"b\"]], \"expected\": [[\"cell\", \"x\"], [\"a\", null], [\"b\", null]], \"passed\": false}, {\"check\": \"later wider\", \"actual\": [[\"cell\", \"x\"], [\"y\"]], \"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\"], [\"x\", \"w\"]], \"expected\": [[\"cell\", \"y\", \"z\"], [\"x\", null, \"w\"]], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.643,"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"}