{"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.","contract_signature":"data","evaluation_group":"s3-delimited-text-column-deltas","failed_approach":"Reversing both signs changes positive deltas too.","family":"s3-delimited-text-column-deltas-delta-sign","id":"FA-48041","implementations":{"attempt":{"sha256":"5c09fb08efaa6cb368221ce07e5d84b19f76fedcada636b0346c8d391b33ab70","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"},"broken":{"sha256":"ff7bfd553733542eabaa43ff0d84ef11c970db3522568b89ed1e9fbadd685b0d","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\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-sign","generated_at":"2026-09-29T14:44:47.351431+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":"The delta sign is discarded when reconstructing a column value.","sha256":"c7a2b03b80a17ba717c58de4f7e5a8591cf02fa36d76094511e278459a889b1d","title":"A negative delta is added to the prior cell · 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":40.987,"exit_code":1,"observations":[{"actual":[[10,20],[7,22],[8,18]],"check":"deltas","expected":[[10,20],[13,18],[12,22]],"passed":false},{"actual":[[10,20],[1,20],[-1,17]],"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],[-2,3]],"check":"variant delta magnitude","expected":[[1,2],[4,1]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"deltas\", \"actual\": [[10, 20], [7, 22], [8, 18]], \"expected\": [[10, 20], [13, 18], [12, 22]], \"passed\": false}, {\"check\": \"absolute reset\", \"actual\": [[10, 20], [1, 20], [-1, 17]], \"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], [-2, 3]], \"expected\": [[1, 2], [4, 1]], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.572,"exit_code":1,"observations":[{"actual":[[10,20],[13,22],[14,26]],"check":"deltas","expected":[[10,20],[13,18],[12,22]],"passed":false},{"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,3]],"check":"variant delta magnitude","expected":[[1,2],[4,1]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"deltas\", \"actual\": [[10, 20], [13, 22], [14, 26]], \"expected\": [[10, 20], [13, 18], [12, 22]], \"passed\": false}, {\"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, 3]], \"expected\": [[1, 2], [4, 1]], \"passed\": false}], \"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."}}