{
  "recorded_at": "2026-10-16T20:00:54.547085+08:00",
  "environment": {
    "implementation": "CPython",
    "python": "3.12.14",
    "system": "Darwin",
    "macos": "27.0.1",
    "machine": "arm64"
  },
  "input_kind": "synthetic teaching data; no personal or production records",
  "format": {
    "encoding": "utf-8",
    "delimiter": ",",
    "quotechar": "\"",
    "doublequote": true,
    "quoting": "QUOTE_MINIMAL",
    "strict_reader": true,
    "skipinitialspace": false,
    "writer_record_terminator": "\r\n"
  },
  "baseline": {
    "sample_file": "sample.csv",
    "sha256": "345329b97bc71f4992640064eca164cedb27afa1d3e920f9051909959cb51d00",
    "sample_text": "id,name,note\r\n00123,谷米,\"逗号,保留\"\r\n00456,\"道具 \"\"A\"\"\",\"第一行\r\n第二行\"\r\n00789,東京,\r\n01000,大阪,\"独立CR\rとLF\n\"\r\n01001,スペース, 前後の空白 \r\n",
    "rows": [
      [
        "id",
        "name",
        "note"
      ],
      [
        "00123",
        "谷米",
        "逗号,保留"
      ],
      [
        "00456",
        "道具 \"A\"",
        "第一行\r\n第二行"
      ],
      [
        "00789",
        "東京",
        ""
      ],
      [
        "01000",
        "大阪",
        "独立CR\rとLF\n"
      ],
      [
        "01001",
        "スペース",
        " 前後の空白 "
      ]
    ],
    "record_count_including_header": 6,
    "record_end_source_lines": [
      1,
      2,
      4,
      5,
      8,
      9
    ],
    "cells_equal_input": true,
    "same_writer_rewrite_bytes_equal": true,
    "naive_split_rows": [
      [
        "id",
        "name",
        "note"
      ],
      [
        "00123",
        "谷米",
        "\"逗号",
        "保留\""
      ],
      [
        "00456",
        "\"道具 \"\"A\"\"\"",
        "\"第一行"
      ],
      [
        "第二行\""
      ],
      [
        "00789",
        "東京",
        ""
      ],
      [
        "01000",
        "大阪",
        "\"独立CR"
      ],
      [
        "とLF"
      ],
      [
        "\""
      ],
      [
        "01001",
        "スペース",
        " 前後の空白 "
      ]
    ],
    "naive_row_count": 9,
    "naive_field_counts": [
      3,
      4,
      3,
      1,
      3,
      3,
      1,
      1,
      3
    ]
  },
  "default_newline_none": {
    "record_count_including_header": 6,
    "changed_cells": [
      {
        "record": 3,
        "field": 3,
        "before": "第一行\r\n第二行",
        "after": "第一行\n第二行"
      },
      {
        "record": 5,
        "field": 3,
        "before": "独立CR\rとLF\n",
        "after": "独立CR\nとLF\n"
      }
    ]
  },
  "boundary_cases": [
    {
      "case": "unterminated_quoted_field",
      "input": "id,name,note\r\n1,甲,\"unterminated\r\n",
      "parser": "csv.Error",
      "error": "unexpected end of data"
    },
    {
      "case": "character_after_closing_quote",
      "input": "id,name,note\r\n1,甲,\"closed\"x\r\n",
      "parser": "csv.Error",
      "error": "',' expected after '\"'"
    },
    {
      "case": "short_record",
      "input": "id,name,note\r\n1,甲\r\n",
      "parser": "accepted",
      "rows": [
        [
          "id",
          "name",
          "note"
        ],
        [
          "1",
          "甲"
        ]
      ],
      "record_end_source_lines": [
        1,
        2
      ],
      "contract_issues": [
        "Record 2: expected 3 fields, got 2"
      ]
    },
    {
      "case": "long_record",
      "input": "id,name,note\r\n1,甲,备注,extra\r\n",
      "parser": "accepted",
      "rows": [
        [
          "id",
          "name",
          "note"
        ],
        [
          "1",
          "甲",
          "备注",
          "extra"
        ]
      ],
      "record_end_source_lines": [
        1,
        2
      ],
      "contract_issues": [
        "Record 2: expected 3 fields, got 4"
      ]
    },
    {
      "case": "duplicate_header",
      "input": "id,id,note\r\n1,2,x\r\n",
      "parser": "accepted",
      "rows": [
        [
          "id",
          "id",
          "note"
        ],
        [
          "1",
          "2",
          "x"
        ]
      ],
      "record_end_source_lines": [
        1,
        2
      ],
      "contract_issues": [
        "Expected the exact header id,name,note"
      ]
    },
    {
      "case": "quote_in_unquoted_field",
      "input": "id,name,note\r\n1,甲,bare\"quote\r\n",
      "parser": "accepted",
      "rows": [
        [
          "id",
          "name",
          "note"
        ],
        [
          "1",
          "甲",
          "bare\"quote"
        ]
      ],
      "record_end_source_lines": [
        1,
        2
      ],
      "contract_issues": []
    },
    {
      "case": "empty_file",
      "input": "",
      "parser": "accepted",
      "rows": [],
      "record_end_source_lines": [],
      "contract_issues": [
        "Expected the exact header id,name,note"
      ]
    }
  ],
  "empty_string_and_none": {
    "input": [
      "",
      null
    ],
    "serialized_csv": ",\r\n",
    "restored": [
      "",
      ""
    ],
    "roundtrip_equal": false
  },
  "scope": "Only the stated Python csv/IO settings and small synthetic cases. Not an RFC conformance suite, Excel/Numbers/database integration, dialect detector, performance test or full application schema validator."
}
