{"abstract":"A structured table violates the declared record or column contract.","category":"Delimited text","checks":7,"contract":"Decode W|width followed by pipe-separated column-major cells in the second line. Width is a positive ASCII decimal; field count must be divisible by width. The second line empty denotes one empty cell. Return row-major rows, each exactly width cells. This bounded block requires exactly two physical lines.","evaluation_group":"s3-delimited-text-column-major-block","failed_approach":"The alternate implementation still violates the same declared invariant: column-major blocks reverse their row order.","family":"s3-delimited-text-column-major-block-row-order","id":"FA-48501","implementations":{"attempt":{"sha256":"0480b9c97f49f20ff32aad09f79dcb1baf6062162bc94cdbb6b5ae1a6ce31dd2","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    if len(data)!=2 or not data[0].startswith('W|'): return None\n    token=data[0][2:]\n    if not token.isascii() or not token.isdecimal() or int(token)<1: return None\n    width=int(token); cells=data[1].split('|')\n    if len(cells)%width: return None\n    height=len(cells)//width\n    return [[cells[col*height+row] for col in range(width)] for row in range(max(0,height-1))]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('rectangle', solve(_vary(['W|3', 'a|d|b|e|@|f'])), _vary([['a', 'b', '@'], ['d', 'e', 'f']]))\ncheck('one row', solve(_vary(['W|3', 'a|@|c'])), _vary([['a', '@', 'c']]))\ncheck('one column', solve(_vary(['W|1', '@|b'])), _vary([['@'], ['b']]))\ncheck('empty cell', solve(_vary(['W|1', ''])), _vary([['']]))\ncheck('nondivisible', solve(_vary(['W|2', 'a|b|c'])), _vary(None))\ncheck('zero width', solve(_vary(['W|0', 'a'])), _vary(None))\ncheck('extra line', solve(_vary(['W|1', '@', 'x'])), _vary(None))\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":"a8ea33416728bdf7594f24cd8a0a24c11fe59f57335321a8dced7c9a98d965bd","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    if len(data)!=2 or not data[0].startswith('W|'): return None\n    token=data[0][2:]\n    if not token.isascii() or not token.isdecimal() or int(token)<1: return None\n    width=int(token); cells=data[1].split('|')\n    if len(cells)%width: return None\n    height=len(cells)//width\n    return [[cells[col*height+row] for col in range(width)] for row in reversed(range(height))]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('rectangle', solve(_vary(['W|3', 'a|d|b|e|@|f'])), _vary([['a', 'b', '@'], ['d', 'e', 'f']]))\ncheck('one row', solve(_vary(['W|3', 'a|@|c'])), _vary([['a', '@', 'c']]))\ncheck('one column', solve(_vary(['W|1', '@|b'])), _vary([['@'], ['b']]))\ncheck('empty cell', solve(_vary(['W|1', ''])), _vary([['']]))\ncheck('nondivisible', solve(_vary(['W|2', 'a|b|c'])), _vary(None))\ncheck('zero width', solve(_vary(['W|0', 'a'])), _vary(None))\ncheck('extra line', solve(_vary(['W|1', '@', 'x'])), _vary(None))\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":"15023d186266faa60d14375cdfb7eac7a3cbacd31385c729f9f12f10e5c6e2d1","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    if len(data)!=2 or not data[0].startswith('W|'): return None\n    token=data[0][2:]\n    if not token.isascii() or not token.isdecimal() or int(token)<1: return None\n    width=int(token); cells=data[1].split('|')\n    if len(cells)%width: return None\n    height=len(cells)//width\n    return [[cells[col*height+row] for col in range(width)] for row in range(height)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('rectangle', solve(_vary(['W|3', 'a|d|b|e|@|f'])), _vary([['a', 'b', '@'], ['d', 'e', 'f']]))\ncheck('one row', solve(_vary(['W|3', 'a|@|c'])), _vary([['a', '@', 'c']]))\ncheck('one column', solve(_vary(['W|1', '@|b'])), _vary([['@'], ['b']]))\ncheck('empty cell', solve(_vary(['W|1', ''])), _vary([['']]))\ncheck('nondivisible', solve(_vary(['W|2', 'a|b|c'])), _vary(None))\ncheck('zero width', solve(_vary(['W|0', 'a'])), _vary(None))\ncheck('extra line', solve(_vary(['W|1', '@', 'x'])), _vary(None))\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-column-major-block-row-order","generated_at":"2026-09-29T14:44:51.338099+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: for row in range(height)]","root_cause":"Column-major blocks reverse their row order.","sha256":"6f88ec33a778135f760ad139475590660ff09d5077875efe4116f9499a9d6fbe","title":"Column-major blocks reverse their row order · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":43.576,"exit_code":1,"observations":[{"actual":[["a","b","cell"]],"check":"rectangle","expected":[["a","b","cell"],["d","e","f"]],"passed":false},{"actual":[],"check":"one row","expected":[["a","cell","c"]],"passed":false},{"actual":[["cell"]],"check":"one column","expected":[["cell"],["b"]],"passed":false},{"actual":[],"check":"empty cell","expected":[[""]],"passed":false},{"actual":null,"check":"nondivisible","expected":null,"passed":true},{"actual":null,"check":"zero width","expected":null,"passed":true},{"actual":null,"check":"extra line","expected":null,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"rectangle\", \"actual\": [[\"a\", \"b\", \"cell\"]], \"expected\": [[\"a\", \"b\", \"cell\"], [\"d\", \"e\", \"f\"]], \"passed\": false}, {\"check\": \"one row\", \"actual\": [], \"expected\": [[\"a\", \"cell\", \"c\"]], \"passed\": false}, {\"check\": \"one column\", \"actual\": [[\"cell\"]], \"expected\": [[\"cell\"], [\"b\"]], \"passed\": false}, {\"check\": \"empty cell\", \"actual\": [], \"expected\": [[\"\"]], \"passed\": false}, {\"check\": \"nondivisible\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"zero width\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"extra line\", \"actual\": null, \"expected\": null, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.376,"exit_code":1,"observations":[{"actual":[["d","e","f"],["a","b","cell"]],"check":"rectangle","expected":[["a","b","cell"],["d","e","f"]],"passed":false},{"actual":[["a","cell","c"]],"check":"one row","expected":[["a","cell","c"]],"passed":true},{"actual":[["b"],["cell"]],"check":"one column","expected":[["cell"],["b"]],"passed":false},{"actual":[[""]],"check":"empty cell","expected":[[""]],"passed":true},{"actual":null,"check":"nondivisible","expected":null,"passed":true},{"actual":null,"check":"zero width","expected":null,"passed":true},{"actual":null,"check":"extra line","expected":null,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"rectangle\", \"actual\": [[\"d\", \"e\", \"f\"], [\"a\", \"b\", \"cell\"]], \"expected\": [[\"a\", \"b\", \"cell\"], [\"d\", \"e\", \"f\"]], \"passed\": false}, {\"check\": \"one row\", \"actual\": [[\"a\", \"cell\", \"c\"]], \"expected\": [[\"a\", \"cell\", \"c\"]], \"passed\": true}, {\"check\": \"one column\", \"actual\": [[\"b\"], [\"cell\"]], \"expected\": [[\"cell\"], [\"b\"]], \"passed\": false}, {\"check\": \"empty cell\", \"actual\": [[\"\"]], \"expected\": [[\"\"]], \"passed\": true}, {\"check\": \"nondivisible\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"zero width\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"extra line\", \"actual\": null, \"expected\": null, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.065,"exit_code":0,"observations":[{"actual":[["a","b","cell"],["d","e","f"]],"check":"rectangle","expected":[["a","b","cell"],["d","e","f"]],"passed":true},{"actual":[["a","cell","c"]],"check":"one row","expected":[["a","cell","c"]],"passed":true},{"actual":[["cell"],["b"]],"check":"one column","expected":[["cell"],["b"]],"passed":true},{"actual":[[""]],"check":"empty cell","expected":[[""]],"passed":true},{"actual":null,"check":"nondivisible","expected":null,"passed":true},{"actual":null,"check":"zero width","expected":null,"passed":true},{"actual":null,"check":"extra line","expected":null,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"rectangle\", \"actual\": [[\"a\", \"b\", \"cell\"], [\"d\", \"e\", \"f\"]], \"expected\": [[\"a\", \"b\", \"cell\"], [\"d\", \"e\", \"f\"]], \"passed\": true}, {\"check\": \"one row\", \"actual\": [[\"a\", \"cell\", \"c\"]], \"expected\": [[\"a\", \"cell\", \"c\"]], \"passed\": true}, {\"check\": \"one column\", \"actual\": [[\"cell\"], [\"b\"]], \"expected\": [[\"cell\"], [\"b\"]], \"passed\": true}, {\"check\": \"empty cell\", \"actual\": [[\"\"]], \"expected\": [[\"\"]], \"passed\": true}, {\"check\": \"nondivisible\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"zero width\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"extra line\", \"actual\": null, \"expected\": null, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}