{"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.","evaluation_group":"s3-delimited-text-continued-fields","failed_approach":"The alternate implementation still violates the same declared invariant: a completed continued-field row remains the active destination.","family":"s3-delimited-text-continued-fields-end-release","id":"FA-48436","implementations":{"attempt":{"sha256":"3321bf176b77b9b5210e997dee02d37f45220f4ca66b65f63fda4fa6273a1bee","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=[]\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":"9fea034bb27334e5068f576e80622d856195e77a8a685372cd32d06697e4d87d","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)\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"},"fixed":{"sha256":"a58210ce04bd5a80e57eb4adfc2b45455f46b917487d954b17eb90aa5857dc7f","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-end-release","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.","repair":"Preserve the named invariant at the faulty decision: rows.append(cells); cells=None","root_cause":"A completed continued-field row remains the active destination.","sha256":"71f98c631579a6fd25dd64d908fd8e28be5290cd873bbb3ce62781a0546a682e","title":"A completed continued-field row remains the active destination · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.343,"exit_code":1,"observations":[{"actual":null,"check":"continuation","expected":[["cellx","yz"]],"passed":false},{"actual":null,"check":"third-field continuation","expected":[["a","b","cellz"]],"passed":false},{"actual":null,"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":null,"check":"two rows","expected":[["cell"],["z"]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"continuation\", \"actual\": null, \"expected\": [[\"cellx\", \"yz\"]], \"passed\": false}, {\"check\": \"third-field continuation\", \"actual\": null, \"expected\": [[\"a\", \"b\", \"cellz\"]], \"passed\": false}, {\"check\": \"empty pieces\", \"actual\": null, \"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\": null, \"expected\": [[\"cell\"], [\"z\"]], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.412,"exit_code":1,"observations":[{"actual":null,"check":"continuation","expected":[["cellx","yz"]],"passed":false},{"actual":null,"check":"third-field continuation","expected":[["a","b","cellz"]],"passed":false},{"actual":null,"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":null,"check":"two rows","expected":[["cell"],["z"]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"continuation\", \"actual\": null, \"expected\": [[\"cellx\", \"yz\"]], \"passed\": false}, {\"check\": \"third-field continuation\", \"actual\": null, \"expected\": [[\"a\", \"b\", \"cellz\"]], \"passed\": false}, {\"check\": \"empty pieces\", \"actual\": null, \"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\": null, \"expected\": [[\"cell\"], [\"z\"]], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.277,"exit_code":0,"observations":[{"actual":[["cellx","yz"]],"check":"continuation","expected":[["cellx","yz"]],"passed":true},{"actual":[["a","b","cellz"]],"check":"third-field continuation","expected":[["a","b","cellz"]],"passed":true},{"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":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"continuation\", \"actual\": [[\"cellx\", \"yz\"]], \"expected\": [[\"cellx\", \"yz\"]], \"passed\": true}, {\"check\": \"third-field continuation\", \"actual\": [[\"a\", \"b\", \"cellz\"]], \"expected\": [[\"a\", \"b\", \"cellz\"]], \"passed\": true}, {\"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\": true}\n"}},"verified":true,"visibility":"public"}