{"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 cell indexing uses row-major strides.","family":"s3-delimited-text-column-major-block-column-stride","id":"FA-48491","implementations":{"attempt":{"sha256":"ae8f04f5d9bcc7df853d54fc1c34b163a2b888be58f58c6fcb46ec0916340464","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[(row*width+col)%len(cells)] 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"},"broken":{"sha256":"c0343c3fc40b79f75fb1a9353128a536a085822f9a413f6311b944ef1ffcaf61","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[row*width+col] 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"},"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-column-stride","generated_at":"2026-09-29T14:44:51.250971+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: cells[col*height+row]","root_cause":"Column-major cell indexing uses row-major strides.","sha256":"3bdedfc9062a194d06409da7956f4b4f140aeec955a160c954aa8a5bc2814a2d","title":"Column-major cell indexing uses row-major strides · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.853,"exit_code":1,"observations":[{"actual":[["a","d","b"],["e","cell","f"]],"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":[["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":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"rectangle\", \"actual\": [[\"a\", \"d\", \"b\"], [\"e\", \"cell\", \"f\"]], \"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\": [[\"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\": false}\n"},"broken":{"elapsed_ms":38.132,"exit_code":1,"observations":[{"actual":[["a","d","b"],["e","cell","f"]],"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":[["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":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"rectangle\", \"actual\": [[\"a\", \"d\", \"b\"], [\"e\", \"cell\", \"f\"]], \"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\": [[\"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\": false}\n"},"fixed":{"elapsed_ms":38.03,"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"}