{"abstract":"A structured table violates the declared record or column contract.","category":"Delimited text","checks":7,"contract":"Select a half-open zero-based logical row window [start,stop) from physical comma lines. Column-zero # lines and completely empty physical lines are ignored before numbering; whitespace-only lines remain data. Return [one-based physical line number, split cells] for selected logical rows.","contract_signature":"data","evaluation_group":"s3-delimited-text-logical-row-window","failed_approach":"The alternate implementation still violates the same declared invariant: a half-open row window includes its stop record.","family":"s3-delimited-text-logical-row-window-window-inclusive","id":"FA-48671","implementations":{"attempt":{"sha256":"a70be8717fe559b6e1c4c9bb5fb3f861c8e4bf6d1fef1e9c7fae7f405db497f8","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    out=[]; logical=0\n    for physical,line in enumerate(data['lines'],1):\n        if line=='' or line.startswith('#'): continue\n        if data['start']<logical<=data['stop']: out.append([physical,line.split(',')])\n        logical+=1\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('window', solve(_vary({'lines': ['#note', 'a,b', '', '@,x', 'z,y'], 'start': 1, 'stop': 2})), _vary([[4, ['@', 'x']]]))\ncheck('all', solve(_vary({'lines': ['@,x', 'z,y'], 'start': 0, 'stop': 2})), _vary([[1, ['@', 'x']], [2, ['z', 'y']]]))\ncheck('space line', solve(_vary({'lines': [' ', '@'], 'start': 0, 'stop': 1})), _vary([[1, [' ']]]))\ncheck('empty window', solve(_vary({'lines': ['@'], 'start': 0, 'stop': 0})), _vary([]))\ncheck('beyond', solve(_vary({'lines': ['@'], 'start': 2, 'stop': 4})), _vary([]))\ncheck('indented comment', solve(_vary({'lines': [' #data', '@'], 'start': 0, 'stop': 1})), _vary([[1, [' #data']]]))\ncheck('zero lines', solve(_vary({'lines': [], 'start': 0, 'stop': 3})), _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":"0469dcb8eaa5155d04900766c7902a2f3684beae34734d97b522d7a3da6bc3b5","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    out=[]; logical=0\n    for physical,line in enumerate(data['lines'],1):\n        if line=='' or line.startswith('#'): continue\n        if data['start']<=logical<=data['stop']: out.append([physical,line.split(',')])\n        logical+=1\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('window', solve(_vary({'lines': ['#note', 'a,b', '', '@,x', 'z,y'], 'start': 1, 'stop': 2})), _vary([[4, ['@', 'x']]]))\ncheck('all', solve(_vary({'lines': ['@,x', 'z,y'], 'start': 0, 'stop': 2})), _vary([[1, ['@', 'x']], [2, ['z', 'y']]]))\ncheck('space line', solve(_vary({'lines': [' ', '@'], 'start': 0, 'stop': 1})), _vary([[1, [' ']]]))\ncheck('empty window', solve(_vary({'lines': ['@'], 'start': 0, 'stop': 0})), _vary([]))\ncheck('beyond', solve(_vary({'lines': ['@'], 'start': 2, 'stop': 4})), _vary([]))\ncheck('indented comment', solve(_vary({'lines': [' #data', '@'], 'start': 0, 'stop': 1})), _vary([[1, [' #data']]]))\ncheck('zero lines', solve(_vary({'lines': [], 'start': 0, 'stop': 3})), _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-logical-row-window-window-inclusive","generated_at":"2026-09-29T14:44:53.096510+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 half-open row window includes its stop record.","sha256":"13f11b85159b40b40415919638d684de880631dd91a1dfcdd5dc724becf801ce","title":"A half-open row window includes its stop record · 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":44.084,"exit_code":1,"observations":[{"actual":[[5,["z","y"]]],"check":"window","expected":[[4,["cell","x"]]],"passed":false},{"actual":[[2,["z","y"]]],"check":"all","expected":[[1,["cell","x"]],[2,["z","y"]]],"passed":false},{"actual":[[2,["cell"]]],"check":"space line","expected":[[1,[" "]]],"passed":false},{"actual":[],"check":"empty window","expected":[],"passed":true},{"actual":[],"check":"beyond","expected":[],"passed":true},{"actual":[[2,["cell"]]],"check":"indented comment","expected":[[1,[" #data"]]],"passed":false},{"actual":[],"check":"zero lines","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"window\", \"actual\": [[5, [\"z\", \"y\"]]], \"expected\": [[4, [\"cell\", \"x\"]]], \"passed\": false}, {\"check\": \"all\", \"actual\": [[2, [\"z\", \"y\"]]], \"expected\": [[1, [\"cell\", \"x\"]], [2, [\"z\", \"y\"]]], \"passed\": false}, {\"check\": \"space line\", \"actual\": [[2, [\"cell\"]]], \"expected\": [[1, [\" \"]]], \"passed\": false}, {\"check\": \"empty window\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"beyond\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"indented comment\", \"actual\": [[2, [\"cell\"]]], \"expected\": [[1, [\" #data\"]]], \"passed\": false}, {\"check\": \"zero lines\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.335,"exit_code":1,"observations":[{"actual":[[4,["cell","x"]],[5,["z","y"]]],"check":"window","expected":[[4,["cell","x"]]],"passed":false},{"actual":[[1,["cell","x"]],[2,["z","y"]]],"check":"all","expected":[[1,["cell","x"]],[2,["z","y"]]],"passed":true},{"actual":[[1,[" "]],[2,["cell"]]],"check":"space line","expected":[[1,[" "]]],"passed":false},{"actual":[[1,["cell"]]],"check":"empty window","expected":[],"passed":false},{"actual":[],"check":"beyond","expected":[],"passed":true},{"actual":[[1,[" #data"]],[2,["cell"]]],"check":"indented comment","expected":[[1,[" #data"]]],"passed":false},{"actual":[],"check":"zero lines","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"window\", \"actual\": [[4, [\"cell\", \"x\"]], [5, [\"z\", \"y\"]]], \"expected\": [[4, [\"cell\", \"x\"]]], \"passed\": false}, {\"check\": \"all\", \"actual\": [[1, [\"cell\", \"x\"]], [2, [\"z\", \"y\"]]], \"expected\": [[1, [\"cell\", \"x\"]], [2, [\"z\", \"y\"]]], \"passed\": true}, {\"check\": \"space line\", \"actual\": [[1, [\" \"]], [2, [\"cell\"]]], \"expected\": [[1, [\" \"]]], \"passed\": false}, {\"check\": \"empty window\", \"actual\": [[1, [\"cell\"]]], \"expected\": [], \"passed\": false}, {\"check\": \"beyond\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"indented comment\", \"actual\": [[1, [\" #data\"]], [2, [\"cell\"]]], \"expected\": [[1, [\" #data\"]]], \"passed\": false}, {\"check\": \"zero lines\", \"actual\": [], \"expected\": [], \"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."}}