{"abstract":"A structured table violates the declared record or column contract.","category":"Delimited text","checks":8,"contract":"Process pipe records ROW|count, CELL|text, MORE|text, END|empty. CELL starts a new field; MORE concatenates to the most recent field without inserting characters. Each row declares a positive field count, completed at END. MORE without a field and excess fields reject. Multiple rows are allowed.","contract_signature":"data","evaluation_group":"s3-delimited-text-continued-fields","failed_approach":"The alternate implementation still violates the same declared invariant: a continuation fragment replaces the preceding field text.","family":"s3-delimited-text-continued-fields-continuation-replace","id":"FA-48421","implementations":{"attempt":{"sha256":"f7f0f88508be82ed5bcd2495f179632f419b1d0b2e2e090f75df0a60b384545c","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=[]; cells=None; expected=0\n    for line in data:\n        tag,text=(line.split('|',1)+[''])[:2]\n        if tag=='ROW':\n            if cells is not None or not text.isascii() or not text.isdecimal() or int(text)<1: return None\n            cells=[]; expected=int(text)\n        elif tag=='CELL':\n            if cells is None or len(cells)>=expected: return None\n            cells.append(text)\n        elif tag=='MORE':\n            if not cells: return None\n            cells[-1]=text+cells[-1]\n        elif tag=='END':\n            if cells is None or text or len(cells)!=expected: return None\n            rows.append(cells); cells=None\n        else: return None\n    if cells is not None: return None\n    return rows\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('continuation', solve(_vary(['ROW|2', 'CELL|@', 'MORE|x', 'CELL|y', 'MORE|z', 'END|'])), _vary([['@x', 'yz']]))\ncheck('third-field continuation', solve(_vary(['ROW|3', 'CELL|a', 'CELL|b', 'CELL|@', 'MORE|z', 'END|'])), _vary([['a', 'b', '@z']]))\ncheck('empty pieces', solve(_vary(['ROW|1', 'CELL|', 'MORE|@', 'MORE|', 'END|'])), _vary([['@']]))\ncheck('orphan more', solve(_vary(['ROW|1', 'MORE|@'])), _vary(None))\ncheck('excess', solve(_vary(['ROW|1', 'CELL|@', 'CELL|x'])), _vary(None))\ncheck('too few', solve(_vary(['ROW|2', 'CELL|@', 'END|'])), _vary(None))\ncheck('unfinished', solve(_vary(['ROW|1', 'CELL|@'])), _vary(None))\ncheck('two rows', solve(_vary(['ROW|1', 'CELL|@', 'END|', 'ROW|1', 'CELL|z', 'END|'])), _vary([['@'], ['z']]))\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":"98fd1303280e1da702a638e2f5c8c30a12d8a8dd4bdb330e1497ba7c94346ba9","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=[]; cells=None; expected=0\n    for line in data:\n        tag,text=(line.split('|',1)+[''])[:2]\n        if tag=='ROW':\n            if cells is not None or not text.isascii() or not text.isdecimal() or int(text)<1: return None\n            cells=[]; expected=int(text)\n        elif tag=='CELL':\n            if cells is None or len(cells)>=expected: return None\n            cells.append(text)\n        elif tag=='MORE':\n            if not cells: return None\n            cells[-1]=text\n        elif tag=='END':\n            if cells is None or text or len(cells)!=expected: return None\n            rows.append(cells); cells=None\n        else: return None\n    if cells is not None: return None\n    return rows\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('continuation', solve(_vary(['ROW|2', 'CELL|@', 'MORE|x', 'CELL|y', 'MORE|z', 'END|'])), _vary([['@x', 'yz']]))\ncheck('third-field continuation', solve(_vary(['ROW|3', 'CELL|a', 'CELL|b', 'CELL|@', 'MORE|z', 'END|'])), _vary([['a', 'b', '@z']]))\ncheck('empty pieces', solve(_vary(['ROW|1', 'CELL|', 'MORE|@', 'MORE|', 'END|'])), _vary([['@']]))\ncheck('orphan more', solve(_vary(['ROW|1', 'MORE|@'])), _vary(None))\ncheck('excess', solve(_vary(['ROW|1', 'CELL|@', 'CELL|x'])), _vary(None))\ncheck('too few', solve(_vary(['ROW|2', 'CELL|@', 'END|'])), _vary(None))\ncheck('unfinished', solve(_vary(['ROW|1', 'CELL|@'])), _vary(None))\ncheck('two rows', solve(_vary(['ROW|1', 'CELL|@', 'END|', 'ROW|1', 'CELL|z', 'END|'])), _vary([['@'], ['z']]))\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-continued-fields-continuation-replace","generated_at":"2026-09-29T14:44:50.709678+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":"A continuation fragment replaces the preceding field text.","sha256":"df8032c896e92c659b1af1b1796c90f5a9b1822989a4f044f6b43a744a2b0814","title":"A continuation fragment replaces the preceding field text · 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":38.917,"exit_code":1,"observations":[{"actual":[["xcell","zy"]],"check":"continuation","expected":[["cellx","yz"]],"passed":false},{"actual":[["a","b","zcell"]],"check":"third-field continuation","expected":[["a","b","cellz"]],"passed":false},{"actual":[["cell"]],"check":"empty pieces","expected":[["cell"]],"passed":true},{"actual":null,"check":"orphan more","expected":null,"passed":true},{"actual":null,"check":"excess","expected":null,"passed":true},{"actual":null,"check":"too few","expected":null,"passed":true},{"actual":null,"check":"unfinished","expected":null,"passed":true},{"actual":[["cell"],["z"]],"check":"two rows","expected":[["cell"],["z"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"continuation\", \"actual\": [[\"xcell\", \"zy\"]], \"expected\": [[\"cellx\", \"yz\"]], \"passed\": false}, {\"check\": \"third-field continuation\", \"actual\": [[\"a\", \"b\", \"zcell\"]], \"expected\": [[\"a\", \"b\", \"cellz\"]], \"passed\": false}, {\"check\": \"empty pieces\", \"actual\": [[\"cell\"]], \"expected\": [[\"cell\"]], \"passed\": true}, {\"check\": \"orphan more\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"excess\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"too few\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"unfinished\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"two rows\", \"actual\": [[\"cell\"], [\"z\"]], \"expected\": [[\"cell\"], [\"z\"]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.762,"exit_code":1,"observations":[{"actual":[["x","z"]],"check":"continuation","expected":[["cellx","yz"]],"passed":false},{"actual":[["a","b","z"]],"check":"third-field continuation","expected":[["a","b","cellz"]],"passed":false},{"actual":[[""]],"check":"empty pieces","expected":[["cell"]],"passed":false},{"actual":null,"check":"orphan more","expected":null,"passed":true},{"actual":null,"check":"excess","expected":null,"passed":true},{"actual":null,"check":"too few","expected":null,"passed":true},{"actual":null,"check":"unfinished","expected":null,"passed":true},{"actual":[["cell"],["z"]],"check":"two rows","expected":[["cell"],["z"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"continuation\", \"actual\": [[\"x\", \"z\"]], \"expected\": [[\"cellx\", \"yz\"]], \"passed\": false}, {\"check\": \"third-field continuation\", \"actual\": [[\"a\", \"b\", \"z\"]], \"expected\": [[\"a\", \"b\", \"cellz\"]], \"passed\": false}, {\"check\": \"empty pieces\", \"actual\": [[\"\"]], \"expected\": [[\"cell\"]], \"passed\": false}, {\"check\": \"orphan more\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"excess\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"too few\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"unfinished\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"two rows\", \"actual\": [[\"cell\"], [\"z\"]], \"expected\": [[\"cell\"], [\"z\"]], \"passed\": true}], \"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."}}