{
  "schema_version": 1,
  "title": "CSV import lab: expected values, not native results",
  "synthetic": true,
  "input_text_changed": false,
  "scope": "Preparatory lab. All raw rows are exact CSV strings; expected rows document intended typed values. ISO date strings represent date meaning. JSON null in the last Note field means an empty spreadsheet cell, not literal null text.",
  "native_status_per_app": {
    "LibreOffice Calc": {
      "actual_version": null,
      "actual_platform": null,
      "import": "NOT_RUN",
      "all_fields_and_types": "NOT_RUN",
      "date_meanings": "NOT_RUN",
      "input_change_recalculation": "NOT_RUN",
      "save_close_reopen": "NOT_RUN"
    },
    "Apache OpenOffice Calc": {
      "actual_version": null,
      "actual_platform": null,
      "import": "NOT_RUN",
      "all_fields_and_types": "NOT_RUN",
      "date_meanings": "NOT_RUN",
      "input_change_recalculation": "NOT_RUN",
      "save_close_reopen": "NOT_RUN"
    },
    "Gnumeric": {
      "actual_version": null,
      "actual_platform": null,
      "import": "NOT_RUN",
      "all_fields_and_types": "NOT_RUN",
      "date_meanings": "NOT_RUN",
      "input_change_recalculation": "NOT_RUN",
      "save_close_reopen": "NOT_RUN"
    }
  },
  "browser_download_transport": "HELD_UNVERIFIED",
  "historical_lessons_are_separate_evidence": true,
  "fixtures": [
    {
      "id": "orders",
      "archive_member": "inputs/order-ids-raw.csv",
      "source_path": "static/downloads/apple-numbers/tutorials/order-ids-raw.csv",
      "source_sha256": "708c1db4d524aedc52f2b548d1eaed067fccb2cd54fed0c654e0715e98fccc5e",
      "source_bytes": 189,
      "delimiter": ",",
      "headers": [
        "OrderID",
        "Description",
        "Quantity"
      ],
      "raw_rows": [
        [
          "00001234",
          "Notebook, blue",
          "2"
        ],
        [
          "12345678901234567890",
          "Pen pack",
          "1"
        ],
        [
          "12345678901234567891",
          "Folder",
          "3"
        ],
        [
          "00000000000000000001",
          "Desk mat",
          "1"
        ],
        [
          "1E10",
          "Label roll",
          "4"
        ],
        [
          "03-04",
          "Archive box",
          "2"
        ]
      ],
      "expected_rows": [
        [
          "00001234",
          "Notebook, blue",
          2
        ],
        [
          "12345678901234567890",
          "Pen pack",
          1
        ],
        [
          "12345678901234567891",
          "Folder",
          3
        ],
        [
          "00000000000000000001",
          "Desk mat",
          1
        ],
        [
          "1E10",
          "Label roll",
          4
        ],
        [
          "03-04",
          "Archive box",
          2
        ]
      ],
      "column_types": [
        "text",
        "text",
        "number_integer"
      ],
      "identifier_cells": [
        {
          "cell": "A2",
          "value": "00001234",
          "length": 8,
          "meaning": "Exact identifier; keep all four leading zeros; not number 1234."
        },
        {
          "cell": "A3",
          "value": "12345678901234567890",
          "length": 20,
          "meaning": "Exact identifier; final 0 distinguishes it from A4; not a numeric quantity."
        },
        {
          "cell": "A4",
          "value": "12345678901234567891",
          "length": 20,
          "meaning": "Exact identifier; final 1 distinguishes it from A3; not a numeric quantity."
        },
        {
          "cell": "A5",
          "value": "00000000000000000001",
          "length": 20,
          "meaning": "Exact identifier; preserve nineteen leading zeros; not number 1."
        },
        {
          "cell": "A6",
          "value": "1E10",
          "length": 4,
          "meaning": "Literal identifier; not scientific notation or 10000000000."
        },
        {
          "cell": "A7",
          "value": "03-04",
          "length": 5,
          "meaning": "Literal identifier; not a date, range or subtraction."
        }
      ],
      "controls": {
        "numeric_quantity_count": 6,
        "quantity_sum": 13,
        "quoted_cell": {
          "cell": "B2",
          "value": "Notebook, blue"
        },
        "copy_only_change": {
          "cell": "C2",
          "from": 2,
          "to": 4,
          "new_sum": 15,
          "restored_sum": 13
        }
      },
      "source_url": "https://www.spreadsheet-tutorials.com/downloads/apple-numbers/tutorials/order-ids-raw.csv",
      "encoding": "UTF-8",
      "bom": false,
      "line_endings": "LF",
      "text_delimiter": "\"",
      "header_row": 1,
      "data_rows": 6,
      "total_rows": 7,
      "fields_per_row": 3,
      "target_range": "A1:C7"
    },
    {
      "id": "dates",
      "archive_member": "inputs/dates-dmy.csv",
      "source_path": "static/downloads/excel-practical/dates-dmy.csv",
      "source_sha256": "571e1cb6ba9971411f208200088c240ef2366c54856c65c97b1b012248647715",
      "source_bytes": 81,
      "delimiter": ",",
      "headers": [
        "Record",
        "EventDate"
      ],
      "raw_rows": [
        [
          "D-01",
          "03/04/2026"
        ],
        [
          "D-02",
          "12/11/2026"
        ],
        [
          "D-03",
          "13/04/2026"
        ],
        [
          "D-04",
          "29/02/2024"
        ]
      ],
      "expected_rows": [
        [
          "D-01",
          "2026-04-03"
        ],
        [
          "D-02",
          "2026-11-12"
        ],
        [
          "D-03",
          "2026-04-13"
        ],
        [
          "D-04",
          "2024-02-29"
        ]
      ],
      "column_types": [
        "text",
        "date_DMY"
      ],
      "date_convention": "The lab adopts the existing fixture author's declared two-digit day/two-digit month/four-digit year rule. ISO strings here record the date meaning; do not infer date order from locale. No application date serial is prescribed.",
      "date_convention_owner": "/excel/tutorials/csv-date-import-day-month-excel-2013/",
      "date_cells": [
        {
          "cell": "B2",
          "record": "D-01",
          "source": "03/04/2026",
          "iso": "2026-04-03",
          "year": 2026,
          "month": 4,
          "day": 3
        },
        {
          "cell": "B3",
          "record": "D-02",
          "source": "12/11/2026",
          "iso": "2026-11-12",
          "year": 2026,
          "month": 11,
          "day": 12
        },
        {
          "cell": "B4",
          "record": "D-03",
          "source": "13/04/2026",
          "iso": "2026-04-13",
          "year": 2026,
          "month": 4,
          "day": 13
        },
        {
          "cell": "B5",
          "record": "D-04",
          "source": "29/02/2024",
          "iso": "2024-02-29",
          "year": 2024,
          "month": 2,
          "day": 29
        }
      ],
      "controls": {
        "numeric_date_count_target": 4,
        "require_year_month_day_match_for_each_date": true,
        "text_preservation_is_only_an_intermediate_not_date_target_pass": true
      },
      "source_url": "https://www.spreadsheet-tutorials.com/downloads/excel-practical/dates-dmy.csv",
      "encoding": "UTF-8",
      "bom": false,
      "line_endings": "LF",
      "text_delimiter": "\"",
      "header_row": 1,
      "data_rows": 4,
      "total_rows": 5,
      "fields_per_row": 2,
      "target_range": "A1:B5"
    },
    {
      "id": "decimal_commas",
      "archive_member": "inputs/semicolon-decimal-comma.csv",
      "source_path": "static/downloads/openoffice-practical/semicolon-decimal-comma.csv",
      "source_sha256": "463cdef38bd37b8a99d79eadae330be116387d94ca184ca17da64994ccc68caa",
      "source_bytes": 163,
      "delimiter": ";",
      "headers": [
        "InvoiceID",
        "Item",
        "Amount",
        "Note"
      ],
      "raw_rows": [
        [
          "000123",
          "Notebook",
          "12,50",
          "Office"
        ],
        [
          "000124",
          "Pen",
          "3,75",
          "Blue; fine tip"
        ],
        [
          "123456789012345678",
          "Folder",
          "-2,25",
          "Adjustment"
        ],
        [
          "000126",
          "Café supplies",
          "1000,00",
          ""
        ]
      ],
      "expected_rows": [
        [
          "000123",
          "Notebook",
          12.5,
          "Office"
        ],
        [
          "000124",
          "Pen",
          3.75,
          "Blue; fine tip"
        ],
        [
          "123456789012345678",
          "Folder",
          -2.25,
          "Adjustment"
        ],
        [
          "000126",
          "Café supplies",
          1000,
          null
        ]
      ],
      "column_types": [
        "text",
        "text",
        "number_decimal",
        "text_or_blank"
      ],
      "identifier_cells": [
        {
          "cell": "A2",
          "value": "000123",
          "length": 6,
          "meaning": "Exact identifier; preserve three leading zeros; not number 123."
        },
        {
          "cell": "A3",
          "value": "000124",
          "length": 6,
          "meaning": "Exact identifier; preserve three leading zeros; not number 124."
        },
        {
          "cell": "A4",
          "value": "123456789012345678",
          "length": 18,
          "meaning": "Exact 18-digit identifier; preserve every digit as text, not numeric quantity."
        },
        {
          "cell": "A5",
          "value": "000126",
          "length": 6,
          "meaning": "Exact identifier; preserve three leading zeros; not number 126."
        }
      ],
      "decimal_values_exact": [
        "12.50",
        "3.75",
        "-2.25",
        "1000.00"
      ],
      "controls": {
        "numeric_amount_count": 4,
        "amount_sum_exact": "1014.00",
        "currency": "not specified",
        "quoted_cell": {
          "cell": "D3",
          "value": "Blue; fine tip"
        },
        "utf8_cell": {
          "cell": "B5",
          "value": "Café supplies",
          "accent": "U+00E9"
        },
        "blank_cell": "D5",
        "copy_only_change": {
          "cell": "C2",
          "from_exact": "12.50",
          "to_exact": "13.50",
          "new_sum_exact": "1015.00",
          "restored_sum_exact": "1014.00"
        }
      },
      "source_url": "https://www.spreadsheet-tutorials.com/downloads/openoffice-practical/semicolon-decimal-comma.csv",
      "encoding": "UTF-8",
      "bom": false,
      "line_endings": "LF",
      "text_delimiter": "\"",
      "header_row": 1,
      "data_rows": 4,
      "total_rows": 5,
      "fields_per_row": 4,
      "target_range": "A1:D5"
    }
  ]
}
