{"abstract":"A structured table violates the declared record or column contract.","category":"Delimited text","checks":9,"contract":"Decode two-column semicolon rows. A first row must contain absolute ASCII integer cells prefixed =. Later cells may use signed integer deltas prefixed + or -, or =absolute. A caret copies prior column value. Return numeric rows. Empty tokens and noncanonical nondecimal tokens reject.","evaluation_group":"s3-delimited-text-column-deltas","failed_approach":"Reloading the first row explicitly retains stale bases.","family":"s3-delimited-text-column-deltas-delta-origin","id":"FA-48046","implementations":{"attempt":{"sha256":"7d7811f0fb68b1d40b3a27b009f5de410511855e04c5e11e67715fbf58e01964","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, previous = [], None\n    for line in data:\n        cells = line.split(';')\n        if len(cells) != 2: return None\n        row = []\n        for i, cell in enumerate(cells):\n            if cell == '^':\n                if previous is None: return None\n                value = previous[i]\n            else:\n                if not cell or cell[0] not in '=+-': return None\n                digits = cell[1:]\n                if not digits.isascii() or not digits.isdecimal(): return None\n                amount = int(digits)\n                if cell[0] == '=': value = amount\n                else:\n                    if previous is None: return None\n                    value = previous[i] + (amount if cell[0] == '+' else -amount)\n            row.append(value)\n        rows.append(row)\n        previous = rows[0]\n    return rows\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('deltas', solve(_vary(['=10;=20', '+3;-2', '-1;+4'])), _vary([[10, 20], [13, 18], [12, 22]]))\ncheck('absolute reset', solve(_vary(['=10;=20', '=1;^', '+2;+3'])), _vary([[10, 20], [1, 20], [3, 23]]))\ncheck('initial delta', solve(_vary(['+1;=2'])), _vary(None))\ncheck('initial copy', solve(_vary(['^;=2'])), _vary(None))\ncheck('bad amount', solve(_vary(['=a;=2'])), _vary(None))\ncheck('empty amount', solve(_vary(['=;=2'])), _vary(None))\ncheck('empty table', solve(_vary([])), _vary([]))\ncheck('zero deltas', solve(_vary(['=0;=1', '+0;-0'])), _vary([[0, 1], [0, 1]]))\ncheck('variant delta magnitude', solve(['='+str(N)+';=2','+3;-1']), [[N,2],[N+3,1]])\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":"ec2c088ade08cd2cb48a97ab967af5e3379ec63d9b5a8799e2274cbb811f337d","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, previous = [], None\n    for line in data:\n        cells = line.split(';')\n        if len(cells) != 2: return None\n        row = []\n        for i, cell in enumerate(cells):\n            if cell == '^':\n                if previous is None: return None\n                value = previous[i]\n            else:\n                if not cell or cell[0] not in '=+-': return None\n                digits = cell[1:]\n                if not digits.isascii() or not digits.isdecimal(): return None\n                amount = int(digits)\n                if cell[0] == '=': value = amount\n                else:\n                    if previous is None: return None\n                    value = previous[i] + (amount if cell[0] == '+' else -amount)\n            row.append(value)\n        rows.append(row)\n        if previous is None: previous = row\n    return rows\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('deltas', solve(_vary(['=10;=20', '+3;-2', '-1;+4'])), _vary([[10, 20], [13, 18], [12, 22]]))\ncheck('absolute reset', solve(_vary(['=10;=20', '=1;^', '+2;+3'])), _vary([[10, 20], [1, 20], [3, 23]]))\ncheck('initial delta', solve(_vary(['+1;=2'])), _vary(None))\ncheck('initial copy', solve(_vary(['^;=2'])), _vary(None))\ncheck('bad amount', solve(_vary(['=a;=2'])), _vary(None))\ncheck('empty amount', solve(_vary(['=;=2'])), _vary(None))\ncheck('empty table', solve(_vary([])), _vary([]))\ncheck('zero deltas', solve(_vary(['=0;=1', '+0;-0'])), _vary([[0, 1], [0, 1]]))\ncheck('variant delta magnitude', solve(['='+str(N)+';=2','+3;-1']), [[N,2],[N+3,1]])\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":"f1a45284208d4d9c532ea3d95cbdf32421516676586ebf6ebdba9f50f2614f4a","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, previous = [], None\n    for line in data:\n        cells = line.split(';')\n        if len(cells) != 2: return None\n        row = []\n        for i, cell in enumerate(cells):\n            if cell == '^':\n                if previous is None: return None\n                value = previous[i]\n            else:\n                if not cell or cell[0] not in '=+-': return None\n                digits = cell[1:]\n                if not digits.isascii() or not digits.isdecimal(): return None\n                amount = int(digits)\n                if cell[0] == '=': value = amount\n                else:\n                    if previous is None: return None\n                    value = previous[i] + (amount if cell[0] == '+' else -amount)\n            row.append(value)\n        rows.append(row)\n        previous = row\n    return rows\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('deltas', solve(_vary(['=10;=20', '+3;-2', '-1;+4'])), _vary([[10, 20], [13, 18], [12, 22]]))\ncheck('absolute reset', solve(_vary(['=10;=20', '=1;^', '+2;+3'])), _vary([[10, 20], [1, 20], [3, 23]]))\ncheck('initial delta', solve(_vary(['+1;=2'])), _vary(None))\ncheck('initial copy', solve(_vary(['^;=2'])), _vary(None))\ncheck('bad amount', solve(_vary(['=a;=2'])), _vary(None))\ncheck('empty amount', solve(_vary(['=;=2'])), _vary(None))\ncheck('empty table', solve(_vary([])), _vary([]))\ncheck('zero deltas', solve(_vary(['=0;=1', '+0;-0'])), _vary([[0, 1], [0, 1]]))\ncheck('variant delta magnitude', solve(['='+str(N)+';=2','+3;-1']), [[N,2],[N+3,1]])\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-deltas-delta-origin","generated_at":"2026-09-29T14:44:47.153083+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: previous = row","root_cause":"The running per-column base remains at the initial record.","sha256":"513340af6022ddf5cf2a10513739632151406b5d4ad5643f07a92f58f32cdb78","title":"A column delta is applied to the first row rather than the prior row · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":39.635,"exit_code":1,"observations":[{"actual":[[10,20],[13,18],[9,24]],"check":"deltas","expected":[[10,20],[13,18],[12,22]],"passed":false},{"actual":[[10,20],[1,20],[12,23]],"check":"absolute reset","expected":[[10,20],[1,20],[3,23]],"passed":false},{"actual":null,"check":"initial delta","expected":null,"passed":true},{"actual":null,"check":"initial copy","expected":null,"passed":true},{"actual":null,"check":"bad amount","expected":null,"passed":true},{"actual":null,"check":"empty amount","expected":null,"passed":true},{"actual":[],"check":"empty table","expected":[],"passed":true},{"actual":[[0,1],[0,1]],"check":"zero deltas","expected":[[0,1],[0,1]],"passed":true},{"actual":[[1,2],[4,1]],"check":"variant delta magnitude","expected":[[1,2],[4,1]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"deltas\", \"actual\": [[10, 20], [13, 18], [9, 24]], \"expected\": [[10, 20], [13, 18], [12, 22]], \"passed\": false}, {\"check\": \"absolute reset\", \"actual\": [[10, 20], [1, 20], [12, 23]], \"expected\": [[10, 20], [1, 20], [3, 23]], \"passed\": false}, {\"check\": \"initial delta\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"initial copy\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"bad amount\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty amount\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty table\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"zero deltas\", \"actual\": [[0, 1], [0, 1]], \"expected\": [[0, 1], [0, 1]], \"passed\": true}, {\"check\": \"variant delta magnitude\", \"actual\": [[1, 2], [4, 1]], \"expected\": [[1, 2], [4, 1]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.559,"exit_code":1,"observations":[{"actual":[[10,20],[13,18],[9,24]],"check":"deltas","expected":[[10,20],[13,18],[12,22]],"passed":false},{"actual":[[10,20],[1,20],[12,23]],"check":"absolute reset","expected":[[10,20],[1,20],[3,23]],"passed":false},{"actual":null,"check":"initial delta","expected":null,"passed":true},{"actual":null,"check":"initial copy","expected":null,"passed":true},{"actual":null,"check":"bad amount","expected":null,"passed":true},{"actual":null,"check":"empty amount","expected":null,"passed":true},{"actual":[],"check":"empty table","expected":[],"passed":true},{"actual":[[0,1],[0,1]],"check":"zero deltas","expected":[[0,1],[0,1]],"passed":true},{"actual":[[1,2],[4,1]],"check":"variant delta magnitude","expected":[[1,2],[4,1]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"deltas\", \"actual\": [[10, 20], [13, 18], [9, 24]], \"expected\": [[10, 20], [13, 18], [12, 22]], \"passed\": false}, {\"check\": \"absolute reset\", \"actual\": [[10, 20], [1, 20], [12, 23]], \"expected\": [[10, 20], [1, 20], [3, 23]], \"passed\": false}, {\"check\": \"initial delta\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"initial copy\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"bad amount\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty amount\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty table\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"zero deltas\", \"actual\": [[0, 1], [0, 1]], \"expected\": [[0, 1], [0, 1]], \"passed\": true}, {\"check\": \"variant delta magnitude\", \"actual\": [[1, 2], [4, 1]], \"expected\": [[1, 2], [4, 1]], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.193,"exit_code":0,"observations":[{"actual":[[10,20],[13,18],[12,22]],"check":"deltas","expected":[[10,20],[13,18],[12,22]],"passed":true},{"actual":[[10,20],[1,20],[3,23]],"check":"absolute reset","expected":[[10,20],[1,20],[3,23]],"passed":true},{"actual":null,"check":"initial delta","expected":null,"passed":true},{"actual":null,"check":"initial copy","expected":null,"passed":true},{"actual":null,"check":"bad amount","expected":null,"passed":true},{"actual":null,"check":"empty amount","expected":null,"passed":true},{"actual":[],"check":"empty table","expected":[],"passed":true},{"actual":[[0,1],[0,1]],"check":"zero deltas","expected":[[0,1],[0,1]],"passed":true},{"actual":[[1,2],[4,1]],"check":"variant delta magnitude","expected":[[1,2],[4,1]],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"deltas\", \"actual\": [[10, 20], [13, 18], [12, 22]], \"expected\": [[10, 20], [13, 18], [12, 22]], \"passed\": true}, {\"check\": \"absolute reset\", \"actual\": [[10, 20], [1, 20], [3, 23]], \"expected\": [[10, 20], [1, 20], [3, 23]], \"passed\": true}, {\"check\": \"initial delta\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"initial copy\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"bad amount\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty amount\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty table\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"zero deltas\", \"actual\": [[0, 1], [0, 1]], \"expected\": [[0, 1], [0, 1]], \"passed\": true}, {\"check\": \"variant delta magnitude\", \"actual\": [[1, 2], [4, 1]], \"expected\": [[1, 2], [4, 1]], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}