{"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.","contract_signature":"data","evaluation_group":"s3-delimited-text-ragged-table-transpose","failed_approach":"The alternate implementation still violates the same declared invariant: transposed cell values are reordered within each column.","family":"s3-delimited-text-ragged-table-transpose-row-order","id":"FA-48211","implementations":{"attempt":{"sha256":"b797e490cd5e2d549b8238ec7b503fbd62f477e8c488e0ff627f9da54395eb8e","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 sorted(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":"f15eb254de2769326cc8fae7f6ae41cc8828d2ad93126a00c9e7dae2f9261821","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 reversed(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-row-order","generated_at":"2026-09-29T14:44:48.730875+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":"Transposed cell values are reordered within each column.","sha256":"c59681326b9711262d60710daa580f05f60ad62dd05c0b70ae07d10087df2f7d","title":"Transposed cell values are reordered within each column · 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.6,"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"],[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":[["a","z"],["2","1"]],"check":"unsorted","expected":[["z","a"],["1","2"]],"passed":false},{"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\"], [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\": [[\"a\", \"z\"], [\"2\", \"1\"]], \"expected\": [[\"z\", \"a\"], [\"1\", \"2\"]], \"passed\": false}, {\"check\": \"three rows\", \"actual\": [[\"cell\", \"y\", \"z\"], [\"x\", null, \"w\"]], \"expected\": [[\"cell\", \"y\", \"z\"], [\"x\", null, \"w\"]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.067,"exit_code":1,"observations":[{"actual":[["x","cell"],[null,"a"],[null,"b"]],"check":"ragged","expected":[["cell","x"],["a",null],["b",null]],"passed":false},{"actual":[["x","cell"],["y",null]],"check":"later wider","expected":[["cell","x"],[null,"y"]],"passed":false},{"actual":[["x","cell"],[null,""]],"check":"explicit empty","expected":[["cell","x"],["",null]],"passed":false},{"actual":[],"check":"empty input","expected":[],"passed":true},{"actual":[[""]],"check":"one empty","expected":[[""]],"passed":true},{"actual":[["c","a"],["d","b"]],"check":"rectangular","expected":[["a","c"],["b","d"]],"passed":false},{"actual":[["a","z"],["2","1"]],"check":"unsorted","expected":[["z","a"],["1","2"]],"passed":false},{"actual":[["z","y","cell"],["w",null,"x"]],"check":"three rows","expected":[["cell","y","z"],["x",null,"w"]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"ragged\", \"actual\": [[\"x\", \"cell\"], [null, \"a\"], [null, \"b\"]], \"expected\": [[\"cell\", \"x\"], [\"a\", null], [\"b\", null]], \"passed\": false}, {\"check\": \"later wider\", \"actual\": [[\"x\", \"cell\"], [\"y\", null]], \"expected\": [[\"cell\", \"x\"], [null, \"y\"]], \"passed\": false}, {\"check\": \"explicit empty\", \"actual\": [[\"x\", \"cell\"], [null, \"\"]], \"expected\": [[\"cell\", \"x\"], [\"\", null]], \"passed\": false}, {\"check\": \"empty input\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"one empty\", \"actual\": [[\"\"]], \"expected\": [[\"\"]], \"passed\": true}, {\"check\": \"rectangular\", \"actual\": [[\"c\", \"a\"], [\"d\", \"b\"]], \"expected\": [[\"a\", \"c\"], [\"b\", \"d\"]], \"passed\": false}, {\"check\": \"unsorted\", \"actual\": [[\"a\", \"z\"], [\"2\", \"1\"]], \"expected\": [[\"z\", \"a\"], [\"1\", \"2\"]], \"passed\": false}, {\"check\": \"three rows\", \"actual\": [[\"z\", \"y\", \"cell\"], [\"w\", null, \"x\"]], \"expected\": [[\"cell\", \"y\", \"z\"], [\"x\", null, \"w\"]], \"passed\": false}], \"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."}}