{
  "description": "Shared test vectors for the Aroma Signal Media File (.asmf) 1.1, specified in spec/asmf-format.md (section 12, Conformance). Each section is an array of named cases. `structural`: parsing `text` must give `expected` (null = parses; otherwise the exact structural error code and path). `text` is the raw document text (it carries duplicate keys, BOMs and other things a parsed value cannot); `generate` replaces `text` with a built input (oversize = 4 MiB + 1 bytes, deep = 33 nesting levels, deep32 = 32 levels). `projection`: the projection of `layout` (section 9.3) must equal the given top-level `flows`/`boosters`. `envelope`: the reference level (section 7.3) of `booster` at each sampled `t` must be the sampled level. `validation`: `document` is either a JSON object (the runner serializes it, parses it and validates it; member order is not significant in this form, since many JSON libraries do not keep it) or a JSON string holding the exact document text (used where member order matters, for example the order of `name` entries; the runner parses that text as it is); `expected` is the exact ordered list of {path, code} violations (section 5.3). Runners expand generators inside an object `document`: {\"list\": name, \"count\": N, \"item\": {...}, \"stepMs\": S} becomes N items (startMs/endMs of item i shifted by i*S; for `list` = aromas, N aromas with distinct keys and UUIDs), and {\"repeat\": s, \"count\": N} becomes the string s repeated N times. `advisories`: the advisory check (section 8) of `document` with the recommended minimum inner intensity `minInnerIntensity` must give `expected` ({path, code} list, advisory codes only). `automaticInner`: the automatic inner lane (section 7.5) for the emitted aroma spans `spans` (each [startMs, endMs], in any order) at the delivery level `level` must be exactly `expected` (inner booster spans, sorted by start). `canonical`: the canonical JSON (section 11) of both `a` and `b` must be the exact string `canonical` (a and b are different spellings of one document, each either a JSON object or a JSON string holding the exact text, as for `validation`; the string is the canonical form, with `x-` and unknown members and an unknown device's `layout` dropped; an empty `meta`/`media` is the same as none, and `requires` is sorted in byte order without duplicates).",
  "structural": [
    {
      "name": "minimal_document_parses",
      "text": "{\"asmf\":\"1.0\",\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": null
    },
    {
      "name": "spec_example_parses",
      "text": "{\n  \"asmf\": \"1.0\",\n  \"meta\": {\n    \"title\": \"Morning walk in the forest\",\n    \"author\": \"mina\",\n    \"createdAt\": \"2026-11-05T09:00:00Z\",\n    \"tool\": \"Example Editor 1.0\"\n  },\n  \"media\": {\n    \"durationMs\": 252000\n  },\n  \"aromas\": [\n    {\n      \"key\": \"a1\",\n      \"id\": \"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\",\n      \"name\": {\n        \"en\": \"Pine\",\n        \"zh-Hant\": \"松\"\n      }\n    },\n    {\n      \"key\": \"a2\",\n      \"id\": \"b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13\"\n    }\n  ],\n  \"flows\": [\n    {\n      \"aroma\": \"a1\",\n      \"startMs\": 1200,\n      \"endMs\": 3400,\n      \"concentration\": 80\n    },\n    {\n      \"aroma\": \"a2\",\n      \"startMs\": 2000,\n      \"endMs\": 4000,\n      \"concentration\": 100\n    }\n  ],\n  \"boosters\": [\n    {\n      \"booster\": \"outer\",\n      \"startMs\": 1000,\n      \"endMs\": 4000,\n      \"intensity\": 30,\n      \"fadeInMs\": 500,\n      \"fadeOutMs\": 1000\n    },\n    {\n      \"booster\": \"inner\",\n      \"startMs\": 1200,\n      \"endMs\": 2000,\n      \"intensity\": 50\n    }\n  ],\n  \"layout\": {\n    \"device\": \"aroma-shooter-3\",\n    \"chamberCount\": 2,\n    \"chambers\": [\n      {\n        \"chamber\": 1,\n        \"aroma\": \"a1\"\n      },\n      {\n        \"chamber\": 2,\n        \"aroma\": \"a2\"\n      }\n    ],\n    \"flows\": [\n      {\n        \"chamber\": 1,\n        \"startMs\": 1200,\n        \"endMs\": 3400,\n        \"concentration\": 80\n      },\n      {\n        \"chamber\": 2,\n        \"startMs\": 2000,\n        \"endMs\": 4000,\n        \"concentration\": 100\n      }\n    ],\n    \"boosters\": [\n      {\n        \"chamber\": 1,\n        \"booster\": \"outer\",\n        \"startMs\": 1000,\n        \"endMs\": 4000,\n        \"intensity\": 30,\n        \"fadeInMs\": 500,\n        \"fadeOutMs\": 1000\n      },\n      {\n        \"chamber\": 1,\n        \"booster\": \"inner\",\n        \"startMs\": 1200,\n        \"endMs\": 2000,\n        \"intensity\": 50\n      }\n    ]\n  }\n}",
      "expected": null
    },
    {
      "name": "not_json",
      "text": "this is not json",
      "expected": {
        "code": "MALFORMED",
        "path": ""
      }
    },
    {
      "name": "top_level_array",
      "text": "[]",
      "expected": {
        "code": "MALFORMED",
        "path": ""
      }
    },
    {
      "name": "bom_is_malformed",
      "text": "﻿{\"asmf\":\"1.0\",\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": ""
      }
    },
    {
      "name": "missing_asmf",
      "text": "{\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": "asmf"
      }
    },
    {
      "name": "missing_aromas",
      "text": "{\"asmf\":\"1.0\",\"flows\":[],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": "aromas"
      }
    },
    {
      "name": "wrong_type_concentration_string",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [{\"key\": \"a1\", \"id\": \"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}], \"flows\": [{\"aroma\": \"a1\", \"startMs\": 0, \"endMs\": 1000, \"concentration\": \"80\"}], \"boosters\": []}",
      "expected": {
        "code": "MALFORMED",
        "path": "flows[0].concentration"
      }
    },
    {
      "name": "float_concentration",
      "text": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":0,\"endMs\":1000,\"concentration\":80.0}],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": "flows[0].concentration"
      }
    },
    {
      "name": "exponent_number",
      "text": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":0,\"endMs\":1e3,\"concentration\":80}],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": "flows[0].endMs"
      }
    },
    {
      "name": "huge_and_non_integer_numbers_above_u64",
      "text": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":0,\"endMs\":18446744073709551616,\"concentration\":80}],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": "flows[0].endMs"
      }
    },
    {
      "name": "huge_and_non_integer_numbers_above_i64",
      "text": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":9223372036854775808,\"endMs\":9223372036854775809,\"concentration\":80}],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": "flows[0].startMs"
      }
    },
    {
      "name": "huge_and_non_integer_numbers_i64_extremes_parse",
      "text": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":-9223372036854775808,\"endMs\":9223372036854775807,\"concentration\":80}],\"boosters\":[]}",
      "expected": null
    },
    {
      "name": "duplicate_json_keys_are_malformed",
      "text": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":0,\"endMs\":1000,\"concentration\":10,\"concentration\":90}],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": ""
      }
    },
    {
      "name": "duplicate_json_keys_in_name_are_malformed",
      "text": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"x\",\"name\":{\"en\":\"A\",\"en\":\"B\"}}],\"flows\":[],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": ""
      }
    },
    {
      "name": "oversize_and_deep_nesting_are_malformed_oversize",
      "generate": "oversize",
      "expected": {
        "code": "MALFORMED",
        "path": ""
      }
    },
    {
      "name": "oversize_and_deep_nesting_are_malformed_deep",
      "generate": "deep",
      "expected": {
        "code": "MALFORMED",
        "path": ""
      }
    },
    {
      "name": "nesting_depth_32_is_ok",
      "generate": "deep32",
      "expected": null
    },
    {
      "name": "version_major_2",
      "text": "{\"asmf\":\"2.0\",\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": {
        "code": "UNSUPPORTED_VERSION",
        "path": "asmf"
      }
    },
    {
      "name": "version_major_2_rest_not_read",
      "text": "{\"asmf\":\"2.0\"}",
      "expected": {
        "code": "UNSUPPORTED_VERSION",
        "path": "asmf"
      }
    },
    {
      "name": "version_not_two_integers_one",
      "text": "{\"asmf\":\"1\",\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": {
        "code": "UNSUPPORTED_VERSION",
        "path": "asmf"
      }
    },
    {
      "name": "version_not_two_integers_three",
      "text": "{\"asmf\":\"1.0.0\",\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": {
        "code": "UNSUPPORTED_VERSION",
        "path": "asmf"
      }
    },
    {
      "name": "version_not_two_integers_x",
      "text": "{\"asmf\":\"1.x\",\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": {
        "code": "UNSUPPORTED_VERSION",
        "path": "asmf"
      }
    },
    {
      "name": "version_not_a_string",
      "text": "{\"asmf\":1.0,\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": "asmf"
      }
    },
    {
      "name": "requires_unknown_feature",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [], \"requires\": [\"pulse-effect\"]}",
      "expected": {
        "code": "UNSUPPORTED_FEATURE",
        "path": "requires[0]"
      }
    },
    {
      "name": "requires_empty_ok",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [], \"requires\": []}",
      "expected": null
    },
    {
      "name": "requires_not_strings",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [], \"requires\": [1]}",
      "expected": {
        "code": "MALFORMED",
        "path": "requires[0]"
      }
    },
    {
      "name": "unknown_field_same_minor",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [{\"key\": \"a1\", \"id\": \"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}], \"flows\": [{\"aroma\": \"a1\", \"startMs\": 0, \"endMs\": 1000, \"concentration\": 80, \"colour\": \"red\"}], \"boosters\": []}",
      "expected": {
        "code": "UNKNOWN_FIELD",
        "path": "flows[0].colour"
      }
    },
    {
      "name": "reserved_names_are_unknown_fields_top",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [], \"outputs\": []}",
      "expected": {
        "code": "UNKNOWN_FIELD",
        "path": "outputs"
      }
    },
    {
      "name": "reserved_names_are_unknown_fields_flow",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [{\"key\": \"a1\", \"id\": \"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}], \"flows\": [{\"aroma\": \"a1\", \"startMs\": 0, \"endMs\": 1000, \"concentration\": 80, \"output\": 1}], \"boosters\": []}",
      "expected": {
        "code": "UNKNOWN_FIELD",
        "path": "flows[0].output"
      }
    },
    {
      "name": "unknown_field_higher_minor_ignored",
      "text": "{\"asmf\":\"1.7\",\"newThing\":{\"a\":1},\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\",\"shade\":1}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":0,\"endMs\":1000,\"concentration\":80,\"colour\":\"red\"}],\"boosters\":[]}",
      "expected": null
    },
    {
      "name": "x_field_ignored_everywhere",
      "text": "{\"asmf\":\"1.0\",\"x-top\":1,\"meta\":{\"x-m\":[1]},\"media\":{\"x-m\":null},\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\",\"x-a\":1}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":0,\"endMs\":1000,\"concentration\":80,\"x-f\":{\"deep\":[1,2]}}],\"boosters\":[{\"booster\":\"inner\",\"startMs\":0,\"endMs\":1000,\"intensity\":50,\"x-b\":true}],\"layout\":{\"device\":\"aroma-shooter-3\",\"x-l\":1,\"chamberCount\":1,\"chambers\":[{\"chamber\":1,\"aroma\":\"a1\",\"x-s\":1}],\"flows\":[{\"chamber\":1,\"startMs\":0,\"endMs\":1000,\"concentration\":80,\"x-lf\":1}],\"boosters\":[{\"chamber\":1,\"booster\":\"inner\",\"startMs\":0,\"endMs\":1000,\"intensity\":50,\"x-lb\":1}]}}",
      "expected": null
    },
    {
      "name": "name_keys_are_data",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [{\"key\": \"a1\", \"id\": \"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\", \"name\": {\"x-klingon\": \"tlhIngan\", \"colour\": \"red\"}}], \"flows\": [], \"boosters\": []}",
      "expected": null
    },
    {
      "name": "name_value_not_string",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [{\"key\": \"a1\", \"id\": \"x\", \"name\": {\"en\": 1}}], \"flows\": [], \"boosters\": []}",
      "expected": {
        "code": "MALFORMED",
        "path": "aromas[0].name.en"
      }
    },
    {
      "name": "unknown_device_layout_not_read",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [], \"layout\": {\"device\": \"other\", \"chamberCount\": \"many\", \"chambers\": 5, \"whatever\": [1, 2], \"flows\": {}}}",
      "expected": null
    },
    {
      "name": "known_device_layout_wrong_type",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [], \"layout\": {\"device\": \"aroma-shooter-3\", \"chamberCount\": \"two\", \"chambers\": [], \"flows\": [], \"boosters\": []}}",
      "expected": {
        "code": "MALFORMED",
        "path": "layout.chamberCount"
      }
    },
    {
      "name": "layout_missing_device",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [], \"layout\": {\"chamberCount\": 1}}",
      "expected": {
        "code": "MALFORMED",
        "path": "layout.device"
      }
    },
    {
      "name": "layout_not_object",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [], \"layout\": []}",
      "expected": {
        "code": "MALFORMED",
        "path": "layout"
      }
    },
    {
      "name": "layout_unknown_field_same_minor",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [], \"layout\": {\"device\": \"aroma-shooter-3\", \"chamberCount\": 1, \"chambers\": [], \"flows\": [], \"boosters\": [], \"extra\": 1}}",
      "expected": {
        "code": "UNKNOWN_FIELD",
        "path": "layout.extra"
      }
    },
    {
      "name": "booster_name_missing_is_malformed",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [{\"startMs\": 0, \"endMs\": 1000, \"intensity\": 50}]}",
      "expected": {
        "code": "MALFORMED",
        "path": "boosters[0].booster"
      }
    },
    {
      "name": "fade_fields_optional_and_default_zero",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [{\"booster\": \"inner\", \"startMs\": 0, \"endMs\": 1000, \"intensity\": 50}, {\"booster\": \"outer\", \"startMs\": 0, \"endMs\": 1000, \"intensity\": 50, \"fadeInMs\": 100, \"fadeOutMs\": 200}]}",
      "expected": null
    },
    {
      "name": "fade_float_is_malformed",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [{\"booster\": \"inner\", \"startMs\": 0, \"endMs\": 1000, \"intensity\": 50, \"fadeInMs\": 0.5}]}",
      "expected": {
        "code": "MALFORMED",
        "path": "boosters[0].fadeInMs"
      }
    },
    {
      "name": "fade_on_flow_is_unknown_field",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [{\"key\": \"a1\", \"id\": \"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}], \"flows\": [{\"aroma\": \"a1\", \"startMs\": 0, \"endMs\": 1000, \"concentration\": 80, \"fadeInMs\": 100}], \"boosters\": []}",
      "expected": {
        "code": "UNKNOWN_FIELD",
        "path": "flows[0].fadeInMs"
      }
    },
    {
      "name": "unknown_booster_name_parses",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [{\"booster\": \"side\", \"startMs\": 0, \"endMs\": 1000, \"intensity\": 50}]}",
      "expected": null
    },
    {
      "name": "meta_wrong_type",
      "text": "{\"asmf\": \"1.0\", \"aromas\": [], \"flows\": [], \"boosters\": [], \"meta\": {\"title\": 5}}",
      "expected": {
        "code": "MALFORMED",
        "path": "meta.title"
      }
    },
    {
      "name": "media_duration_float",
      "text": "{\"asmf\":\"1.0\",\"media\":{\"durationMs\":1.5},\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": "media.durationMs"
      }
    },
    {
      "name": "negative_zero_is_malformed",
      "text": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":-0,\"endMs\":1000,\"concentration\":80}],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": "flows[0].startMs"
      }
    },
    {
      "name": "negative_zero_in_x_member_is_ignored",
      "text": "{\"asmf\":\"1.0\",\"x-n\":-0,\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": null
    },
    {
      "name": "non_finite_number_in_ignored_member_is_malformed",
      "text": "{\"asmf\":\"1.0\",\"x-n\":1e999,\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": ""
      }
    },
    {
      "name": "non_finite_number_in_read_member_is_malformed",
      "text": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":0,\"endMs\":1e999,\"concentration\":80}],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": ""
      }
    },
    {
      "name": "lone_surrogate_escape_is_malformed",
      "text": "{\"asmf\":\"1.0\",\"meta\":{\"title\":\"\\ud800\"},\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": {
        "code": "MALFORMED",
        "path": ""
      }
    },
    {
      "name": "surrogate_pair_escape_parses",
      "text": "{\"asmf\":\"1.0\",\"meta\":{\"title\":\"\\ud834\\udd1e\"},\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "expected": null
    },
    {
      "name": "layout_items_are_checked_in_order",
      "text": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[],\"boosters\":[],\"layout\":{\"device\":\"aroma-shooter-3\",\"chamberCount\":1,\"chambers\":[{\"chamber\":1,\"aroma\":\"a1\",\"bogus\":1},7],\"flows\":[],\"boosters\":[]}}",
      "expected": {
        "code": "UNKNOWN_FIELD",
        "path": "layout.chambers[0].bogus"
      }
    }
  ],
  "projection": [
    {
      "name": "one_chamber_per_aroma_is_identity",
      "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}],
      "layout": {"device": "aroma-shooter-3", "chamberCount": 2,
        "chambers": [{"chamber": 1, "aroma": "a1"}, {"chamber": 2, "aroma": "a2"}],
        "flows": [{"chamber": 1, "startMs": 1200, "endMs": 3400, "concentration": 80}, {"chamber": 2, "startMs": 2000, "endMs": 4000, "concentration": 100}],
        "boosters": [{"chamber": 1, "booster": "outer", "startMs": 1000, "endMs": 4000, "intensity": 30, "fadeInMs": 500, "fadeOutMs": 1000}, {"chamber": 1, "booster": "inner", "startMs": 1200, "endMs": 2000, "intensity": 50}]},
      "flows": [{"aroma": "a1", "startMs": 1200, "endMs": 3400, "concentration": 80}, {"aroma": "a2", "startMs": 2000, "endMs": 4000, "concentration": 100}],
      "boosters": [{"booster": "outer", "startMs": 1000, "endMs": 4000, "intensity": 30, "fadeInMs": 500, "fadeOutMs": 1000}, {"booster": "inner", "startMs": 1200, "endMs": 2000, "intensity": 50}]
    },
    {
      "name": "boosters_in_two_chambers_overlap",
      "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
      "layout": {"device": "aroma-shooter-3", "chamberCount": 2,
        "chambers": [{"chamber": 1, "aroma": "a1"}],
        "flows": [],
        "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}, {"chamber": 2, "booster": "inner", "startMs": 500, "endMs": 2000, "intensity": 80}]},
      "flows": [],
      "boosters": [{"booster": "inner", "startMs": 0, "endMs": 500, "intensity": 50}, {"booster": "inner", "startMs": 500, "endMs": 2000, "intensity": 80}]
    },
    {
      "name": "same_aroma_in_two_chambers_alternating",
      "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
      "layout": {"device": "aroma-shooter-3", "chamberCount": 2,
        "chambers": [{"chamber": 1, "aroma": "a1"}, {"chamber": 2, "aroma": "a1"}],
        "flows": [{"chamber": 1, "startMs": 0, "endMs": 1000, "concentration": 60}, {"chamber": 1, "startMs": 2000, "endMs": 3000, "concentration": 60}, {"chamber": 2, "startMs": 1000, "endMs": 2000, "concentration": 60}],
        "boosters": []},
      "flows": [{"aroma": "a1", "startMs": 0, "endMs": 3000, "concentration": 60}],
      "boosters": []
    },
    {
      "name": "same_aroma_in_two_chambers_overlapping",
      "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
      "layout": {"device": "aroma-shooter-3", "chamberCount": 2,
        "chambers": [{"chamber": 1, "aroma": "a1"}, {"chamber": 2, "aroma": "a1"}],
        "flows": [{"chamber": 1, "startMs": 0, "endMs": 2000, "concentration": 40}, {"chamber": 2, "startMs": 1000, "endMs": 3000, "concentration": 90}],
        "boosters": []},
      "flows": [{"aroma": "a1", "startMs": 0, "endMs": 1000, "concentration": 40}, {"aroma": "a1", "startMs": 1000, "endMs": 3000, "concentration": 90}],
      "boosters": []
    },
    {
      "name": "touching_same_level_flows_merge",
      "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
      "layout": {"device": "aroma-shooter-3", "chamberCount": 1,
        "chambers": [{"chamber": 1, "aroma": "a1"}],
        "flows": [{"chamber": 1, "startMs": 0, "endMs": 1000, "concentration": 50}, {"chamber": 1, "startMs": 1000, "endMs": 2000, "concentration": 50}],
        "boosters": []},
      "flows": [{"aroma": "a1", "startMs": 0, "endMs": 2000, "concentration": 50}],
      "boosters": []
    },
    {
      "name": "inner_and_outer_project_to_separate_lanes",
      "aromas": [],
      "layout": {"device": "aroma-shooter-3", "chamberCount": 1,
        "chambers": [],
        "flows": [],
        "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 2000, "intensity": 50}, {"chamber": 1, "booster": "outer", "startMs": 500, "endMs": 1500, "intensity": 30}]},
      "flows": [],
      "boosters": [{"booster": "inner", "startMs": 0, "endMs": 2000, "intensity": 50}, {"booster": "outer", "startMs": 500, "endMs": 1500, "intensity": 30}]
    },
    {
      "name": "fading_booster_passes_through",
      "aromas": [],
      "layout": {"device": "aroma-shooter-3", "chamberCount": 1,
        "chambers": [],
        "flows": [],
        "boosters": [{"chamber": 1, "booster": "outer", "startMs": 1000, "endMs": 4000, "intensity": 30, "fadeInMs": 500, "fadeOutMs": 1000}]},
      "flows": [],
      "boosters": [{"booster": "outer", "startMs": 1000, "endMs": 4000, "intensity": 30, "fadeInMs": 500, "fadeOutMs": 1000}]
    },
    {
      "name": "fade_joint_merges_keeping_outer_fades",
      "aromas": [],
      "layout": {"device": "aroma-shooter-3", "chamberCount": 1,
        "chambers": [],
        "flows": [],
        "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 300}, {"chamber": 1, "booster": "inner", "startMs": 1000, "endMs": 2000, "intensity": 50, "fadeOutMs": 400}]},
      "flows": [],
      "boosters": [{"booster": "inner", "startMs": 0, "endMs": 2000, "intensity": 50, "fadeInMs": 300, "fadeOutMs": 400}]
    },
    {
      "name": "fade_at_joint_stays_split",
      "aromas": [],
      "layout": {"device": "aroma-shooter-3", "chamberCount": 1,
        "chambers": [],
        "flows": [],
        "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeOutMs": 200}, {"chamber": 1, "booster": "inner", "startMs": 1000, "endMs": 2000, "intensity": 50}]},
      "flows": [],
      "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeOutMs": 200}, {"booster": "inner", "startMs": 1000, "endMs": 2000, "intensity": 50}]
    },
    {
      "name": "fade_curves_pass_through",
      "aromas": [],
      "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [], "boosters": [{"chamber": 1, "booster": "outer", "startMs": 1000, "endMs": 4000, "intensity": 30, "fadeInMs": 500, "fadeOutMs": 1000, "fadeInCurve": "ease-in", "fadeOutCurve": "ease-in-out"}]},
      "flows": [],
      "boosters": [{"booster": "outer", "startMs": 1000, "endMs": 4000, "intensity": 30, "fadeInMs": 500, "fadeOutMs": 1000, "fadeInCurve": "ease-in", "fadeOutCurve": "ease-in-out"}]
    }
  ],
  "envelope": [
    {
      "name": "no_fade_is_flat",
      "booster": {"booster": "inner", "startMs": 1000, "endMs": 4000, "intensity": 30},
      "samples": [[1000, 30], [2500, 30], [3999, 30]]
    },
    {
      "name": "fade_in_is_linear_floor",
      "booster": {"booster": "inner", "startMs": 1000, "endMs": 4000, "intensity": 30, "fadeInMs": 500},
      "samples": [[1000, 0], [1250, 15], [1499, 29], [1500, 30]]
    },
    {
      "name": "fade_out_is_linear_floor",
      "booster": {"booster": "inner", "startMs": 1000, "endMs": 4000, "intensity": 30, "fadeOutMs": 1000},
      "samples": [[3000, 30], [3500, 15], [3999, 0]]
    },
    {
      "name": "fades_filling_the_whole_span",
      "booster": {"booster": "outer", "startMs": 0, "endMs": 1000, "intensity": 100, "fadeInMs": 400, "fadeOutMs": 600},
      "samples": [[0, 0], [200, 50], [399, 99], [400, 100], [700, 50], [999, 0]]
    },
    {
      "name": "outside_span_is_zero",
      "booster": {"booster": "inner", "startMs": 1000, "endMs": 4000, "intensity": 30, "fadeInMs": 500},
      "samples": [[999, 0], [4000, 0], [0, 0]]
    },
    {
      "name": "fade_in_ease_in",
      "booster": {"booster": "inner", "startMs": 0, "endMs": 2000, "intensity": 100, "fadeInMs": 1000, "fadeInCurve": "ease-in"},
      "samples": [[0, 0], [250, 6], [500, 25], [750, 56], [1000, 100], [1500, 100], [1999, 100]]
    },
    {
      "name": "fade_in_ease_out",
      "booster": {"booster": "inner", "startMs": 0, "endMs": 2000, "intensity": 100, "fadeInMs": 1000, "fadeInCurve": "ease-out"},
      "samples": [[0, 0], [250, 43], [500, 75], [750, 93], [1000, 100], [1500, 100], [1999, 100]]
    },
    {
      "name": "fade_in_ease_in_out",
      "booster": {"booster": "inner", "startMs": 0, "endMs": 2000, "intensity": 100, "fadeInMs": 1000, "fadeInCurve": "ease-in-out"},
      "samples": [[0, 0], [250, 15], [500, 50], [750, 84], [1000, 100], [1500, 100], [1999, 100]]
    },
    {
      "name": "fade_out_ease_out_is_symmetric",
      "booster": {"booster": "outer", "startMs": 0, "endMs": 2000, "intensity": 100, "fadeOutMs": 1000, "fadeOutCurve": "ease-out"},
      "samples": [[0, 100], [500, 100], [1000, 100], [1250, 93], [1500, 75], [1750, 43], [1999, 0]]
    },
    {
      "name": "unknown_higher_minor_curve_reads_linear",
      "booster": {"booster": "inner", "startMs": 0, "endMs": 2000, "intensity": 100, "fadeInMs": 1000, "fadeInCurve": "wobble"},
      "samples": [[0, 0], [250, 25], [500, 50], [750, 75], [1000, 100], [1500, 100], [1999, 100]]
    }
  ],
  "validation": [
    {
      "name": "spec_example_is_valid",
      "document": {
        "asmf": "1.0",
        "meta": {"title": "Morning walk in the forest", "author": "mina", "createdAt": "2026-11-05T09:00:00Z", "tool": "Example Editor 1.0"},
        "media": {"durationMs": 252000},
        "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40", "name": {"en": "Pine", "zh-Hant": "松"}},{"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}],
        "flows": [{"aroma": "a1", "startMs": 1200, "endMs": 3400, "concentration": 80}, {"aroma": "a2", "startMs": 2000, "endMs": 4000, "concentration": 100}],
        "boosters": [{"booster": "outer", "startMs": 1000, "endMs": 4000, "intensity": 30, "fadeInMs": 500, "fadeOutMs": 1000}, {"booster": "inner", "startMs": 1200, "endMs": 2000, "intensity": 50}],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 2,
          "chambers": [{"chamber": 1, "aroma": "a1"}, {"chamber": 2, "aroma": "a2"}],
          "flows": [{"chamber": 1, "startMs": 1200, "endMs": 3400, "concentration": 80}, {"chamber": 2, "startMs": 2000, "endMs": 4000, "concentration": 100}],
          "boosters": [{"chamber": 1, "booster": "outer", "startMs": 1000, "endMs": 4000, "intensity": 30, "fadeInMs": 500, "fadeOutMs": 1000}, {"chamber": 1, "booster": "inner", "startMs": 1200, "endMs": 2000, "intensity": 50}]}
      },
      "expected": []
    },
    {
      "name": "empty_document_is_valid",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": []},
      "expected": []
    },
    {
      "name": "start_negative",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": -1, "endMs": 100, "concentration": 50}], "boosters": []},
      "expected": [{"path": "flows[0].startMs", "code": "OUT_OF_RANGE"}]
    },
    {
      "name": "end_not_after_start",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 500, "endMs": 500, "concentration": 50}], "boosters": []},
      "expected": [{"path": "flows[0].endMs", "code": "OUT_OF_RANGE"}]
    },
    {
      "name": "end_after_duration",
      "document": {"asmf": "1.0", "media": {"durationMs": 1000}, "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 0, "endMs": 1001, "concentration": 50}], "boosters": []},
      "expected": [{"path": "flows[0].endMs", "code": "OUT_OF_RANGE"}]
    },
    {
      "name": "ms_above_u32_is_out_of_range",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}],
        "flows": [
          {"aroma": "a1", "startMs": 0, "endMs": 4294967295, "concentration": 50},
          {"aroma": "a2", "startMs": 0, "endMs": 4294967296, "concentration": 50},
          {"aroma": "a1", "startMs": 4294967296, "endMs": 99999999999, "concentration": 50}],
        "boosters": []},
      "expected": [{"path": "flows[1].endMs", "code": "OUT_OF_RANGE"}, {"path": "flows[2].startMs", "code": "OUT_OF_RANGE"}, {"path": "flows[2].endMs", "code": "OUT_OF_RANGE"}]
    },
    {
      "name": "concentration_zero_and_101",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}],
        "flows": [{"aroma": "a1", "startMs": 0, "endMs": 100, "concentration": 0}, {"aroma": "a2", "startMs": 0, "endMs": 100, "concentration": 101}], "boosters": []},
      "expected": [{"path": "flows[0].concentration", "code": "OUT_OF_RANGE"}, {"path": "flows[1].concentration", "code": "OUT_OF_RANGE"}]
    },
    {
      "name": "intensity_zero_and_101",
      "document": {"asmf": "1.0", "aromas": [], "flows": [],
        "boosters": [{"booster": "inner", "startMs": 0, "endMs": 100, "intensity": 0}, {"booster": "outer", "startMs": 0, "endMs": 100, "intensity": 101}]},
      "expected": [{"path": "boosters[0].intensity", "code": "OUT_OF_RANGE"}, {"path": "boosters[1].intensity", "code": "OUT_OF_RANGE"}]
    },
    {
      "name": "duration_zero",
      "document": {"asmf": "1.0", "media": {"durationMs": 0}, "aromas": [], "flows": [], "boosters": []},
      "expected": [{"path": "media.durationMs", "code": "OUT_OF_RANGE"}]
    },
    {
      "name": "overlap_same_aroma",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": [{"aroma": "a1", "startMs": 0, "endMs": 1000, "concentration": 50}, {"aroma": "a1", "startMs": 500, "endMs": 1500, "concentration": 60}], "boosters": []},
      "expected": [{"path": "flows[1].startMs", "code": "OVERLAP"}]
    },
    {
      "name": "overlap_equal_start_reports_later_array_item",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": [{"aroma": "a1", "startMs": 0, "endMs": 200, "concentration": 50}, {"aroma": "a1", "startMs": 0, "endMs": 100, "concentration": 60}], "boosters": []},
      "expected": [{"path": "flows[1].startMs", "code": "OVERLAP"}]
    },
    {
      "name": "overlap_different_aromas_ok",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}],
        "flows": [{"aroma": "a1", "startMs": 0, "endMs": 1000, "concentration": 50}, {"aroma": "a2", "startMs": 500, "endMs": 1500, "concentration": 50}], "boosters": []},
      "expected": []
    },
    {
      "name": "touching_same_level_not_merged",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": [{"aroma": "a1", "startMs": 0, "endMs": 1000, "concentration": 50}, {"aroma": "a1", "startMs": 1000, "endMs": 2000, "concentration": 50}], "boosters": []},
      "expected": [{"path": "flows[1].startMs", "code": "NOT_MERGED"}]
    },
    {
      "name": "touching_different_level_ok",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": [{"aroma": "a1", "startMs": 0, "endMs": 1000, "concentration": 50}, {"aroma": "a1", "startMs": 1000, "endMs": 2000, "concentration": 51}], "boosters": []},
      "expected": []
    },
    {
      "name": "boosters_overlap_same_booster",
      "document": {"asmf": "1.0", "aromas": [], "flows": [],
        "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}, {"booster": "inner", "startMs": 500, "endMs": 1500, "intensity": 60}]},
      "expected": [{"path": "boosters[1].startMs", "code": "OVERLAP"}]
    },
    {
      "name": "inner_and_outer_overlap_ok",
      "document": {"asmf": "1.0", "aromas": [], "flows": [],
        "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}, {"booster": "outer", "startMs": 500, "endMs": 1500, "intensity": 60}]},
      "expected": []
    },
    {
      "name": "boosters_tie_order_inner_first",
      "document": {"asmf": "1.0", "aromas": [], "flows": [],
        "boosters": [{"booster": "outer", "startMs": 0, "endMs": 1000, "intensity": 50}, {"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}]},
      "expected": [{"path": "boosters[1]", "code": "NOT_SORTED"}]
    },
    {
      "name": "booster_unknown_name_invalid",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [{"booster": "middle", "startMs": 0, "endMs": 100, "intensity": 50}]},
      "expected": [{"path": "boosters[0].booster", "code": "INVALID_VALUE"}]
    },
    {
      "name": "booster_unknown_name_higher_minor_skipped",
      "document": {"asmf": "1.7", "aromas": [], "flows": [],
        "boosters": [
          {"booster": "inner", "startMs": 500, "endMs": 1000, "intensity": 50},
          {"booster": "middle", "startMs": 0, "endMs": 300, "intensity": 999},
          {"booster": "middle", "startMs": 100, "endMs": 400, "intensity": 50}]},
      "expected": []
    },
    {
      "name": "fade_negative",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": -1}]},
      "expected": [{"path": "boosters[0].fadeInMs", "code": "OUT_OF_RANGE"}]
    },
    {
      "name": "fade_too_long",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 600, "fadeOutMs": 600}]},
      "expected": [{"path": "boosters[0]", "code": "FADE_TOO_LONG"}]
    },
    {
      "name": "fade_sum_equals_length_ok",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 400, "fadeOutMs": 600}]},
      "expected": []
    },
    {
      "name": "fade_sum_overflow_is_too_long",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 9223372036854775807, "fadeOutMs": 9223372036854775807}]},
      "expected": [{"path": "boosters[0]", "code": "FADE_TOO_LONG"}]
    },
    {
      "name": "touching_same_intensity_fade_at_joint_ok",
      "document": {"asmf": "1.0", "aromas": [], "flows": [],
        "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeOutMs": 200}, {"booster": "inner", "startMs": 1000, "endMs": 2000, "intensity": 50, "fadeInMs": 200}]},
      "expected": []
    },
    {
      "name": "touching_same_intensity_no_fade_at_joint_not_merged",
      "document": {"asmf": "1.0", "aromas": [], "flows": [],
        "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 100}, {"booster": "inner", "startMs": 1000, "endMs": 2000, "intensity": 50, "fadeOutMs": 100}]},
      "expected": [{"path": "boosters[1].startMs", "code": "NOT_MERGED"}]
    },
    {
      "name": "flows_not_sorted",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}],
        "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 2000, "concentration": 50}, {"aroma": "a2", "startMs": 0, "endMs": 500, "concentration": 50}], "boosters": []},
      "expected": [{"path": "flows[1]", "code": "NOT_SORTED"}]
    },
    {
      "name": "flows_tie_order_follows_aromas",
      "document": {"asmf": "1.0", "aromas": [{"key": "b", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}, {"key": "a", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": [{"aroma": "b", "startMs": 0, "endMs": 500, "concentration": 50}, {"aroma": "a", "startMs": 0, "endMs": 500, "concentration": 50}], "boosters": []},
      "expected": []
    },
    {
      "name": "flows_tie_order_against_aromas",
      "document": {"asmf": "1.0", "aromas": [{"key": "b", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}, {"key": "a", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": [{"aroma": "a", "startMs": 0, "endMs": 500, "concentration": 50}, {"aroma": "b", "startMs": 0, "endMs": 500, "concentration": 50}], "boosters": []},
      "expected": [{"path": "flows[1]", "code": "NOT_SORTED"}]
    },
    {
      "name": "boosters_not_sorted",
      "document": {"asmf": "1.0", "aromas": [], "flows": [],
        "boosters": [{"booster": "inner", "startMs": 1000, "endMs": 2000, "intensity": 50}, {"booster": "inner", "startMs": 0, "endMs": 500, "intensity": 50}]},
      "expected": [{"path": "boosters[1]", "code": "NOT_SORTED"}]
    },
    {
      "name": "unknown_key_in_flow",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "zz", "startMs": 0, "endMs": 100, "concentration": 50}], "boosters": []},
      "expected": [{"path": "flows[0].aroma", "code": "UNKNOWN_KEY"}]
    },
    {
      "name": "duplicate_key",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a1", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}], "flows": [], "boosters": []},
      "expected": [{"path": "aromas[1].key", "code": "DUPLICATE_KEY"}]
    },
    {
      "name": "duplicate_aroma_id_case_insensitive",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "3F2B8C1E-9A47-4D0B-8E6F-1C5A7B9D2E40"}], "flows": [], "boosters": []},
      "expected": [{"path": "aromas[1].id", "code": "DUPLICATE_AROMA"}]
    },
    {
      "name": "unused_aroma_ok",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [], "boosters": []},
      "expected": []
    },
    {
      "name": "invalid_uuid",
      "document": {"asmf": "1.0", "flows": [], "boosters": [], "aromas": [
        {"key": "k0", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e4"},
        {"key": "k1", "id": "3f2b8c1e_9a47-4d0b-8e6f-1c5a7b9d2e40"},
        {"key": "k2", "id": "zf2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"},
        {"key": "k3", "id": "{3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40}"}]},
      "expected": [{"path": "aromas[0].id", "code": "INVALID_VALUE"}, {"path": "aromas[1].id", "code": "INVALID_VALUE"}, {"path": "aromas[2].id", "code": "INVALID_VALUE"}, {"path": "aromas[3].id", "code": "INVALID_VALUE"}]
    },
    {
      "name": "nil_uuid_invalid",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "00000000-0000-0000-0000-000000000000"}], "flows": [], "boosters": []},
      "expected": [{"path": "aromas[0].id", "code": "INVALID_VALUE"}]
    },
    {
      "name": "uppercase_uuid_ok",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3F2B8C1E-9A47-4D0B-8E6F-1C5A7B9D2E40"}], "flows": [], "boosters": []},
      "expected": []
    },
    {
      "name": "non_ascii_identifiers_are_invalid",
      "document": {"asmf": "1.0", "flows": [], "boosters": [], "aromas": [
        {"key": "ａ1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"},
        {"key": "b1", "id": "３f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e4０"}]},
      "expected": [{"path": "aromas[0].key", "code": "INVALID_VALUE"}, {"path": "aromas[1].id", "code": "INVALID_VALUE"}]
    },
    {
      "name": "key_too_long",
      "document": {"asmf": "1.0", "flows": [], "boosters": [], "aromas": [
        {"key": "abcdefghijklmnopq", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"},
        {"key": "", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"},
        {"key": "Up", "id": "11111111-2222-4333-8444-555555555555"}]},
      "expected": [{"path": "aromas[0].key", "code": "INVALID_VALUE"}, {"path": "aromas[1].key", "code": "INVALID_VALUE"}, {"path": "aromas[2].key", "code": "INVALID_VALUE"}]
    },
    {
      "name": "meta_too_long",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [],
        "meta": {"title": {"repeat": "a", "count": 201}, "author": {"repeat": "松", "count": 200}}},
      "expected": [{"path": "meta.title", "code": "INVALID_VALUE"}]
    },
    {
      "name": "meta_bad_created_at",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [], "meta": {"createdAt": "2026-13-05T09:00:00Z"}},
      "expected": [{"path": "meta.createdAt", "code": "INVALID_VALUE"}]
    },
    {
      "name": "meta_created_at_forms_ok",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [], "meta": {"createdAt": "2026-11-05T09:00:00.123+09:00", "language": "ko-KR"}},
      "expected": []
    },
    {
      "name": "name_bad_language_tag",
      "document": {"asmf": "1.0", "flows": [], "boosters": [], "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40", "name": {"en": "Pine", "english_us": "Pine"}}]},
      "expected": [{"path": "aromas[0].name.english_us", "code": "INVALID_VALUE"}]
    },
    {
      "name": "too_many_aromas",
      "document": {"asmf": "1.0", "aromas": {"list": "aromas", "count": 65}, "flows": [], "boosters": []},
      "expected": [{"path": "aromas", "code": "TOO_MANY"}]
    },
    {
      "name": "too_many_spans",
      "document": {"asmf": "1.0", "media": {"durationMs": 0}, "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": {"list": "flows", "count": 10001, "item": {"aroma": "a1", "startMs": 0, "endMs": 5, "concentration": 50}, "stepMs": 10}, "boosters": []},
      "expected": [{"path": "flows", "code": "TOO_MANY"}]
    },
    {
      "name": "layout_ok",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": [{"aroma": "a1", "startMs": 0, "endMs": 500, "concentration": 50}, {"aroma": "a1", "startMs": 500, "endMs": 1500, "concentration": 80}],
        "boosters": [{"booster": "inner", "startMs": 0, "endMs": 2000, "intensity": 50}],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 2,
          "chambers": [{"chamber": 1, "aroma": "a1"}, {"chamber": 2, "aroma": "a1"}],
          "flows": [{"chamber": 1, "startMs": 0, "endMs": 1000, "concentration": 50}, {"chamber": 2, "startMs": 500, "endMs": 1500, "concentration": 80}],
          "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}, {"chamber": 2, "booster": "inner", "startMs": 1000, "endMs": 2000, "intensity": 50}]}},
      "expected": []
    },
    {
      "name": "layout_duplicate_chamber",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 2, "chambers": [{"chamber": 1, "aroma": "a1"}, {"chamber": 1, "aroma": "a2"}], "flows": [], "boosters": []}},
      "expected": [{"path": "layout.chambers[1].chamber", "code": "DUPLICATE_CHAMBER"}]
    },
    {
      "name": "layout_unknown_key",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [{"chamber": 1, "aroma": "zz"}], "flows": [], "boosters": []}},
      "expected": [{"path": "layout.chambers[0].aroma", "code": "UNKNOWN_KEY"}]
    },
    {
      "name": "layout_flow_unmapped_chamber",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 2, "chambers": [{"chamber": 1, "aroma": "a1"}],
          "flows": [{"chamber": 2, "startMs": 0, "endMs": 100, "concentration": 50}], "boosters": []}},
      "expected": [{"path": "layout.flows[0].chamber", "code": "UNMAPPED_CHAMBER"}]
    },
    {
      "name": "layout_chamber_above_chamber_count",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 2, "chambers": [{"chamber": 3, "aroma": "a1"}],
          "flows": [{"chamber": 3, "startMs": 0, "endMs": 100, "concentration": 50}], "boosters": []}},
      "expected": [{"path": "layout.chambers[0].chamber", "code": "OUT_OF_RANGE"}, {"path": "layout.flows[0].chamber", "code": "OUT_OF_RANGE"}]
    },
    {
      "name": "layout_flows_overlap_same_chamber",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [{"chamber": 1, "aroma": "a1"}],
          "flows": [{"chamber": 1, "startMs": 0, "endMs": 1000, "concentration": 50}, {"chamber": 1, "startMs": 500, "endMs": 1500, "concentration": 60}], "boosters": []}},
      "expected": [{"path": "layout.flows[1].startMs", "code": "OVERLAP"}]
    },
    {
      "name": "layout_touching_same_level_ok",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": [{"aroma": "a1", "startMs": 0, "endMs": 2000, "concentration": 50}], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [{"chamber": 1, "aroma": "a1"}],
          "flows": [{"chamber": 1, "startMs": 0, "endMs": 1000, "concentration": 50}, {"chamber": 1, "startMs": 1000, "endMs": 2000, "concentration": 50}], "boosters": []}},
      "expected": []
    },
    {
      "name": "layout_not_sorted",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 2,
          "chambers": [{"chamber": 2, "aroma": "a2"}, {"chamber": 1, "aroma": "a1"}],
          "flows": [{"chamber": 2, "startMs": 0, "endMs": 100, "concentration": 50}, {"chamber": 1, "startMs": 0, "endMs": 100, "concentration": 50}],
          "boosters": [{"chamber": 2, "booster": "inner", "startMs": 0, "endMs": 100, "intensity": 50}, {"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 100, "intensity": 50}]}},
      "expected": [{"path": "layout.chambers[1]", "code": "NOT_SORTED"}, {"path": "layout.flows[1]", "code": "NOT_SORTED"}, {"path": "layout.boosters[1]", "code": "NOT_SORTED"}]
    },
    {
      "name": "layout_too_many",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [{"chamber": 1, "aroma": "a1"}],
          "flows": {"list": "layout.flows", "count": 5001, "item": {"chamber": 1, "startMs": 0, "endMs": 5, "concentration": 50}, "stepMs": 10}, "boosters": []}},
      "expected": [{"path": "layout.flows", "code": "TOO_MANY"}]
    },
    {
      "name": "layout_mismatch_flows",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": [{"aroma": "a1", "startMs": 0, "endMs": 1000, "concentration": 60}], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [{"chamber": 1, "aroma": "a1"}],
          "flows": [{"chamber": 1, "startMs": 0, "endMs": 1000, "concentration": 50}], "boosters": []}},
      "expected": [{"path": "layout", "code": "LAYOUT_MISMATCH"}]
    },
    {
      "name": "layout_mismatch_boosters",
      "document": {"asmf": "1.0", "aromas": [], "flows": [],
        "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 40}],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [],
          "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}]}},
      "expected": [{"path": "layout", "code": "LAYOUT_MISMATCH"}]
    },
    {
      "name": "layout_mismatch_fade",
      "document": {"asmf": "1.0", "aromas": [], "flows": [],
        "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [],
          "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200}]}},
      "expected": [{"path": "layout", "code": "LAYOUT_MISMATCH"}]
    },
    {
      "name": "layout_fade_overlaps_other_chamber",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 2, "chambers": [], "flows": [],
          "boosters": [
            {"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200},
            {"chamber": 2, "booster": "inner", "startMs": 500, "endMs": 1500, "intensity": 50}]}},
      "expected": [{"path": "layout.boosters[1].startMs", "code": "OVERLAP"}]
    },
    {
      "name": "layout_fade_overlap_reports_later_array_item",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 2, "chambers": [], "flows": [],
          "boosters": [
            {"chamber": 1, "booster": "inner", "startMs": 500, "endMs": 1500, "intensity": 50, "fadeInMs": 200},
            {"chamber": 2, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}]}},
      "expected": [{"path": "layout.boosters[1].startMs", "code": "OVERLAP"}]
    },
    {
      "name": "layout_inner_and_outer_same_chamber_ok",
      "document": {"asmf": "1.0", "aromas": [], "flows": [],
        "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200}, {"booster": "outer", "startMs": 0, "endMs": 1000, "intensity": 30, "fadeOutMs": 200}],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [],
          "boosters": [
            {"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200},
            {"chamber": 1, "booster": "outer", "startMs": 0, "endMs": 1000, "intensity": 30, "fadeOutMs": 200}]}},
      "expected": []
    },
    {
      "name": "layout_fade_too_long",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [],
          "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 600, "fadeOutMs": 600}]}},
      "expected": [{"path": "layout.boosters[0]", "code": "FADE_TOO_LONG"}]
    },
    {
      "name": "layout_edge_cases",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": [{"aroma": "a1", "startMs": 0, "endMs": 1000, "concentration": 50}], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [],
          "flows": [{"chamber": 1, "startMs": 0, "endMs": 1000, "concentration": 50}], "boosters": []}},
      "expected": [{"path": "layout.flows[0].chamber", "code": "UNMAPPED_CHAMBER"}]
    },
    {
      "name": "unknown_device_layout_skipped",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [],
        "layout": {"device": "other-device", "chamberCount": 99, "chambers": "garbage"}},
      "expected": []
    },
    {
      "name": "layout_mismatch_not_computed_when_aromas_invalid",
      "document": {"asmf": "1.0", "aromas": [{"key": "BAD", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": [{"aroma": "BAD", "startMs": 0, "endMs": 1000, "concentration": 50}], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [{"chamber": 1, "aroma": "BAD"}],
          "flows": [{"chamber": 1, "startMs": 0, "endMs": 1000, "concentration": 50}], "boosters": []}},
      "expected": [{"path": "aromas[0].key", "code": "INVALID_VALUE"}]
    },
    {
      "name": "chamber_count_zero_and_seven_zero",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 0, "chambers": [{"chamber": 6, "aroma": "a1"}, {"chamber": 7, "aroma": "a1"}], "flows": [],
          "boosters": [{"chamber": 7, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}]}},
      "expected": [{"path": "layout.chamberCount", "code": "OUT_OF_RANGE"}, {"path": "layout.chambers[1].chamber", "code": "OUT_OF_RANGE"}, {"path": "layout.boosters[0].chamber", "code": "OUT_OF_RANGE"}]
    },
    {
      "name": "chamber_count_zero_and_seven_seven",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 7, "chambers": [{"chamber": 6, "aroma": "a1"}, {"chamber": 7, "aroma": "a1"}], "flows": [],
          "boosters": [{"chamber": 7, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}]}},
      "expected": [{"path": "layout.chamberCount", "code": "OUT_OF_RANGE"}, {"path": "layout.chambers[1].chamber", "code": "OUT_OF_RANGE"}, {"path": "layout.boosters[0].chamber", "code": "OUT_OF_RANGE"}]
    },
    {
      "name": "layout_unknown_booster_name_invalid",
      "document": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [],
          "boosters": [{"chamber": 9, "booster": "side", "startMs": 0, "endMs": 1000, "intensity": 50}]}},
      "expected": [{"path": "layout.boosters[0].chamber", "code": "OUT_OF_RANGE"}, {"path": "layout.boosters[0].booster", "code": "INVALID_VALUE"}]
    },
    {
      "name": "layout_mismatch_when_order_differs",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}],
        "flows": [{"aroma": "a2", "startMs": 0, "endMs": 100, "concentration": 50}, {"aroma": "a1", "startMs": 0, "endMs": 100, "concentration": 50}], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 2, "chambers": [{"chamber": 1, "aroma": "a1"}, {"chamber": 2, "aroma": "a2"}],
          "flows": [{"chamber": 1, "startMs": 0, "endMs": 100, "concentration": 50}, {"chamber": 2, "startMs": 0, "endMs": 100, "concentration": 50}], "boosters": []}},
      "expected": [{"path": "flows[1]", "code": "NOT_SORTED"}, {"path": "layout", "code": "LAYOUT_MISMATCH"}]
    },
    {
      "name": "layout_unknown_booster_name_higher_minor_skipped",
      "document": {"asmf": "1.7", "aromas": [], "flows": [],
        "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [],
          "boosters": [{"chamber": 9, "booster": "side", "startMs": 0, "endMs": 1000, "intensity": 999},
                       {"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}]}},
      "expected": []
    },
    {
      "name": "unknown_booster_name_still_range_checked",
      "document": {"asmf": "1.0", "aromas": [], "flows": [],
        "boosters": [
          {"booster": "inner", "startMs": 500, "endMs": 1000, "intensity": 50},
          {"booster": "side", "startMs": 0, "endMs": 100, "intensity": 0, "fadeInMs": 60, "fadeOutMs": 60},
          {"booster": "side", "startMs": 50, "endMs": 150, "intensity": 50}]},
      "expected": [{"path": "boosters[1].booster", "code": "INVALID_VALUE"}, {"path": "boosters[1].intensity", "code": "OUT_OF_RANGE"}, {"path": "boosters[1]", "code": "FADE_TOO_LONG"}, {"path": "boosters[2].booster", "code": "INVALID_VALUE"}]
    },
    {
      "name": "unknown_booster_names_count_toward_too_many",
      "document": {"asmf": "1.7", "aromas": [], "flows": [],
        "boosters": {"list": "boosters", "count": 10001, "item": {"booster": "side", "startMs": 0, "endMs": 5, "intensity": 50}, "stepMs": 10},
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [],
          "boosters": {"list": "layout.boosters", "count": 5001, "item": {"chamber": 1, "booster": "side", "startMs": 0, "endMs": 5, "intensity": 50}, "stepMs": 10}}},
      "expected": [{"path": "flows", "code": "TOO_MANY"}, {"path": "layout.flows", "code": "TOO_MANY"}]
    },
    {
      "name": "unknown_top_level_booster_excluded_from_layout_mismatch",
      "document": {"asmf": "1.2", "aromas": [], "flows": [],
        "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}, {"booster": "side", "startMs": 0, "endMs": 1000, "intensity": 70}],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [],
          "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}]}},
      "expected": []
    },
    {
      "name": "several_violations_on_one_item_are_ordered",
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}],
        "flows": [
          {"aroma": "zz", "startMs": 0, "endMs": 1000, "concentration": 50},
          {"aroma": "a1", "startMs": 600, "endMs": 700, "concentration": 50},
          {"aroma": "zz", "startMs": 500, "endMs": 4294967296, "concentration": 101}],
        "boosters": [
          {"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50},
          {"booster": "outer", "startMs": 600, "endMs": 700, "intensity": 50},
          {"booster": "inner", "startMs": 500, "endMs": 4294967296, "intensity": 0, "fadeInMs": -1, "fadeOutMs": 9223372036854775807}]},
      "expected": [
        {"path": "flows[0].aroma", "code": "UNKNOWN_KEY"},
        {"path": "flows[2].aroma", "code": "UNKNOWN_KEY"},
        {"path": "flows[2].endMs", "code": "OUT_OF_RANGE"},
        {"path": "flows[2].concentration", "code": "OUT_OF_RANGE"},
        {"path": "flows[2].startMs", "code": "OVERLAP"},
        {"path": "flows[2]", "code": "NOT_SORTED"},
        {"path": "boosters[2].endMs", "code": "OUT_OF_RANGE"},
        {"path": "boosters[2].intensity", "code": "OUT_OF_RANGE"},
        {"path": "boosters[2].fadeInMs", "code": "OUT_OF_RANGE"},
        {"path": "boosters[2]", "code": "FADE_TOO_LONG"},
        {"path": "boosters[2].startMs", "code": "OVERLAP"},
        {"path": "boosters[2]", "code": "NOT_SORTED"}]
    },
    {
      "name": "name_violations_in_the_order_written",
      "document": "{\"asmf\": \"1.0\", \"aromas\": [{\"key\": \"a1\", \"id\": \"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\", \"name\": {\"zz_bad\": \"x\", \"en\": \"Pine\", \"e\": \"y\"}}], \"flows\": [], \"boosters\": []}",
      "expected": [{"path": "aromas[0].name.zz_bad", "code": "INVALID_VALUE"}, {"path": "aromas[0].name.e", "code": "INVALID_VALUE"}]
    },
    {
      "name": "unknown_fade_curve_is_invalid",
      "document": {"asmf": "1.1", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200, "fadeInCurve": "bouncy"}]},
      "expected": [{"path": "boosters[0].fadeInCurve", "code": "INVALID_VALUE"}]
    },
    {
      "name": "unknown_fade_curve_of_a_higher_minor_is_tolerated",
      "document": {"asmf": "1.2", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200, "fadeInCurve": "bouncy"}]},
      "expected": []
    },
    {
      "name": "fade_curves_are_checked_after_fade_too_long",
      "document": {"asmf": "1.1", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 600, "fadeOutMs": 600, "fadeInCurve": "bouncy", "fadeOutCurve": "Linear"}]},
      "expected": [{"path": "boosters[0]", "code": "FADE_TOO_LONG"}, {"path": "boosters[0].fadeInCurve", "code": "INVALID_VALUE"}, {"path": "boosters[0].fadeOutCurve", "code": "INVALID_VALUE"}]
    },
    {
      "name": "layout_unknown_fade_curve_is_invalid",
      "document": {"asmf": "1.1", "aromas": [], "flows": [], "boosters": [], "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [], "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeOutMs": 300, "fadeOutCurve": "snap"}]}},
      "expected": [{"path": "layout.boosters[0].fadeOutCurve", "code": "INVALID_VALUE"}]
    },
    {
      "name": "layout_mismatch_fade_curve",
      "document": {"asmf": "1.1", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200, "fadeInCurve": "ease-in"}], "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [], "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200}]}},
      "expected": [{"path": "layout", "code": "LAYOUT_MISMATCH"}]
    },
    {
      "name": "curve_beside_no_fade_is_no_layout_mismatch",
      "document": {"asmf": "1.1", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInCurve": "ease-in"}], "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [], "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50}]}},
      "expected": []
    },
    {
      "name": "unknown_curve_of_a_higher_minor_is_no_layout_mismatch",
      "document": {"asmf": "1.2", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200, "fadeInCurve": "bouncy"}], "layout": {"device": "aroma-shooter-3", "chamberCount": 1, "chambers": [], "flows": [], "boosters": [{"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200, "fadeInCurve": "bouncy"}]}},
      "expected": []
    }
  ],
  "advisories": [
    {
      "name": "no_inner_span_is_automatic",
      "minInnerIntensity": 50,
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 3000, "concentration": 50}], "boosters": []},
      "expected": []
    },
    {
      "name": "flow_covered_by_strong_inner_ok",
      "minInnerIntensity": 50,
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 3000, "concentration": 50}], "boosters": [{"booster": "inner", "startMs": 500, "endMs": 3500, "intensity": 60}]},
      "expected": []
    },
    {
      "name": "inner_below_minimum",
      "minInnerIntensity": 50,
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 3000, "concentration": 50}], "boosters": [{"booster": "inner", "startMs": 500, "endMs": 3500, "intensity": 30}]},
      "expected": [{"path": "flows[0]", "code": "WEAK_INNER_BOOSTER"}]
    },
    {
      "name": "inner_exactly_minimum_ok",
      "minInnerIntensity": 50,
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 3000, "concentration": 50}], "boosters": [{"booster": "inner", "startMs": 500, "endMs": 3500, "intensity": 50}]},
      "expected": []
    },
    {
      "name": "inner_gap_in_the_middle_of_flow",
      "minInnerIntensity": 50,
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 3000, "concentration": 50}],
        "boosters": [{"booster": "inner", "startMs": 500, "endMs": 1800, "intensity": 60}, {"booster": "inner", "startMs": 2200, "endMs": 3500, "intensity": 60}]},
      "expected": [{"path": "flows[0]", "code": "WEAK_INNER_BOOSTER"}]
    },
    {
      "name": "inner_ends_before_flow_ends",
      "minInnerIntensity": 50,
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 3000, "concentration": 50}], "boosters": [{"booster": "inner", "startMs": 500, "endMs": 2900, "intensity": 60}]},
      "expected": [{"path": "flows[0]", "code": "WEAK_INNER_BOOSTER"}]
    },
    {
      "name": "inner_fade_inside_flow",
      "minInnerIntensity": 50,
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 3000, "concentration": 50}], "boosters": [{"booster": "inner", "startMs": 500, "endMs": 3500, "intensity": 60, "fadeInMs": 1000}]},
      "expected": [{"path": "flows[0]", "code": "WEAK_INNER_BOOSTER"}]
    },
    {
      "name": "inner_fade_before_flow_ok",
      "minInnerIntensity": 50,
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 3000, "concentration": 50}], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 3500, "intensity": 60, "fadeInMs": 500, "fadeOutMs": 500}]},
      "expected": []
    },
    {
      "name": "outer_only_leaves_inner_automatic",
      "minInnerIntensity": 50,
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 3000, "concentration": 50}], "boosters": [{"booster": "outer", "startMs": 500, "endMs": 3500, "intensity": 90}]},
      "expected": []
    },
    {
      "name": "inner_span_elsewhere_takes_the_lane",
      "minInnerIntensity": 50,
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 3000, "concentration": 50}], "boosters": [{"booster": "inner", "startMs": 5000, "endMs": 6000, "intensity": 60}]},
      "expected": [{"path": "flows[0]", "code": "WEAK_INNER_BOOSTER"}]
    },
    {
      "name": "two_flows_one_weak",
      "minInnerIntensity": 50,
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}],
        "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 2000, "concentration": 50}, {"aroma": "a2", "startMs": 3000, "endMs": 4000, "concentration": 50}],
        "boosters": [{"booster": "inner", "startMs": 500, "endMs": 2500, "intensity": 60}]},
      "expected": [{"path": "flows[1]", "code": "WEAK_INNER_BOOSTER"}]
    },
    {
      "name": "min_inner_intensity_zero_never_advises",
      "minInnerIntensity": 0,
      "document": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 1000, "endMs": 3000, "concentration": 50}], "boosters": [{"booster": "inner", "startMs": 500, "endMs": 3500, "intensity": 10}]},
      "expected": []
    }
  ],
  "automaticInner": [
    {
      "name": "one_span",
      "level": 100,
      "spans": [[1000, 3000]],
      "expected": [{"booster": "inner", "startMs": 1000, "endMs": 3000, "intensity": 100}]
    },
    {
      "name": "the_level_is_the_devices",
      "level": 50,
      "spans": [[0, 100]],
      "expected": [{"booster": "inner", "startMs": 0, "endMs": 100, "intensity": 50}]
    },
    {
      "name": "overlapping_spans_join",
      "level": 100,
      "spans": [[1000, 3000], [2500, 4000]],
      "expected": [{"booster": "inner", "startMs": 1000, "endMs": 4000, "intensity": 100}]
    },
    {
      "name": "touching_spans_join",
      "level": 100,
      "spans": [[1000, 2000], [2000, 3000]],
      "expected": [{"booster": "inner", "startMs": 1000, "endMs": 3000, "intensity": 100}]
    },
    {
      "name": "contained_span_adds_nothing",
      "level": 100,
      "spans": [[1000, 5000], [2000, 3000]],
      "expected": [{"booster": "inner", "startMs": 1000, "endMs": 5000, "intensity": 100}]
    },
    {
      "name": "a_gap_stays_off",
      "level": 100,
      "spans": [[1000, 2000], [2500, 3000]],
      "expected": [{"booster": "inner", "startMs": 1000, "endMs": 2000, "intensity": 100}, {"booster": "inner", "startMs": 2500, "endMs": 3000, "intensity": 100}]
    },
    {
      "name": "any_input_order",
      "level": 100,
      "spans": [[5000, 6000], [1000, 2000], [1500, 2500]],
      "expected": [{"booster": "inner", "startMs": 1000, "endMs": 2500, "intensity": 100}, {"booster": "inner", "startMs": 5000, "endMs": 6000, "intensity": 100}]
    },
    {
      "name": "no_spans_no_booster",
      "level": 100,
      "spans": [],
      "expected": []
    }
  ],
  "canonical": [
    {
      "name": "key_names_do_not_matter",
      "a": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}], "flows": [{"aroma": "a2", "startMs": 0, "endMs": 100, "concentration": 50}], "boosters": []},
      "b": {"asmf": "1.0", "aromas": [{"key": "pine", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "rose", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}], "flows": [{"aroma": "rose", "startMs": 0, "endMs": 100, "concentration": 50}], "boosters": []},
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"},{\"key\":\"a2\",\"id\":\"b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13\"}],\"flows\":[{\"aroma\":\"a2\",\"startMs\":0,\"endMs\":100,\"concentration\":50}],\"boosters\":[]}"
    },
    {
      "name": "aromas_order_does_not_matter",
      "a": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}], "flows": [{"aroma": "a1", "startMs": 0, "endMs": 100, "concentration": 50}, {"aroma": "a2", "startMs": 100, "endMs": 200, "concentration": 60}], "boosters": []},
      "b": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}, {"key": "a2", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a2", "startMs": 0, "endMs": 100, "concentration": 50}, {"aroma": "a1", "startMs": 100, "endMs": 200, "concentration": 60}], "boosters": []},
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"},{\"key\":\"a2\",\"id\":\"b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13\"}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":0,\"endMs\":100,\"concentration\":50},{\"aroma\":\"a2\",\"startMs\":100,\"endMs\":200,\"concentration\":60}],\"boosters\":[]}"
    },
    {
      "name": "id_comparison_is_ascii_only",
      "a": {"asmf": "1.0", "aromas": [{"key": "p", "id": "é2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "q", "id": "É2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "p", "startMs": 0, "endMs": 100, "concentration": 10}, {"aroma": "q", "startMs": 100, "endMs": 200, "concentration": 20}], "boosters": []},
      "b": {"asmf": "1.0", "aromas": [{"key": "q", "id": "É2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "p", "id": "é2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "p", "startMs": 0, "endMs": 100, "concentration": 10}, {"aroma": "q", "startMs": 100, "endMs": 200, "concentration": 20}], "boosters": []},
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"É2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"},{\"key\":\"a2\",\"id\":\"é2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[{\"aroma\":\"a2\",\"startMs\":0,\"endMs\":100,\"concentration\":10},{\"aroma\":\"a1\",\"startMs\":100,\"endMs\":200,\"concentration\":20}],\"boosters\":[]}"
    },
    {
      "name": "ids_are_lowercased",
      "a": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3F2B8C1E-9A47-4D0B-8E6F-1C5A7B9D2E40"}], "flows": [], "boosters": []},
      "b": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [], "boosters": []},
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[],\"boosters\":[]}"
    },
    {
      "name": "x_fields_removed",
      "a": {"asmf": "1.0", "x-note": 1, "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40", "x-tag": "t"}], "flows": [{"aroma": "a1", "startMs": 0, "endMs": 100, "concentration": 50, "x-c": [1, 2]}], "boosters": []},
      "b": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 0, "endMs": 100, "concentration": 50}], "boosters": []},
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":0,\"endMs\":100,\"concentration\":50}],\"boosters\":[]}"
    },
    {
      "name": "higher_minor_unknown_fields_removed",
      "a": {"asmf": "1.7", "future": {"k": 1}, "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40", "colour": "red"}], "flows": [{"aroma": "a1", "startMs": 0, "endMs": 100, "concentration": 50, "glow": 3}], "boosters": []},
      "b": {"asmf": "1.7", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 0, "endMs": 100, "concentration": 50}], "boosters": []},
      "canonical": "{\"asmf\":\"1.7\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":0,\"endMs\":100,\"concentration\":50}],\"boosters\":[]}"
    },
    {
      "name": "name_languages_sorted",
      "a": "{\"asmf\": \"1.0\", \"aromas\": [{\"key\": \"a1\", \"id\": \"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\", \"name\": {\"zh-Hant\": \"松\", \"fr\": \"Pin\", \"en\": \"Pine\"}}], \"flows\": [], \"boosters\": []}",
      "b": "{\"asmf\": \"1.0\", \"aromas\": [{\"key\": \"a1\", \"id\": \"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\", \"name\": {\"fr\": \"Pin\", \"zh-Hant\": \"松\", \"en\": \"Pine\"}}], \"flows\": [], \"boosters\": []}",
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\",\"name\":{\"en\":\"Pine\",\"fr\":\"Pin\",\"zh-Hant\":\"松\"}}],\"flows\":[],\"boosters\":[]}"
    },
    {
      "name": "layout_arrays_sorted",
      "a": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}, {"key": "a2", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 2,
          "chambers": [{"chamber": 2, "aroma": "a2"}, {"chamber": 1, "aroma": "a1"}],
          "flows": [{"chamber": 2, "startMs": 0, "endMs": 100, "concentration": 50}, {"chamber": 1, "startMs": 200, "endMs": 300, "concentration": 60}, {"chamber": 1, "startMs": 0, "endMs": 100, "concentration": 70}],
          "boosters": [{"chamber": 1, "booster": "outer", "startMs": 0, "endMs": 100, "intensity": 30}, {"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 100, "intensity": 50}, {"chamber": 2, "booster": "inner", "startMs": 0, "endMs": 100, "intensity": 50}]}},
      "b": {"asmf": "1.0", "aromas": [{"key": "a1", "id": "b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13"}, {"key": "a2", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [], "boosters": [],
        "layout": {"device": "aroma-shooter-3", "chamberCount": 2,
          "chambers": [{"chamber": 1, "aroma": "a2"}, {"chamber": 2, "aroma": "a1"}],
          "flows": [{"chamber": 1, "startMs": 200, "endMs": 300, "concentration": 60}, {"chamber": 2, "startMs": 0, "endMs": 100, "concentration": 50}, {"chamber": 1, "startMs": 0, "endMs": 100, "concentration": 70}],
          "boosters": [{"chamber": 2, "booster": "inner", "startMs": 0, "endMs": 100, "intensity": 50}, {"chamber": 1, "booster": "outer", "startMs": 0, "endMs": 100, "intensity": 30}, {"chamber": 1, "booster": "inner", "startMs": 0, "endMs": 100, "intensity": 50}]}},
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"},{\"key\":\"a2\",\"id\":\"b81d4e2a-07c3-4f5e-9d16-4a2c6e8f0b13\"}],\"flows\":[],\"boosters\":[],\"layout\":{\"device\":\"aroma-shooter-3\",\"chamberCount\":2,\"chambers\":[{\"chamber\":1,\"aroma\":\"a1\"},{\"chamber\":2,\"aroma\":\"a2\"}],\"flows\":[{\"chamber\":1,\"startMs\":0,\"endMs\":100,\"concentration\":70},{\"chamber\":1,\"startMs\":200,\"endMs\":300,\"concentration\":60},{\"chamber\":2,\"startMs\":0,\"endMs\":100,\"concentration\":50}],\"boosters\":[{\"chamber\":1,\"booster\":\"inner\",\"startMs\":0,\"endMs\":100,\"intensity\":50},{\"chamber\":1,\"booster\":\"outer\",\"startMs\":0,\"endMs\":100,\"intensity\":30},{\"chamber\":2,\"booster\":\"inner\",\"startMs\":0,\"endMs\":100,\"intensity\":50}]}}"
    },
    {
      "name": "optional_fields_omitted",
      "a": {"asmf": "1.0", "meta": {"title": "T", "language": "ko"}, "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [], "boosters": []},
      "b": {"asmf": "1.0", "meta": {"language": "ko", "title": "T"}, "aromas": [{"key": "a1", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [], "boosters": []},
      "canonical": "{\"asmf\":\"1.0\",\"meta\":{\"title\":\"T\",\"language\":\"ko\"},\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[],\"boosters\":[]}"
    },
    {
      "name": "zero_fades_omitted",
      "a": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 100, "intensity": 50, "fadeInMs": 0, "fadeOutMs": 0}, {"booster": "outer", "startMs": 0, "endMs": 100, "intensity": 30, "fadeInMs": 0, "fadeOutMs": 20}]},
      "b": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 100, "intensity": 50}, {"booster": "outer", "startMs": 0, "endMs": 100, "intensity": 30, "fadeOutMs": 20}]},
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[],\"flows\":[],\"boosters\":[{\"booster\":\"inner\",\"startMs\":0,\"endMs\":100,\"intensity\":50},{\"booster\":\"outer\",\"startMs\":0,\"endMs\":100,\"intensity\":30,\"fadeOutMs\":20}]}"
    },
    {
      "name": "boosters_sorted_inner_first",
      "a": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [{"booster": "outer", "startMs": 0, "endMs": 100, "intensity": 30}, {"booster": "inner", "startMs": 50, "endMs": 150, "intensity": 60}, {"booster": "inner", "startMs": 0, "endMs": 100, "intensity": 50}]},
      "b": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 100, "intensity": 50}, {"booster": "inner", "startMs": 50, "endMs": 150, "intensity": 60}, {"booster": "outer", "startMs": 0, "endMs": 100, "intensity": 30}]},
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[],\"flows\":[],\"boosters\":[{\"booster\":\"inner\",\"startMs\":0,\"endMs\":100,\"intensity\":50},{\"booster\":\"outer\",\"startMs\":0,\"endMs\":100,\"intensity\":30},{\"booster\":\"inner\",\"startMs\":50,\"endMs\":150,\"intensity\":60}]}"
    },
    {
      "name": "empty_meta_equals_absent",
      "a": {"asmf": "1.0", "meta": {}, "media": {}, "aromas": [], "flows": [], "boosters": []},
      "b": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": []},
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[],\"flows\":[],\"boosters\":[]}"
    },
    {
      "name": "unknown_device_layout_is_omitted",
      "a": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [], "layout": {"device": "future-shooter-12", "chamberCount": 12, "grid": [[1, 2], [3, 4]]}},
      "b": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": []},
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[],\"flows\":[],\"boosters\":[]}"
    },
    {
      "name": "dangling_reference_becomes_empty",
      "a": {"asmf": "1.0", "aromas": [{"key": "x", "id": "3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40"}], "flows": [{"aroma": "a1", "startMs": 0, "endMs": 100, "concentration": 50}, {"aroma": "x", "startMs": 0, "endMs": 100, "concentration": 60}], "boosters": []},
      "b": {"asmf": "1.0", "aromas": [{"key": "y", "id": "3F2B8C1E-9A47-4D0B-8E6F-1C5A7B9D2E40"}], "flows": [{"aroma": "y", "startMs": 0, "endMs": 100, "concentration": 60}, {"aroma": "zz", "startMs": 0, "endMs": 100, "concentration": 50}], "boosters": []},
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\"}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":0,\"endMs\":100,\"concentration\":60},{\"aroma\":\"\",\"startMs\":0,\"endMs\":100,\"concentration\":50}],\"boosters\":[]}"
    },
    {
      "name": "full_document_member_order",
      "a": "{\"layout\":{\"boosters\":[{\"fadeOutMs\":300,\"fadeInMs\":200,\"intensity\":60,\"endMs\":3000,\"startMs\":800,\"booster\":\"inner\",\"chamber\":1}],\"flows\":[{\"concentration\":80,\"endMs\":3000,\"startMs\":1000,\"chamber\":1}],\"chambers\":[{\"aroma\":\"pine\",\"chamber\":1}],\"chamberCount\":1,\"device\":\"aroma-shooter-3\"},\"boosters\":[{\"fadeOutMs\":300,\"fadeInMs\":200,\"intensity\":60,\"endMs\":3000,\"startMs\":800,\"booster\":\"inner\"}],\"flows\":[{\"concentration\":80,\"endMs\":3000,\"startMs\":1000,\"aroma\":\"pine\"}],\"aromas\":[{\"name\":{\"fr\":\"Pin\",\"en\":\"Pine\"},\"id\":\"3F2B8C1E-9A47-4D0B-8E6F-1C5A7B9D2E40\",\"key\":\"pine\"}],\"media\":{\"durationMs\":5000},\"meta\":{\"license\":\"CC-BY-4.0\",\"language\":\"en\",\"tool\":\"Example Editor 1.0\",\"createdAt\":\"2026-11-05T09:00:00Z\",\"author\":\"mina\",\"title\":\"Forest\"},\"asmf\":\"1.0\"}",
      "b": "{\"asmf\":\"1.0\",\"meta\":{\"title\":\"Forest\",\"author\":\"mina\",\"createdAt\":\"2026-11-05T09:00:00Z\",\"tool\":\"Example Editor 1.0\",\"language\":\"en\",\"license\":\"CC-BY-4.0\"},\"media\":{\"durationMs\":5000},\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\",\"name\":{\"en\":\"Pine\",\"fr\":\"Pin\"}}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":1000,\"endMs\":3000,\"concentration\":80}],\"boosters\":[{\"booster\":\"inner\",\"startMs\":800,\"endMs\":3000,\"intensity\":60,\"fadeInMs\":200,\"fadeOutMs\":300}],\"layout\":{\"device\":\"aroma-shooter-3\",\"chamberCount\":1,\"chambers\":[{\"chamber\":1,\"aroma\":\"a1\"}],\"flows\":[{\"chamber\":1,\"startMs\":1000,\"endMs\":3000,\"concentration\":80}],\"boosters\":[{\"chamber\":1,\"booster\":\"inner\",\"startMs\":800,\"endMs\":3000,\"intensity\":60,\"fadeInMs\":200,\"fadeOutMs\":300}]}}",
      "canonical": "{\"asmf\":\"1.0\",\"meta\":{\"title\":\"Forest\",\"author\":\"mina\",\"createdAt\":\"2026-11-05T09:00:00Z\",\"tool\":\"Example Editor 1.0\",\"language\":\"en\",\"license\":\"CC-BY-4.0\"},\"media\":{\"durationMs\":5000},\"aromas\":[{\"key\":\"a1\",\"id\":\"3f2b8c1e-9a47-4d0b-8e6f-1c5a7b9d2e40\",\"name\":{\"en\":\"Pine\",\"fr\":\"Pin\"}}],\"flows\":[{\"aroma\":\"a1\",\"startMs\":1000,\"endMs\":3000,\"concentration\":80}],\"boosters\":[{\"booster\":\"inner\",\"startMs\":800,\"endMs\":3000,\"intensity\":60,\"fadeInMs\":200,\"fadeOutMs\":300}],\"layout\":{\"device\":\"aroma-shooter-3\",\"chamberCount\":1,\"chambers\":[{\"chamber\":1,\"aroma\":\"a1\"}],\"flows\":[{\"chamber\":1,\"startMs\":1000,\"endMs\":3000,\"concentration\":80}],\"boosters\":[{\"chamber\":1,\"booster\":\"inner\",\"startMs\":800,\"endMs\":3000,\"intensity\":60,\"fadeInMs\":200,\"fadeOutMs\":300}]}}"
    },
    {
      "name": "strings_are_escaped_minimally",
      "a": {"asmf": "1.0", "meta": {"title": "q\"b\\c\u001fd\be\ff\ng\th\ri/j\u007fké𝄞"}, "aromas": [], "flows": [], "boosters": []},
      "b": "{\"asmf\":\"1.0\",\"meta\":{\"title\":\"q\\u0022b\\u005Cc\\u001Fd\\u0008e\\u000cf\\u000Ag\\u0009h\\u000Di\\/j\\u007Fk\\u00E9\\uD834\\uDD1E\"},\"aromas\":[],\"flows\":[],\"boosters\":[]}",
      "canonical": "{\"asmf\":\"1.0\",\"meta\":{\"title\":\"q\\\"b\\\\c\\u001fd\\be\\ff\\ng\\th\\ri/j\u007fké𝄞\"},\"aromas\":[],\"flows\":[],\"boosters\":[]}"
    },
    {
      "name": "other_booster_names_sort_after_outer",
      "a": {"asmf": "1.1", "aromas": [], "flows": [], "boosters": [{"booster": "side", "startMs": 0, "endMs": 100, "intensity": 50}, {"booster": "outer", "startMs": 0, "endMs": 100, "intensity": 30}, {"booster": "aside", "startMs": 0, "endMs": 100, "intensity": 20}, {"booster": "inner", "startMs": 0, "endMs": 100, "intensity": 40}]},
      "b": {"asmf": "1.1", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 100, "intensity": 40}, {"booster": "aside", "startMs": 0, "endMs": 100, "intensity": 20}, {"booster": "side", "startMs": 0, "endMs": 100, "intensity": 50}, {"booster": "outer", "startMs": 0, "endMs": 100, "intensity": 30}]},
      "canonical": "{\"asmf\":\"1.1\",\"aromas\":[],\"flows\":[],\"boosters\":[{\"booster\":\"inner\",\"startMs\":0,\"endMs\":100,\"intensity\":40},{\"booster\":\"outer\",\"startMs\":0,\"endMs\":100,\"intensity\":30},{\"booster\":\"aside\",\"startMs\":0,\"endMs\":100,\"intensity\":20},{\"booster\":\"side\",\"startMs\":0,\"endMs\":100,\"intensity\":50}]}"
    },
    {
      "name": "fade_curve_raises_the_minor",
      "a": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [{"fadeInCurve": "ease-out", "booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200}]},
      "b": {"asmf": "1.1", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200, "fadeInCurve": "ease-out"}]},
      "canonical": "{\"asmf\":\"1.1\",\"aromas\":[],\"flows\":[],\"boosters\":[{\"booster\":\"inner\",\"startMs\":0,\"endMs\":1000,\"intensity\":50,\"fadeInMs\":200,\"fadeInCurve\":\"ease-out\"}]}"
    },
    {
      "name": "linear_and_fadeless_curves_are_left_out",
      "a": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200, "fadeInCurve": "linear", "fadeOutCurve": "ease-in"}]},
      "b": {"asmf": "1.0", "aromas": [], "flows": [], "boosters": [{"booster": "inner", "startMs": 0, "endMs": 1000, "intensity": 50, "fadeInMs": 200}]},
      "canonical": "{\"asmf\":\"1.0\",\"aromas\":[],\"flows\":[],\"boosters\":[{\"booster\":\"inner\",\"startMs\":0,\"endMs\":1000,\"intensity\":50,\"fadeInMs\":200}]}"
    }
  ]
}
