{
  "kind": "synthetic-only",
  "created": "2026-11-07",
  "scope": "CSV framing, exact header and column count under the declared dialect. No business schema, encoding, production loader or transaction testing. candidate is not business acceptance.",
  "expectedHeader": ["order_id", "qty", "note"],
  "dialect": {
    "delimiter": ",",
    "quotechar": "\"",
    "doublequote": true,
    "strict": true,
    "skipinitialspace": false,
    "newline": ""
  },
  "testedPython": "3.14.2",
  "samples": [
    {
      "name": "plain",
      "input": "order_id,qty,note\r\nA-01,2,standard\r\nA-02,3,second\r\n",
      "expected": {
        "physicalLines": 3,
        "parsedDataRecords": 2,
        "rowWidths": [3, 3],
        "headerMatches": true,
        "parseError": false,
        "decision": "candidate"
      }
    },
    {
      "name": "quoted-comma",
      "input": "order_id,qty,note\r\nA-01,2,\"box, blue\"\r\nA-02,3,second\r\n",
      "expected": {
        "physicalLines": 3,
        "parsedDataRecords": 2,
        "rowWidths": [3, 3],
        "headerMatches": true,
        "parseError": false,
        "decision": "candidate"
      }
    },
    {
      "name": "quoted-crlf",
      "input": "order_id,qty,note\r\nA-01,2,\"first\r\nsecond\"\r\nA-02,3,last\r\n",
      "expected": {
        "physicalLines": 4,
        "parsedDataRecords": 2,
        "rowWidths": [3, 3],
        "headerMatches": true,
        "parseError": false,
        "decision": "candidate"
      }
    },
    {
      "name": "escaped-quote",
      "input": "order_id,qty,note\r\nA-01,2,\"box \"\"blue\"\"\"\r\nA-02,3,last\r\n",
      "expected": {
        "physicalLines": 3,
        "parsedDataRecords": 2,
        "rowWidths": [3, 3],
        "headerMatches": true,
        "parseError": false,
        "decision": "candidate"
      }
    },
    {
      "name": "short-row",
      "input": "order_id,qty,note\r\nA-01,2,first\r\nA-02,3\r\n",
      "expected": {
        "physicalLines": 3,
        "parsedDataRecords": 2,
        "rowWidths": [3, 2],
        "headerMatches": true,
        "parseError": false,
        "decision": "hold-file"
      }
    },
    {
      "name": "unclosed-quote",
      "input": "order_id,qty,note\r\nA-01,2,first\r\nA-02,3,\"unfinished\r\n",
      "expected": {
        "physicalLines": 3,
        "parsedDataRecords": 1,
        "rowWidths": [3],
        "headerMatches": true,
        "parseError": true,
        "decision": "hold-file"
      }
    },
    {
      "name": "duplicate-header",
      "input": "order_id,qty,qty\r\nA-01,2,first\r\nA-02,3,last\r\n",
      "expected": {
        "physicalLines": 3,
        "parsedDataRecords": 2,
        "rowWidths": [3, 3],
        "headerMatches": false,
        "parseError": false,
        "decision": "hold-file"
      }
    }
  ]
}
