{"abstract":"A structured table violates the declared record or column contract.","category":"Delimited text","checks":7,"contract":"Assemble one row from pipe fragments offset|comma-fields and a declared width. Offsets are zero-based unsigned ASCII integers. Fragments may arrive out of order, but overlap, overrun and holes reject. Empty fields are real supplied cells. Return the complete physical row.","contract_signature":"data","evaluation_group":"s3-delimited-text-segmented-row","failed_approach":"The alternate implementation still violates the same declared invariant: a fragment offset is treated as the next free position.","family":"s3-delimited-text-segmented-row-fragment-offset","id":"FA-48646","implementations":{"attempt":{"sha256":"af882ceda8163ded48f8e5022346908da811064e8d0532dc4a4bebd680591cd5","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    slots={}\n    for line in data['fragments']:\n        parts=line.split('|',1)\n        if len(parts)!=2 or not parts[0].isascii() or not parts[0].isdecimal(): return None\n        start=0; fields=parts[1].split(',')\n        if start+len(fields)>data['width']: return None\n        for offset,value in enumerate(fields):\n            index=start+offset\n            if index in slots: return None\n            slots[index]=value\n    if len(slots)!=data['width']: return None\n    return [slots[index] for index in range(data['width'])]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('out of order', solve(_vary({'width': 4, 'fragments': ['2|x,z', '0|@,y']})), _vary(['@', 'y', 'x', 'z']))\ncheck('overlap', solve(_vary({'width': 3, 'fragments': ['0|a,b', '1|c,d']})), _vary(None))\ncheck('hole', solve(_vary({'width': 3, 'fragments': ['0|@', '2|z']})), _vary(None))\ncheck('overrun', solve(_vary({'width': 2, 'fragments': ['1|a,b']})), _vary(None))\ncheck('empty supplied', solve(_vary({'width': 2, 'fragments': ['1|', '0|@']})), _vary(['@', '']))\ncheck('zero width', solve(_vary({'width': 0, 'fragments': []})), _vary([]))\ncheck('single', solve(_vary({'width': 1, 'fragments': ['0|@']})), _vary(['@']))\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":"0c374a970e7912b6b3b8a8a0f0d13a0055349aaf9f0b3c9ecda58a4979a0e50d","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    slots={}\n    for line in data['fragments']:\n        parts=line.split('|',1)\n        if len(parts)!=2 or not parts[0].isascii() or not parts[0].isdecimal(): return None\n        start=len(slots); fields=parts[1].split(',')\n        if start+len(fields)>data['width']: return None\n        for offset,value in enumerate(fields):\n            index=start+offset\n            if index in slots: return None\n            slots[index]=value\n    if len(slots)!=data['width']: return None\n    return [slots[index] for index in range(data['width'])]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('out of order', solve(_vary({'width': 4, 'fragments': ['2|x,z', '0|@,y']})), _vary(['@', 'y', 'x', 'z']))\ncheck('overlap', solve(_vary({'width': 3, 'fragments': ['0|a,b', '1|c,d']})), _vary(None))\ncheck('hole', solve(_vary({'width': 3, 'fragments': ['0|@', '2|z']})), _vary(None))\ncheck('overrun', solve(_vary({'width': 2, 'fragments': ['1|a,b']})), _vary(None))\ncheck('empty supplied', solve(_vary({'width': 2, 'fragments': ['1|', '0|@']})), _vary(['@', '']))\ncheck('zero width', solve(_vary({'width': 0, 'fragments': []})), _vary([]))\ncheck('single', solve(_vary({'width': 1, 'fragments': ['0|@']})), _vary(['@']))\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-segmented-row-fragment-offset","generated_at":"2026-09-29T14:44:52.791262+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 fragment offset is treated as the next free position.","sha256":"dc45984bb67cb9d1b8ea0e11a85543d2ef63e49b42858228fe1b24a75875e963","title":"A fragment offset is treated as the next free position · 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":42.929,"exit_code":1,"observations":[{"actual":null,"check":"out of order","expected":["cell","y","x","z"],"passed":false},{"actual":null,"check":"overlap","expected":null,"passed":true},{"actual":null,"check":"hole","expected":null,"passed":true},{"actual":["a","b"],"check":"overrun","expected":null,"passed":false},{"actual":null,"check":"empty supplied","expected":["cell",""],"passed":false},{"actual":[],"check":"zero width","expected":[],"passed":true},{"actual":["cell"],"check":"single","expected":["cell"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"out of order\", \"actual\": null, \"expected\": [\"cell\", \"y\", \"x\", \"z\"], \"passed\": false}, {\"check\": \"overlap\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"hole\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"overrun\", \"actual\": [\"a\", \"b\"], \"expected\": null, \"passed\": false}, {\"check\": \"empty supplied\", \"actual\": null, \"expected\": [\"cell\", \"\"], \"passed\": false}, {\"check\": \"zero width\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"single\", \"actual\": [\"cell\"], \"expected\": [\"cell\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.39,"exit_code":1,"observations":[{"actual":["x","z","cell","y"],"check":"out of order","expected":["cell","y","x","z"],"passed":false},{"actual":null,"check":"overlap","expected":null,"passed":true},{"actual":null,"check":"hole","expected":null,"passed":true},{"actual":["a","b"],"check":"overrun","expected":null,"passed":false},{"actual":["","cell"],"check":"empty supplied","expected":["cell",""],"passed":false},{"actual":[],"check":"zero width","expected":[],"passed":true},{"actual":["cell"],"check":"single","expected":["cell"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"out of order\", \"actual\": [\"x\", \"z\", \"cell\", \"y\"], \"expected\": [\"cell\", \"y\", \"x\", \"z\"], \"passed\": false}, {\"check\": \"overlap\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"hole\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"overrun\", \"actual\": [\"a\", \"b\"], \"expected\": null, \"passed\": false}, {\"check\": \"empty supplied\", \"actual\": [\"\", \"cell\"], \"expected\": [\"cell\", \"\"], \"passed\": false}, {\"check\": \"zero width\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"single\", \"actual\": [\"cell\"], \"expected\": [\"cell\"], \"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."}}