{
  "kairosLang": "1.1.1",
  "implSha": "2d2a10d25591",
  "cases": [
    {
      "id": "doctest/design/40-examples/03-astronomical.md#01",
      "layer": "doctest",
      "origin": "design/40-examples/03-astronomical.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01\npremise MeanMoon {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  # 平均朔望月による朔の近似。錨は既知の朔（2000-01-06T18:14 UTC ＝ JST 翌 03:14）\n  meanNewMoons = everyInstant |> strideBy(708h44m3s, from: 2000-01-07T03:14)\n}\npremise J { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@J\nMeanMoon.meanNewMoons |> snapTo(day)\n#=> 2026-01-18 2026-02-17 2026-03-19 2026-04-17 2026-05-17 2026-06-15\n#=> 2026-07-15 2026-08-13 2026-09-12 2026-10-11 2026-11-10 2026-12-09\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768662000000,
              1771254000000,
              1773846000000,
              1776351600000,
              1778943600000,
              1781449200000,
              1784041200000,
              1786546800000,
              1789138800000,
              1791644400000,
              1794236400000,
              1796742000000
            ],
            "dates": [
              "2026-01-18",
              "2026-02-17",
              "2026-03-19",
              "2026-04-17",
              "2026-05-17",
              "2026-06-15",
              "2026-07-15",
              "2026-08-13",
              "2026-09-12",
              "2026-10-11",
              "2026-11-10",
              "2026-12-09"
            ],
            "annotations": [],
            "uid": "kairos-ce8404591fdf-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/05-astronomical-calendars.md#01",
      "layer": "doctest",
      "origin": "design/40-examples/05-astronomical-calendars.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-01-07\npremise Astro = Gregorian with {\n  tz: \"Asia/Tokyo\"\n  source: \"synthetic-ephemeris\"      # 実運用は暦・天文台の告示（地点依存＝出所に地点を含める）\n  sunrises = [2026-01-01T06:51, 2026-01-02T06:51, 2026-01-03T06:51,\n              2026-01-04T06:51, 2026-01-05T06:51, 2026-01-06T06:51]\n  tithiB   = [2026-01-01T03:00, 2026-01-02T01:00, 2026-01-02T22:30, 2026-01-03T19:00,\n              2026-01-04T14:30, 2026-01-05T09:00, 2026-01-06T02:30]\n  tithiW   = sunrises |> segmentBy(tithiB, edges: drop, empties: keep,\n                                   labels: [1, 2, 3, 4, 5, 6, 7])\n}\npremise Panchanga { calendar-system: Astro; tz: \"Asia/Tokyo\"; wkst: Mon }\n@Panchanga\n# 「ティティ 3 の日」＝その市民日の日の出がティティ窓 3 に入る日\nsunrises |> within(day) |> first |> filter(s => tithiW(s) == 3) |> snapTo(day)\n#=> 2026-01-03\n#~> 範囲外 2026-01-01..2026-01-02（Astro.sunrises covering 2026-01-01T06:51..2026-01-06T06:51）\n#~> 範囲外 2026-01-06..2026-01-07（Astro.sunrises covering 2026-01-01T06:51..2026-01-06T06:51）\n#~> 範囲外 2026-01-06..2026-01-07（Astro.tithiB covering 2026-01-01T03:00..2026-01-06T02:30）\n",
      "from": "2026-01-01",
      "to": "2026-01-07",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767366000000
            ],
            "dates": [
              "2026-01-03"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1767279600000,
                "source": "Astro.sunrises",
                "covering": "2026-01-01T06:51..2026-01-06T06:51"
              },
              {
                "fromMs": 1767625200000,
                "toMs": 1767711600000,
                "source": "Astro.sunrises",
                "covering": "2026-01-01T06:51..2026-01-06T06:51"
              },
              {
                "fromMs": 1767625200000,
                "toMs": 1767711600000,
                "source": "Astro.tithiB",
                "covering": "2026-01-01T03:00..2026-01-06T02:30"
              }
            ],
            "labels": [
              "3"
            ],
            "uid": "kairos-a9c77b80b5ac-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Astro.sunrises",
            "covering": "2026-01-01T06:51..2026-01-06T06:51",
            "concluded": false,
            "runwayDays": -1
          },
          {
            "source": "Astro.tithiB",
            "covering": "2026-01-01T03:00..2026-01-06T02:30",
            "concluded": false,
            "runwayDays": -1
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/05-astronomical-calendars.md#02",
      "layer": "doctest",
      "origin": "design/40-examples/05-astronomical-calendars.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-01-07\npremise Astro = Gregorian with {\n  tz: \"Asia/Tokyo\"\n  source: \"synthetic-ephemeris\"\n  sunrises = [2026-01-01T06:51, 2026-01-02T06:51, 2026-01-03T06:51,\n              2026-01-04T06:51, 2026-01-05T06:51, 2026-01-06T06:51]\n  tithiB   = [2026-01-01T03:00, 2026-01-02T01:00, 2026-01-02T22:30, 2026-01-03T19:00,\n              2026-01-04T14:30, 2026-01-05T09:00, 2026-01-06T02:30]\n  tithiW   = sunrises |> segmentBy(tithiB, edges: drop, empties: keep,\n                                   labels: [1, 2, 3, 4, 5, 6, 7])\n}\npremise Panchanga { calendar-system: Astro; tz: \"Asia/Tokyo\"; wkst: Mon }\n@Panchanga\nsunrises |> within(day) |> first |> filter(s => tithiW(s) == 6) |> snapTo(day)\n#~> 範囲外 2026-01-01..2026-01-02（Astro.sunrises covering 2026-01-01T06:51..2026-01-06T06:51）\n#~> 範囲外 2026-01-06..2026-01-07（Astro.sunrises covering 2026-01-01T06:51..2026-01-06T06:51）\n#~> 範囲外 2026-01-06..2026-01-07（Astro.tithiB covering 2026-01-01T03:00..2026-01-06T02:30）\n",
      "from": "2026-01-01",
      "to": "2026-01-07",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [],
            "dates": [],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1767279600000,
                "source": "Astro.sunrises",
                "covering": "2026-01-01T06:51..2026-01-06T06:51"
              },
              {
                "fromMs": 1767625200000,
                "toMs": 1767711600000,
                "source": "Astro.sunrises",
                "covering": "2026-01-01T06:51..2026-01-06T06:51"
              },
              {
                "fromMs": 1767625200000,
                "toMs": 1767711600000,
                "source": "Astro.tithiB",
                "covering": "2026-01-01T03:00..2026-01-06T02:30"
              }
            ],
            "labels": [],
            "uid": "kairos-f877dbc1533a-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Astro.sunrises",
            "covering": "2026-01-01T06:51..2026-01-06T06:51",
            "concluded": false,
            "runwayDays": -1
          },
          {
            "source": "Astro.tithiB",
            "covering": "2026-01-01T03:00..2026-01-06T02:30",
            "concluded": false,
            "runwayDays": -1
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/06-business-hours.md#01",
      "layer": "doctest",
      "origin": "design/40-examples/06-business-hours.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-03-06..2026-03-10 tz: America/New_York\npremise HourG = Gregorian with { hour = chronos grid 1h }\npremise NY { calendar-system: HourG; tz: \"America/New_York\"; wkst: Mon }\n@NY\neveryDay |> shift(+9, unit: hour)\n#=> 2026-03-06T09:00 2026-03-07T09:00 2026-03-08T10:00 2026-03-09T09:00\n",
      "from": "2026-03-06",
      "to": "2026-03-10",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1772805600000,
              1772892000000,
              1772978400000,
              1773061200000
            ],
            "dates": [
              "2026-03-06T09:00",
              "2026-03-07T09:00",
              "2026-03-08T10:00",
              "2026-03-09T09:00"
            ],
            "annotations": [],
            "uid": "kairos-b1506af9c24c-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/06-business-hours.md#02",
      "layer": "doctest",
      "origin": "design/40-examples/06-business-hours.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-03-06..2026-03-10 tz: America/New_York\npremise NY {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Mon\n  nineTick = everyInstant |> strideBy(1d, from: 2026-01-01T09:00)\n}\n@NY\nnineTick\n#=> 2026-03-06T09:00 2026-03-07T09:00 2026-03-08T09:00 2026-03-09T09:00\n",
      "from": "2026-03-06",
      "to": "2026-03-10",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1772805600000,
              1772892000000,
              1772974800000,
              1773061200000
            ],
            "dates": [
              "2026-03-06T09:00",
              "2026-03-07T09:00",
              "2026-03-08T09:00",
              "2026-03-09T09:00"
            ],
            "annotations": [],
            "uid": "kairos-fed7fabb68fe-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/06-business-hours.md#03",
      "layer": "doctest",
      "origin": "design/40-examples/06-business-hours.md 実行例 3",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-01-08\npremise Cal {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  satSunC  = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  holidays = [2026-01-01] covering: 2026..2026\n  nonWorking = satSunC | holidays\n}\npremise Biz {\n  calendar-system: Gregorian\n  calendar:        Cal\n  tz:              \"Asia/Tokyo\"\n  wkst:            Mon\n  nineTick = everyInstant |> strideBy(1d, from: 2026-01-01T09:00)\n}\n@Biz\nnineTick |> filter(t => coincides(bizDay, day, t))\n#=> 2026-01-02T09:00 2026-01-05T09:00 2026-01-06T09:00 2026-01-07T09:00\n",
      "from": "2026-01-01",
      "to": "2026-01-08",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767312000000,
              1767571200000,
              1767657600000,
              1767744000000
            ],
            "dates": [
              "2026-01-02T09:00",
              "2026-01-05T09:00",
              "2026-01-06T09:00",
              "2026-01-07T09:00"
            ],
            "annotations": [],
            "uid": "kairos-478fc38886e3-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Cal.holidays",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 358
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/06-business-hours.md#04",
      "layer": "doctest",
      "origin": "design/40-examples/06-business-hours.md 実行例 4",
      "command": "list",
      "source": "# eval: 2026-03-06..2026-03-10 tz: America/New_York\npremise NineG = Gregorian with {\n  nineWin  = chronos grid 1d anchor: 2026-01-01T09:00\n  nineTick = nineWin |> first\n}\npremise NY { calendar-system: NineG; tz: \"America/New_York\"; wkst: Mon }\n@NY\nnineTick\n#=> 2026-03-06T09:00 2026-03-07T09:00 2026-03-08T09:00 2026-03-09T09:00\n",
      "from": "2026-03-06",
      "to": "2026-03-10",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1772805600000,
              1772892000000,
              1772974800000,
              1773061200000
            ],
            "dates": [
              "2026-03-06T09:00",
              "2026-03-07T09:00",
              "2026-03-08T09:00",
              "2026-03-09T09:00"
            ],
            "annotations": [],
            "uid": "kairos-fed7fabb68fe-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/06-business-hours.md#05",
      "layer": "doctest",
      "origin": "design/40-examples/06-business-hours.md 実行例 5",
      "command": "list",
      "source": "# eval: 2026-01-05..2026-01-08\npremise HourG = Gregorian with {\n  hour      = chronos grid 1h\n  hourOfDay = t => ordinalIn(hour, day, t) - 1\n}\npremise Cal {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  satSunC  = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  holidays = [2026-01-01] covering: 2026..2026\n  nonWorking = satSunC | holidays\n}\npremise Biz {\n  calendar-system: HourG\n  calendar:        Cal\n  tz:              \"Asia/Tokyo\"\n  wkst:            Mon\n  hourly = everyInstant |> strideBy(1h, from: 2026-01-01)\n}\n@Biz\nhourly |> filter(t => coincides(bizDay, day, t) and hourOfDay(t) >= 9 and hourOfDay(t) < 12)\n#=> 2026-01-05T09:00 2026-01-05T10:00 2026-01-05T11:00\n#=> 2026-01-06T09:00 2026-01-06T10:00 2026-01-06T11:00\n#=> 2026-01-07T09:00 2026-01-07T10:00 2026-01-07T11:00\n",
      "from": "2026-01-05",
      "to": "2026-01-08",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767571200000,
              1767574800000,
              1767578400000,
              1767657600000,
              1767661200000,
              1767664800000,
              1767744000000,
              1767747600000,
              1767751200000
            ],
            "dates": [
              "2026-01-05T09:00",
              "2026-01-05T10:00",
              "2026-01-05T11:00",
              "2026-01-06T09:00",
              "2026-01-06T10:00",
              "2026-01-06T11:00",
              "2026-01-07T09:00",
              "2026-01-07T10:00",
              "2026-01-07T11:00"
            ],
            "annotations": [],
            "uid": "kairos-6ca6b3d2155d-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Cal.holidays",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 358
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/06-business-hours.md#06",
      "layer": "doctest",
      "origin": "design/40-examples/06-business-hours.md 実行例 6",
      "command": "list",
      "source": "# eval: 2026-01-05..2026-01-08\npremise TSEx {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"example\"\n  satSunC    = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  holidays   = [2026-01-01] covering: 2026..2026\n  nonWorking = satSunC | holidays\n  halfDayCloses = [2026-01-06T11:30] covering: 2026..2026\n}\npremise Biz {\n  calendar-system: Gregorian\n  calendar:        TSEx\n  tz:              \"Asia/Tokyo\"\n  wkst:            Mon\n  hourly    = everyInstant |> strideBy(1h, from: 2026-01-01)\n  openTick  = everyInstant |> strideBy(1d, from: 2026-01-01T09:00)\n  close17   = everyInstant |> strideBy(1d, from: 2026-01-01T17:00)\n  closeTick = (close17 |> filter(t => not coincides(TSEx.halfDayCloses, day, t))) | TSEx.halfDayCloses\n  band      = hourly |> segmentBy(openTick | closeTick, edges: clip, empties: error)\n}\n@Biz\nhourly |> filter(t => coincides(openTick, band, t) and coincides(bizDay, day, t))\n#=> 2026-01-05T09:00 2026-01-05T10:00 2026-01-05T11:00 2026-01-05T12:00\n#=> 2026-01-05T13:00 2026-01-05T14:00 2026-01-05T15:00 2026-01-05T16:00\n#=> 2026-01-06T09:00 2026-01-06T10:00 2026-01-06T11:00\n#=> 2026-01-07T09:00 2026-01-07T10:00 2026-01-07T11:00 2026-01-07T12:00\n#=> 2026-01-07T13:00 2026-01-07T14:00 2026-01-07T15:00 2026-01-07T16:00\n",
      "from": "2026-01-05",
      "to": "2026-01-08",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767571200000,
              1767574800000,
              1767578400000,
              1767582000000,
              1767585600000,
              1767589200000,
              1767592800000,
              1767596400000,
              1767657600000,
              1767661200000,
              1767664800000,
              1767744000000,
              1767747600000,
              1767751200000,
              1767754800000,
              1767758400000,
              1767762000000,
              1767765600000,
              1767769200000
            ],
            "dates": [
              "2026-01-05T09:00",
              "2026-01-05T10:00",
              "2026-01-05T11:00",
              "2026-01-05T12:00",
              "2026-01-05T13:00",
              "2026-01-05T14:00",
              "2026-01-05T15:00",
              "2026-01-05T16:00",
              "2026-01-06T09:00",
              "2026-01-06T10:00",
              "2026-01-06T11:00",
              "2026-01-07T09:00",
              "2026-01-07T10:00",
              "2026-01-07T11:00",
              "2026-01-07T12:00",
              "2026-01-07T13:00",
              "2026-01-07T14:00",
              "2026-01-07T15:00",
              "2026-01-07T16:00"
            ],
            "annotations": [],
            "uid": "kairos-7f6bedac2431-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "TSEx.halfDayCloses",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 358
          },
          {
            "source": "TSEx.holidays",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 358
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/06-business-hours.md#07",
      "layer": "doctest",
      "origin": "design/40-examples/06-business-hours.md 実行例 7",
      "command": "list",
      "source": "# eval: 2026-03-07..2026-03-09 tz: America/New_York\npremise NY {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Mon\n  hourly    = everyInstant |> strideBy(1h, from: 2026-01-01)\n  openTick  = everyInstant |> strideBy(1d, from: 2026-01-01T09:00)\n  closeTick = everyInstant |> strideBy(1d, from: 2026-01-01T17:00)\n  band      = hourly |> segmentBy(openTick | closeTick, edges: clip, empties: error)\n}\n@NY\nhourly |> filter(t => coincides(openTick, band, t))\n#=> 2026-03-07T09:00 2026-03-07T10:00 2026-03-07T11:00 2026-03-07T12:00\n#=> 2026-03-07T13:00 2026-03-07T14:00 2026-03-07T15:00 2026-03-07T16:00\n#=> 2026-03-08T09:00 2026-03-08T10:00 2026-03-08T11:00 2026-03-08T12:00\n#=> 2026-03-08T13:00 2026-03-08T14:00 2026-03-08T15:00 2026-03-08T16:00\n",
      "from": "2026-03-07",
      "to": "2026-03-09",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1772892000000,
              1772895600000,
              1772899200000,
              1772902800000,
              1772906400000,
              1772910000000,
              1772913600000,
              1772917200000,
              1772974800000,
              1772978400000,
              1772982000000,
              1772985600000,
              1772989200000,
              1772992800000,
              1772996400000,
              1773000000000
            ],
            "dates": [
              "2026-03-07T09:00",
              "2026-03-07T10:00",
              "2026-03-07T11:00",
              "2026-03-07T12:00",
              "2026-03-07T13:00",
              "2026-03-07T14:00",
              "2026-03-07T15:00",
              "2026-03-07T16:00",
              "2026-03-08T09:00",
              "2026-03-08T10:00",
              "2026-03-08T11:00",
              "2026-03-08T12:00",
              "2026-03-08T13:00",
              "2026-03-08T14:00",
              "2026-03-08T15:00",
              "2026-03-08T16:00"
            ],
            "annotations": [],
            "uid": "kairos-d448a8f464ae-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/06-business-hours.md#08",
      "layer": "doctest",
      "origin": "design/40-examples/06-business-hours.md 実行例 8",
      "command": "list",
      "source": "# eval: 2026-01-09..2026-01-13\npremise Cal {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  satSunC = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  nonWorking = satSunC\n}\npremise Biz {\n  calendar-system: Gregorian\n  calendar:        Cal\n  tz:              \"Asia/Tokyo\"\n  wkst:            Mon\n  hourly      = everyInstant |> strideBy(1h, from: 2026-01-01)\n  openTick    = everyInstant |> strideBy(1d, from: 2026-01-01T22:00)\n  closeTick   = everyInstant |> strideBy(1d, from: 2026-01-01T03:00)\n  band        = hourly |> segmentBy(openTick | closeTick, edges: clip, empties: error)\n  bizOpenTick = openTick |> filter(t => coincides(bizDay, day, t))\n}\n@Biz\nhourly |> filter(t => coincides(bizOpenTick, band, t))\n#=> 2026-01-09 2026-01-09T01:00 2026-01-09T02:00 2026-01-09T22:00 2026-01-09T23:00\n#=> 2026-01-10 2026-01-10T01:00 2026-01-10T02:00\n#=> 2026-01-12T22:00 2026-01-12T23:00\n",
      "from": "2026-01-09",
      "to": "2026-01-13",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767884400000,
              1767888000000,
              1767891600000,
              1767963600000,
              1767967200000,
              1767970800000,
              1767974400000,
              1767978000000,
              1768222800000,
              1768226400000
            ],
            "dates": [
              "2026-01-09",
              "2026-01-09T01:00",
              "2026-01-09T02:00",
              "2026-01-09T22:00",
              "2026-01-09T23:00",
              "2026-01-10",
              "2026-01-10T01:00",
              "2026-01-10T02:00",
              "2026-01-12T22:00",
              "2026-01-12T23:00"
            ],
            "annotations": [],
            "uid": "kairos-798fe58647be-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/07-injected-origin.md#01",
      "layer": "doctest",
      "origin": "design/40-examples/07-injected-origin.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-07-01..2026-08-01\n@JP\n[2026-07-09] covering: .. |> roll(Following, on: bizDay) |> shift(+3, unit: bizDay)\n#=> 2026-07-14\n",
      "from": "2026-07-01",
      "to": "2026-08-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1783954800000
            ],
            "dates": [
              "2026-07-14"
            ],
            "annotations": [],
            "uid": "kairos-c994ed1f4c08-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "(無名テーブル)",
            "covering": "..",
            "concluded": true,
            "runwayDays": null
          },
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 153
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/07-injected-origin.md#02",
      "layer": "doctest",
      "origin": "design/40-examples/07-injected-origin.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-07-01..2026-08-01\n@JP\n[2026-07-11] covering: .. |> roll(Following, on: bizDay) |> shift(+3, unit: bizDay)\n#=> 2026-07-16\n",
      "from": "2026-07-01",
      "to": "2026-08-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1784127600000
            ],
            "dates": [
              "2026-07-16"
            ],
            "annotations": [],
            "uid": "kairos-025fd2bff7ee-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "(無名テーブル)",
            "covering": "..",
            "concluded": true,
            "runwayDays": null
          },
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 153
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/07-injected-origin.md#03",
      "layer": "doctest",
      "origin": "design/40-examples/07-injected-origin.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-07-01..2026-08-01\n@JP\nlastCompleted = [2026-07-09T14:23] covering: ..\nlastCompleted |> snapTo(day) |> roll(Following, on: bizDay) |> shift(+3, unit: bizDay)\n#=> 2026-07-14\n",
      "from": "2026-07-01",
      "to": "2026-08-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1783954800000
            ],
            "dates": [
              "2026-07-14"
            ],
            "annotations": [],
            "uid": "kairos-0419ce0b3ddc-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "lastCompleted",
            "covering": "..",
            "concluded": true,
            "runwayDays": null
          },
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 153
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/07-injected-origin.md#04",
      "layer": "doctest",
      "origin": "design/40-examples/07-injected-origin.md 実行例 4",
      "command": "list",
      "source": "# eval: 2026-07-09..2026-07-10\npremise HourG = Gregorian with { hour = chronos grid 1h }\npremise T { calendar-system: HourG; tz: \"Asia/Tokyo\"; wkst: Mon }\n@T\n[2026-07-09T14:23] covering: .. |> shift(+5, unit: hour)\n#=> 2026-07-09T19:23\n",
      "from": "2026-07-09",
      "to": "2026-07-10",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1783592580000
            ],
            "dates": [
              "2026-07-09T19:23"
            ],
            "annotations": [],
            "uid": "kairos-f55abf668d36-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "(無名テーブル)",
            "covering": "..",
            "concluded": true,
            "runwayDays": null
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/08-backup-schedules.md#01",
      "layer": "doctest",
      "origin": "design/40-examples/08-backup-schedules.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-28..2026-02-11\npremise Ops { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon\n  sundays   = everyDay |> filter(d => weekday(d) == Sun)\n  fullDays  = month |> first\n  monthLast = month |> last\n  diffDays  = sundays \\ fullDays\n  incrDays  = everyDay \\ sundays \\ fullDays\n}\n@Ops\nfull = (everyInstant |> strideBy(1d, from: 2026-01-01T23:00)) |> filter(t => coincides(monthLast, day, t))\ndiff = (everyInstant |> strideBy(1d, from: 2026-01-01T00:30)) |> filter(t => coincides(diffDays, day, t))\nincr = (everyInstant |> strideBy(1d, from: 2026-01-01T01:00)) |> filter(t => coincides(incrDays, day, t))\nfull | diff | incr\n#=> 2026-01-28T01:00 2026-01-29T01:00 2026-01-30T01:00 2026-01-31T01:00\n#=> 2026-01-31T23:00 2026-02-02T01:00 2026-02-03T01:00 2026-02-04T01:00\n#=> 2026-02-05T01:00 2026-02-06T01:00 2026-02-07T01:00 2026-02-08T00:30\n#=> 2026-02-09T01:00 2026-02-10T01:00\n",
      "from": "2026-01-28",
      "to": "2026-02-11",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769529600000,
              1769616000000,
              1769702400000,
              1769788800000,
              1769868000000,
              1769961600000,
              1770048000000,
              1770134400000,
              1770220800000,
              1770307200000,
              1770393600000,
              1770478200000,
              1770566400000,
              1770652800000
            ],
            "dates": [
              "2026-01-28T01:00",
              "2026-01-29T01:00",
              "2026-01-30T01:00",
              "2026-01-31T01:00",
              "2026-01-31T23:00",
              "2026-02-02T01:00",
              "2026-02-03T01:00",
              "2026-02-04T01:00",
              "2026-02-05T01:00",
              "2026-02-06T01:00",
              "2026-02-07T01:00",
              "2026-02-08T00:30",
              "2026-02-09T01:00",
              "2026-02-10T01:00"
            ],
            "annotations": [],
            "uid": "kairos-1ce928b7ff8f-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/08-backup-schedules.md#02",
      "layer": "doctest",
      "origin": "design/40-examples/08-backup-schedules.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-02-26..2026-03-31\npremise Ops { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon\n  sundays  = everyDay |> filter(d => weekday(d) == Sun)\n  fullDays = month |> first\n  diffDays = sundays \\ fullDays\n  nthSun(d) = (dayNo(d) - 1) div 7 + 1\n  d1 = diffDays |> filter(d => nthSun(d) == 1)\n  d2 = diffDays |> filter(d => nthSun(d) == 2)\n  d3 = diffDays |> filter(d => nthSun(d) == 3)\n  d4 = diffDays |> filter(d => nthSun(d) == 4) |> shift(-1, unit: day)\n  d5 = diffDays |> filter(d => nthSun(d) == 5) |> shift(-1, unit: day)\n}\n@Ops\n((everyInstant |> strideBy(1d, from: 2026-01-01T01:00)) |> filter(t => coincides(d1, day, t)))\n  | ((everyInstant |> strideBy(1d, from: 2026-01-01T00:30)) |> filter(t => coincides(d2, day, t)))\n  | d3\n  | ((everyInstant |> strideBy(1d, from: 2026-01-01T23:30)) |> filter(t => coincides(d4, day, t)))\n  | ((everyInstant |> strideBy(1d, from: 2026-01-01T23:00)) |> filter(t => coincides(d5, day, t)))\n#=> 2026-03-08T00:30 2026-03-15 2026-03-21T23:30 2026-03-28T23:00\n",
      "from": "2026-02-26",
      "to": "2026-03-31",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1772897400000,
              1773500400000,
              1774103400000,
              1774706400000
            ],
            "dates": [
              "2026-03-08T00:30",
              "2026-03-15",
              "2026-03-21T23:30",
              "2026-03-28T23:00"
            ],
            "annotations": [],
            "uid": "kairos-42d9b49164d1-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/09-dst-widths.md#01",
      "layer": "doctest",
      "origin": "design/40-examples/09-dst-widths.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-03-06..2026-03-10 tz: America/New_York\npremise NY {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Mon\n}\n\n@NY\neveryInstant |> strideBy(1d, from: 2026-03-06T09:00)\n#=> 2026-03-06T09:00 2026-03-07T09:00 2026-03-08T09:00 2026-03-09T09:00\n",
      "from": "2026-03-06",
      "to": "2026-03-10",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1772805600000,
              1772892000000,
              1772974800000,
              1773061200000
            ],
            "dates": [
              "2026-03-06T09:00",
              "2026-03-07T09:00",
              "2026-03-08T09:00",
              "2026-03-09T09:00"
            ],
            "annotations": [],
            "uid": "kairos-62c33b9f65fd-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/09-dst-widths.md#02",
      "layer": "doctest",
      "origin": "design/40-examples/09-dst-widths.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-03-06..2026-03-10 tz: America/New_York\npremise NY {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Mon\n}\n\n@NY\neveryInstant |> strideBy(24h, from: 2026-03-06T09:00)\n#=> 2026-03-06T09:00 2026-03-07T09:00 2026-03-08T10:00 2026-03-09T10:00\n",
      "from": "2026-03-06",
      "to": "2026-03-10",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1772805600000,
              1772892000000,
              1772978400000,
              1773064800000
            ],
            "dates": [
              "2026-03-06T09:00",
              "2026-03-07T09:00",
              "2026-03-08T10:00",
              "2026-03-09T10:00"
            ],
            "annotations": [],
            "uid": "kairos-80c5d9d53225-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/09-dst-widths.md#03",
      "layer": "doctest",
      "origin": "design/40-examples/09-dst-widths.md 実行例 3",
      "command": "list",
      "source": "# eval: 2026-03-07..2026-03-10 tz: America/New_York\npremise NY {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Mon\n}\n\n@NY\neveryInstant |> strideBy(1d, from: 2026-03-07T02:30)\n#=> 2026-03-07T02:30 2026-03-08T03:00 2026-03-09T02:30\n",
      "from": "2026-03-07",
      "to": "2026-03-10",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1772868600000,
              1772953200000,
              1773037800000
            ],
            "dates": [
              "2026-03-07T02:30",
              "2026-03-08T03:00",
              "2026-03-09T02:30"
            ],
            "annotations": [],
            "uid": "kairos-1df97b44ac6e-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/09-dst-widths.md#04",
      "layer": "doctest",
      "origin": "design/40-examples/09-dst-widths.md 実行例 4",
      "command": "list",
      "source": "# eval: 2026-10-31..2026-11-03 tz: America/New_York\npremise NY {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Mon\n}\n\n@NY\neveryInstant |> strideBy(1d, from: 2026-10-31T01:30)\n#=> 2026-10-31T01:30 2026-11-01T01:30-04:00 2026-11-02T01:30\n",
      "from": "2026-10-31",
      "to": "2026-11-03",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1793424600000,
              1793511000000,
              1793601000000
            ],
            "dates": [
              "2026-10-31T01:30",
              "2026-11-01T01:30-04:00",
              "2026-11-02T01:30"
            ],
            "annotations": [],
            "uid": "kairos-ea68bed32003-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/10-alternative-calendars.md#01",
      "layer": "doctest",
      "origin": "design/40-examples/10-alternative-calendars.md 実行例 1",
      "command": "list",
      "source": "# eval: 2025-01-01..2027-01-01\npremise TabularHijri = Gregorian with {\n  hMonth = day span (n =>\n      ((16666 + n) mod 12 + 1) mod 2 == 1 ? 30\n    : (((16666 + n) mod 12 + 1 == 12 and (11 * ((16666 + n) div 12 + 1) + 14) mod 30 < 11) ? 30 : 29)\n  ) phase: 8\n\n  hijriMonth = d => (16665 + epochOrdinal(hMonth, d)) mod 12 + 1\n  hijriYear  = d => (16665 + epochOrdinal(hMonth, d)) div 12 + 1\n  hijriDay   = d => ordinalIn(day, hMonth, d)\n}\npremise JPH { calendar-system: TabularHijri; tz: \"Asia/Tokyo\"; wkst: Mon }\n\n@JPH\nhMonth |> first |> filter(d => hijriMonth(d) == 1)\n#=> 2025-06-27 2026-06-17\n",
      "from": "2025-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1750950000000,
              1781622000000
            ],
            "dates": [
              "2025-06-27",
              "2026-06-17"
            ],
            "annotations": [],
            "uid": "kairos-ee91f0a7661b-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/10-alternative-calendars.md#02",
      "layer": "doctest",
      "origin": "design/40-examples/10-alternative-calendars.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01\npremise TabularHijri = Gregorian with {\n  hMonth = day span (n =>\n      ((16666 + n) mod 12 + 1) mod 2 == 1 ? 30\n    : (((16666 + n) mod 12 + 1 == 12 and (11 * ((16666 + n) div 12 + 1) + 14) mod 30 < 11) ? 30 : 29)\n  ) phase: 8\n\n  hijriMonth = d => (16665 + epochOrdinal(hMonth, d)) mod 12 + 1\n}\npremise JPH { calendar-system: TabularHijri; tz: \"Asia/Tokyo\"; wkst: Mon }\n\n@JPH\nhMonth |> first |> filter(d => hijriMonth(d) == 9)\n#=> 2026-02-18\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1771340400000
            ],
            "dates": [
              "2026-02-18"
            ],
            "annotations": [],
            "uid": "kairos-532b1a3c24ee-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/10-alternative-calendars.md#03",
      "layer": "doctest",
      "origin": "design/40-examples/10-alternative-calendars.md 実行例 3",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01\npremise TabularHijri = Gregorian with {\n  hMonth = day span (n =>\n      ((16666 + n) mod 12 + 1) mod 2 == 1 ? 30\n    : (((16666 + n) mod 12 + 1 == 12 and (11 * ((16666 + n) div 12 + 1) + 14) mod 30 < 11) ? 30 : 29)\n  ) phase: 8\n\n  hijriMonth = d => (16665 + epochOrdinal(hMonth, d)) mod 12 + 1\n}\npremise JPH { calendar-system: TabularHijri; tz: \"Asia/Tokyo\"; wkst: Mon }\n\n@JPH\neveryDay |> filter(d => hijriMonth(d) == 9 and weekday(d) == Fri)\n#=> 2026-02-20 2026-02-27 2026-03-06 2026-03-13\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1771513200000,
              1772118000000,
              1772722800000,
              1773327600000
            ],
            "dates": [
              "2026-02-20",
              "2026-02-27",
              "2026-03-06",
              "2026-03-13"
            ],
            "annotations": [],
            "labels": [
              "Fri",
              "Fri",
              "Fri",
              "Fri"
            ],
            "uid": "kairos-64368af0734e-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#01",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-07-01\n@JP\nbizDay |> within(month) |> last\n#=> 2026-01-30 2026-02-27 2026-03-31 2026-04-30 2026-05-29 2026-06-30\n",
      "from": "2026-01-01",
      "to": "2026-07-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769698800000,
              1772118000000,
              1774882800000,
              1777474800000,
              1779980400000,
              1782745200000
            ],
            "dates": [
              "2026-01-30",
              "2026-02-27",
              "2026-03-31",
              "2026-04-30",
              "2026-05-29",
              "2026-06-30"
            ],
            "annotations": [],
            "uid": "kairos-3d28b4e324d5-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 184
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#02",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-07-01\n@JP\neveryDay |> within(month) |> nth(31)\n#=> 2026-01-31 2026-03-31 2026-05-31\n",
      "from": "2026-01-01",
      "to": "2026-07-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769785200000,
              1774882800000,
              1780153200000
            ],
            "dates": [
              "2026-01-31",
              "2026-03-31",
              "2026-05-31"
            ],
            "annotations": [],
            "uid": "kairos-7b3b86b6d187-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#03",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-07-01\n@JP\nday30 = everyDay |> within(month) |> nth(30)\nshort = (everyDay |> within(month) |> last) |> filter(d => daysInMonthOf(d) < 30)\nday30 | short\n#=> 2026-01-30 2026-02-28 2026-03-30 2026-04-30 2026-05-30 2026-06-30\n",
      "from": "2026-01-01",
      "to": "2026-07-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769698800000,
              1772204400000,
              1774796400000,
              1777474800000,
              1780066800000,
              1782745200000
            ],
            "dates": [
              "2026-01-30",
              "2026-02-28",
              "2026-03-30",
              "2026-04-30",
              "2026-05-30",
              "2026-06-30"
            ],
            "annotations": [],
            "uid": "kairos-a13d7c217e86-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#04",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 4",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-03-01\n@JP\neveryDay |> stride(10, from: 2026-01-05)\n#=> 2026-01-05 2026-01-15 2026-01-25 2026-02-04 2026-02-14 2026-02-24\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1768402800000,
              1769266800000,
              1770130800000,
              1770994800000,
              1771858800000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-15",
              "2026-01-25",
              "2026-02-04",
              "2026-02-14",
              "2026-02-24"
            ],
            "annotations": [],
            "uid": "kairos-547f484e3f0c-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#05",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 5",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-03-15\n@JP\neveryDay |> filter(d => weekday(d) == Fri) |> stride(2, from: 2026-01-09)\n#=> 2026-01-09 2026-01-23 2026-02-06 2026-02-20 2026-03-06\n",
      "from": "2026-01-01",
      "to": "2026-03-15",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767884400000,
              1769094000000,
              1770303600000,
              1771513200000,
              1772722800000
            ],
            "dates": [
              "2026-01-09",
              "2026-01-23",
              "2026-02-06",
              "2026-02-20",
              "2026-03-06"
            ],
            "annotations": [],
            "labels": [
              "Fri",
              "Fri",
              "Fri",
              "Fri",
              "Fri"
            ],
            "uid": "kairos-34d66ecf7d15-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#06",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 6",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2027-01-01\n@JP\nbizDay |> within(quarter) |> last |> shift(-3, unit: bizDay)\n#=> 2026-03-26 2026-06-25 2026-09-25 2026-12-28\n#~> 範囲外 2026-12-29..2027-01-01（holidays2026 covering 2026-01-01..2026-12-31, asof 2026-01-05）\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1774450800000,
              1782313200000,
              1790262000000,
              1798383600000
            ],
            "dates": [
              "2026-03-26",
              "2026-06-25",
              "2026-09-25",
              "2026-12-28"
            ],
            "annotations": [
              {
                "fromMs": 1798470000000,
                "toMs": 1798729200000,
                "source": "holidays2026",
                "covering": "2026-01-01..2026-12-31",
                "asof": "2026-01-05"
              }
            ],
            "uid": "kairos-90d0001cba33-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 0
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#07",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 7",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-12-31\n@JP\nweekdays = everyDay |> filter(d => weekday(d) != Sat and weekday(d) != Sun)\nd15 = everyDay |> within(month) |> nth(15)\n(d15 |> filter(d => weekday(d) != Sat and weekday(d) != Sun))\n  | (d15 |> filter(d => weekday(d) == Sat) |> roll(Preceding, on: weekdays))\n  | (d15 |> filter(d => weekday(d) == Sun) |> roll(Following, on: weekdays))\n#=> 2026-01-15 2026-02-16 2026-03-16 2026-04-15 2026-05-15 2026-06-15\n#=> 2026-07-15 2026-08-14 2026-09-15 2026-10-15 2026-11-16 2026-12-15\n",
      "from": "2026-01-01",
      "to": "2026-12-31",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768402800000,
              1771167600000,
              1773586800000,
              1776178800000,
              1778770800000,
              1781449200000,
              1784041200000,
              1786633200000,
              1789398000000,
              1791990000000,
              1794754800000,
              1797260400000
            ],
            "dates": [
              "2026-01-15",
              "2026-02-16",
              "2026-03-16",
              "2026-04-15",
              "2026-05-15",
              "2026-06-15",
              "2026-07-15",
              "2026-08-14",
              "2026-09-15",
              "2026-10-15",
              "2026-11-16",
              "2026-12-15"
            ],
            "annotations": [],
            "labels": [
              "Thu",
              "Mon",
              "Mon",
              "Wed",
              "Fri",
              "Mon",
              "Wed",
              "Fri",
              "Tue",
              "Thu",
              "Mon",
              "Tue"
            ],
            "uid": "kairos-7aa35e895814-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#08",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 8",
      "command": "list",
      "source": "# eval: 2024-01-01..2029-01-01 tz: America/New_York\npremise US {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Sun\n}\n@US\nfirstMonNov = everyDay |> filter(d => weekday(d) == Mon and month(d) == 11) |> within(year) |> first\nfirstMonNov |> shift(+1, unit: day)\n#=> 2024-11-05 2025-11-04 2026-11-03 2027-11-02 2028-11-07\n",
      "from": "2024-01-01",
      "to": "2029-01-01",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1730782800000,
              1762232400000,
              1793682000000,
              1825128000000,
              1857186000000
            ],
            "dates": [
              "2024-11-05",
              "2025-11-04",
              "2026-11-03",
              "2027-11-02",
              "2028-11-07"
            ],
            "annotations": [],
            "uid": "kairos-7b05acef7d80-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#09",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 9",
      "command": "list",
      "source": "# eval: 2024-01-01..2028-01-01 tz: America/New_York\npremise US {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Sun\n}\n@US\nthanksgiving = everyDay |> filter(d => weekday(d) == Thu and month(d) == 11) |> within(month) |> nth(4)\nthanksgiving |> roll(Following, on: (everyDay |> filter(d => weekday(d) == Sun)))\n#=> 2024-12-01 2025-11-30 2026-11-29 2027-11-28\n",
      "from": "2024-01-01",
      "to": "2028-01-01",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1733029200000,
              1764478800000,
              1795928400000,
              1827378000000
            ],
            "dates": [
              "2024-12-01",
              "2025-11-30",
              "2026-11-29",
              "2027-11-28"
            ],
            "annotations": [],
            "labels": [
              "Sun",
              "Sun",
              "Sun",
              "Sun"
            ],
            "uid": "kairos-c767b6d01b09-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#10",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 10",
      "command": "list",
      "source": "# eval: 2024-01-01..2029-01-01 tz: UTC\npremise W {\n  calendar-system: Gregorian\n  tz: \"UTC\"\n  wkst: Mon\n}\n@W\na = y => y mod 19\nb = y => y div 100\nh = y => (19*a(y) + b(y) - b(y) div 4 - (b(y) - (b(y)+8) div 25 + 1) div 3 + 15) mod 30\nl = y => (32 + 2*(b(y) mod 4) + 2*((y mod 100) div 4) - h(y) - (y mod 100) mod 4) mod 7\nm = y => (a(y) + 11*h(y) + 22*l(y)) div 451\neMonth = y => (h(y) + l(y) - 7*m(y) + 114) div 31\neDay   = y => ((h(y) + l(y) - 7*m(y) + 114) mod 31) + 1\neveryDay |> filter(d => month(d) == eMonth(year(d)) and ordinalIn(day, month, d) == eDay(year(d)))\n#=> 2024-03-31 2025-04-20 2026-04-05 2027-03-28 2028-04-16\n",
      "from": "2024-01-01",
      "to": "2029-01-01",
      "tz": "UTC",
      "expect": {
        "results": [
          {
            "points": [
              1711843200000,
              1745107200000,
              1775347200000,
              1806192000000,
              1839456000000
            ],
            "dates": [
              "2024-03-31",
              "2025-04-20",
              "2026-04-05",
              "2027-03-28",
              "2028-04-16"
            ],
            "annotations": [],
            "uid": "kairos-5d0186fee546-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#11",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 11",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-06-01\n@JP\ntue2 = everyDay |> filter(d => weekday(d) == Tue) |> within(month) |> nth(2)\nthu4 = everyDay |> filter(d => weekday(d) == Thu) |> within(month) |> nth(4)\ntue2 | thu4\n#=> 2026-01-13 2026-01-22 2026-02-10 2026-02-26 2026-03-10 2026-03-26\n#=> 2026-04-14 2026-04-23 2026-05-12 2026-05-28\n",
      "from": "2026-01-01",
      "to": "2026-06-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768230000000,
              1769007600000,
              1770649200000,
              1772031600000,
              1773068400000,
              1774450800000,
              1776092400000,
              1776870000000,
              1778511600000,
              1779894000000
            ],
            "dates": [
              "2026-01-13",
              "2026-01-22",
              "2026-02-10",
              "2026-02-26",
              "2026-03-10",
              "2026-03-26",
              "2026-04-14",
              "2026-04-23",
              "2026-05-12",
              "2026-05-28"
            ],
            "annotations": [],
            "uid": "kairos-b1041cd94084-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#12",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 12",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-06-01\n@JP\nbizDay |> within(month) |> nth(10)\n#=> 2026-01-16 2026-02-16 2026-03-13 2026-04-14 2026-05-19\n",
      "from": "2026-01-01",
      "to": "2026-06-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768489200000,
              1771167600000,
              1773327600000,
              1776092400000,
              1779116400000
            ],
            "dates": [
              "2026-01-16",
              "2026-02-16",
              "2026-03-13",
              "2026-04-14",
              "2026-05-19"
            ],
            "annotations": [],
            "uid": "kairos-7a881151a28b-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 214
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#13",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 13",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-03-01\n@JP\nbizDay |> stride(3, from: 2026-01-05)\n#=> 2026-01-05 2026-01-08 2026-01-14 2026-01-19 2026-01-22 2026-01-27\n#=> 2026-01-30 2026-02-04 2026-02-09 2026-02-13 2026-02-18 2026-02-24 2026-02-27\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1767798000000,
              1768316400000,
              1768748400000,
              1769007600000,
              1769439600000,
              1769698800000,
              1770130800000,
              1770562800000,
              1770908400000,
              1771340400000,
              1771858800000,
              1772118000000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-08",
              "2026-01-14",
              "2026-01-19",
              "2026-01-22",
              "2026-01-27",
              "2026-01-30",
              "2026-02-04",
              "2026-02-09",
              "2026-02-13",
              "2026-02-18",
              "2026-02-24",
              "2026-02-27"
            ],
            "annotations": [],
            "uid": "kairos-1838c5a2eb73-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 306
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#14",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 14",
      "command": "list",
      "source": "# eval: 2026-01-05..2026-01-25\npremise Rota = Gregorian with {\n  duty = day cycle [On, On, On, On, Off, Off, Off, Off] anchor: 2026-01-05\n}\npremise JPR { calendar-system: Rota; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPR\neveryDay |> filter(d => duty(d) == On)\n#=> 2026-01-05 2026-01-06 2026-01-07 2026-01-08\n#=> 2026-01-13 2026-01-14 2026-01-15 2026-01-16\n#=> 2026-01-21 2026-01-22 2026-01-23 2026-01-24\n",
      "from": "2026-01-05",
      "to": "2026-01-25",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1767625200000,
              1767711600000,
              1767798000000,
              1768230000000,
              1768316400000,
              1768402800000,
              1768489200000,
              1768921200000,
              1769007600000,
              1769094000000,
              1769180400000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-06",
              "2026-01-07",
              "2026-01-08",
              "2026-01-13",
              "2026-01-14",
              "2026-01-15",
              "2026-01-16",
              "2026-01-21",
              "2026-01-22",
              "2026-01-23",
              "2026-01-24"
            ],
            "annotations": [],
            "labels": [
              "On",
              "On",
              "On",
              "On",
              "On",
              "On",
              "On",
              "On",
              "On",
              "On",
              "On",
              "On"
            ],
            "uid": "kairos-4ccaaec2858a-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#15",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 15",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-05..2026-01-12\n@JP\nat15 = everyInstant |> strideBy(1d, from: 2026-01-05T15:00) |> filter(d => weekday(d) == Tue or weekday(d) == Wed)\nat17 = everyInstant |> strideBy(1d, from: 2026-01-05T17:00) |> filter(d => weekday(d) == Fri)\nat15 | at17\n#=> 2026-01-06T15:00 2026-01-07T15:00 2026-01-09T17:00\n",
      "from": "2026-01-05",
      "to": "2026-01-12",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767679200000,
              1767765600000,
              1767945600000
            ],
            "dates": [
              "2026-01-06T15:00",
              "2026-01-07T15:00",
              "2026-01-09T17:00"
            ],
            "annotations": [],
            "uid": "kairos-56fb14e16615-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#16",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 16",
      "command": "list",
      "source": "# eval: 2026-01-05..2026-01-07\npremise Hourly = Gregorian with { hourW = chronos grid 1h }\npremise JPH { calendar-system: Hourly; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPH\neveryInstant |> strideBy(1h30m, from: 2026-01-05T09:00)\n  |> filter(d => ordinalIn(hourW, day, d) >= 10 and ordinalIn(hourW, day, d) <= 17)\n#=> 2026-01-05T09:00 2026-01-05T10:30 2026-01-05T12:00 2026-01-05T13:30 2026-01-05T15:00 2026-01-05T16:30\n#=> 2026-01-06T09:00 2026-01-06T10:30 2026-01-06T12:00 2026-01-06T13:30 2026-01-06T15:00 2026-01-06T16:30\n",
      "from": "2026-01-05",
      "to": "2026-01-07",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767571200000,
              1767576600000,
              1767582000000,
              1767587400000,
              1767592800000,
              1767598200000,
              1767657600000,
              1767663000000,
              1767668400000,
              1767673800000,
              1767679200000,
              1767684600000
            ],
            "dates": [
              "2026-01-05T09:00",
              "2026-01-05T10:30",
              "2026-01-05T12:00",
              "2026-01-05T13:30",
              "2026-01-05T15:00",
              "2026-01-05T16:30",
              "2026-01-06T09:00",
              "2026-01-06T10:30",
              "2026-01-06T12:00",
              "2026-01-06T13:30",
              "2026-01-06T15:00",
              "2026-01-06T16:30"
            ],
            "annotations": [],
            "uid": "kairos-001d305691ad-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#17",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 17",
      "command": "list",
      "source": "# eval: 2025-12-01..2027-03-01\npremise R445 = ISOWeek with {\n  periodStart = isoWeekStart |> filter(d =>\n    ((isoWeekNo(d) - 1) mod 13 == 0 or (isoWeekNo(d) - 1) mod 13 == 4 or (isoWeekNo(d) - 1) mod 13 == 8)\n    and isoWeekNo(d) <= 48)\n  period = day |> segmentBy(periodStart, edges: clip, empties: error)\n}\npremise JPR { calendar-system: R445; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPR\neveryDay |> within(period) |> first\n#=> 2025-12-29 2026-01-26 2026-02-23 2026-03-30 2026-04-27 2026-05-25\n#=> 2026-06-29 2026-07-27 2026-08-24 2026-09-28 2026-10-26 2026-11-23\n#=> 2027-01-04 2027-02-01\n",
      "from": "2025-12-01",
      "to": "2027-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1766934000000,
              1769353200000,
              1771772400000,
              1774796400000,
              1777215600000,
              1779634800000,
              1782658800000,
              1785078000000,
              1787497200000,
              1790521200000,
              1792940400000,
              1795359600000,
              1798988400000,
              1801407600000
            ],
            "dates": [
              "2025-12-29",
              "2026-01-26",
              "2026-02-23",
              "2026-03-30",
              "2026-04-27",
              "2026-05-25",
              "2026-06-29",
              "2026-07-27",
              "2026-08-24",
              "2026-09-28",
              "2026-10-26",
              "2026-11-23",
              "2027-01-04",
              "2027-02-01"
            ],
            "annotations": [],
            "uid": "kairos-4bb3ad3644e7-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#18",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 18",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-06-25..2026-07-03\n@JP\neveryInstant |> strideBy(1d, from: 2026-01-01T07:00) |> since(2026-06-29) |> before(2026-12-31)\n#=> 2026-06-29T07:00 2026-06-30T07:00 2026-07-01T07:00 2026-07-02T07:00\n",
      "from": "2026-06-25",
      "to": "2026-07-03",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1782684000000,
              1782770400000,
              1782856800000,
              1782943200000
            ],
            "dates": [
              "2026-06-29T07:00",
              "2026-06-30T07:00",
              "2026-07-01T07:00",
              "2026-07-02T07:00"
            ],
            "annotations": [],
            "uid": "kairos-d52cc59e7812-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#19",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 19",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-06-25..2026-07-03\n@JP\neveryInstant |> strideBy(1d, from: 2026-01-01T07:00)\n  |> filter(d => epochOrdinal(day, d) >= epochOrdinal(day, 2026-06-29) and epochOrdinal(day, d) <= epochOrdinal(day, 2026-12-30))\n#=> 2026-06-29T07:00 2026-06-30T07:00 2026-07-01T07:00 2026-07-02T07:00\n",
      "from": "2026-06-25",
      "to": "2026-07-03",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1782684000000,
              1782770400000,
              1782856800000,
              1782943200000
            ],
            "dates": [
              "2026-06-29T07:00",
              "2026-06-30T07:00",
              "2026-07-01T07:00",
              "2026-07-02T07:00"
            ],
            "annotations": [],
            "uid": "kairos-17df17026a5c-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/design/40-examples/11-impossible-schedules.md#20",
      "layer": "doctest",
      "origin": "design/40-examples/11-impossible-schedules.md 実行例 20",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-05-01..2026-05-18\n@JP\nweekend18 = everyInstant |> strideBy(1d, from: 2026-01-01T18:00)\n  |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\nweekend18 |> filter(d => not (ordinalIn(day, month, d) == 10 and month(d) == 5))\n#=> 2026-05-02T18:00 2026-05-03T18:00 2026-05-09T18:00 2026-05-16T18:00 2026-05-17T18:00\n",
      "from": "2026-05-01",
      "to": "2026-05-18",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1777712400000,
              1777798800000,
              1778317200000,
              1778922000000,
              1779008400000
            ],
            "dates": [
              "2026-05-02T18:00",
              "2026-05-03T18:00",
              "2026-05-09T18:00",
              "2026-05-16T18:00",
              "2026-05-17T18:00"
            ],
            "annotations": [],
            "uid": "kairos-f91dc2a9b48c-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/4-4-5-calendar.md#01",
      "layer": "doctest",
      "origin": "recipes/4-4-5-calendar.md 実行例 1",
      "command": "list",
      "source": "# eval: 2025-12-01..2027-03-01 tz: America/New_York\npremise R445 = ISOWeek with {\n  periodStart = isoWeekStart |> filter(d =>\n    ((isoWeekNo(d) - 1) mod 13 == 0 or (isoWeekNo(d) - 1) mod 13 == 4 or (isoWeekNo(d) - 1) mod 13 == 8)\n    and isoWeekNo(d) <= 48)\n  period = day |> segmentBy(periodStart, edges: clip, empties: error)\n}\npremise US445 { calendar-system: R445; tz: \"America/New_York\"; wkst: Mon }\n\n@US445\neveryDay |> within(period) |> first\n#=> 2025-12-29 2026-01-26 2026-02-23 2026-03-30 2026-04-27 2026-05-25\n#=> 2026-06-29 2026-07-27 2026-08-24 2026-09-28 2026-10-26 2026-11-23\n#=> 2027-01-04 2027-02-01\n",
      "from": "2025-12-01",
      "to": "2027-03-01",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1766984400000,
              1769403600000,
              1771822800000,
              1774843200000,
              1777262400000,
              1779681600000,
              1782705600000,
              1785124800000,
              1787544000000,
              1790568000000,
              1792987200000,
              1795410000000,
              1799038800000,
              1801458000000
            ],
            "dates": [
              "2025-12-29",
              "2026-01-26",
              "2026-02-23",
              "2026-03-30",
              "2026-04-27",
              "2026-05-25",
              "2026-06-29",
              "2026-07-27",
              "2026-08-24",
              "2026-09-28",
              "2026-10-26",
              "2026-11-23",
              "2027-01-04",
              "2027-02-01"
            ],
            "annotations": [],
            "uid": "kairos-682e76776d30-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/4-4-5-calendar.md#02",
      "layer": "doctest",
      "origin": "recipes/4-4-5-calendar.md 実行例 2",
      "command": "list",
      "source": "# eval: 2025-12-29..2027-01-04 tz: America/New_York\npremise R445 = ISOWeek with {\n  periodStart = isoWeekStart |> filter(d =>\n    ((isoWeekNo(d) - 1) mod 13 == 0 or (isoWeekNo(d) - 1) mod 13 == 4 or (isoWeekNo(d) - 1) mod 13 == 8)\n    and isoWeekNo(d) <= 48)\n  period = day |> segmentBy(periodStart, edges: clip, empties: error)\n}\npremise US445 { calendar-system: R445; tz: \"America/New_York\"; wkst: Mon }\n\n@US445\neveryDay |> within(period) |> last\n#=> 2026-01-25 2026-02-22 2026-03-29 2026-04-26 2026-05-24 2026-06-28\n#=> 2026-07-26 2026-08-23 2026-09-27 2026-10-25 2026-11-22 2027-01-03\n",
      "from": "2025-12-29",
      "to": "2027-01-04",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1769317200000,
              1771736400000,
              1774756800000,
              1777176000000,
              1779595200000,
              1782619200000,
              1785038400000,
              1787457600000,
              1790481600000,
              1792900800000,
              1795323600000,
              1798952400000
            ],
            "dates": [
              "2026-01-25",
              "2026-02-22",
              "2026-03-29",
              "2026-04-26",
              "2026-05-24",
              "2026-06-28",
              "2026-07-26",
              "2026-08-23",
              "2026-09-27",
              "2026-10-25",
              "2026-11-22",
              "2027-01-03"
            ],
            "annotations": [],
            "uid": "kairos-f4deb6074670-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/cron-last-day-of-month.md#01",
      "layer": "doctest",
      "origin": "recipes/cron-last-day-of-month.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-07-01\n@JP\nbizDay |> within(month) |> last\n#=> 2026-01-30 2026-02-27 2026-03-31 2026-04-30 2026-05-29 2026-06-30\n",
      "from": "2026-01-01",
      "to": "2026-07-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769698800000,
              1772118000000,
              1774882800000,
              1777474800000,
              1779980400000,
              1782745200000
            ],
            "dates": [
              "2026-01-30",
              "2026-02-27",
              "2026-03-31",
              "2026-04-30",
              "2026-05-29",
              "2026-06-30"
            ],
            "annotations": [],
            "uid": "kairos-3d28b4e324d5-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 184
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/cron-last-day-of-month.md#02",
      "layer": "doctest",
      "origin": "recipes/cron-last-day-of-month.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-07-01 tz: America/New_York\npremise US {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Sun\n}\n\n@US\nfederal2026 = [2026-01-01, 2026-01-19, 2026-02-16, 2026-05-25, 2026-06-19,\n               2026-07-03, 2026-09-07, 2026-10-12, 2026-11-11, 2026-11-26,\n               2026-12-25] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\nbizDay = everyDay \\ (satSun | federal2026)\n\nbizDay |> within(month) |> last\n#=> 2026-01-30 2026-02-27 2026-03-31 2026-04-30 2026-05-29 2026-06-30\n",
      "from": "2026-01-01",
      "to": "2026-07-01",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1769749200000,
              1772168400000,
              1774929600000,
              1777521600000,
              1780027200000,
              1782792000000
            ],
            "dates": [
              "2026-01-30",
              "2026-02-27",
              "2026-03-31",
              "2026-04-30",
              "2026-05-29",
              "2026-06-30"
            ],
            "annotations": [],
            "uid": "kairos-6fe585ff9a37-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "federal2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 184
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/easter-schedule.md#01",
      "layer": "doctest",
      "origin": "recipes/easter-schedule.md 実行例 1",
      "command": "list",
      "source": "# eval: 2024-01-01..2029-01-01 tz: UTC\npremise W {\n  calendar-system: Gregorian\n  tz: \"UTC\"\n  wkst: Mon\n}\n@W\na = y => y mod 19\nb = y => y div 100\nh = y => (19*a(y) + b(y) - b(y) div 4 - (b(y) - (b(y)+8) div 25 + 1) div 3 + 15) mod 30\nl = y => (32 + 2*(b(y) mod 4) + 2*((y mod 100) div 4) - h(y) - (y mod 100) mod 4) mod 7\nm = y => (a(y) + 11*h(y) + 22*l(y)) div 451\neMonth = y => (h(y) + l(y) - 7*m(y) + 114) div 31\neDay   = y => ((h(y) + l(y) - 7*m(y) + 114) mod 31) + 1\neveryDay |> filter(d => month(d) == eMonth(year(d)) and ordinalIn(day, month, d) == eDay(year(d)))\n#=> 2024-03-31 2025-04-20 2026-04-05 2027-03-28 2028-04-16\n",
      "from": "2024-01-01",
      "to": "2029-01-01",
      "tz": "UTC",
      "expect": {
        "results": [
          {
            "points": [
              1711843200000,
              1745107200000,
              1775347200000,
              1806192000000,
              1839456000000
            ],
            "dates": [
              "2024-03-31",
              "2025-04-20",
              "2026-04-05",
              "2027-03-28",
              "2028-04-16"
            ],
            "annotations": [],
            "uid": "kairos-5d0186fee546-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/excel-workday.md#01",
      "layer": "doctest",
      "origin": "recipes/excel-workday.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2027-01-01\n@JP\nbizDay |> within(month) |> last\n#=> 2026-01-30 2026-02-27 2026-03-31 2026-04-30 2026-05-29 2026-06-30\n#=> 2026-07-31 2026-08-31 2026-09-30 2026-10-30 2026-11-30 2026-12-31\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769698800000,
              1772118000000,
              1774882800000,
              1777474800000,
              1779980400000,
              1782745200000,
              1785423600000,
              1788102000000,
              1790694000000,
              1793286000000,
              1795964400000,
              1798642800000
            ],
            "dates": [
              "2026-01-30",
              "2026-02-27",
              "2026-03-31",
              "2026-04-30",
              "2026-05-29",
              "2026-06-30",
              "2026-07-31",
              "2026-08-31",
              "2026-09-30",
              "2026-10-30",
              "2026-11-30",
              "2026-12-31"
            ],
            "annotations": [],
            "uid": "kairos-3d28b4e324d5-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 0
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/excel-workday.md#02",
      "layer": "doctest",
      "origin": "recipes/excel-workday.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2027-01-01\n@JP\neveryDay |> within(month) |> nth(25) |> roll(Preceding, on: bizDay)\n#=> 2026-01-23 2026-02-25 2026-03-25 2026-04-24 2026-05-25 2026-06-25\n#=> 2026-07-24 2026-08-25 2026-09-25 2026-10-23 2026-11-25 2026-12-25\n#~> 範囲外 2026-01-01..2026-01-02（holidays2026 covering 2026-01-01..2026-12-31, asof 2026-01-05）\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769094000000,
              1771945200000,
              1774364400000,
              1776956400000,
              1779634800000,
              1782313200000,
              1784818800000,
              1787583600000,
              1790262000000,
              1792681200000,
              1795532400000,
              1798124400000
            ],
            "dates": [
              "2026-01-23",
              "2026-02-25",
              "2026-03-25",
              "2026-04-24",
              "2026-05-25",
              "2026-06-25",
              "2026-07-24",
              "2026-08-25",
              "2026-09-25",
              "2026-10-23",
              "2026-11-25",
              "2026-12-25"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1767279600001,
                "source": "holidays2026",
                "covering": "2026-01-01..2026-12-31",
                "asof": "2026-01-05"
              }
            ],
            "uid": "kairos-4f63ae78d212-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 0
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/excel-workday.md#03",
      "layer": "doctest",
      "origin": "recipes/excel-workday.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2027-01-01\n@JP\nbizDay |> within(month) |> nth(10)\n#=> 2026-01-16 2026-02-16 2026-03-13 2026-04-14 2026-05-19 2026-06-12\n#=> 2026-07-14 2026-08-17 2026-09-14 2026-10-15 2026-11-16 2026-12-14\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768489200000,
              1771167600000,
              1773327600000,
              1776092400000,
              1779116400000,
              1781190000000,
              1783954800000,
              1786892400000,
              1789311600000,
              1791990000000,
              1794754800000,
              1797174000000
            ],
            "dates": [
              "2026-01-16",
              "2026-02-16",
              "2026-03-13",
              "2026-04-14",
              "2026-05-19",
              "2026-06-12",
              "2026-07-14",
              "2026-08-17",
              "2026-09-14",
              "2026-10-15",
              "2026-11-16",
              "2026-12-14"
            ],
            "annotations": [],
            "uid": "kairos-7a881151a28b-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 0
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/excel-workday.md#04",
      "layer": "doctest",
      "origin": "recipes/excel-workday.md 実行例 4",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2027-01-01\n@JP\nbizDay |> within(quarter) |> last |> shift(-3, unit: bizDay)\n#=> 2026-03-26 2026-06-25 2026-09-25 2026-12-28\n#~> 範囲外 2026-12-29..2027-01-01（holidays2026 covering 2026-01-01..2026-12-31, asof 2026-01-05）\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1774450800000,
              1782313200000,
              1790262000000,
              1798383600000
            ],
            "dates": [
              "2026-03-26",
              "2026-06-25",
              "2026-09-25",
              "2026-12-28"
            ],
            "annotations": [
              {
                "fromMs": 1798470000000,
                "toMs": 1798729200000,
                "source": "holidays2026",
                "covering": "2026-01-01..2026-12-31",
                "asof": "2026-01-05"
              }
            ],
            "uid": "kairos-90d0001cba33-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 0
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/excel-workday.md#05",
      "layer": "doctest",
      "origin": "recipes/excel-workday.md 実行例 5",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-03-01\n@JP\nbizDay |> stride(3, from: 2026-01-05)\n#=> 2026-01-05 2026-01-08 2026-01-14 2026-01-19 2026-01-22 2026-01-27\n#=> 2026-01-30 2026-02-04 2026-02-09 2026-02-13 2026-02-18 2026-02-24 2026-02-27\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1767798000000,
              1768316400000,
              1768748400000,
              1769007600000,
              1769439600000,
              1769698800000,
              1770130800000,
              1770562800000,
              1770908400000,
              1771340400000,
              1771858800000,
              1772118000000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-08",
              "2026-01-14",
              "2026-01-19",
              "2026-01-22",
              "2026-01-27",
              "2026-01-30",
              "2026-02-04",
              "2026-02-09",
              "2026-02-13",
              "2026-02-18",
              "2026-02-24",
              "2026-02-27"
            ],
            "annotations": [],
            "uid": "kairos-1838c5a2eb73-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 306
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/excel-workday.md#06",
      "layer": "doctest",
      "origin": "recipes/excel-workday.md 実行例 6",
      "command": "list",
      "source": "# eval: 2026-10-01..2027-04-01\npremise JP {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20,\n                2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06,\n                2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23,\n                2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\nbizDay = everyDay \\ (satSun | holidays2026)\n\nbizDay |> within(month) |> last\n#=> 2026-10-30 2026-11-30 2026-12-31 2027-01-29 2027-02-26 2027-03-31\n#~> 範囲外 2027-01-01..2027-04-01（holidays2026 covering 2026-01-01..2026-12-31）\n",
      "from": "2026-10-01",
      "to": "2027-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1793286000000,
              1795964400000,
              1798642800000,
              1801148400000,
              1803567600000,
              1806418800000
            ],
            "dates": [
              "2026-10-30",
              "2026-11-30",
              "2026-12-31",
              "2027-01-29",
              "2027-02-26",
              "2027-03-31"
            ],
            "annotations": [
              {
                "fromMs": 1798729200000,
                "toMs": 1806505200000,
                "source": "holidays2026",
                "covering": "2026-01-01..2026-12-31"
              }
            ],
            "uid": "kairos-3d28b4e324d5-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": -90
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/logistics-delivery.md#01",
      "layer": "doctest",
      "origin": "recipes/logistics-delivery.md 実行例 1",
      "command": "list",
      "source": "# 営業日（日祝・年末年始・お盆を除く）\n# eval: 2026-01-01..2026-01-11\npremise JP {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20,\n                2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06,\n                2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23,\n                2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nclosed = [2026-01-01..2026-01-03, 2026-08-13..2026-08-15, 2026-12-30..2026-12-31] covering: 2026..2026\nsunday = everyDay |> filter(d => weekday(d) == Sun)\nnoDelivery = sunday | holidays2026 | closed\ndeliveryDay = everyDay \\ noDelivery\n\ndeliveryDay\n#=> 2026-01-05 2026-01-06 2026-01-07 2026-01-08 2026-01-09 2026-01-10\n",
      "from": "2026-01-01",
      "to": "2026-01-11",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1767625200000,
              1767711600000,
              1767798000000,
              1767884400000,
              1767970800000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-06",
              "2026-01-07",
              "2026-01-08",
              "2026-01-09",
              "2026-01-10"
            ],
            "annotations": [],
            "uid": "kairos-97bd5c85aea1-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 355
          },
          {
            "source": "closed",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 355
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/logistics-delivery.md#02",
      "layer": "doctest",
      "origin": "recipes/logistics-delivery.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-08-01..2026-09-01\n@JP\nclosed = [2026-01-01..2026-01-03, 2026-08-13..2026-08-15, 2026-12-30..2026-12-31] covering: 2026..2026\nsunday = everyDay |> filter(d => weekday(d) == Sun)\nnoDelivery = sunday | holidays2026 | closed\nnoDelivery\n#=> 2026-08-02 2026-08-09 2026-08-11 2026-08-13 2026-08-14 2026-08-15 2026-08-16 2026-08-23 2026-08-30\n",
      "from": "2026-08-01",
      "to": "2026-09-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1785596400000,
              1786201200000,
              1786374000000,
              1786546800000,
              1786633200000,
              1786719600000,
              1786806000000,
              1787410800000,
              1788015600000
            ],
            "dates": [
              "2026-08-02",
              "2026-08-09",
              "2026-08-11",
              "2026-08-13",
              "2026-08-14",
              "2026-08-15",
              "2026-08-16",
              "2026-08-23",
              "2026-08-30"
            ],
            "annotations": [],
            "uid": "kairos-48b4c9532167-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 122
          },
          {
            "source": "closed",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 122
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/logistics-delivery.md#03",
      "layer": "doctest",
      "origin": "recipes/logistics-delivery.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-04-27..2026-05-16\n@JP\nclosed = [2026-01-01..2026-01-03, 2026-08-13..2026-08-15, 2026-12-30..2026-12-31] covering: 2026..2026\nsunday = everyDay |> filter(d => weekday(d) == Sun)\nnoDelivery = sunday | holidays2026 | closed\ndeliveryDay = everyDay \\ noDelivery\nshipped = [2026-04-30, 2026-05-01, 2026-05-02] covering: 2026..2026\nshipped |> shift(+1, unit: deliveryDay)\n#=> 2026-05-01 2026-05-02 2026-05-07\n",
      "from": "2026-04-27",
      "to": "2026-05-16",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1777561200000,
              1777647600000,
              1778079600000
            ],
            "dates": [
              "2026-05-01",
              "2026-05-02",
              "2026-05-07"
            ],
            "annotations": [],
            "uid": "kairos-aa4bf87f9ce4-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "shipped",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 230
          },
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 230
          },
          {
            "source": "closed",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 230
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/logistics-delivery.md#04",
      "layer": "doctest",
      "origin": "recipes/logistics-delivery.md 実行例 4",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-04-27..2026-05-16\n@JP\nclosed = [2026-01-01..2026-01-03, 2026-08-13..2026-08-15, 2026-12-30..2026-12-31] covering: 2026..2026\nsunday = everyDay |> filter(d => weekday(d) == Sun)\nnoDelivery = sunday | holidays2026 | closed\ndeliveryDay = everyDay \\ noDelivery\nshipped = [2026-04-30, 2026-05-01, 2026-05-02] covering: 2026..2026\nshipped |> shift(+2, unit: deliveryDay)\n#=> 2026-05-02 2026-05-07 2026-05-08\n",
      "from": "2026-04-27",
      "to": "2026-05-16",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1777647600000,
              1778079600000,
              1778166000000
            ],
            "dates": [
              "2026-05-02",
              "2026-05-07",
              "2026-05-08"
            ],
            "annotations": [],
            "uid": "kairos-ea1fa3310cd8-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "shipped",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 230
          },
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 230
          },
          {
            "source": "closed",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 230
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/logistics-delivery.md#05",
      "layer": "doctest",
      "origin": "recipes/logistics-delivery.md 実行例 5",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-04-27..2026-05-16\n@JP\nclosed = [2026-01-01..2026-01-03, 2026-08-13..2026-08-15, 2026-12-30..2026-12-31] covering: 2026..2026\nsunday = everyDay |> filter(d => weekday(d) == Sun)\nnoDelivery = sunday | holidays2026 | closed\ndeliveryDay = everyDay \\ noDelivery\norders = [2026-05-02, 2026-05-03, 2026-05-04] covering: 2026..2026\norders |> roll(Following, on: deliveryDay) |> shift(+1, unit: deliveryDay)\n#=> 2026-05-07 2026-05-08\n",
      "from": "2026-04-27",
      "to": "2026-05-16",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1778079600000,
              1778166000000
            ],
            "dates": [
              "2026-05-07",
              "2026-05-08"
            ],
            "annotations": [],
            "uid": "kairos-5f20970ebea9-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "orders",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 230
          },
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 230
          },
          {
            "source": "closed",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 230
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/logistics-delivery.md#06",
      "layer": "doctest",
      "origin": "recipes/logistics-delivery.md 実行例 6",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-04-30..2026-05-09\n@JP\nclosed = [2026-01-01..2026-01-03, 2026-08-13..2026-08-15, 2026-12-30..2026-12-31] covering: 2026..2026\nsunday = everyDay |> filter(d => weekday(d) == Sun)\nnoDelivery = sunday | holidays2026 | closed\ndeliveryDay = everyDay \\ noDelivery\ndeliveryDay |> at(T15:00)\n#=> 2026-04-30T15:00 2026-05-01T15:00 2026-05-02T15:00 2026-05-07T15:00 2026-05-08T15:00\n",
      "from": "2026-04-30",
      "to": "2026-05-09",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1777528800000,
              1777615200000,
              1777701600000,
              1778133600000,
              1778220000000
            ],
            "dates": [
              "2026-04-30T15:00",
              "2026-05-01T15:00",
              "2026-05-02T15:00",
              "2026-05-07T15:00",
              "2026-05-08T15:00"
            ],
            "annotations": [],
            "uid": "kairos-dd87cf05cb1f-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 237
          },
          {
            "source": "closed",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 237
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/logistics-delivery.md#07",
      "layer": "doctest",
      "origin": "recipes/logistics-delivery.md 実行例 7",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-09-14..2026-10-01\n@JP\nclosed = [2026-01-01..2026-01-03, 2026-08-13..2026-08-15, 2026-12-30..2026-12-31] covering: 2026..2026\nsunday = everyDay |> filter(d => weekday(d) == Sun)\nnoDelivery = sunday | holidays2026 | closed\ndeliveryDay = everyDay \\ noDelivery\npickup = everyDay |> filter(d => weekday(d) == Tue or weekday(d) == Fri)\npickup |> roll(Following, on: deliveryDay)\n#=> 2026-09-15 2026-09-18 2026-09-24 2026-09-25 2026-09-29\n",
      "from": "2026-09-14",
      "to": "2026-10-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1789398000000,
              1789657200000,
              1790175600000,
              1790262000000,
              1790607600000
            ],
            "dates": [
              "2026-09-15",
              "2026-09-18",
              "2026-09-24",
              "2026-09-25",
              "2026-09-29"
            ],
            "annotations": [],
            "uid": "kairos-c9496fa2913f-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 92
          },
          {
            "source": "closed",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 92
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/logistics-delivery.md#08",
      "layer": "doctest",
      "origin": "recipes/logistics-delivery.md 実行例 8",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2027-01-01\n@JP\nclosed = [2026-01-01..2026-01-03, 2026-08-13..2026-08-15, 2026-12-30..2026-12-31] covering: 2026..2026\nsunday = everyDay |> filter(d => weekday(d) == Sun)\nnoDelivery = sunday | holidays2026 | closed\ndeliveryDay = everyDay \\ noDelivery\ndeliveryDay |> within(month) |> last\n#=> 2026-01-31 2026-02-28 2026-03-31 2026-04-30 2026-05-30 2026-06-30\n#=> 2026-07-31 2026-08-31 2026-09-30 2026-10-31 2026-11-30 2026-12-29\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769785200000,
              1772204400000,
              1774882800000,
              1777474800000,
              1780066800000,
              1782745200000,
              1785423600000,
              1788102000000,
              1790694000000,
              1793372400000,
              1795964400000,
              1798470000000
            ],
            "dates": [
              "2026-01-31",
              "2026-02-28",
              "2026-03-31",
              "2026-04-30",
              "2026-05-30",
              "2026-06-30",
              "2026-07-31",
              "2026-08-31",
              "2026-09-30",
              "2026-10-31",
              "2026-11-30",
              "2026-12-29"
            ],
            "annotations": [],
            "uid": "kairos-e18ba3d227e2-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 0
          },
          {
            "source": "closed",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 0
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/logistics-delivery.md#09",
      "layer": "doctest",
      "origin": "recipes/logistics-delivery.md 実行例 9",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-12-26..2027-01-08\n@JP\nclosed = [2026-01-01..2026-01-03, 2026-08-13..2026-08-15, 2026-12-30..2026-12-31] covering: 2026..2026\nsunday = everyDay |> filter(d => weekday(d) == Sun)\nnoDelivery = sunday | holidays2026 | closed\ndeliveryDay = everyDay \\ noDelivery\ndeliveryDay\n#=> 2026-12-26 2026-12-28 2026-12-29 2027-01-01 2027-01-02 2027-01-04 2027-01-05 2027-01-06 2027-01-07\n#~> 範囲外 2027-01-01..2027-01-08（holidays2026 covering 2026-01-01..2026-12-31）\n#~> 範囲外 2027-01-01..2027-01-08（closed covering 2026-01-01..2026-12-31）\n",
      "from": "2026-12-26",
      "to": "2027-01-08",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1798210800000,
              1798383600000,
              1798470000000,
              1798729200000,
              1798815600000,
              1798988400000,
              1799074800000,
              1799161200000,
              1799247600000
            ],
            "dates": [
              "2026-12-26",
              "2026-12-28",
              "2026-12-29",
              "2027-01-01",
              "2027-01-02",
              "2027-01-04",
              "2027-01-05",
              "2027-01-06",
              "2027-01-07"
            ],
            "annotations": [
              {
                "fromMs": 1798729200000,
                "toMs": 1799334000000,
                "source": "holidays2026",
                "covering": "2026-01-01..2026-12-31"
              },
              {
                "fromMs": 1798729200000,
                "toMs": 1799334000000,
                "source": "closed",
                "covering": "2026-01-01..2026-12-31"
              }
            ],
            "uid": "kairos-97bd5c85aea1-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": -7
          },
          {
            "source": "closed",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": -7
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/logistics-delivery.md#10",
      "layer": "doctest",
      "origin": "recipes/logistics-delivery.md 実行例 10",
      "command": "list",
      "source": "# 営業日（2027 年まで延ばした表）\n# eval: 2026-12-26..2027-01-08\npremise JP {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n\n@JP\nholidays = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20,\n            2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06,\n            2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23,\n            2026-10-12, 2026-11-03, 2026-11-23,\n            2027-01-01, 2027-01-11, 2027-02-11, 2027-02-23, 2027-03-21,\n            2027-03-22, 2027-04-29, 2027-05-03, 2027-05-04, 2027-05-05,\n            2027-07-19, 2027-08-11, 2027-09-20, 2027-09-23, 2027-10-11,\n            2027-11-03, 2027-11-23] covering: 2026..2027\nclosed = [2026-01-01..2026-01-03, 2026-08-13..2026-08-15, 2026-12-30..2026-12-31,\n          2027-01-01..2027-01-03] covering: 2026..2027\nsunday = everyDay |> filter(d => weekday(d) == Sun)\nnoDelivery = sunday | holidays | closed\ndeliveryDay = everyDay \\ noDelivery\n\ndeliveryDay\n#=> 2026-12-26 2026-12-28 2026-12-29 2027-01-04 2027-01-05 2027-01-06 2027-01-07\n",
      "from": "2026-12-26",
      "to": "2027-01-08",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1798210800000,
              1798383600000,
              1798470000000,
              1798988400000,
              1799074800000,
              1799161200000,
              1799247600000
            ],
            "dates": [
              "2026-12-26",
              "2026-12-28",
              "2026-12-29",
              "2027-01-04",
              "2027-01-05",
              "2027-01-06",
              "2027-01-07"
            ],
            "annotations": [],
            "uid": "kairos-97bd5c85aea1-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays",
            "covering": "2026-01-01..2027-12-31",
            "concluded": false,
            "runwayDays": 358
          },
          {
            "source": "closed",
            "covering": "2026-01-01..2027-12-31",
            "concluded": false,
            "runwayDays": 358
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/patch-tuesday.md#01",
      "layer": "doctest",
      "origin": "recipes/patch-tuesday.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01 tz: America/Los_Angeles\npremise PT {\n  calendar-system: Gregorian\n  tz: \"America/Los_Angeles\"\n  wkst: Sun\n}\n@PT\npatchDay = everyDay |> filter(d => weekday(d) == Tue) |> within(month) |> nth(2)\npatchDay |> at(T10:00)\n#=> 2026-01-13T10:00 2026-02-10T10:00 2026-03-10T10:00 2026-04-14T10:00 2026-05-12T10:00 2026-06-09T10:00\n#=> 2026-07-14T10:00 2026-08-11T10:00 2026-09-08T10:00 2026-10-13T10:00 2026-11-10T10:00 2026-12-08T10:00\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "America/Los_Angeles",
      "expect": {
        "results": [
          {
            "points": [
              1768327200000,
              1770746400000,
              1773162000000,
              1776186000000,
              1778605200000,
              1781024400000,
              1784048400000,
              1786467600000,
              1788886800000,
              1791910800000,
              1794333600000,
              1796752800000
            ],
            "dates": [
              "2026-01-13T10:00",
              "2026-02-10T10:00",
              "2026-03-10T10:00",
              "2026-04-14T10:00",
              "2026-05-12T10:00",
              "2026-06-09T10:00",
              "2026-07-14T10:00",
              "2026-08-11T10:00",
              "2026-09-08T10:00",
              "2026-10-13T10:00",
              "2026-11-10T10:00",
              "2026-12-08T10:00"
            ],
            "annotations": [],
            "uid": "kairos-cb6c69611de7-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/patch-tuesday.md#02",
      "layer": "doctest",
      "origin": "recipes/patch-tuesday.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01 tz: Asia/Tokyo\npremise PT {\n  calendar-system: Gregorian\n  tz: \"America/Los_Angeles\"\n  wkst: Sun\n}\n@PT\npatchDay = everyDay |> filter(d => weekday(d) == Tue) |> within(month) |> nth(2)\npatchDay |> at(T10:00)\n#=> 2026-01-14T03:00 2026-02-11T03:00 2026-03-11T02:00 2026-04-15T02:00 2026-05-13T02:00 2026-06-10T02:00\n#=> 2026-07-15T02:00 2026-08-12T02:00 2026-09-09T02:00 2026-10-14T02:00 2026-11-11T03:00 2026-12-09T03:00\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768327200000,
              1770746400000,
              1773162000000,
              1776186000000,
              1778605200000,
              1781024400000,
              1784048400000,
              1786467600000,
              1788886800000,
              1791910800000,
              1794333600000,
              1796752800000
            ],
            "dates": [
              "2026-01-14T03:00",
              "2026-02-11T03:00",
              "2026-03-11T02:00",
              "2026-04-15T02:00",
              "2026-05-13T02:00",
              "2026-06-10T02:00",
              "2026-07-15T02:00",
              "2026-08-12T02:00",
              "2026-09-09T02:00",
              "2026-10-14T02:00",
              "2026-11-11T03:00",
              "2026-12-09T03:00"
            ],
            "annotations": [],
            "uid": "kairos-d712b9b0e6f6-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/patch-tuesday.md#03",
      "layer": "doctest",
      "origin": "recipes/patch-tuesday.md 実行例 3",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01 tz: Europe/London\npremise PT {\n  calendar-system: Gregorian\n  tz: \"America/Los_Angeles\"\n  wkst: Sun\n}\n@PT\npatchDay = everyDay |> filter(d => weekday(d) == Tue) |> within(month) |> nth(2)\npatchDay |> at(T10:00)\n#=> 2026-01-13T18:00 2026-02-10T18:00 2026-03-10T17:00 2026-04-14T18:00 2026-05-12T18:00 2026-06-09T18:00\n#=> 2026-07-14T18:00 2026-08-11T18:00 2026-09-08T18:00 2026-10-13T18:00 2026-11-10T18:00 2026-12-08T18:00\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Europe/London",
      "expect": {
        "results": [
          {
            "points": [
              1768327200000,
              1770746400000,
              1773162000000,
              1776186000000,
              1778605200000,
              1781024400000,
              1784048400000,
              1786467600000,
              1788886800000,
              1791910800000,
              1794333600000,
              1796752800000
            ],
            "dates": [
              "2026-01-13T18:00",
              "2026-02-10T18:00",
              "2026-03-10T17:00",
              "2026-04-14T18:00",
              "2026-05-12T18:00",
              "2026-06-09T18:00",
              "2026-07-14T18:00",
              "2026-08-11T18:00",
              "2026-09-08T18:00",
              "2026-10-13T18:00",
              "2026-11-10T18:00",
              "2026-12-08T18:00"
            ],
            "annotations": [],
            "uid": "kairos-9497d93edd32-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/patch-tuesday.md#04",
      "layer": "doctest",
      "origin": "recipes/patch-tuesday.md 実行例 4",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01 tz: Australia/Sydney\npremise PT {\n  calendar-system: Gregorian\n  tz: \"America/Los_Angeles\"\n  wkst: Sun\n}\n@PT\npatchDay = everyDay |> filter(d => weekday(d) == Tue) |> within(month) |> nth(2)\npatchDay |> at(T10:00)\n#=> 2026-01-14T05:00 2026-02-11T05:00 2026-03-11T04:00 2026-04-15T03:00 2026-05-13T03:00 2026-06-10T03:00\n#=> 2026-07-15T03:00 2026-08-12T03:00 2026-09-09T03:00 2026-10-14T04:00 2026-11-11T05:00 2026-12-09T05:00\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Australia/Sydney",
      "expect": {
        "results": [
          {
            "points": [
              1768327200000,
              1770746400000,
              1773162000000,
              1776186000000,
              1778605200000,
              1781024400000,
              1784048400000,
              1786467600000,
              1788886800000,
              1791910800000,
              1794333600000,
              1796752800000
            ],
            "dates": [
              "2026-01-14T05:00",
              "2026-02-11T05:00",
              "2026-03-11T04:00",
              "2026-04-15T03:00",
              "2026-05-13T03:00",
              "2026-06-10T03:00",
              "2026-07-15T03:00",
              "2026-08-12T03:00",
              "2026-09-09T03:00",
              "2026-10-14T04:00",
              "2026-11-11T05:00",
              "2026-12-09T05:00"
            ],
            "annotations": [],
            "uid": "kairos-0a6ac79d2d8f-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/patch-tuesday.md#05",
      "layer": "doctest",
      "origin": "recipes/patch-tuesday.md 実行例 5",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01 tz: Asia/Tokyo\npremise Tokyo {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@Tokyo\neveryDay |> filter(d => weekday(d) == Wed) |> within(month) |> nth(2) |> at(T03:00)\n#=> 2026-01-14T03:00 2026-02-11T03:00 2026-03-11T03:00 2026-04-08T03:00 2026-05-13T03:00 2026-06-10T03:00\n#=> 2026-07-08T03:00 2026-08-12T03:00 2026-09-09T03:00 2026-10-14T03:00 2026-11-11T03:00 2026-12-09T03:00\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768327200000,
              1770746400000,
              1773165600000,
              1775584800000,
              1778608800000,
              1781028000000,
              1783447200000,
              1786471200000,
              1788890400000,
              1791914400000,
              1794333600000,
              1796752800000
            ],
            "dates": [
              "2026-01-14T03:00",
              "2026-02-11T03:00",
              "2026-03-11T03:00",
              "2026-04-08T03:00",
              "2026-05-13T03:00",
              "2026-06-10T03:00",
              "2026-07-08T03:00",
              "2026-08-12T03:00",
              "2026-09-09T03:00",
              "2026-10-14T03:00",
              "2026-11-11T03:00",
              "2026-12-09T03:00"
            ],
            "annotations": [],
            "labels": [
              "Wed",
              "Wed",
              "Wed",
              "Wed",
              "Wed",
              "Wed",
              "Wed",
              "Wed",
              "Wed",
              "Wed",
              "Wed",
              "Wed"
            ],
            "uid": "kairos-26445225f8b1-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/patch-tuesday.md#06",
      "layer": "doctest",
      "origin": "recipes/patch-tuesday.md 実行例 6",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01 tz: America/Los_Angeles\npremise PT {\n  calendar-system: Gregorian\n  tz: \"America/Los_Angeles\"\n  wkst: Sun\n}\n@PT\npatchDay = everyDay |> filter(d => weekday(d) == Tue) |> within(month) |> nth(2)\npatchDay |> shift(+4, unit: day) |> at(T22:00)\n#=> 2026-01-17T22:00 2026-02-14T22:00 2026-03-14T22:00 2026-04-18T22:00 2026-05-16T22:00 2026-06-13T22:00\n#=> 2026-07-18T22:00 2026-08-15T22:00 2026-09-12T22:00 2026-10-17T22:00 2026-11-14T22:00 2026-12-12T22:00\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "America/Los_Angeles",
      "expect": {
        "results": [
          {
            "points": [
              1768716000000,
              1771135200000,
              1773550800000,
              1776574800000,
              1778994000000,
              1781413200000,
              1784437200000,
              1786856400000,
              1789275600000,
              1792299600000,
              1794722400000,
              1797141600000
            ],
            "dates": [
              "2026-01-17T22:00",
              "2026-02-14T22:00",
              "2026-03-14T22:00",
              "2026-04-18T22:00",
              "2026-05-16T22:00",
              "2026-06-13T22:00",
              "2026-07-18T22:00",
              "2026-08-15T22:00",
              "2026-09-12T22:00",
              "2026-10-17T22:00",
              "2026-11-14T22:00",
              "2026-12-12T22:00"
            ],
            "annotations": [],
            "uid": "kairos-bd9c045655a4-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/patch-tuesday.md#07",
      "layer": "doctest",
      "origin": "recipes/patch-tuesday.md 実行例 7",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01 tz: America/Los_Angeles\npremise PT {\n  calendar-system: Gregorian\n  tz: \"America/Los_Angeles\"\n  wkst: Sun\n}\n@PT\neveryDay |> filter(d => weekday(d) == Tue) |> within(month) |> nth(4) |> at(T10:00)\n#=> 2026-01-27T10:00 2026-02-24T10:00 2026-03-24T10:00 2026-04-28T10:00 2026-05-26T10:00 2026-06-23T10:00\n#=> 2026-07-28T10:00 2026-08-25T10:00 2026-09-22T10:00 2026-10-27T10:00 2026-11-24T10:00 2026-12-22T10:00\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "America/Los_Angeles",
      "expect": {
        "results": [
          {
            "points": [
              1769536800000,
              1771956000000,
              1774371600000,
              1777395600000,
              1779814800000,
              1782234000000,
              1785258000000,
              1787677200000,
              1790096400000,
              1793120400000,
              1795543200000,
              1797962400000
            ],
            "dates": [
              "2026-01-27T10:00",
              "2026-02-24T10:00",
              "2026-03-24T10:00",
              "2026-04-28T10:00",
              "2026-05-26T10:00",
              "2026-06-23T10:00",
              "2026-07-28T10:00",
              "2026-08-25T10:00",
              "2026-09-22T10:00",
              "2026-10-27T10:00",
              "2026-11-24T10:00",
              "2026-12-22T10:00"
            ],
            "annotations": [],
            "labels": [
              "Tue",
              "Tue",
              "Tue",
              "Tue",
              "Tue",
              "Tue",
              "Tue",
              "Tue",
              "Tue",
              "Tue",
              "Tue",
              "Tue"
            ],
            "uid": "kairos-464ac08929f5-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/quartz-15w-nearest-weekday.md#01",
      "layer": "doctest",
      "origin": "recipes/quartz-15w-nearest-weekday.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-12-31\n@JP\nweekdays = everyDay |> filter(d => weekday(d) != Sat and weekday(d) != Sun)\nd15 = everyDay |> within(month) |> nth(15)\n(d15 |> filter(d => weekday(d) != Sat and weekday(d) != Sun))\n  | (d15 |> filter(d => weekday(d) == Sat) |> roll(Preceding, on: weekdays))\n  | (d15 |> filter(d => weekday(d) == Sun) |> roll(Following, on: weekdays))\n#=> 2026-01-15 2026-02-16 2026-03-16 2026-04-15 2026-05-15 2026-06-15\n#=> 2026-07-15 2026-08-14 2026-09-15 2026-10-15 2026-11-16 2026-12-15\n",
      "from": "2026-01-01",
      "to": "2026-12-31",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768402800000,
              1771167600000,
              1773586800000,
              1776178800000,
              1778770800000,
              1781449200000,
              1784041200000,
              1786633200000,
              1789398000000,
              1791990000000,
              1794754800000,
              1797260400000
            ],
            "dates": [
              "2026-01-15",
              "2026-02-16",
              "2026-03-16",
              "2026-04-15",
              "2026-05-15",
              "2026-06-15",
              "2026-07-15",
              "2026-08-14",
              "2026-09-15",
              "2026-10-15",
              "2026-11-16",
              "2026-12-15"
            ],
            "annotations": [],
            "labels": [
              "Thu",
              "Mon",
              "Mon",
              "Wed",
              "Fri",
              "Mon",
              "Wed",
              "Fri",
              "Tue",
              "Thu",
              "Mon",
              "Tue"
            ],
            "uid": "kairos-7aa35e895814-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/quartz-15w-nearest-weekday.md#02",
      "layer": "doctest",
      "origin": "recipes/quartz-15w-nearest-weekday.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-12-31 tz: America/New_York\npremise US {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Sun\n}\n\n@US\nfederal2026 = [2026-01-01, 2026-01-19, 2026-02-16, 2026-05-25, 2026-06-19,\n               2026-07-03, 2026-09-07, 2026-10-12, 2026-11-11, 2026-11-26,\n               2026-12-25] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\nbizDay = everyDay \\ (satSun | federal2026)\n\nd15 = everyDay |> within(month) |> nth(15)\n(d15 |> filter(d => weekday(d) != Sat and weekday(d) != Sun))\n  | (d15 |> filter(d => weekday(d) == Sat) |> roll(Preceding, on: bizDay))\n  | (d15 |> filter(d => weekday(d) == Sun) |> roll(Following, on: bizDay))\n#=> 2026-01-15 2026-02-17 2026-03-16 2026-04-15 2026-05-15 2026-06-15\n#=> 2026-07-15 2026-08-14 2026-09-15 2026-10-15 2026-11-16 2026-12-15\n#~> 範囲外 2026-01-01..2026-01-02（federal2026 covering 2026-01-01..2026-12-31）\n",
      "from": "2026-01-01",
      "to": "2026-12-31",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1768453200000,
              1771304400000,
              1773633600000,
              1776225600000,
              1778817600000,
              1781496000000,
              1784088000000,
              1786680000000,
              1789444800000,
              1792036800000,
              1794805200000,
              1797310800000
            ],
            "dates": [
              "2026-01-15",
              "2026-02-17",
              "2026-03-16",
              "2026-04-15",
              "2026-05-15",
              "2026-06-15",
              "2026-07-15",
              "2026-08-14",
              "2026-09-15",
              "2026-10-15",
              "2026-11-16",
              "2026-12-15"
            ],
            "annotations": [
              {
                "fromMs": 1767243600000,
                "toMs": 1767330000001,
                "source": "federal2026",
                "covering": "2026-01-01..2026-12-31"
              }
            ],
            "labels": [
              "Thu",
              "Tue",
              "Mon",
              "Wed",
              "Fri",
              "Mon",
              "Wed",
              "Fri",
              "Tue",
              "Thu",
              "Mon",
              "Tue"
            ],
            "uid": "kairos-ff258e79f0be-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "federal2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 1
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/us-election-day-and-thanksgiving.md#01",
      "layer": "doctest",
      "origin": "recipes/us-election-day-and-thanksgiving.md 実行例 1",
      "command": "list",
      "source": "# eval: 2024-01-01..2029-01-01 tz: America/New_York\npremise US {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Sun\n}\n@US\nfirstMonNov = everyDay |> filter(d => weekday(d) == Mon and month(d) == 11) |> within(year) |> first\nfirstMonNov |> shift(+1, unit: day)\n#=> 2024-11-05 2025-11-04 2026-11-03 2027-11-02 2028-11-07\n",
      "from": "2024-01-01",
      "to": "2029-01-01",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1730782800000,
              1762232400000,
              1793682000000,
              1825128000000,
              1857186000000
            ],
            "dates": [
              "2024-11-05",
              "2025-11-04",
              "2026-11-03",
              "2027-11-02",
              "2028-11-07"
            ],
            "annotations": [],
            "uid": "kairos-7b05acef7d80-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/us-election-day-and-thanksgiving.md#02",
      "layer": "doctest",
      "origin": "recipes/us-election-day-and-thanksgiving.md 実行例 2",
      "command": "list",
      "source": "# eval: 2024-01-01..2031-01-01 tz: America/New_York\npremise US {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Sun\n}\n@US\nfirstMonNov = everyDay |> filter(d => weekday(d) == Mon and month(d) == 11) |> within(year) |> first\nfirstMonNov |> shift(+1, unit: day) |> filter(d => year(d) mod 2 == 0)\n#=> 2024-11-05 2026-11-03 2028-11-07 2030-11-05\n",
      "from": "2024-01-01",
      "to": "2031-01-01",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1730782800000,
              1793682000000,
              1857186000000,
              1920085200000
            ],
            "dates": [
              "2024-11-05",
              "2026-11-03",
              "2028-11-07",
              "2030-11-05"
            ],
            "annotations": [],
            "uid": "kairos-7cb664f0aa96-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/us-election-day-and-thanksgiving.md#03",
      "layer": "doctest",
      "origin": "recipes/us-election-day-and-thanksgiving.md 実行例 3",
      "command": "list",
      "source": "# eval: 2024-01-01..2028-01-01 tz: America/New_York\npremise US {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Sun\n}\n@US\nthanksgiving = everyDay |> filter(d => weekday(d) == Thu and month(d) == 11) |> within(month) |> nth(4)\nthanksgiving |> shift(+1, unit: day)\n#=> 2024-11-29 2025-11-28 2026-11-27 2027-11-26\n",
      "from": "2024-01-01",
      "to": "2028-01-01",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1732856400000,
              1764306000000,
              1795755600000,
              1827205200000
            ],
            "dates": [
              "2024-11-29",
              "2025-11-28",
              "2026-11-27",
              "2027-11-26"
            ],
            "annotations": [],
            "uid": "kairos-a1660034f9bb-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/us-election-day-and-thanksgiving.md#04",
      "layer": "doctest",
      "origin": "recipes/us-election-day-and-thanksgiving.md 実行例 4",
      "command": "list",
      "source": "# eval: 2024-01-01..2028-01-01 tz: America/New_York\npremise US {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Sun\n}\n@US\nthanksgiving = everyDay |> filter(d => weekday(d) == Thu and month(d) == 11) |> within(month) |> nth(4)\nthanksgiving |> shift(+4, unit: day)\n#=> 2024-12-02 2025-12-01 2026-11-30 2027-11-29\n",
      "from": "2024-01-01",
      "to": "2028-01-01",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1733115600000,
              1764565200000,
              1796014800000,
              1827464400000
            ],
            "dates": [
              "2024-12-02",
              "2025-12-01",
              "2026-11-30",
              "2027-11-29"
            ],
            "annotations": [],
            "uid": "kairos-5bd11dc6ce8e-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/us-election-day-and-thanksgiving.md#05",
      "layer": "doctest",
      "origin": "recipes/us-election-day-and-thanksgiving.md 実行例 5",
      "command": "list",
      "source": "# eval: 2024-01-01..2028-01-01 tz: America/New_York\npremise US {\n  calendar-system: Gregorian\n  tz: \"America/New_York\"\n  wkst: Sun\n}\n@US\nthanksgiving = everyDay |> filter(d => weekday(d) == Thu and month(d) == 11) |> within(month) |> nth(4)\nthanksgiving |> roll(Following, on: (everyDay |> filter(d => weekday(d) == Sun)))\n#=> 2024-12-01 2025-11-30 2026-11-29 2027-11-28\n",
      "from": "2024-01-01",
      "to": "2028-01-01",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1733029200000,
              1764478800000,
              1795928400000,
              1827378000000
            ],
            "dates": [
              "2024-12-01",
              "2025-11-30",
              "2026-11-29",
              "2027-11-28"
            ],
            "annotations": [],
            "labels": [
              "Sun",
              "Sun",
              "Sun",
              "Sun"
            ],
            "uid": "kairos-c767b6d01b09-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/windows-admin.md#01",
      "layer": "doctest",
      "origin": "recipes/windows-admin.md 実行例 1",
      "command": "list",
      "source": "# Windows Update の日（第 2 火曜 10:00 太平洋時間）\n# eval: 2026-10-01..2026-12-31 tz: Asia/Tokyo\npremise PT {\n  calendar-system: Gregorian\n  tz: \"America/Los_Angeles\"\n  wkst: Sun\n}\n@PT\npatchDay = everyDay |> filter(d => weekday(d) == Tue) |> within(month) |> nth(2)\npatchDay |> at(T10:00)\n#=> 2026-10-14T02:00 2026-11-11T03:00 2026-12-09T03:00\n",
      "from": "2026-10-01",
      "to": "2026-12-31",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1791910800000,
              1794333600000,
              1796752800000
            ],
            "dates": [
              "2026-10-14T02:00",
              "2026-11-11T03:00",
              "2026-12-09T03:00"
            ],
            "annotations": [],
            "uid": "kairos-d712b9b0e6f6-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/recipes/windows-admin.md#02",
      "layer": "doctest",
      "origin": "recipes/windows-admin.md 実行例 2",
      "command": "list",
      "source": "# Windows Update の日の通知（東京の朝 9 時）\n# eval: 2026-10-01..2027-01-01 tz: Asia/Tokyo\npremise PT {\n  calendar-system: Gregorian\n  tz: \"America/Los_Angeles\"\n  wkst: Sun\n  release = everyDay |> filter(d => weekday(d) == Tue) |> within(month) |> nth(2) |> at(T10:00)\n}\npremise JP {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nPT.release |> snapTo(day) |> at(T09:00)\n#=> 2026-10-14T09:00 2026-11-11T09:00 2026-12-09T09:00\n",
      "from": "2026-10-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1791936000000,
              1794355200000,
              1796774400000
            ],
            "dates": [
              "2026-10-14T09:00",
              "2026-11-11T09:00",
              "2026-12-09T09:00"
            ],
            "annotations": [],
            "uid": "kairos-60dec3a63fe4-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/at.md#01",
      "layer": "doctest",
      "origin": "reference/at.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-08-01..2026-11-01\n@JP\nbizDay |> within(month) |> last |> at(T17:00)\n#=> 2026-08-31T17:00 2026-09-30T17:00 2026-10-30T17:00\n",
      "from": "2026-08-01",
      "to": "2026-11-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1788163200000,
              1790755200000,
              1793347200000
            ],
            "dates": [
              "2026-08-31T17:00",
              "2026-09-30T17:00",
              "2026-10-30T17:00"
            ],
            "annotations": [],
            "uid": "kairos-ebf1bd01d835-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 61
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/at.md#02",
      "layer": "doctest",
      "origin": "reference/at.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-03-07..2026-03-10 tz: America/New_York\npremise NY { calendar-system: Gregorian; tz: \"America/New_York\"; wkst: Sun }\n@NY\neveryDay |> at(T09:00)\n#=> 2026-03-07T09:00 2026-03-08T09:00 2026-03-09T09:00\n",
      "from": "2026-03-07",
      "to": "2026-03-10",
      "tz": "America/New_York",
      "expect": {
        "results": [
          {
            "points": [
              1772892000000,
              1772974800000,
              1773061200000
            ],
            "dates": [
              "2026-03-07T09:00",
              "2026-03-08T09:00",
              "2026-03-09T09:00"
            ],
            "annotations": [],
            "uid": "kairos-a356c62c6448-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/before.md#01",
      "layer": "doctest",
      "origin": "reference/before.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-10-01..2026-10-20\n@JP\nbizDay |> before(2026-10-13)\n#=> 2026-10-01 2026-10-02 2026-10-05 2026-10-06 2026-10-07 2026-10-08 2026-10-09\n",
      "from": "2026-10-01",
      "to": "2026-10-20",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1790780400000,
              1790866800000,
              1791126000000,
              1791212400000,
              1791298800000,
              1791385200000,
              1791471600000
            ],
            "dates": [
              "2026-10-01",
              "2026-10-02",
              "2026-10-05",
              "2026-10-06",
              "2026-10-07",
              "2026-10-08",
              "2026-10-09"
            ],
            "annotations": [],
            "uid": "kairos-d29f906ce207-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 73
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/before.md#02",
      "layer": "doctest",
      "origin": "reference/before.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-11-04..2026-11-05\n@JP\nhourly = everyInstant |> strideBy(1h, from: 2026-01-01)\nhourly |> since(2026-11-04T09:00) |> before(2026-11-04T17:00)\n#=> 2026-11-04T09:00 2026-11-04T10:00 2026-11-04T11:00 2026-11-04T12:00 2026-11-04T13:00 2026-11-04T14:00 2026-11-04T15:00 2026-11-04T16:00\n",
      "from": "2026-11-04",
      "to": "2026-11-05",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1793750400000,
              1793754000000,
              1793757600000,
              1793761200000,
              1793764800000,
              1793768400000,
              1793772000000,
              1793775600000
            ],
            "dates": [
              "2026-11-04T09:00",
              "2026-11-04T10:00",
              "2026-11-04T11:00",
              "2026-11-04T12:00",
              "2026-11-04T13:00",
              "2026-11-04T14:00",
              "2026-11-04T15:00",
              "2026-11-04T16:00"
            ],
            "annotations": [],
            "uid": "kairos-bf2328b4b1c3-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/coincides.md#01",
      "layer": "doctest",
      "origin": "reference/coincides.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-05..2026-01-10\npremise Cal {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  satSunC = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  nonWorking = satSunC\n}\npremise Biz {\n  calendar-system: Gregorian\n  calendar: Cal\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n  nineTick = everyInstant |> strideBy(1d, from: 2026-01-01T09:00)\n}\n@Biz\nclosures = [2026-01-07] covering: ..\nnineTick |> filter(t => coincides(bizDay, day, t) and not coincides(closures, day, t))\n#=> 2026-01-05T09:00 2026-01-06T09:00 2026-01-08T09:00 2026-01-09T09:00\n",
      "from": "2026-01-05",
      "to": "2026-01-10",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767571200000,
              1767657600000,
              1767830400000,
              1767916800000
            ],
            "dates": [
              "2026-01-05T09:00",
              "2026-01-06T09:00",
              "2026-01-08T09:00",
              "2026-01-09T09:00"
            ],
            "annotations": [],
            "uid": "kairos-59a741930db6-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "closures",
            "covering": "..",
            "concluded": true,
            "runwayDays": null
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/coincides.md#02",
      "layer": "doctest",
      "origin": "reference/coincides.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-01-05..2026-01-10\npremise Cal {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  satSunC = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  nonWorking = satSunC\n}\npremise Biz {\n  calendar-system: Gregorian\n  calendar: Cal\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n  nineTick = everyInstant |> strideBy(1d, from: 2026-01-01T09:00)\n}\n@Biz\nclosures = [2026-01-07] covering: ..\nbizx = bizDay \\ closures\nnineTick |> filter(t => coincides(bizx, day, t))\n#=> 2026-01-05T09:00 2026-01-06T09:00 2026-01-08T09:00 2026-01-09T09:00\n",
      "from": "2026-01-05",
      "to": "2026-01-10",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767571200000,
              1767657600000,
              1767830400000,
              1767916800000
            ],
            "dates": [
              "2026-01-05T09:00",
              "2026-01-06T09:00",
              "2026-01-08T09:00",
              "2026-01-09T09:00"
            ],
            "annotations": [],
            "uid": "kairos-24e478bdba26-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "closures",
            "covering": "..",
            "concluded": true,
            "runwayDays": null
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/combinators.md#01",
      "layer": "doctest",
      "origin": "reference/combinators.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-09-01..2026-10-01\n@JP\nstatutory  = [2026-09-21, 2026-09-23] covering: 2026..2026\nsandwiched = ((statutory |> shift(+1, unit: day)) & (statutory |> shift(-1, unit: day))) \\ statutory\nstatutory | sandwiched\n#=> 2026-09-21 2026-09-22 2026-09-23\n",
      "from": "2026-09-01",
      "to": "2026-10-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1789916400000,
              1790002800000,
              1790089200000
            ],
            "dates": [
              "2026-09-21",
              "2026-09-22",
              "2026-09-23"
            ],
            "annotations": [],
            "uid": "kairos-969c88ef0202-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "statutory",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 92
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/combinators.md#02",
      "layer": "doctest",
      "origin": "reference/combinators.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-01-06\n@JP\neveryDay \\ satSun\n#=> 2026-01-01 2026-01-02 2026-01-05\n",
      "from": "2026-01-01",
      "to": "2026-01-06",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1767279600000,
              1767538800000
            ],
            "dates": [
              "2026-01-01",
              "2026-01-02",
              "2026-01-05"
            ],
            "annotations": [],
            "uid": "kairos-8b83ff162ffb-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/cycle.md#01",
      "layer": "doctest",
      "origin": "reference/cycle.md 実行例 1",
      "command": "list",
      "source": "# eval: 2020-01-01..2028-01-01\npremise JPEto = Gregorian with {\n  tz: \"Asia/Tokyo\"                  # anchor（日付リテラル）の錨打ちに要る（ADR-33）\n  yearBranch = year cycle [子, 丑, 寅, 卯, 辰, 巳, 午, 未, 申, 酉, 戌, 亥] anchor: 2020-01-01\n}\n@JPEto\neveryDay |> within(year) |> first |> filter(d => yearBranch(d) == 午)\n#=> 2026-01-01\n",
      "from": "2020-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000
            ],
            "dates": [
              "2026-01-01"
            ],
            "annotations": [],
            "labels": [
              "午"
            ],
            "uid": "kairos-3403799e5761-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/cycle.md#02",
      "layer": "doctest",
      "origin": "reference/cycle.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-01-20\n@JP\neveryDay |> filter(d => weekday(d) == Mon)\n#=> 2026-01-05 2026-01-12 2026-01-19\n",
      "from": "2026-01-01",
      "to": "2026-01-20",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1768143600000,
              1768748400000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-12",
              "2026-01-19"
            ],
            "annotations": [],
            "labels": [
              "Mon",
              "Mon",
              "Mon"
            ],
            "uid": "kairos-6e6e5e2a5b95-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/epochOrdinal.md#01",
      "layer": "doctest",
      "origin": "reference/epochOrdinal.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-04-01\n@JP\neveryDay |> filter(d => epochOrdinal(month, d) mod 2 == 0) |> within(month) |> first\n#=> 2026-01-01 2026-03-01\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1772290800000
            ],
            "dates": [
              "2026-01-01",
              "2026-03-01"
            ],
            "annotations": [],
            "uid": "kairos-0ee5ca46dbb8-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/epochOrdinal.md#02",
      "layer": "doctest",
      "origin": "reference/epochOrdinal.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2027-01-01\n@JP\neveryDay |> filter(d => epochOrdinal(month, d) mod 12 == 0) |> within(month) |> first\n#=> 2026-01-01\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000
            ],
            "dates": [
              "2026-01-01"
            ],
            "annotations": [],
            "uid": "kairos-11c23313dc86-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/everyDay.md#01",
      "layer": "doctest",
      "origin": "reference/everyDay.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-01-05\n@JP\neveryDay\n#=> 2026-01-01 2026-01-02 2026-01-03 2026-01-04\n",
      "from": "2026-01-01",
      "to": "2026-01-05",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1767279600000,
              1767366000000,
              1767452400000
            ],
            "dates": [
              "2026-01-01",
              "2026-01-02",
              "2026-01-03",
              "2026-01-04"
            ],
            "annotations": [],
            "uid": "kairos-f53f8f477902-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/everyDay.md#02",
      "layer": "doctest",
      "origin": "reference/everyDay.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-04-01\n@JP\neveryDay |> within(month) |> first\n#=> 2026-01-01 2026-02-01 2026-03-01\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1769871600000,
              1772290800000
            ],
            "dates": [
              "2026-01-01",
              "2026-02-01",
              "2026-03-01"
            ],
            "annotations": [],
            "uid": "kairos-196c658db3d5-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/everyInstant.md#01",
      "layer": "doctest",
      "origin": "reference/everyInstant.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-01-03\n@JP\neveryInstant |> strideBy(24h39m35.244s, from: 2026-01-01)\n#=> 2026-01-01 2026-01-02T00:39:35.244\n",
      "from": "2026-01-01",
      "to": "2026-01-03",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1767281975244
            ],
            "dates": [
              "2026-01-01",
              "2026-01-02T00:39:35.244"
            ],
            "annotations": [],
            "uid": "kairos-113a852fcec2-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/external.md#01",
      "layer": "doctest",
      "origin": "reference/external.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-03-01\n# resolve: holidays = dates 2026-01-01 2026-01-12 covering: 2026-01-01..2026-01-31 asof: 2026-01-15\npremise HRDB { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"hr-db/holidays\"\n  holidays = external(kind: dates)\n}\n@HRDB\nholidays\n#=> 2026-01-01 2026-01-12\n#~> 範囲外 2026-02-01..2026-03-01（HRDB.holidays covering 2026-01-01..2026-01-31, asof 2026-01-15）\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "holidays": {
          "dates": [
            "2026-01-01",
            "2026-01-12"
          ],
          "covering": "2026-01-01..2026-01-31",
          "asof": "2026-01-15"
        }
      },
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1768143600000
            ],
            "dates": [
              "2026-01-01",
              "2026-01-12"
            ],
            "annotations": [
              {
                "fromMs": 1769871600000,
                "toMs": 1772290800000,
                "source": "HRDB.holidays",
                "covering": "2026-01-01..2026-01-31",
                "asof": "2026-01-15"
              }
            ],
            "uid": "kairos-b94adac01d85-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "HRDB.holidays",
            "covering": "2026-01-01..2026-01-31",
            "asof": "2026-01-15",
            "concluded": false,
            "runwayDays": -28
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/filter.md#01",
      "layer": "doctest",
      "origin": "reference/filter.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-01-08\n@JP\neveryDay |> filter(on: bizDay)\n#=> 2026-01-02 2026-01-05 2026-01-06 2026-01-07\n",
      "from": "2026-01-01",
      "to": "2026-01-08",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767279600000,
              1767538800000,
              1767625200000,
              1767711600000
            ],
            "dates": [
              "2026-01-02",
              "2026-01-05",
              "2026-01-06",
              "2026-01-07"
            ],
            "annotations": [],
            "uid": "kairos-ec205da9ac7d-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 358
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/filter.md#02",
      "layer": "doctest",
      "origin": "reference/filter.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-01-20\n@JP\neveryDay |> filter(d => weekday(d) == Mon)\n#=> 2026-01-05 2026-01-12 2026-01-19\n",
      "from": "2026-01-01",
      "to": "2026-01-20",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1768143600000,
              1768748400000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-12",
              "2026-01-19"
            ],
            "annotations": [],
            "labels": [
              "Mon",
              "Mon",
              "Mon"
            ],
            "uid": "kairos-6e6e5e2a5b95-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/filter.md#03",
      "layer": "doctest",
      "origin": "reference/filter.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-04-01\n@JP\neveryDay |> filter(d => ordinalIn(day, month, d) == 11)\n#=> 2026-01-11 2026-02-11 2026-03-11\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768057200000,
              1770735600000,
              1773154800000
            ],
            "dates": [
              "2026-01-11",
              "2026-02-11",
              "2026-03-11"
            ],
            "annotations": [],
            "uid": "kairos-16b3a3fd4c94-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/first.md#01",
      "layer": "doctest",
      "origin": "reference/first.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2027-01-01\n@JP\neveryDay |> within(quarter) |> first\n#=> 2026-01-01 2026-04-01 2026-07-01 2026-10-01\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1774969200000,
              1782831600000,
              1790780400000
            ],
            "dates": [
              "2026-01-01",
              "2026-04-01",
              "2026-07-01",
              "2026-10-01"
            ],
            "annotations": [],
            "uid": "kairos-53ef100da9c7-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/first.md#02",
      "layer": "doctest",
      "origin": "reference/first.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2027-01-01\n@JP\neveryDay |> within(quarter) |> within(month) |> first(of: quarter)\n#=> 2026-01-01 2026-04-01 2026-07-01 2026-10-01\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1774969200000,
              1782831600000,
              1790780400000
            ],
            "dates": [
              "2026-01-01",
              "2026-04-01",
              "2026-07-01",
              "2026-10-01"
            ],
            "annotations": [],
            "uid": "kairos-9d470ad043c9-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/grid.md#01",
      "layer": "doctest",
      "origin": "reference/grid.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-02-05\npremise Dekad = Gregorian with { decade = chronos grid 10d anchor: 2026-01-01 }\npremise JPD { calendar-system: Dekad; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPD\neveryDay |> within(decade) |> first\n#=> 2026-01-01 2026-01-11 2026-01-21 2026-01-31\n",
      "from": "2026-01-01",
      "to": "2026-02-05",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1768057200000,
              1768921200000,
              1769785200000
            ],
            "dates": [
              "2026-01-01",
              "2026-01-11",
              "2026-01-21",
              "2026-01-31"
            ],
            "annotations": [],
            "uid": "kairos-7d22a2eb196e-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/isOpen.md#01",
      "layer": "doctest",
      "origin": "reference/isOpen.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-05..2026-01-08\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"example\"\n  satSunC = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  holidays = [2026-01-01] covering: 2026..2026\n  nonWorking = satSunC | holidays\n  nine  = chronos grid 1d anchor: 2026-01-01T09:00\n  three = chronos grid 1d anchor: 2026-01-01T15:00\n  halfDayCloses = [2026-01-06T11:30] covering: 2026..2026\n  sessionOpens  = nine |> first\n  sessionCloses = (three |> first |> filter(t => not coincides(halfDayCloses, day, t))) | halfDayCloses\n}\npremise JP2 {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n  hourly = everyInstant |> strideBy(1h, from: 2026-01-01)\n}\n@JP2\nhourly |> filter(t => isOpen(t))\n#=> 2026-01-05T09:00 2026-01-05T10:00 2026-01-05T11:00 2026-01-05T12:00 2026-01-05T13:00 2026-01-05T14:00\n#=> 2026-01-06T09:00 2026-01-06T10:00 2026-01-06T11:00\n#=> 2026-01-07T09:00 2026-01-07T10:00 2026-01-07T11:00 2026-01-07T12:00 2026-01-07T13:00 2026-01-07T14:00\n",
      "from": "2026-01-05",
      "to": "2026-01-08",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767571200000,
              1767574800000,
              1767578400000,
              1767582000000,
              1767585600000,
              1767589200000,
              1767657600000,
              1767661200000,
              1767664800000,
              1767744000000,
              1767747600000,
              1767751200000,
              1767754800000,
              1767758400000,
              1767762000000
            ],
            "dates": [
              "2026-01-05T09:00",
              "2026-01-05T10:00",
              "2026-01-05T11:00",
              "2026-01-05T12:00",
              "2026-01-05T13:00",
              "2026-01-05T14:00",
              "2026-01-06T09:00",
              "2026-01-06T10:00",
              "2026-01-06T11:00",
              "2026-01-07T09:00",
              "2026-01-07T10:00",
              "2026-01-07T11:00",
              "2026-01-07T12:00",
              "2026-01-07T13:00",
              "2026-01-07T14:00"
            ],
            "annotations": [],
            "uid": "kairos-6e54387f387b-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "TSE.halfDayCloses",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 358
          },
          {
            "source": "TSE.holidays",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 358
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/isOpen.md#02",
      "layer": "doctest",
      "origin": "reference/isOpen.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-01-08\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"example\"\n  satSunC = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  holidays = [2026-01-01] covering: 2026..2026\n  nonWorking = satSunC | holidays\n  nine  = chronos grid 1d anchor: 2026-01-01T09:00\n  three = chronos grid 1d anchor: 2026-01-01T15:00\n  sessionOpens  = nine |> first\n  sessionCloses = three |> first\n}\npremise JP2 { calendar-system: Gregorian; calendar: TSE; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP2\nbizOpen\n#=> 2026-01-02T09:00 2026-01-05T09:00 2026-01-06T09:00 2026-01-07T09:00\n",
      "from": "2026-01-01",
      "to": "2026-01-08",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767312000000,
              1767571200000,
              1767657600000,
              1767744000000
            ],
            "dates": [
              "2026-01-02T09:00",
              "2026-01-05T09:00",
              "2026-01-06T09:00",
              "2026-01-07T09:00"
            ],
            "annotations": [],
            "uid": "kairos-cfbf86f119a3-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "TSE.holidays",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 358
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/labelOrdinal.md#01",
      "layer": "doctest",
      "origin": "reference/labelOrdinal.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-01-20\npremise US { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Sun }\n@US\neveryDay |> filter(d => labelOrdinal(weekday, d) == 7)\n#=> 2026-01-04 2026-01-11 2026-01-18\n",
      "from": "2026-01-01",
      "to": "2026-01-20",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767452400000,
              1768057200000,
              1768662000000
            ],
            "dates": [
              "2026-01-04",
              "2026-01-11",
              "2026-01-18"
            ],
            "annotations": [],
            "labels": [
              "Sun",
              "Sun",
              "Sun"
            ],
            "uid": "kairos-1646f25900bb-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/labelOrdinal.md#02",
      "layer": "doctest",
      "origin": "reference/labelOrdinal.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-02-03..2026-03-07\n@JP\nsetsu = [2026-01-05, 2026-02-04, 2026-03-05, 2026-04-05] covering: 2026-01-05..2026-04-05\nsekkiMonth = everyDay |> segmentBy(setsu, edges: drop, empties: error,\n                                   labels: cycle [寅, 卯, 辰, 巳, 午, 未, 申, 酉, 戌, 亥, 子, 丑]\n                                   anchor: 2026-02-04)\neveryDay |> filter(d => labelOrdinal(sekkiMonth, d) == 2)\n#=> 2026-03-05 2026-03-06\n",
      "from": "2026-02-03",
      "to": "2026-03-07",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1772636400000,
              1772722800000
            ],
            "dates": [
              "2026-03-05",
              "2026-03-06"
            ],
            "annotations": [],
            "labels": [
              "卯",
              "卯"
            ],
            "uid": "kairos-6c1a5d249eb5-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "setsu",
            "covering": "2026-01-05..2026-04-05",
            "concluded": false,
            "runwayDays": 30
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/labelOrdinal.md#03",
      "layer": "doctest",
      "origin": "reference/labelOrdinal.md 実行例 3",
      "command": "list",
      "source": "# eval: 2026-02-17..2026-03-19\n# resolve: saku = dates 2026-01-19 2026-02-17 2026-03-19 2026-04-17 2026-05-17 covering: 2026-01-01..2026-05-31 asof: 2026-09-03 labels: m12 m1 m2 m3 m4\npremise L { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"moon/saku\"\n  saku  = external(kind: dates, labels: [m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12])\n  lunar = day |> segmentBy(saku, edges: drop, empties: keep, label: (p => saku(p)))\n  rokuyoNo = d => (labelOrdinal(saku, lunar(d)) + ordinalIn(day, lunar, d)) mod 6\n}\n@L\neveryDay |> filter(d => rokuyoNo(d) == 0)\n#=> 2026-02-21 2026-02-27 2026-03-05 2026-03-11 2026-03-17\n",
      "from": "2026-02-17",
      "to": "2026-03-19",
      "tz": "Asia/Tokyo",
      "supply": {
        "saku": {
          "dates": [
            "2026-01-19",
            "2026-02-17",
            "2026-03-19",
            "2026-04-17",
            "2026-05-17"
          ],
          "covering": "2026-01-01..2026-05-31",
          "asof": "2026-09-03",
          "labels": [
            "m12",
            "m1",
            "m2",
            "m3",
            "m4"
          ]
        }
      },
      "expect": {
        "results": [
          {
            "points": [
              1771599600000,
              1772118000000,
              1772636400000,
              1773154800000,
              1773673200000
            ],
            "dates": [
              "2026-02-21",
              "2026-02-27",
              "2026-03-05",
              "2026-03-11",
              "2026-03-17"
            ],
            "annotations": [],
            "uid": "kairos-e9eaee8b0894-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "L.saku",
            "covering": "2026-01-01..2026-05-31",
            "asof": "2026-09-03",
            "concluded": false,
            "runwayDays": 74
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/last.md#01",
      "layer": "doctest",
      "origin": "reference/last.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-04-01\n@JP\neveryDay |> within(month) |> last\n#=> 2026-01-31 2026-02-28 2026-03-31\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769785200000,
              1772204400000,
              1774882800000
            ],
            "dates": [
              "2026-01-31",
              "2026-02-28",
              "2026-03-31"
            ],
            "annotations": [],
            "uid": "kairos-b203264804fb-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/last.md#02",
      "layer": "doctest",
      "origin": "reference/last.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-05..2026-01-26\n@JP\neveryDay |> within(week) |> last\n#=> 2026-01-11 2026-01-18 2026-01-25\n",
      "from": "2026-01-05",
      "to": "2026-01-26",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768057200000,
              1768662000000,
              1769266800000
            ],
            "dates": [
              "2026-01-11",
              "2026-01-18",
              "2026-01-25"
            ],
            "annotations": [],
            "uid": "kairos-7b8c9703dace-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/nonWorking.md#01",
      "layer": "doctest",
      "origin": "reference/nonWorking.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-01-08\npremise TSE {\n  calendar-system: Gregorian\n  tz:     \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof:   2026-01-05\n  satSun     = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  holidays   = [2026-01-01] covering: 2026..2026\n  nonWorking = satSun | holidays\n}\npremise Tokyo {\n  calendar-system: Gregorian\n  calendar:        TSE\n  tz:              \"Asia/Tokyo\"\n  wkst:            Mon\n}\n@Tokyo\neveryDay |> filter(on: bizDay)\n#=> 2026-01-02 2026-01-05 2026-01-06 2026-01-07\n",
      "from": "2026-01-01",
      "to": "2026-01-08",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767279600000,
              1767538800000,
              1767625200000,
              1767711600000
            ],
            "dates": [
              "2026-01-02",
              "2026-01-05",
              "2026-01-06",
              "2026-01-07"
            ],
            "annotations": [],
            "uid": "kairos-ec205da9ac7d-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "TSE.holidays",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 358
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/nonWorking.md#02",
      "layer": "doctest",
      "origin": "reference/nonWorking.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-02-01\npremise TSE {\n  calendar-system: Gregorian\n  tz:     \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  satSun     = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  holidays   = [2026-01-01] covering: 2026..2026\n  nonWorking = satSun | holidays\n}\npremise Tokyo {\n  calendar-system: Gregorian\n  calendar:        TSE\n  tz:              \"Asia/Tokyo\"\n  wkst:            Mon\n}\n@Tokyo\neveryDay |> within(month) |> nth(25) |> roll(Preceding, on: TSE)\n#=> 2026-01-23\n#~> 範囲外 2026-01-01..2026-01-02（TSE.holidays covering 2026-01-01..2026-12-31）\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769094000000
            ],
            "dates": [
              "2026-01-23"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1767279600001,
                "source": "TSE.holidays",
                "covering": "2026-01-01..2026-12-31"
              }
            ],
            "uid": "kairos-5d129d795298-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "TSE.holidays",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 334
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/nonWorking.md#03",
      "layer": "doctest",
      "origin": "reference/nonWorking.md 実行例 3",
      "command": "list",
      "source": "# eval: 2026-01-02..2026-03-01\npremise Cal { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"hr-db\"\n  holidays = [2026-01-01, 2026-01-12, 2026-02-11] covering: 2026..2026\n  satSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  nonWorking = satSun | holidays\n}\npremise Use { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; calendar: Cal }\n@Use\nCal.holidays |> shift(-1, unit: day)\n#=> 2026-01-11 2026-02-10\n",
      "from": "2026-01-02",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768057200000,
              1770649200000
            ],
            "dates": [
              "2026-01-11",
              "2026-02-10"
            ],
            "annotations": [],
            "uid": "kairos-5db014440c1b-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Cal.holidays",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 306
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/nth.md#01",
      "layer": "doctest",
      "origin": "reference/nth.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-02-01\n@JP\neveryDay |> within(month) |> nth(25)\n#=> 2026-01-25\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769266800000
            ],
            "dates": [
              "2026-01-25"
            ],
            "annotations": [],
            "uid": "kairos-21d31a0da6de-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/nth.md#02",
      "layer": "doctest",
      "origin": "reference/nth.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-02-01\n@JP\neveryDay |> filter(on: bizDay) |> within(month) |> nth(2)\n#=> 2026-01-05\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000
            ],
            "dates": [
              "2026-01-05"
            ],
            "annotations": [],
            "uid": "kairos-c8ba9d323eca-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 334
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/nth.md#03",
      "layer": "doctest",
      "origin": "reference/nth.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-03-01\n@JP\neveryDay |> filter(d => weekday(d) == Mon) |> within(month) |> nth(2)\n#=> 2026-01-12 2026-02-09\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768143600000,
              1770562800000
            ],
            "dates": [
              "2026-01-12",
              "2026-02-09"
            ],
            "annotations": [],
            "labels": [
              "Mon",
              "Mon"
            ],
            "uid": "kairos-52cb842312ea-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/ordinalIn.md#01",
      "layer": "doctest",
      "origin": "reference/ordinalIn.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-04-01\n@JP\neveryDay |> filter(d => ordinalIn(day, month, d) == 11)\n#=> 2026-01-11 2026-02-11 2026-03-11\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768057200000,
              1770735600000,
              1773154800000
            ],
            "dates": [
              "2026-01-11",
              "2026-02-11",
              "2026-03-11"
            ],
            "annotations": [],
            "uid": "kairos-16b3a3fd4c94-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/ordinalIn.md#02",
      "layer": "doctest",
      "origin": "reference/ordinalIn.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-02-01\n@JP\neveryDay |> filter(d => (ordinalIn(day, month, d) - 1) mod 7 == 0)\n#=> 2026-01-01 2026-01-08 2026-01-15 2026-01-22 2026-01-29\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1767798000000,
              1768402800000,
              1769007600000,
              1769612400000
            ],
            "dates": [
              "2026-01-01",
              "2026-01-08",
              "2026-01-15",
              "2026-01-22",
              "2026-01-29"
            ],
            "annotations": [],
            "uid": "kairos-5e5241393c67-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/rebase.md#01",
      "layer": "doctest",
      "origin": "reference/rebase.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-01-13\npremise Tok = Gregorian with {\n  source: \"test-tokyo\"; asof: 2026-01-01\n  tz: \"Asia/Tokyo\"\n  hol = [2026-01-01, 2026-01-12] covering: 2026..2026\n  ss  = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  biz = everyDay \\ (ss | hol)\n}\npremise NYk = Gregorian with {\n  source: \"test-ny\"; asof: 2026-01-01\n  tz: \"America/New_York\"\n  hol = [2026-01-01, 2026-01-19] covering: 2026..2026\n  ss  = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  biz = everyDay \\ (ss | hol)\n}\npremise UNY { calendar-system: Gregorian; tz: \"America/New_York\"; wkst: Mon }\n@UNY\n(Tok.biz |> rebase(to: \"America/New_York\")) & NYk.biz\n#=> 2026-01-02T14:00 2026-01-05T14:00 2026-01-06T14:00 2026-01-07T14:00\n#=> 2026-01-08T14:00 2026-01-09T14:00\n#~> 範囲外 2026-01-01..2026-01-01T14:00（Tok.hol covering 2026-01-01..2026-12-31, asof 2026-01-01）\n#~> 範囲外 2026-01-01..2026-01-01T14:00（NYk.hol covering 2026-01-01..2026-12-31, asof 2026-01-01）\n",
      "from": "2026-01-01",
      "to": "2026-01-13",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767330000000,
              1767589200000,
              1767675600000,
              1767762000000,
              1767848400000,
              1767934800000
            ],
            "dates": [
              "2026-01-02T14:00",
              "2026-01-05T14:00",
              "2026-01-06T14:00",
              "2026-01-07T14:00",
              "2026-01-08T14:00",
              "2026-01-09T14:00"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1767243600000,
                "source": "Tok.hol",
                "covering": "2026-01-01..2026-12-31",
                "asof": "2026-01-01"
              },
              {
                "fromMs": 1767193200000,
                "toMs": 1767243600000,
                "source": "NYk.hol",
                "covering": "2026-01-01..2026-12-31",
                "asof": "2026-01-01"
              }
            ],
            "uid": "kairos-3d176a90c96d-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Tok.hol",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-01",
            "concluded": false,
            "runwayDays": 353
          },
          {
            "source": "NYk.hol",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-01",
            "concluded": false,
            "runwayDays": 354
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/rephase.md#01",
      "layer": "doctest",
      "origin": "reference/rephase.md 実行例 1",
      "command": "list",
      "source": "# eval: 2025-01-01..2028-01-01\npremise Fiscal2 = Gregorian |> rephase(+3, on: year, unit: month)\npremise FY2 { calendar-system: Fiscal2; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FY2\neveryDay |> within(year) |> first\n#=> 2025-04-01 2026-04-01 2027-04-01\n",
      "from": "2025-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1743433200000,
              1774969200000,
              1806505200000
            ],
            "dates": [
              "2025-04-01",
              "2026-04-01",
              "2027-04-01"
            ],
            "annotations": [],
            "uid": "kairos-f60e66b30c02-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/roll.md#01",
      "layer": "doctest",
      "origin": "reference/roll.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-02-01\n@JP\neveryDay |> within(month) |> nth(25) |> roll(Preceding, on: bizDay)\n#=> 2026-01-23\n#~> 範囲外 2026-01-01..2026-01-02（holidays2026 covering 2026-01-01..2026-12-31, asof 2026-01-05）\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769094000000
            ],
            "dates": [
              "2026-01-23"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1767279600001,
                "source": "holidays2026",
                "covering": "2026-01-01..2026-12-31",
                "asof": "2026-01-05"
              }
            ],
            "uid": "kairos-4f63ae78d212-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 334
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/roll.md#02",
      "layer": "doctest",
      "origin": "reference/roll.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-05-01..2026-06-01\n@JP\nstatutory   = [2026-05-03, 2026-05-04, 2026-05-05] covering: 2026..2026\nnonHoliday  = everyDay \\ statutory\nstatutory |> filter(d => weekday(d) == Sun) |> roll(Following, on: nonHoliday)\n#=> 2026-05-06\n",
      "from": "2026-05-01",
      "to": "2026-06-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1777993200000
            ],
            "dates": [
              "2026-05-06"
            ],
            "annotations": [],
            "labels": [
              "Wed"
            ],
            "uid": "kairos-f477c8ea95e6-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "statutory",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 214
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/roll.md#03",
      "layer": "doctest",
      "origin": "reference/roll.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-03-01\n@JP\nmonth |> last |> roll(Preceding, on: (everyDay |> filter(d => weekday(d) == Fri)))\n#=> 2026-01-30 2026-02-27\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769698800000,
              1772118000000
            ],
            "dates": [
              "2026-01-30",
              "2026-02-27"
            ],
            "annotations": [],
            "labels": [
              "Fri",
              "Fri"
            ],
            "uid": "kairos-9d8552513754-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/segmentBy.md#01",
      "layer": "doctest",
      "origin": "reference/segmentBy.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-05-01\n@JP\nnewMoons = [2026-01-19T04:52, 2026-02-17T21:01, 2026-03-19T10:23, 2026-04-17T20:52]\nlunarStart = newMoons |> snapTo(day)\neveryDay |> segmentBy(lunarStart, edges: drop, empties: drop) |> first\n#=> 2026-01-19 2026-02-17 2026-03-19\n#~> 範囲外 2026-01-01..2026-01-19（newMoons covering 2026-01-19T04:52..2026-04-17T20:52）\n#~> 範囲外 2026-04-17..2026-05-01（newMoons covering 2026-01-19T04:52..2026-04-17T20:52）\n",
      "from": "2026-01-01",
      "to": "2026-05-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768748400000,
              1771254000000,
              1773846000000
            ],
            "dates": [
              "2026-01-19",
              "2026-02-17",
              "2026-03-19"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1768748400000,
                "source": "newMoons",
                "covering": "2026-01-19T04:52..2026-04-17T20:52"
              },
              {
                "fromMs": 1776351600000,
                "toMs": 1777561200000,
                "source": "newMoons",
                "covering": "2026-01-19T04:52..2026-04-17T20:52"
              }
            ],
            "uid": "kairos-4e8e2d1840f2-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "newMoons",
            "covering": "2026-01-19T04:52..2026-04-17T20:52",
            "concluded": false,
            "runwayDays": -13
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/segmentBy.md#02",
      "layer": "doctest",
      "origin": "reference/segmentBy.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-07-01\n@JP\nnewMoons = [2026-01-19T04:52, 2026-02-17T21:01, 2026-03-19T10:23, 2026-04-17T20:52]\n  covering: 2026-01-19..2026-04-30\nlunarMonth = everyDay |> segmentBy((newMoons |> snapTo(day)), edges: drop, empties: error,\n                                   labels: [12, 1, 2, 3])\nlunarMonth |> first |> filter(d => lunarMonth(d) == 1)\n#=> 2026-02-17\n#~> 範囲外 2026-01-01..2026-01-19（newMoons covering 2026-01-19..2026-04-30）\n#~> 範囲外 2026-05-01..2026-07-01（newMoons covering 2026-01-19..2026-04-30）\n",
      "from": "2026-01-01",
      "to": "2026-07-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1771254000000
            ],
            "dates": [
              "2026-02-17"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1768748400000,
                "source": "newMoons",
                "covering": "2026-01-19..2026-04-30"
              },
              {
                "fromMs": 1777561200000,
                "toMs": 1782831600000,
                "source": "newMoons",
                "covering": "2026-01-19..2026-04-30"
              }
            ],
            "labels": [
              "1"
            ],
            "uid": "kairos-a372ed0f5afb-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "newMoons",
            "covering": "2026-01-19..2026-04-30",
            "concluded": false,
            "runwayDays": -61
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/segmentBy.md#03",
      "layer": "doctest",
      "origin": "reference/segmentBy.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-02-03..2026-02-06\n@JP\nsetsu = [2026-01-05, 2026-02-04, 2026-03-05, 2026-04-05] covering: 2026-01-05..2026-04-05\nsekkiMonth = everyDay |> segmentBy(setsu, edges: drop, empties: error,\n                                   labels: cycle [寅, 卯, 辰, 巳, 午, 未, 申, 酉, 戌, 亥, 子, 丑]\n                                   anchor: 2026-02-04)\neveryDay |> filter(d => sekkiMonth(d) == 寅)\n#=> 2026-02-04 2026-02-05\n",
      "from": "2026-02-03",
      "to": "2026-02-06",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1770130800000,
              1770217200000
            ],
            "dates": [
              "2026-02-04",
              "2026-02-05"
            ],
            "annotations": [],
            "labels": [
              "寅",
              "寅"
            ],
            "uid": "kairos-9baa8d305e9d-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "setsu",
            "covering": "2026-01-05..2026-04-05",
            "concluded": false,
            "runwayDays": 59
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/segmentBy.md#04",
      "layer": "doctest",
      "origin": "reference/segmentBy.md 実行例 4",
      "command": "list",
      "source": "# eval: 2026-02-15..2026-02-22\n# resolve: saku = dates 2026-01-19 2026-02-17 2026-03-19 2026-04-17 2026-05-17 covering: 2026-01-01..2026-05-31 asof: 2026-09-03 labels: m12 m1 m2 m3 m4\npremise L { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"moon/saku\"\n  saku  = external(kind: dates, labels: [m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12])\n  lunar = day |> segmentBy(saku, edges: drop, empties: keep, label: (p => saku(p)))\n}\n@L\neveryDay |> filter(d => lunar(d) == m1)\n#=> 2026-02-17 2026-02-18 2026-02-19 2026-02-20 2026-02-21\n",
      "from": "2026-02-15",
      "to": "2026-02-22",
      "tz": "Asia/Tokyo",
      "supply": {
        "saku": {
          "dates": [
            "2026-01-19",
            "2026-02-17",
            "2026-03-19",
            "2026-04-17",
            "2026-05-17"
          ],
          "covering": "2026-01-01..2026-05-31",
          "asof": "2026-09-03",
          "labels": [
            "m12",
            "m1",
            "m2",
            "m3",
            "m4"
          ]
        }
      },
      "expect": {
        "results": [
          {
            "points": [
              1771254000000,
              1771340400000,
              1771426800000,
              1771513200000,
              1771599600000
            ],
            "dates": [
              "2026-02-17",
              "2026-02-18",
              "2026-02-19",
              "2026-02-20",
              "2026-02-21"
            ],
            "annotations": [],
            "uid": "kairos-c53795acbbc5-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "L.saku",
            "covering": "2026-01-01..2026-05-31",
            "asof": "2026-09-03",
            "concluded": false,
            "runwayDays": 99
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/shift.md#01",
      "layer": "doctest",
      "origin": "reference/shift.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-02-01\n@JP\nmonthEnd |> roll(Preceding, on: bizDay) |> shift(-3, unit: bizDay)\n#=> 2026-01-27\n#~> 範囲外 2026-01-01..2026-01-02（holidays2026 covering 2026-01-01..2026-12-31, asof 2026-01-05）\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769439600000
            ],
            "dates": [
              "2026-01-27"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1767279600001,
                "source": "holidays2026",
                "covering": "2026-01-01..2026-12-31",
                "asof": "2026-01-05"
              }
            ],
            "uid": "kairos-5c020675181b-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 334
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/shift.md#02",
      "layer": "doctest",
      "origin": "reference/shift.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-06-01\n@JP\nsekki = [2026-01-05T17:23, 2026-01-20T10:45, 2026-02-04T05:02]\n  covering: 2026..2026\n  labels: [小寒, 大寒, 立春]\nsekki |> filter(s => sekki(s) == 立春) |> shift(+87, unit: day)\n#=> 2026-05-02T05:02\n#~> 範囲外 2026-01-01..2026-03-29（sekki covering 2026-01-01..2026-12-31）\n",
      "from": "2026-01-01",
      "to": "2026-06-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1777665720000
            ],
            "dates": [
              "2026-05-02T05:02"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1774710000000,
                "source": "sekki",
                "covering": "2026-01-01..2026-12-31"
              }
            ],
            "labels": [
              null
            ],
            "uid": "kairos-392a91641f7d-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "sekki",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 214
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/since.md#01",
      "layer": "doctest",
      "origin": "reference/since.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-10-01..2026-10-20\n@JP\nbizDay |> since(2026-10-13)\n#=> 2026-10-13 2026-10-14 2026-10-15 2026-10-16 2026-10-19\n",
      "from": "2026-10-01",
      "to": "2026-10-20",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1791817200000,
              1791903600000,
              1791990000000,
              1792076400000,
              1792335600000
            ],
            "dates": [
              "2026-10-13",
              "2026-10-14",
              "2026-10-15",
              "2026-10-16",
              "2026-10-19"
            ],
            "annotations": [],
            "uid": "kairos-01e6184e7250-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 73
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/since.md#02",
      "layer": "doctest",
      "origin": "reference/since.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-10-26..2026-10-27\n@JP\nhourly = everyInstant |> strideBy(1h, from: 2026-01-01)\nhourly |> since(2026-10-26T14:30) |> before(2026-10-26T18:00)\n#=> 2026-10-26T15:00 2026-10-26T16:00 2026-10-26T17:00\n",
      "from": "2026-10-26",
      "to": "2026-10-27",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1792994400000,
              1792998000000,
              1793001600000
            ],
            "dates": [
              "2026-10-26T15:00",
              "2026-10-26T16:00",
              "2026-10-26T17:00"
            ],
            "annotations": [],
            "uid": "kairos-6df674520e20-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/snapTo.md#01",
      "layer": "doctest",
      "origin": "reference/snapTo.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-03-01\n@JP\nsekki = [2026-01-05T17:23, 2026-01-20T10:45, 2026-02-04T05:02]\n  covering: 2026..2026\n  labels: [小寒, 大寒, 立春]\nsekki |> filter(s => sekki(s) == 立春) |> snapTo(day)\n#=> 2026-02-04\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1770130800000
            ],
            "dates": [
              "2026-02-04"
            ],
            "annotations": [],
            "labels": [
              null
            ],
            "uid": "kairos-f2737227d2d9-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "sekki",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 306
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/snapTo.md#02",
      "layer": "doctest",
      "origin": "reference/snapTo.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-02-01\n@JP\nnewMoons = [2026-01-19T04:52]\nnewMoons |> snapTo(day)\n#=> 2026-01-19\n#~> 範囲外 2026-01-01..2026-02-01（newMoons covering 2026-01-19T04:52..2026-01-19T04:52）\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768748400000
            ],
            "dates": [
              "2026-01-19"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1769871600000,
                "source": "newMoons",
                "covering": "2026-01-19T04:52..2026-01-19T04:52"
              }
            ],
            "uid": "kairos-f717bb2a8e5c-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "newMoons",
            "covering": "2026-01-19T04:52..2026-01-19T04:52",
            "concluded": false,
            "runwayDays": -13
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/span.md#01",
      "layer": "doctest",
      "origin": "reference/span.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-01-20\npremise P5 = Gregorian with { pentad = day span (_ => 5) }\npremise JP5 { calendar-system: P5; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP5\neveryDay |> within(pentad) |> first\n#=> 2026-01-02 2026-01-07 2026-01-12 2026-01-17\n",
      "from": "2026-01-01",
      "to": "2026-01-20",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767279600000,
              1767711600000,
              1768143600000,
              1768575600000
            ],
            "dates": [
              "2026-01-02",
              "2026-01-07",
              "2026-01-12",
              "2026-01-17"
            ],
            "annotations": [],
            "uid": "kairos-4cc2c11908cc-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/split.md#01",
      "layer": "doctest",
      "origin": "reference/split.md 実行例 1",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01\npremise H = Gregorian with { half = year split (_ => [6, 6]) by: month }\npremise JPH { calendar-system: H; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPH\neveryDay |> within(half) |> first\n#=> 2026-01-01 2026-07-01\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1782831600000
            ],
            "dates": [
              "2026-01-01",
              "2026-07-01"
            ],
            "annotations": [],
            "uid": "kairos-2590949d2852-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/split.md#02",
      "layer": "doctest",
      "origin": "reference/split.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2027-01-01\n@JP\neveryDay |> within(quarter) |> first\n#=> 2026-01-01 2026-04-01 2026-07-01 2026-10-01\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1774969200000,
              1782831600000,
              1790780400000
            ],
            "dates": [
              "2026-01-01",
              "2026-04-01",
              "2026-07-01",
              "2026-10-01"
            ],
            "annotations": [],
            "uid": "kairos-53ef100da9c7-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/split.md#03",
      "layer": "doctest",
      "origin": "reference/split.md 実行例 3",
      "command": "list",
      "source": "# eval: 2026-01-05..2026-01-19\npremise W5 = Gregorian with { weekPart = week split (_ => [5, 2]) by: day }\npremise JPW { calendar-system: W5; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPW\neveryDay |> within(weekPart) |> first\n#=> 2026-01-05 2026-01-10 2026-01-12 2026-01-17\n",
      "from": "2026-01-05",
      "to": "2026-01-19",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1767970800000,
              1768143600000,
              1768575600000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-10",
              "2026-01-12",
              "2026-01-17"
            ],
            "annotations": [],
            "uid": "kairos-ccd327231937-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/stride.md#01",
      "layer": "doctest",
      "origin": "reference/stride.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-01-23\n@JP\neveryDay |> filter(on: bizDay) |> stride(3, from: 2026-01-05)\n#=> 2026-01-05 2026-01-08 2026-01-14 2026-01-19 2026-01-22\n",
      "from": "2026-01-01",
      "to": "2026-01-23",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1767798000000,
              1768316400000,
              1768748400000,
              1769007600000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-08",
              "2026-01-14",
              "2026-01-19",
              "2026-01-22"
            ],
            "annotations": [],
            "uid": "kairos-3ee1f26f3fa0-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 343
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/stride.md#02",
      "layer": "doctest",
      "origin": "reference/stride.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-03-01\n@JP\neveryDay |> filter(d => weekday(d) == Mon) |> stride(2, from: 2026-01-05)\n#=> 2026-01-05 2026-01-19 2026-02-02 2026-02-16\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1768748400000,
              1769958000000,
              1771167600000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-19",
              "2026-02-02",
              "2026-02-16"
            ],
            "annotations": [],
            "labels": [
              "Mon",
              "Mon",
              "Mon",
              "Mon"
            ],
            "uid": "kairos-264faf9ebc07-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/stride.md#03",
      "layer": "doctest",
      "origin": "reference/stride.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-02-01\n@JP\neveryDay |> filter(d => (ordinalIn(day, month, d) - 1) mod 7 == 0)\n#=> 2026-01-01 2026-01-08 2026-01-15 2026-01-22 2026-01-29\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1767798000000,
              1768402800000,
              1769007600000,
              1769612400000
            ],
            "dates": [
              "2026-01-01",
              "2026-01-08",
              "2026-01-15",
              "2026-01-22",
              "2026-01-29"
            ],
            "annotations": [],
            "uid": "kairos-5e5241393c67-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/strideBy.md#01",
      "layer": "doctest",
      "origin": "reference/strideBy.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-01-05\n@JP\neveryInstant |> strideBy(36h, from: 2026-01-01)\n#=> 2026-01-01 2026-01-02T12:00 2026-01-04\n",
      "from": "2026-01-01",
      "to": "2026-01-05",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1767322800000,
              1767452400000
            ],
            "dates": [
              "2026-01-01",
              "2026-01-02T12:00",
              "2026-01-04"
            ],
            "annotations": [],
            "uid": "kairos-33436f337380-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/sugar-definition.md#01",
      "layer": "doctest",
      "origin": "reference/sugar-definition.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-07-01..2026-11-01\n@JP\npaydayOf(n) = s => s |> within(month) |> nth(n) |> roll(Preceding, on: bizDay)\neveryDay |> paydayOf(25)\n#=> 2026-07-24 2026-08-25 2026-09-25 2026-10-23\n",
      "from": "2026-07-01",
      "to": "2026-11-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1784818800000,
              1787583600000,
              1790262000000,
              1792681200000
            ],
            "dates": [
              "2026-07-24",
              "2026-08-25",
              "2026-09-25",
              "2026-10-23"
            ],
            "annotations": [],
            "uid": "kairos-d63e492a9245-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 61
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/sugar-definition.md#02",
      "layer": "doctest",
      "origin": "reference/sugar-definition.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-04-01\n@JP\nmonthFirstBiz = s => s |> within(month) |> first\nmonthFirstBiz(bizDay) | (bizDay |> monthFirstBiz)\n#=> 2026-01-02 2026-02-02 2026-03-02\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767279600000,
              1769958000000,
              1772377200000
            ],
            "dates": [
              "2026-01-02",
              "2026-02-02",
              "2026-03-02"
            ],
            "annotations": [],
            "uid": "kairos-1429a019858f-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 275
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/sugar-definition.md#03",
      "layer": "doctest",
      "origin": "reference/sugar-definition.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-04-01\n@JP\nfirstSunday = filter(d => weekday(d) == Sun) |> within(month) |> first\neveryDay |> firstSunday\n#=> 2026-01-04 2026-02-01 2026-03-01\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767452400000,
              1769871600000,
              1772290800000
            ],
            "dates": [
              "2026-01-04",
              "2026-02-01",
              "2026-03-01"
            ],
            "annotations": [],
            "uid": "kairos-27c24eaed6ec-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/table-literal.md#01",
      "layer": "doctest",
      "origin": "reference/table-literal.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2027-01-01\n@JP\n[2026-02-10..2026-02-13, 2026-03-01]\n#=> 2026-02-10 2026-02-11 2026-02-12 2026-02-13 2026-03-01\n#~> 範囲外 2026-01-01..2026-02-10（(無名テーブル) covering 2026-02-10..2026-03-01）\n#~> 範囲外 2026-03-01..2027-01-01（(無名テーブル) covering 2026-02-10..2026-03-01）\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1770649200000,
              1770735600000,
              1770822000000,
              1770908400000,
              1772290800000
            ],
            "dates": [
              "2026-02-10",
              "2026-02-11",
              "2026-02-12",
              "2026-02-13",
              "2026-03-01"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1770649200000,
                "source": "(無名テーブル)",
                "covering": "2026-02-10..2026-03-01"
              },
              {
                "fromMs": 1772290800001,
                "toMs": 1798729200000,
                "source": "(無名テーブル)",
                "covering": "2026-02-10..2026-03-01"
              }
            ],
            "uid": "kairos-3be64f313c21-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "(無名テーブル)",
            "covering": "2026-02-10..2026-03-01",
            "concluded": false,
            "runwayDays": -306
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/table-literal.md#02",
      "layer": "doctest",
      "origin": "reference/table-literal.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-03-01\n@JP\nsekki = [2026-01-05T17:23, 2026-01-20T10:45, 2026-02-04T05:02]\n  covering: 2026..2026\n  labels: [小寒, 大寒, 立春]\nsekki |> filter(s => sekki(s) == 立春) |> snapTo(day)\n#=> 2026-02-04\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1770130800000
            ],
            "dates": [
              "2026-02-04"
            ],
            "annotations": [],
            "labels": [
              null
            ],
            "uid": "kairos-f2737227d2d9-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "sekki",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 306
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/table-literal.md#03",
      "layer": "doctest",
      "origin": "reference/table-literal.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-07-01..2026-08-01\n@JP\nsekki = [] covering: 2026-07-13..2026-07-13\nsekki\n#~> 範囲外 2026-07-01..2026-07-13（sekki covering 2026-07-13..2026-07-13）\n#~> 範囲外 2026-07-14..2026-08-01（sekki covering 2026-07-13..2026-07-13）\n",
      "from": "2026-07-01",
      "to": "2026-08-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [],
            "dates": [],
            "annotations": [
              {
                "fromMs": 1782831600000,
                "toMs": 1783868400000,
                "source": "sekki",
                "covering": "2026-07-13..2026-07-13"
              },
              {
                "fromMs": 1783954800000,
                "toMs": 1785510000000,
                "source": "sekki",
                "covering": "2026-07-13..2026-07-13"
              }
            ],
            "uid": "kairos-66506f5e8d11-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "sekki",
            "covering": "2026-07-13..2026-07-13",
            "concluded": false,
            "runwayDays": -18
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/take.md#01",
      "layer": "doctest",
      "origin": "reference/take.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-04-01..2026-08-01\n@JP\nlessons   = everyDay |> filter(d => weekday(d) == Tue)\ncancelled = [2026-04-14, 2026-05-05] covering: 2026-04-01..2026-07-01\n(lessons \\ cancelled) |> take(5, from: 2026-04-01)\n#=> 2026-04-07 2026-04-21 2026-04-28 2026-05-12 2026-05-19\n",
      "from": "2026-04-01",
      "to": "2026-08-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1775487600000,
              1776697200000,
              1777302000000,
              1778511600000,
              1779116400000
            ],
            "dates": [
              "2026-04-07",
              "2026-04-21",
              "2026-04-28",
              "2026-05-12",
              "2026-05-19"
            ],
            "annotations": [],
            "uid": "kairos-b2ae3e3cd8db-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "cancelled",
            "covering": "2026-04-01..2026-07-01",
            "concluded": false,
            "runwayDays": -30
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/takeLast.md#01",
      "layer": "doctest",
      "origin": "reference/takeLast.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-12-31\n@JP\ntensha = [2026-01-06, 2026-03-05, 2026-05-25, 2026-07-24, 2026-10-06, 2026-12-21] covering: 2026-01-01..2026-12-31\ntensha |> takeLast(3, until: 2026-08-21)\n#=> 2026-03-05 2026-05-25 2026-07-24\n",
      "from": "2026-01-01",
      "to": "2026-12-31",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1772636400000,
              1779634800000,
              1784818800000
            ],
            "dates": [
              "2026-03-05",
              "2026-05-25",
              "2026-07-24"
            ],
            "annotations": [],
            "uid": "kairos-89bae5494f29-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "tensha",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 1
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/takeLast.md#02",
      "layer": "doctest",
      "origin": "reference/takeLast.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-12-31\n@JP\ntensha = [2026-01-06, 2026-03-05, 2026-05-25, 2026-07-24, 2026-10-06, 2026-12-21] covering: 2026-01-01..2026-12-31\ntensha |> takeLast(2, until: 2026-08-21) |> at(T07:00)\n#=> 2026-05-25T07:00 2026-07-24T07:00\n",
      "from": "2026-01-01",
      "to": "2026-12-31",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1779660000000,
              1784844000000
            ],
            "dates": [
              "2026-05-25T07:00",
              "2026-07-24T07:00"
            ],
            "annotations": [],
            "uid": "kairos-a08f58cdfa95-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "tensha",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 1
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/with.md#01",
      "layer": "doctest",
      "origin": "reference/with.md 実行例 1",
      "command": "list",
      "source": "# eval: 2025-01-01..2028-01-01\npremise Fiscal = Gregorian with { year = month span (_ => 12) phase: 3 label: (p => yearNo(p)) }\npremise FY { calendar-system: Fiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FY\neveryDay |> within(year) |> first\n#=> 2025-04-01 2026-04-01 2027-04-01\n",
      "from": "2025-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1743433200000,
              1774969200000,
              1806505200000
            ],
            "dates": [
              "2025-04-01",
              "2026-04-01",
              "2027-04-01"
            ],
            "annotations": [],
            "uid": "kairos-f60e66b30c02-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/with.md#02",
      "layer": "doctest",
      "origin": "reference/with.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01\npremise Fiscal = Gregorian with { year = month span (_ => 12) phase: 3 label: (p => yearNo(p)) }\npremise FY { calendar-system: Fiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FY\neveryDay |> within(quarter) |> first\n#=> 2026-01-01 2026-04-01 2026-07-01 2026-10-01\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1774969200000,
              1782831600000,
              1790780400000
            ],
            "dates": [
              "2026-01-01",
              "2026-04-01",
              "2026-07-01",
              "2026-10-01"
            ],
            "annotations": [],
            "uid": "kairos-53ef100da9c7-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/within.md#01",
      "layer": "doctest",
      "origin": "reference/within.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-04-01\n@JP\neveryDay |> within(month) |> last\n#=> 2026-01-31 2026-02-28 2026-03-31\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769785200000,
              1772204400000,
              1774882800000
            ],
            "dates": [
              "2026-01-31",
              "2026-02-28",
              "2026-03-31"
            ],
            "annotations": [],
            "uid": "kairos-b203264804fb-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/reference/within.md#02",
      "layer": "doctest",
      "origin": "reference/within.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-04-01\n@JP\neveryDay |> within(quarter) |> within(month) |> nth(2, of: month)\n#=> 2026-01-02 2026-02-02 2026-03-02\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767279600000,
              1769958000000,
              1772377200000
            ],
            "dates": [
              "2026-01-02",
              "2026-02-02",
              "2026-03-02"
            ],
            "annotations": [],
            "uid": "kairos-f71ea8af5130-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#01",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-02-01\n@JP\neveryDay |> filter(d => weekday(d) == Tue)\n#=> 2026-01-06 2026-01-13 2026-01-20 2026-01-27\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767625200000,
              1768230000000,
              1768834800000,
              1769439600000
            ],
            "dates": [
              "2026-01-06",
              "2026-01-13",
              "2026-01-20",
              "2026-01-27"
            ],
            "annotations": [],
            "labels": [
              "Tue",
              "Tue",
              "Tue",
              "Tue"
            ],
            "uid": "kairos-8e8cb0cbffe7-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#02",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-05..2026-05-01\n@JP\neveryDay |> filter(d => dayNo(d) == 25) |> roll(Preceding, on: bizDay)\n#=> 2026-01-23 2026-02-25 2026-03-25 2026-04-24\n",
      "from": "2026-01-05",
      "to": "2026-05-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769094000000,
              1771945200000,
              1774364400000,
              1776956400000
            ],
            "dates": [
              "2026-01-23",
              "2026-02-25",
              "2026-03-25",
              "2026-04-24"
            ],
            "annotations": [],
            "uid": "kairos-e48a894b87cd-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 245
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#03",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-05..2026-03-01\n@JP\nmonthEnd |> roll(Preceding, on: bizDay) |> shift(-3, unit: bizDay)\n#=> 2026-01-27 2026-02-24\n",
      "from": "2026-01-05",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769439600000,
              1771858800000
            ],
            "dates": [
              "2026-01-27",
              "2026-02-24"
            ],
            "annotations": [],
            "uid": "kairos-5c020675181b-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 306
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#04",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 4",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-04-01\n@JP\neveryDay |> filter(d => weekday(d) == Wed) |> within(month) |> nth(2)\n#=> 2026-01-14 2026-02-11 2026-03-11\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768316400000,
              1770735600000,
              1773154800000
            ],
            "dates": [
              "2026-01-14",
              "2026-02-11",
              "2026-03-11"
            ],
            "annotations": [],
            "labels": [
              "Wed",
              "Wed",
              "Wed"
            ],
            "uid": "kairos-390defa03cb4-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#05",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 5",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-04-01\n@JP\nbizDay |> within(month) |> nth(3)\n#=> 2026-01-06 2026-02-04 2026-03-04\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767625200000,
              1770130800000,
              1772550000000
            ],
            "dates": [
              "2026-01-06",
              "2026-02-04",
              "2026-03-04"
            ],
            "annotations": [],
            "uid": "kairos-5bfd3a9336d2-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 275
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#06",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 6",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-03-01\n@JP\nwed = everyDay |> filter(d => weekday(d) == Wed)\n(wed |> within(month) |> nth(1)) | (wed |> within(month) |> nth(3))\n#=> 2026-01-07 2026-01-21 2026-02-04 2026-02-18\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767711600000,
              1768921200000,
              1770130800000,
              1771340400000
            ],
            "dates": [
              "2026-01-07",
              "2026-01-21",
              "2026-02-04",
              "2026-02-18"
            ],
            "annotations": [],
            "uid": "kairos-7e852131f19a-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#07",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 7",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-05..2026-03-01\n@JP\nd15 = everyDay |> filter(d => dayNo(d) == 15)\n(d15 | monthEnd) |> roll(Preceding, on: bizDay)\n#=> 2026-01-15 2026-01-30 2026-02-13 2026-02-27\n",
      "from": "2026-01-05",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768402800000,
              1769698800000,
              1770908400000,
              1772118000000
            ],
            "dates": [
              "2026-01-15",
              "2026-01-30",
              "2026-02-13",
              "2026-02-27"
            ],
            "annotations": [],
            "uid": "kairos-87a5d5bffca2-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 306
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#08",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 8",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-03-01\n@JP\neveryDay |> filter(d => weekday(d) == Mon) |> stride(2, from: 2026-01-05)\n#=> 2026-01-05 2026-01-19 2026-02-02 2026-02-16\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1768748400000,
              1769958000000,
              1771167600000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-19",
              "2026-02-02",
              "2026-02-16"
            ],
            "annotations": [],
            "labels": [
              "Mon",
              "Mon",
              "Mon",
              "Mon"
            ],
            "uid": "kairos-264faf9ebc07-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#09",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 9",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-03-01..2026-04-01\n@JP\ntue = everyDay |> filter(d => weekday(d) == Tue)\ntue \\ (tue |> within(month) |> nth(5))\n#=> 2026-03-03 2026-03-10 2026-03-17 2026-03-24\n",
      "from": "2026-03-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1772463600000,
              1773068400000,
              1773673200000,
              1774278000000
            ],
            "dates": [
              "2026-03-03",
              "2026-03-10",
              "2026-03-17",
              "2026-03-24"
            ],
            "annotations": [],
            "uid": "kairos-e9e72849fbc1-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#10",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 10",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-07-20..2026-09-10\n@JP\ntue = everyDay |> filter(d => weekday(d) == Tue)\nclosed = [2026-08-01..2026-08-31, 2026-12-29..2026-12-31] covering: 2026..2026\ntue \\ (closed | holidays2026)\n#=> 2026-07-21 2026-07-28 2026-09-01 2026-09-08\n",
      "from": "2026-07-20",
      "to": "2026-09-10",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1784559600000,
              1785164400000,
              1788188400000,
              1788793200000
            ],
            "dates": [
              "2026-07-21",
              "2026-07-28",
              "2026-09-01",
              "2026-09-08"
            ],
            "annotations": [],
            "uid": "kairos-652d026c7d4c-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "closed",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 113
          },
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 113
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#11",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 11",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-03-01\n@JP\neveryDay |> filter(d => dayNo(d) == 1 or dayNo(d) == 11 or dayNo(d) == 21)\n#=> 2026-01-01 2026-01-11 2026-01-21 2026-02-01 2026-02-11 2026-02-21\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1768057200000,
              1768921200000,
              1769871600000,
              1770735600000,
              1771599600000
            ],
            "dates": [
              "2026-01-01",
              "2026-01-11",
              "2026-01-21",
              "2026-02-01",
              "2026-02-11",
              "2026-02-21"
            ],
            "annotations": [],
            "uid": "kairos-087162169999-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#12",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 12",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-07-01\n@JP\nbizDay |> within(quarter) |> last\n#=> 2026-03-31 2026-06-30\n",
      "from": "2026-01-01",
      "to": "2026-07-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1774882800000,
              1782745200000
            ],
            "dates": [
              "2026-03-31",
              "2026-06-30"
            ],
            "annotations": [],
            "uid": "kairos-4f1672538782-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 184
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#13",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 13",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-05..2027-01-01\n@JP\nmonthEnd |> filter(d => monthNo(d) == 3) |> roll(Preceding, on: bizDay)\n#=> 2026-03-31\n",
      "from": "2026-01-05",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1774882800000
            ],
            "dates": [
              "2026-03-31"
            ],
            "annotations": [],
            "uid": "kairos-0c44b001f03c-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 0
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#14",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 14",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-01..2026-01-20\n@JP\nmon = everyDay |> filter(d => weekday(d) == Mon)\n(mon |> at(T09:00)) | (mon |> at(T15:00))\n#=> 2026-01-05T09:00 2026-01-05T15:00 2026-01-12T09:00 2026-01-12T15:00 2026-01-19T09:00 2026-01-19T15:00\n",
      "from": "2026-01-01",
      "to": "2026-01-20",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767571200000,
              1767592800000,
              1768176000000,
              1768197600000,
              1768780800000,
              1768802400000
            ],
            "dates": [
              "2026-01-05T09:00",
              "2026-01-05T15:00",
              "2026-01-12T09:00",
              "2026-01-12T15:00",
              "2026-01-19T09:00",
              "2026-01-19T15:00"
            ],
            "annotations": [],
            "uid": "kairos-bf1d22f60577-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#15",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 15",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-04-01..2026-08-01\n@JP\nlessons   = everyDay |> filter(d => weekday(d) == Tue)\ncancelled = [2026-04-14, 2026-05-05] covering: 2026-04-01..2026-07-01\n(lessons \\ cancelled) |> take(5, from: 2026-04-01)\n#=> 2026-04-07 2026-04-21 2026-04-28 2026-05-12 2026-05-19\n",
      "from": "2026-04-01",
      "to": "2026-08-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1775487600000,
              1776697200000,
              1777302000000,
              1778511600000,
              1779116400000
            ],
            "dates": [
              "2026-04-07",
              "2026-04-21",
              "2026-04-28",
              "2026-05-12",
              "2026-05-19"
            ],
            "annotations": [],
            "uid": "kairos-b2ae3e3cd8db-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "cancelled",
            "covering": "2026-04-01..2026-07-01",
            "concluded": false,
            "runwayDays": -30
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#16",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 16",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-05..2026-01-21\n@JP\nroster = day cycle [On, On, On, On, Off, Off, Off, Off] anchor: 2026-01-05\neveryDay |> filter(d => roster(d) == On)\n#=> 2026-01-05 2026-01-06 2026-01-07 2026-01-08 2026-01-13 2026-01-14 2026-01-15 2026-01-16\n",
      "from": "2026-01-05",
      "to": "2026-01-21",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1767625200000,
              1767711600000,
              1767798000000,
              1768230000000,
              1768316400000,
              1768402800000,
              1768489200000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-06",
              "2026-01-07",
              "2026-01-08",
              "2026-01-13",
              "2026-01-14",
              "2026-01-15",
              "2026-01-16"
            ],
            "annotations": [],
            "labels": [
              "On",
              "On",
              "On",
              "On",
              "On",
              "On",
              "On",
              "On"
            ],
            "uid": "kairos-fe1682b28821-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#17",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 17",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-10-26..2026-11-04\n@JP\nbizDay\n#=> 2026-10-26 2026-10-27 2026-10-28 2026-10-29 2026-10-30 2026-11-02\n",
      "from": "2026-10-26",
      "to": "2026-11-04",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1792940400000,
              1793026800000,
              1793113200000,
              1793199600000,
              1793286000000,
              1793545200000
            ],
            "dates": [
              "2026-10-26",
              "2026-10-27",
              "2026-10-28",
              "2026-10-29",
              "2026-10-30",
              "2026-11-02"
            ],
            "annotations": [],
            "uid": "kairos-2ed80ca67827-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 58
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#18",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 18",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-05..2027-01-01\n@JP\npayday = everyDay |> filter(d => dayNo(d) == 25) |> roll(Preceding, on: bizDay)\npayday |> takeLast(3, until: 2026-10-22)\n#=> 2026-07-24 2026-08-25 2026-09-25\n",
      "from": "2026-01-05",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1784818800000,
              1787583600000,
              1790262000000
            ],
            "dates": [
              "2026-07-24",
              "2026-08-25",
              "2026-09-25"
            ],
            "annotations": [],
            "uid": "kairos-33b5e07cbe8c-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 0
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#19",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 19",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-10-01..2026-10-20\n@JP\nbizDay |> since(2026-10-13)\n#=> 2026-10-13 2026-10-14 2026-10-15 2026-10-16 2026-10-19\n",
      "from": "2026-10-01",
      "to": "2026-10-20",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1791817200000,
              1791903600000,
              1791990000000,
              1792076400000,
              1792335600000
            ],
            "dates": [
              "2026-10-13",
              "2026-10-14",
              "2026-10-15",
              "2026-10-16",
              "2026-10-19"
            ],
            "annotations": [],
            "uid": "kairos-01e6184e7250-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 73
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#20",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 20",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-10-01..2026-10-20\n@JP\nbizDay |> filter(d => epochOrdinal(day, d) >= epochOrdinal(day, 2026-10-13))\n#=> 2026-10-13 2026-10-14 2026-10-15 2026-10-16 2026-10-19\n",
      "from": "2026-10-01",
      "to": "2026-10-20",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1791817200000,
              1791903600000,
              1791990000000,
              1792076400000,
              1792335600000
            ],
            "dates": [
              "2026-10-13",
              "2026-10-14",
              "2026-10-15",
              "2026-10-16",
              "2026-10-19"
            ],
            "annotations": [],
            "uid": "kairos-75934f5f5c40-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": 73
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#21",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 21",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-05..2026-01-19\n@JP\neveryDay |> filter(d => labelOrdinal(weekday, d) >= 6)\n#=> 2026-01-10 2026-01-11 2026-01-17 2026-01-18\n",
      "from": "2026-01-05",
      "to": "2026-01-19",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767970800000,
              1768057200000,
              1768575600000,
              1768662000000
            ],
            "dates": [
              "2026-01-10",
              "2026-01-11",
              "2026-01-17",
              "2026-01-18"
            ],
            "annotations": [],
            "labels": [
              "Sat",
              "Sun",
              "Sat",
              "Sun"
            ],
            "uid": "kairos-0a7bf359d82f-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/skills/kairos-authoring/SKILL.md#22",
      "layer": "doctest",
      "origin": "skills/kairos-authoring/SKILL.md 実行例 22",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-05..2026-01-21\n@JP\neveryDay |> filter(d => (epochOrdinal(day, d) - epochOrdinal(day, 2026-01-05)) mod 8 + 1 == 3)\n#=> 2026-01-07 2026-01-15\n",
      "from": "2026-01-05",
      "to": "2026-01-21",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767711600000,
              1768402800000
            ],
            "dates": [
              "2026-01-07",
              "2026-01-15"
            ],
            "annotations": [],
            "uid": "kairos-a6c68f1a16f1-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/fiscal.md#01",
      "layer": "doctest",
      "origin": "stdlib/fiscal.md 実行例 1",
      "command": "list",
      "source": "# eval: 2025-01-01..2028-01-01\npremise FY { calendar-system: Fiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FY\neveryDay |> within(year) |> first\n#=> 2025-04-01 2026-04-01 2027-04-01\n",
      "from": "2025-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1743433200000,
              1774969200000,
              1806505200000
            ],
            "dates": [
              "2025-04-01",
              "2026-04-01",
              "2027-04-01"
            ],
            "annotations": [],
            "uid": "kairos-f60e66b30c02-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/fiscal.md#02",
      "layer": "doctest",
      "origin": "stdlib/fiscal.md 実行例 2",
      "command": "list",
      "source": "# eval: 2025-01-01..2028-01-01\npremise FY { calendar-system: Fiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FY\neveryDay |> within(year) |> last\n#=> 2025-03-31 2026-03-31 2027-03-31\n",
      "from": "2025-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1743346800000,
              1774882800000,
              1806418800000
            ],
            "dates": [
              "2025-03-31",
              "2026-03-31",
              "2027-03-31"
            ],
            "annotations": [],
            "uid": "kairos-f6fd2a05b2a2-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/fiscal.md#03",
      "layer": "doctest",
      "origin": "stdlib/fiscal.md 実行例 3",
      "command": "list",
      "source": "# eval: 2026-04-01..2027-04-01\npremise FY { calendar-system: Fiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FY\neveryDay |> filter(d => fiscalMonthNo(d) == 12) |> within(month) |> first\n#=> 2027-03-01\n",
      "from": "2026-04-01",
      "to": "2027-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1803826800000
            ],
            "dates": [
              "2027-03-01"
            ],
            "annotations": [],
            "uid": "kairos-f66d42216195-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/fiscal.md#04",
      "layer": "doctest",
      "origin": "stdlib/fiscal.md 実行例 4",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01\npremise FY { calendar-system: Fiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FY\neveryDay |> within(quarter) |> first\n#=> 2026-01-01 2026-04-01 2026-07-01 2026-10-01\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1774969200000,
              1782831600000,
              1790780400000
            ],
            "dates": [
              "2026-01-01",
              "2026-04-01",
              "2026-07-01",
              "2026-10-01"
            ],
            "annotations": [],
            "uid": "kairos-53ef100da9c7-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/fiscal.md#05",
      "layer": "doctest",
      "origin": "stdlib/fiscal.md 実行例 5",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01\npremise FY { calendar-system: Fiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FY\neveryDay |> filter(d => ordinalIn(quarter, year, d) == 4) |> within(quarter) |> first\n#=> 2026-01-01\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000
            ],
            "dates": [
              "2026-01-01"
            ],
            "annotations": [],
            "uid": "kairos-9de6f62f0271-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/fiscal.md#06",
      "layer": "doctest",
      "origin": "stdlib/fiscal.md 実行例 6",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-07-01\npremise FY { calendar-system: Fiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FY\nmonthEnd\n#=> 2026-01-31 2026-02-28 2026-03-31 2026-04-30 2026-05-31 2026-06-30\n",
      "from": "2026-01-01",
      "to": "2026-07-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769785200000,
              1772204400000,
              1774882800000,
              1777474800000,
              1780153200000,
              1782745200000
            ],
            "dates": [
              "2026-01-31",
              "2026-02-28",
              "2026-03-31",
              "2026-04-30",
              "2026-05-31",
              "2026-06-30"
            ],
            "annotations": [],
            "uid": "kairos-331a7fb4d5e9-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/fiscal.md#07",
      "layer": "doctest",
      "origin": "stdlib/fiscal.md 実行例 7",
      "command": "list",
      "source": "# eval: 2025-01-01..2028-01-01\npremise FY { calendar-system: Fiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FY\neveryDay |> filter(d => fiscalYearNo(d) == 2026) |> within(year) |> first\n#=> 2026-04-01\n",
      "from": "2025-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1774969200000
            ],
            "dates": [
              "2026-04-01"
            ],
            "annotations": [],
            "uid": "kairos-96cc890c5261-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/fiscal.md#08",
      "layer": "doctest",
      "origin": "stdlib/fiscal.md 実行例 8",
      "command": "list",
      "source": "# eval: 2025-01-01..2028-01-01\npremise FY { calendar-system: Fiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FY\neveryDay |> filter(d => fiscalYearNo(d) == 2026) |> within(year) |> last\n#=> 2027-03-31\n",
      "from": "2025-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1806418800000
            ],
            "dates": [
              "2027-03-31"
            ],
            "annotations": [],
            "uid": "kairos-cb4472cfafca-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/fiscal.md#09",
      "layer": "doctest",
      "origin": "stdlib/fiscal.md 実行例 9",
      "command": "list",
      "source": "# eval: 2026-03-30..2026-04-03\npremise FY { calendar-system: Fiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FY\nyear(2025) & Gregorian.year(2026)\n#=> 2026-03-30 2026-03-31\n",
      "from": "2026-03-30",
      "to": "2026-04-03",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1774796400000,
              1774882800000
            ],
            "dates": [
              "2026-03-30",
              "2026-03-31"
            ],
            "annotations": [],
            "uid": "kairos-3d6ce4db4926-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/fiscal.md#10",
      "layer": "doctest",
      "origin": "stdlib/fiscal.md 実行例 10",
      "command": "list",
      "source": "# eval: 2025-01-01..2028-01-01\npremise USFiscal = Gregorian with {\n  year = month span (_ => 12) phase: 9\n  usFiscalYearNo = d => yearOf(epochOrdinal(month, d) + 3)\n}\npremise USFY { calendar-system: USFiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@USFY\neveryDay |> within(year) |> first\n#=> 2025-10-01 2026-10-01 2027-10-01\n",
      "from": "2025-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1759244400000,
              1790780400000,
              1822316400000
            ],
            "dates": [
              "2025-10-01",
              "2026-10-01",
              "2027-10-01"
            ],
            "annotations": [],
            "uid": "kairos-f60e66b30c02-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/fiscal.md#11",
      "layer": "doctest",
      "origin": "stdlib/fiscal.md 実行例 11",
      "command": "list",
      "source": "# eval: 2025-01-01..2028-01-01\npremise USFiscal = Gregorian with {\n  year = month span (_ => 12) phase: 9\n  usFiscalYearNo = d => yearOf(epochOrdinal(month, d) + 3)\n}\npremise USFY { calendar-system: USFiscal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@USFY\neveryDay |> filter(d => usFiscalYearNo(d) == 2026) |> within(year) |> last\n#=> 2026-09-30\n",
      "from": "2025-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1790694000000
            ],
            "dates": [
              "2026-09-30"
            ],
            "annotations": [],
            "uid": "kairos-5f9a6f775d7e-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/fiscal.md#12",
      "layer": "doctest",
      "origin": "stdlib/fiscal.md 実行例 12",
      "command": "list",
      "source": "# eval: 2025-04-01..2026-04-01\npremise FiscalHalf = Fiscal with { half = year split (_ => [6, 6]) by: month }\npremise FYH { calendar-system: FiscalHalf; tz: \"Asia/Tokyo\"; wkst: Mon }\n@FYH\neveryDay |> within(half) |> first\n#=> 2025-04-01 2025-10-01\n",
      "from": "2025-04-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1743433200000,
              1759244400000
            ],
            "dates": [
              "2025-04-01",
              "2025-10-01"
            ],
            "annotations": [],
            "uid": "kairos-2590949d2852-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/gregorian.md#01",
      "layer": "doctest",
      "origin": "stdlib/gregorian.md 実行例 1",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-04-28..2026-05-03\n@JP\nmonth(5) & year(2026)\n#=> 2026-05-01 2026-05-02\n",
      "from": "2026-04-28",
      "to": "2026-05-03",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1777561200000,
              1777647600000
            ],
            "dates": [
              "2026-05-01",
              "2026-05-02"
            ],
            "annotations": [],
            "uid": "kairos-5593fa624587-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/gregorian.md#02",
      "layer": "doctest",
      "origin": "stdlib/gregorian.md 実行例 2",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-02-01..2026-03-05\n@JP\neveryDay |> filter(d => dayNo(d) > daysInMonthOf(d) - 3)\n#=> 2026-02-26 2026-02-27 2026-02-28\n",
      "from": "2026-02-01",
      "to": "2026-03-05",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1772031600000,
              1772118000000,
              1772204400000
            ],
            "dates": [
              "2026-02-26",
              "2026-02-27",
              "2026-02-28"
            ],
            "annotations": [],
            "uid": "kairos-2a5b718b266f-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/gregorian.md#03",
      "layer": "doctest",
      "origin": "stdlib/gregorian.md 実行例 3",
      "command": "list",
      "source": "\npremise TSE {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"jpx.co.jp/trading-calendar\"\n  asof: 2026-01-05\n  nonWorking = satSun | holidays2026\n}\npremise JP {\n  calendar-system: Gregorian\n  calendar: TSE\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20, 2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06, 2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23, 2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n# eval: 2026-01-05..2026-01-06\n@JP\neveryInstant |> strideBy(1h30m, from: 2026-01-05T09:00)\n  |> filter(d => ordinalIn(hour, day, d) >= 10 and ordinalIn(hour, day, d) <= 17)\n#=> 2026-01-05T09:00 2026-01-05T10:30 2026-01-05T12:00 2026-01-05T13:30 2026-01-05T15:00 2026-01-05T16:30\n",
      "from": "2026-01-05",
      "to": "2026-01-06",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767571200000,
              1767576600000,
              1767582000000,
              1767587400000,
              1767592800000,
              1767598200000
            ],
            "dates": [
              "2026-01-05T09:00",
              "2026-01-05T10:30",
              "2026-01-05T12:00",
              "2026-01-05T13:30",
              "2026-01-05T15:00",
              "2026-01-05T16:30"
            ],
            "annotations": [],
            "uid": "kairos-14b4f5caf813-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/iso-week.md#01",
      "layer": "doctest",
      "origin": "stdlib/iso-week.md 実行例 1",
      "command": "list",
      "source": "# eval: 2025-12-01..2026-02-01\npremise ISO { calendar-system: ISOWeek; tz: \"Asia/Tokyo\"; wkst: Mon }\n@ISO\neveryDay |> filter(d => isoYearNo(d) == 2026 and isoWeekNo(d) == 1)\n#=> 2025-12-29 2025-12-30 2025-12-31 2026-01-01 2026-01-02 2026-01-03 2026-01-04\n",
      "from": "2025-12-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1766934000000,
              1767020400000,
              1767106800000,
              1767193200000,
              1767279600000,
              1767366000000,
              1767452400000
            ],
            "dates": [
              "2025-12-29",
              "2025-12-30",
              "2025-12-31",
              "2026-01-01",
              "2026-01-02",
              "2026-01-03",
              "2026-01-04"
            ],
            "annotations": [],
            "uid": "kairos-9b84d4ac008e-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/iso-week.md#02",
      "layer": "doctest",
      "origin": "stdlib/iso-week.md 実行例 2",
      "command": "list",
      "source": "# eval: 2026-12-01..2027-02-01\npremise ISO { calendar-system: ISOWeek; tz: \"Asia/Tokyo\"; wkst: Mon }\n@ISO\neveryDay |> filter(d => isoYearNo(d) == 2026 and isoWeekNo(d) == 53)\n#=> 2026-12-28 2026-12-29 2026-12-30 2026-12-31 2027-01-01 2027-01-02 2027-01-03\n",
      "from": "2026-12-01",
      "to": "2027-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1798383600000,
              1798470000000,
              1798556400000,
              1798642800000,
              1798729200000,
              1798815600000,
              1798902000000
            ],
            "dates": [
              "2026-12-28",
              "2026-12-29",
              "2026-12-30",
              "2026-12-31",
              "2027-01-01",
              "2027-01-02",
              "2027-01-03"
            ],
            "annotations": [],
            "uid": "kairos-4fae03bd0a09-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/iso-week.md#03",
      "layer": "doctest",
      "origin": "stdlib/iso-week.md 実行例 3",
      "command": "list",
      "source": "# eval: 2024-01-01..2028-06-01\npremise ISO { calendar-system: ISOWeek; tz: \"Asia/Tokyo\"; wkst: Mon }\n@ISO\neveryDay |> filter(d => isoWeekNo(d) == 1 and isoWeekday(d) == 4)\n#=> 2024-01-04 2025-01-02 2026-01-01 2027-01-07 2028-01-06\n",
      "from": "2024-01-01",
      "to": "2028-06-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1704294000000,
              1735743600000,
              1767193200000,
              1799247600000,
              1830697200000
            ],
            "dates": [
              "2024-01-04",
              "2025-01-02",
              "2026-01-01",
              "2027-01-07",
              "2028-01-06"
            ],
            "annotations": [],
            "uid": "kairos-8fe2d0c4d5fc-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/iso-week.md#04",
      "layer": "doctest",
      "origin": "stdlib/iso-week.md 実行例 4",
      "command": "list",
      "source": "# eval: 2024-01-01..2028-06-01\npremise ISO { calendar-system: ISOWeek; tz: \"Asia/Tokyo\"; wkst: Mon }\n@ISO\neveryDay |> filter(d => isoWeekNo(d) == 53 and isoWeekday(d) == 5)\n#=> 2027-01-01\n",
      "from": "2024-01-01",
      "to": "2028-06-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1798729200000
            ],
            "dates": [
              "2027-01-01"
            ],
            "annotations": [],
            "uid": "kairos-2dae625b7ea5-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/iso-week.md#05",
      "layer": "doctest",
      "origin": "stdlib/iso-week.md 実行例 5",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-02-01\npremise US { calendar-system: ISOWeek; tz: \"Asia/Tokyo\"; wkst: Sun }\n@US\neveryDay |> filter(d => isoWeekday(d) == 1)\n#=> 2026-01-05 2026-01-12 2026-01-19 2026-01-26\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1768143600000,
              1768748400000,
              1769353200000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-12",
              "2026-01-19",
              "2026-01-26"
            ],
            "annotations": [],
            "uid": "kairos-fb87c25afccb-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/iso-week.md#06",
      "layer": "doctest",
      "origin": "stdlib/iso-week.md 実行例 6",
      "command": "list",
      "source": "# eval: 2026-01-01..2026-02-01\npremise ISOPlain { calendar-system: ISOWeek; tz: \"Asia/Tokyo\" }\n@ISOPlain\neveryDay |> filter(d => isoWeekday(d) == 1)\n#=> 2026-01-05 2026-01-12 2026-01-19 2026-01-26\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1768143600000,
              1768748400000,
              1769353200000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-12",
              "2026-01-19",
              "2026-01-26"
            ],
            "annotations": [],
            "uid": "kairos-fb87c25afccb-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/iso-week.md#07",
      "layer": "doctest",
      "origin": "stdlib/iso-week.md 実行例 7",
      "command": "list",
      "source": "# eval: 2024-01-01..2028-06-01\npremise ISO { calendar-system: ISOWeek; tz: \"Asia/Tokyo\"; wkst: Mon }\n@ISO\neveryDay |> filter(d => isoYearNo(d) != yearNo(d))\n#=> 2024-12-30 2024-12-31 2025-12-29 2025-12-30 2025-12-31\n#=> 2027-01-01 2027-01-02 2027-01-03 2028-01-01 2028-01-02\n",
      "from": "2024-01-01",
      "to": "2028-06-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1735484400000,
              1735570800000,
              1766934000000,
              1767020400000,
              1767106800000,
              1798729200000,
              1798815600000,
              1798902000000,
              1830265200000,
              1830351600000
            ],
            "dates": [
              "2024-12-30",
              "2024-12-31",
              "2025-12-29",
              "2025-12-30",
              "2025-12-31",
              "2027-01-01",
              "2027-01-02",
              "2027-01-03",
              "2028-01-01",
              "2028-01-02"
            ],
            "annotations": [],
            "uid": "kairos-ca8642a08ac7-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/kyureki.md#01",
      "layer": "doctest",
      "origin": "stdlib/kyureki.md 実行例 1",
      "command": "list",
      "source": "# eval: 2025-01-01..2027-03-01\npremise Kyureki = Gregorian with {\n  source: \"eco.mtk.nao.ac.jp/koyomi/yoko\"\n  asof:   2026-02-02\n  tz:     \"Asia/Tokyo\"\n  newMoons = [2024-12-31T07:27,\n              2025-01-29T21:36, 2025-02-28T09:45, 2025-03-29T19:58, 2025-04-28T04:31, 2025-05-27T12:02,\n              2025-06-25T19:32, 2025-07-25T04:11, 2025-08-23T15:07, 2025-09-22T04:54, 2025-10-21T21:25,\n              2025-11-20T15:47, 2025-12-20T10:43, 2026-01-19T04:52, 2026-02-17T21:01, 2026-03-19T10:23,\n              2026-04-17T20:52, 2026-05-17T05:01, 2026-06-15T11:54, 2026-07-14T18:44, 2026-08-13T02:37,\n              2026-09-11T12:27, 2026-10-11T00:50, 2026-11-09T16:02, 2026-12-09T09:52, 2027-01-08T05:24,\n              2027-02-07T00:56, 2027-03-08T18:29, 2027-04-07T08:51, 2027-05-06T19:59, 2027-06-05T04:40,\n              2027-07-04T12:02, 2027-08-02T19:05, 2027-09-01T02:41, 2027-09-30T11:36, 2027-10-29T22:37,\n              2027-11-28T12:24, 2027-12-28T05:12] covering: 2024-12-31..2027-12-31\n  lunarStart   = newMoons |> snapTo(day)\n  monthNos     = [12, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10, 11,\n                  12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,\n                  12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]\n  lunarMonth   = day |> segmentBy(lunarStart, edges: drop, empties: error, labels: monthNos)\n  lunarDayNo   = d => ordinalIn(day, lunarMonth, d)\n  rokuyoNo     = d => (lunarMonth(d) + lunarDayNo(d)) mod 6\n}\npremise Koyomi { calendar-system: Kyureki; tz: \"Asia/Tokyo\"; wkst: Mon }\n@Koyomi\nlunarMonth |> first\n#=> 2025-01-29 2025-02-28 2025-03-29 2025-04-28 2025-05-27 2025-06-25\n#=> 2025-07-25 2025-08-23 2025-09-22 2025-10-21 2025-11-20 2025-12-20\n#=> 2026-01-19 2026-02-17 2026-03-19 2026-04-17 2026-05-17 2026-06-15\n#=> 2026-07-14 2026-08-13 2026-09-11 2026-10-11 2026-11-09 2026-12-09\n#=> 2027-01-08 2027-02-07\n",
      "from": "2025-01-01",
      "to": "2027-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1738076400000,
              1740668400000,
              1743174000000,
              1745766000000,
              1748271600000,
              1750777200000,
              1753369200000,
              1755874800000,
              1758466800000,
              1760972400000,
              1763564400000,
              1766156400000,
              1768748400000,
              1771254000000,
              1773846000000,
              1776351600000,
              1778943600000,
              1781449200000,
              1783954800000,
              1786546800000,
              1789052400000,
              1791644400000,
              1794150000000,
              1796742000000,
              1799334000000,
              1801926000000
            ],
            "dates": [
              "2025-01-29",
              "2025-02-28",
              "2025-03-29",
              "2025-04-28",
              "2025-05-27",
              "2025-06-25",
              "2025-07-25",
              "2025-08-23",
              "2025-09-22",
              "2025-10-21",
              "2025-11-20",
              "2025-12-20",
              "2026-01-19",
              "2026-02-17",
              "2026-03-19",
              "2026-04-17",
              "2026-05-17",
              "2026-06-15",
              "2026-07-14",
              "2026-08-13",
              "2026-09-11",
              "2026-10-11",
              "2026-11-09",
              "2026-12-09",
              "2027-01-08",
              "2027-02-07"
            ],
            "annotations": [],
            "labels": [
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11",
              "12",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11",
              "12",
              "1"
            ],
            "uid": "kairos-c1ad01d5b767-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Kyureki.newMoons",
            "covering": "2024-12-31..2027-12-31",
            "asof": "2026-02-02",
            "concluded": false,
            "runwayDays": 306
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/kyureki.md#02",
      "layer": "doctest",
      "origin": "stdlib/kyureki.md 実行例 2",
      "command": "list",
      "source": "# eval: 2025-01-01..2028-01-01\npremise Kyureki = Gregorian with {\n  source: \"eco.mtk.nao.ac.jp/koyomi/yoko\"\n  asof:   2026-02-02\n  tz:     \"Asia/Tokyo\"\n  newMoons = [2024-12-31T07:27,\n              2025-01-29T21:36, 2025-02-28T09:45, 2025-03-29T19:58, 2025-04-28T04:31, 2025-05-27T12:02,\n              2025-06-25T19:32, 2025-07-25T04:11, 2025-08-23T15:07, 2025-09-22T04:54, 2025-10-21T21:25,\n              2025-11-20T15:47, 2025-12-20T10:43, 2026-01-19T04:52, 2026-02-17T21:01, 2026-03-19T10:23,\n              2026-04-17T20:52, 2026-05-17T05:01, 2026-06-15T11:54, 2026-07-14T18:44, 2026-08-13T02:37,\n              2026-09-11T12:27, 2026-10-11T00:50, 2026-11-09T16:02, 2026-12-09T09:52, 2027-01-08T05:24,\n              2027-02-07T00:56, 2027-03-08T18:29, 2027-04-07T08:51, 2027-05-06T19:59, 2027-06-05T04:40,\n              2027-07-04T12:02, 2027-08-02T19:05, 2027-09-01T02:41, 2027-09-30T11:36, 2027-10-29T22:37,\n              2027-11-28T12:24, 2027-12-28T05:12] covering: 2024-12-31..2027-12-31\n  lunarStart   = newMoons |> snapTo(day)\n  monthNos     = [12, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10, 11,\n                  12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,\n                  12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]\n  lunarMonth   = day |> segmentBy(lunarStart, edges: drop, empties: error, labels: monthNos)\n  lunarDayNo   = d => ordinalIn(day, lunarMonth, d)\n  rokuyoNo     = d => (lunarMonth(d) + lunarDayNo(d)) mod 6\n}\npremise Koyomi { calendar-system: Kyureki; tz: \"Asia/Tokyo\"; wkst: Mon }\n@Koyomi\nlunarMonth |> first |> filter(d => lunarMonth(d) == 6)\n#=> 2025-06-25 2025-07-25 2026-07-14 2027-07-04\n",
      "from": "2025-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1750777200000,
              1753369200000,
              1783954800000,
              1814626800000
            ],
            "dates": [
              "2025-06-25",
              "2025-07-25",
              "2026-07-14",
              "2027-07-04"
            ],
            "annotations": [],
            "labels": [
              "6",
              "6",
              "6",
              "6"
            ],
            "uid": "kairos-e317a901000e-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Kyureki.newMoons",
            "covering": "2024-12-31..2027-12-31",
            "asof": "2026-02-02",
            "concluded": false,
            "runwayDays": 0
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/kyureki.md#03",
      "layer": "doctest",
      "origin": "stdlib/kyureki.md 実行例 3",
      "command": "list",
      "source": "# eval: 2025-01-01..2028-01-01\npremise Kyureki = Gregorian with {\n  source: \"eco.mtk.nao.ac.jp/koyomi/yoko\"\n  asof:   2026-02-02\n  tz:     \"Asia/Tokyo\"\n  newMoons = [2024-12-31T07:27,\n              2025-01-29T21:36, 2025-02-28T09:45, 2025-03-29T19:58, 2025-04-28T04:31, 2025-05-27T12:02,\n              2025-06-25T19:32, 2025-07-25T04:11, 2025-08-23T15:07, 2025-09-22T04:54, 2025-10-21T21:25,\n              2025-11-20T15:47, 2025-12-20T10:43, 2026-01-19T04:52, 2026-02-17T21:01, 2026-03-19T10:23,\n              2026-04-17T20:52, 2026-05-17T05:01, 2026-06-15T11:54, 2026-07-14T18:44, 2026-08-13T02:37,\n              2026-09-11T12:27, 2026-10-11T00:50, 2026-11-09T16:02, 2026-12-09T09:52, 2027-01-08T05:24,\n              2027-02-07T00:56, 2027-03-08T18:29, 2027-04-07T08:51, 2027-05-06T19:59, 2027-06-05T04:40,\n              2027-07-04T12:02, 2027-08-02T19:05, 2027-09-01T02:41, 2027-09-30T11:36, 2027-10-29T22:37,\n              2027-11-28T12:24, 2027-12-28T05:12] covering: 2024-12-31..2027-12-31\n  lunarStart   = newMoons |> snapTo(day)\n  monthNames   = [\"十二月\", \"一月\", \"二月\", \"三月\", \"四月\", \"五月\", \"六月\", \"閏六月\", \"七月\", \"八月\", \"九月\", \"十月\", \"十一月\",\n                  \"十二月\", \"一月\", \"二月\", \"三月\", \"四月\", \"五月\", \"六月\", \"七月\", \"八月\", \"九月\", \"十月\", \"十一月\",\n                  \"十二月\", \"一月\", \"二月\", \"三月\", \"四月\", \"五月\", \"六月\", \"七月\", \"八月\", \"九月\", \"十月\", \"十一月\", \"十二月\"]\n  kyuMonth     = day |> segmentBy(lunarStart, edges: drop, empties: error, labels: monthNames)\n}\npremise Koyomi { calendar-system: Kyureki; tz: \"Asia/Tokyo\"; wkst: Mon }\n@Koyomi\nkyuMonth |> first |> filter(d => kyuMonth(d) == \"閏六月\")\n#=> 2025-07-25\n",
      "from": "2025-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1753369200000
            ],
            "dates": [
              "2025-07-25"
            ],
            "annotations": [],
            "labels": [
              "閏六月"
            ],
            "uid": "kairos-5a75210b8353-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Kyureki.newMoons",
            "covering": "2024-12-31..2027-12-31",
            "asof": "2026-02-02",
            "concluded": false,
            "runwayDays": 0
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/kyureki.md#04",
      "layer": "doctest",
      "origin": "stdlib/kyureki.md 実行例 4",
      "command": "list",
      "source": "# eval: 2026-01-01..2027-01-01\npremise Kyureki = Gregorian with {\n  source: \"eco.mtk.nao.ac.jp/koyomi/yoko\"\n  asof:   2026-02-02\n  tz:     \"Asia/Tokyo\"\n  newMoons = [2024-12-31T07:27,\n              2025-01-29T21:36, 2025-02-28T09:45, 2025-03-29T19:58, 2025-04-28T04:31, 2025-05-27T12:02,\n              2025-06-25T19:32, 2025-07-25T04:11, 2025-08-23T15:07, 2025-09-22T04:54, 2025-10-21T21:25,\n              2025-11-20T15:47, 2025-12-20T10:43, 2026-01-19T04:52, 2026-02-17T21:01, 2026-03-19T10:23,\n              2026-04-17T20:52, 2026-05-17T05:01, 2026-06-15T11:54, 2026-07-14T18:44, 2026-08-13T02:37,\n              2026-09-11T12:27, 2026-10-11T00:50, 2026-11-09T16:02, 2026-12-09T09:52, 2027-01-08T05:24,\n              2027-02-07T00:56, 2027-03-08T18:29, 2027-04-07T08:51, 2027-05-06T19:59, 2027-06-05T04:40,\n              2027-07-04T12:02, 2027-08-02T19:05, 2027-09-01T02:41, 2027-09-30T11:36, 2027-10-29T22:37,\n              2027-11-28T12:24, 2027-12-28T05:12] covering: 2024-12-31..2027-12-31\n  lunarStart   = newMoons |> snapTo(day)\n  monthNos     = [12, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10, 11,\n                  12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,\n                  12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]\n  lunarMonth   = day |> segmentBy(lunarStart, edges: drop, empties: error, labels: monthNos)\n  lunarDayNo   = d => ordinalIn(day, lunarMonth, d)\n  rokuyoNo     = d => (lunarMonth(d) + lunarDayNo(d)) mod 6\n}\npremise Koyomi { calendar-system: Kyureki; tz: \"Asia/Tokyo\"; wkst: Mon }\n@Koyomi\nlunarMonth |> nth(15)\n#=> 2026-01-03 2026-02-02 2026-03-03 2026-04-02 2026-05-01 2026-05-31 2026-06-29\n#=> 2026-07-28 2026-08-27 2026-09-25 2026-10-25 2026-11-23 2026-12-23\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767366000000,
              1769958000000,
              1772463600000,
              1775055600000,
              1777561200000,
              1780153200000,
              1782658800000,
              1785164400000,
              1787756400000,
              1790262000000,
              1792854000000,
              1795359600000,
              1797951600000
            ],
            "dates": [
              "2026-01-03",
              "2026-02-02",
              "2026-03-03",
              "2026-04-02",
              "2026-05-01",
              "2026-05-31",
              "2026-06-29",
              "2026-07-28",
              "2026-08-27",
              "2026-09-25",
              "2026-10-25",
              "2026-11-23",
              "2026-12-23"
            ],
            "annotations": [],
            "labels": [
              "11",
              "12",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11"
            ],
            "uid": "kairos-faf9beaea201-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Kyureki.newMoons",
            "covering": "2024-12-31..2027-12-31",
            "asof": "2026-02-02",
            "concluded": false,
            "runwayDays": 365
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/kyureki.md#05",
      "layer": "doctest",
      "origin": "stdlib/kyureki.md 実行例 5",
      "command": "list",
      "source": "# eval: 2026-10-01..2027-01-01\npremise Kyureki = Gregorian with {\n  source: \"eco.mtk.nao.ac.jp/koyomi/yoko\"\n  asof:   2026-02-02\n  tz:     \"Asia/Tokyo\"\n  newMoons = [2024-12-31T07:27,\n              2025-01-29T21:36, 2025-02-28T09:45, 2025-03-29T19:58, 2025-04-28T04:31, 2025-05-27T12:02,\n              2025-06-25T19:32, 2025-07-25T04:11, 2025-08-23T15:07, 2025-09-22T04:54, 2025-10-21T21:25,\n              2025-11-20T15:47, 2025-12-20T10:43, 2026-01-19T04:52, 2026-02-17T21:01, 2026-03-19T10:23,\n              2026-04-17T20:52, 2026-05-17T05:01, 2026-06-15T11:54, 2026-07-14T18:44, 2026-08-13T02:37,\n              2026-09-11T12:27, 2026-10-11T00:50, 2026-11-09T16:02, 2026-12-09T09:52, 2027-01-08T05:24,\n              2027-02-07T00:56, 2027-03-08T18:29, 2027-04-07T08:51, 2027-05-06T19:59, 2027-06-05T04:40,\n              2027-07-04T12:02, 2027-08-02T19:05, 2027-09-01T02:41, 2027-09-30T11:36, 2027-10-29T22:37,\n              2027-11-28T12:24, 2027-12-28T05:12] covering: 2024-12-31..2027-12-31\n  lunarStart   = newMoons |> snapTo(day)\n  monthNos     = [12, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10, 11,\n                  12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,\n                  12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]\n  lunarMonth   = day |> segmentBy(lunarStart, edges: drop, empties: error, labels: monthNos)\n  lunarDayNo   = d => ordinalIn(day, lunarMonth, d)\n  rokuyoNo     = d => (lunarMonth(d) + lunarDayNo(d)) mod 6\n}\npremise Koyomi { calendar-system: Kyureki; tz: \"Asia/Tokyo\"; wkst: Mon }\n@Koyomi\nlunarMonth |> filter(d => rokuyoNo(d) == 0)\n#=> 2026-10-02 2026-10-08 2026-10-13 2026-10-19 2026-10-25 2026-10-31\n#=> 2026-11-06 2026-11-10 2026-11-16 2026-11-22 2026-11-28 2026-12-04\n#=> 2026-12-09 2026-12-15 2026-12-21 2026-12-27\n",
      "from": "2026-10-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1790866800000,
              1791385200000,
              1791817200000,
              1792335600000,
              1792854000000,
              1793372400000,
              1793890800000,
              1794236400000,
              1794754800000,
              1795273200000,
              1795791600000,
              1796310000000,
              1796742000000,
              1797260400000,
              1797778800000,
              1798297200000
            ],
            "dates": [
              "2026-10-02",
              "2026-10-08",
              "2026-10-13",
              "2026-10-19",
              "2026-10-25",
              "2026-10-31",
              "2026-11-06",
              "2026-11-10",
              "2026-11-16",
              "2026-11-22",
              "2026-11-28",
              "2026-12-04",
              "2026-12-09",
              "2026-12-15",
              "2026-12-21",
              "2026-12-27"
            ],
            "annotations": [],
            "labels": [
              "8",
              "8",
              "9",
              "9",
              "9",
              "9",
              "9",
              "10",
              "10",
              "10",
              "10",
              "10",
              "11",
              "11",
              "11",
              "11"
            ],
            "uid": "kairos-50a87358c50a-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Kyureki.newMoons",
            "covering": "2024-12-31..2027-12-31",
            "asof": "2026-02-02",
            "concluded": false,
            "runwayDays": 365
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "doctest/stdlib/kyureki.md#06",
      "layer": "doctest",
      "origin": "stdlib/kyureki.md 実行例 6",
      "command": "list",
      "source": "# eval: 2025-01-01..2028-01-01\npremise Kyureki = Gregorian with {\n  source: \"eco.mtk.nao.ac.jp/koyomi/yoko\"\n  asof:   2026-02-02\n  tz:     \"Asia/Tokyo\"\n  newMoons = [2024-12-31T07:27,\n              2025-01-29T21:36, 2025-02-28T09:45, 2025-03-29T19:58, 2025-04-28T04:31, 2025-05-27T12:02,\n              2025-06-25T19:32, 2025-07-25T04:11, 2025-08-23T15:07, 2025-09-22T04:54, 2025-10-21T21:25,\n              2025-11-20T15:47, 2025-12-20T10:43, 2026-01-19T04:52, 2026-02-17T21:01, 2026-03-19T10:23,\n              2026-04-17T20:52, 2026-05-17T05:01, 2026-06-15T11:54, 2026-07-14T18:44, 2026-08-13T02:37,\n              2026-09-11T12:27, 2026-10-11T00:50, 2026-11-09T16:02, 2026-12-09T09:52, 2027-01-08T05:24,\n              2027-02-07T00:56, 2027-03-08T18:29, 2027-04-07T08:51, 2027-05-06T19:59, 2027-06-05T04:40,\n              2027-07-04T12:02, 2027-08-02T19:05, 2027-09-01T02:41, 2027-09-30T11:36, 2027-10-29T22:37,\n              2027-11-28T12:24, 2027-12-28T05:12] covering: 2024-12-31..2027-12-31\n  lunarStart   = newMoons |> snapTo(day)\n  monthNos     = [12, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10, 11,\n                  12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,\n                  12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]\n  lunarMonth   = day |> segmentBy(lunarStart, edges: drop, empties: error, labels: monthNos)\n  lunarDayNo   = d => ordinalIn(day, lunarMonth, d)\n  rokuyoNo     = d => (lunarMonth(d) + lunarDayNo(d)) mod 6\n}\npremise Koyomi { calendar-system: Kyureki; tz: \"Asia/Tokyo\"; wkst: Mon }\n@Koyomi\nlunarMonth |> first |> filter(d => rokuyoNo(d) == 2)\n#=> 2025-01-29 2025-08-23 2026-02-17 2026-08-13 2027-02-07 2027-08-02\n",
      "from": "2025-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1738076400000,
              1755874800000,
              1771254000000,
              1786546800000,
              1801926000000,
              1817132400000
            ],
            "dates": [
              "2025-01-29",
              "2025-08-23",
              "2026-02-17",
              "2026-08-13",
              "2027-02-07",
              "2027-08-02"
            ],
            "annotations": [],
            "labels": [
              "1",
              "7",
              "1",
              "7",
              "1",
              "7"
            ],
            "uid": "kairos-2065c73719b7-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Kyureki.newMoons",
            "covering": "2024-12-31..2027-12-31",
            "asof": "2026-02-02",
            "concluded": false,
            "runwayDays": 0
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/annotation-bizday-degrades",
      "layer": "manifest",
      "origin": "impl/test/annotations.test.ts: bizDay 標準導出の退化は、するが観測可能（ADR-35 判断 3 の要請）",
      "command": "list",
      "source": "premise TSE2 {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  source: \"test-calendar\"\n  asof: 2026-01-05\n  satSun2 = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n  holidays = [2026-01-01, 2026-02-11] covering: 2026..2026\n  nonWorking = satSun2 | holidays\n}\npremise JP3 { calendar-system: Gregorian; calendar: TSE2; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP3\nbizDay\n",
      "from": "2026-12-25",
      "to": "2027-01-10",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1798124400000,
              1798383600000,
              1798470000000,
              1798556400000,
              1798642800000,
              1798729200000,
              1798988400000,
              1799074800000,
              1799161200000,
              1799247600000,
              1799334000000
            ],
            "dates": [
              "2026-12-25",
              "2026-12-28",
              "2026-12-29",
              "2026-12-30",
              "2026-12-31",
              "2027-01-01",
              "2027-01-04",
              "2027-01-05",
              "2027-01-06",
              "2027-01-07",
              "2027-01-08"
            ],
            "annotations": [
              {
                "fromMs": 1798729200000,
                "toMs": 1799506800000,
                "source": "TSE2.holidays",
                "covering": "2026-01-01..2026-12-31",
                "asof": "2026-01-05"
              }
            ],
            "uid": "kairos-2ed80ca67827-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "TSE2.holidays",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-05",
            "concluded": false,
            "runwayDays": -9
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/annotation-filter-drop",
      "layer": "manifest",
      "origin": "impl/test/annotations.test.ts: filter: 覆域外の参照点は落として註釈（値は覆域内のぶんだけ正確に出る）",
      "command": "list",
      "source": "premise JPX { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPX\nsekki = [2026-02-04T05:02, 2026-05-05T20:49] covering: 2026..2026\n  labels: [立春, 立夏]\n(sekki | ([2027-02-04T05:00] covering: ..)) |> filter(s => sekki(s) == 立春)\n",
      "from": "2026-01-01",
      "to": "2028-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1770148920000
            ],
            "dates": [
              "2026-02-04T05:02"
            ],
            "annotations": [
              {
                "fromMs": 1798729200000,
                "toMs": 1830265200000,
                "source": "sekki",
                "covering": "2026-01-01..2026-12-31"
              }
            ],
            "labels": [
              "立春"
            ],
            "uid": "kairos-58ed2bf63ded-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "sekki",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": -365
          },
          {
            "source": "(無名テーブル)",
            "covering": "..",
            "concluded": true,
            "runwayDays": null
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/annotation-roll-axis-exhausted",
      "layer": "manifest",
      "origin": "impl/test/annotations.test.ts: 着地先が無い＝軸の覆域外で尽きた → 空＋註釈（②）",
      "command": "list",
      "source": "premise JPX { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPX\nsekkiA = [2026-02-04, 2026-05-05] covering: 2026..2026\n[2027-03-01] |> roll(Following, on: sekkiA)\n",
      "from": "2027-01-01",
      "to": "2027-06-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [],
            "dates": [],
            "annotations": [
              {
                "fromMs": 1798729200000,
                "toMs": 1811775600000,
                "source": "(無名テーブル)",
                "covering": "2027-03-01..2027-03-01"
              },
              {
                "fromMs": 1798729200000,
                "toMs": 1811775600000,
                "source": "sekkiA",
                "covering": "2026-01-01..2026-12-31"
              }
            ],
            "uid": "kairos-397485a42edc-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "(無名テーブル)",
            "covering": "2027-03-01..2027-03-01",
            "concluded": false,
            "runwayDays": -92
          },
          {
            "source": "sekkiA",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": -151
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/annotation-shift-transport",
      "layer": "manifest",
      "origin": "impl/test/annotations.test.ts: 註釈区間も n·U 平行移動する（覆域内へ移った先が註釈される）",
      "command": "list",
      "source": "premise JPX { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPX\ndues = [2026-03-01, 2026-09-01] covering: 2026..2026, 2028..2028\ndues |> shift(90, unit: day)\n",
      "from": "2028-01-01",
      "to": "2028-06-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [],
            "dates": [],
            "annotations": [
              {
                "fromMs": 1830265200000,
                "toMs": 1838041200000,
                "source": "dues",
                "covering": "2026-01-01..2026-12-31, 2028-01-01..2028-12-31"
              }
            ],
            "uid": "kairos-ea1b2b1c4203-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "dues",
            "covering": "2026-01-01..2026-12-31, 2028-01-01..2028-12-31",
            "concluded": false,
            "runwayDays": 214
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/annotation-union-no-cancel",
      "layer": "manifest",
      "origin": "impl/test/annotations.test.ts: A | B で B の覆域でも A の註釈は消えない（恒常註釈＝被覆主張の動機）",
      "command": "list",
      "source": "premise JPX { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPX\nh2026 = [2026-02-11] covering: 2026..2026\nh2027 = [2027-02-11] covering: 2027..2027\nh2026 | h2027\n",
      "from": "2026-06-01",
      "to": "2026-07-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [],
            "dates": [],
            "annotations": [
              {
                "fromMs": 1780239600000,
                "toMs": 1782831600000,
                "source": "h2027",
                "covering": "2027-01-01..2027-12-31"
              }
            ],
            "uid": "kairos-57309ee125c0-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "h2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 184
          },
          {
            "source": "h2027",
            "covering": "2027-01-01..2027-12-31",
            "concluded": false,
            "runwayDays": 549
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/annotation-unnamed-table",
      "layer": "manifest",
      "origin": "impl/test/annotations.test.ts: covering 省略（列の端＝最狭の主張）は端の外を註釈する——`..` と正反対",
      "command": "list",
      "source": "premise JPX { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPX\neveryDay \\ [2026-01-05]\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1767279600000,
              1767366000000,
              1767452400000,
              1767625200000,
              1767711600000,
              1767798000000,
              1767884400000,
              1767970800000,
              1768057200000,
              1768143600000,
              1768230000000,
              1768316400000,
              1768402800000,
              1768489200000,
              1768575600000,
              1768662000000,
              1768748400000,
              1768834800000,
              1768921200000,
              1769007600000,
              1769094000000,
              1769180400000,
              1769266800000,
              1769353200000,
              1769439600000,
              1769526000000,
              1769612400000,
              1769698800000,
              1769785200000
            ],
            "dates": [
              "2026-01-01",
              "2026-01-02",
              "2026-01-03",
              "2026-01-04",
              "2026-01-06",
              "2026-01-07",
              "2026-01-08",
              "2026-01-09",
              "2026-01-10",
              "2026-01-11",
              "2026-01-12",
              "2026-01-13",
              "2026-01-14",
              "2026-01-15",
              "2026-01-16",
              "2026-01-17",
              "2026-01-18",
              "2026-01-19",
              "2026-01-20",
              "2026-01-21",
              "2026-01-22",
              "2026-01-23",
              "2026-01-24",
              "2026-01-25",
              "2026-01-26",
              "2026-01-27",
              "2026-01-28",
              "2026-01-29",
              "2026-01-30",
              "2026-01-31"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1767538800000,
                "source": "(無名テーブル)",
                "covering": "2026-01-05..2026-01-05"
              },
              {
                "fromMs": 1767538800001,
                "toMs": 1769871600000,
                "source": "(無名テーブル)",
                "covering": "2026-01-05..2026-01-05"
              }
            ],
            "uid": "kairos-af48ecf8f2aa-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "(無名テーブル)",
            "covering": "2026-01-05..2026-01-05",
            "concluded": false,
            "runwayDays": -27
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/coverage-asof-mismatch",
      "layer": "manifest",
      "origin": "impl/test/external.test.ts: 静的 asof:（版ピン）と解決値 asof の不一致は被覆サマリに常時表示",
      "command": "list",
      "source": "premise Pin { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; source: \"db\"; asof: 2026-07-01\n  h = external(kind: dates)\n}\n@Pin\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "Pin.h": {
          "dates": [
            "2026-01-05"
          ],
          "covering": "2026..2026",
          "asof": "2026-07-13"
        }
      },
      "expect": {
        "results": [
          {
            "points": [
              1767538800000
            ],
            "dates": [
              "2026-01-05"
            ],
            "annotations": [],
            "uid": "kairos-e81d5c5b921c-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Pin.h",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-07-13（宣言 asof 2026-07-01 と不一致）",
            "concluded": false,
            "runwayDays": 334
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/coverage-concluded-open-end",
      "layer": "manifest",
      "origin": "impl/test/annotations.test.ts: 完結主張（開端 covering）は concluded として常時観測できる（残走路 null）",
      "command": "list",
      "source": "premise JPX { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPX\nex = [2026-01-05] covering: ..\neveryDay \\ ex\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000,
              1767279600000,
              1767366000000,
              1767452400000,
              1767625200000,
              1767711600000,
              1767798000000,
              1767884400000,
              1767970800000,
              1768057200000,
              1768143600000,
              1768230000000,
              1768316400000,
              1768402800000,
              1768489200000,
              1768575600000,
              1768662000000,
              1768748400000,
              1768834800000,
              1768921200000,
              1769007600000,
              1769094000000,
              1769180400000,
              1769266800000,
              1769353200000,
              1769439600000,
              1769526000000,
              1769612400000,
              1769698800000,
              1769785200000
            ],
            "dates": [
              "2026-01-01",
              "2026-01-02",
              "2026-01-03",
              "2026-01-04",
              "2026-01-06",
              "2026-01-07",
              "2026-01-08",
              "2026-01-09",
              "2026-01-10",
              "2026-01-11",
              "2026-01-12",
              "2026-01-13",
              "2026-01-14",
              "2026-01-15",
              "2026-01-16",
              "2026-01-17",
              "2026-01-18",
              "2026-01-19",
              "2026-01-20",
              "2026-01-21",
              "2026-01-22",
              "2026-01-23",
              "2026-01-24",
              "2026-01-25",
              "2026-01-26",
              "2026-01-27",
              "2026-01-28",
              "2026-01-29",
              "2026-01-30",
              "2026-01-31"
            ],
            "annotations": [],
            "uid": "kairos-252e687d7104-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "ex",
            "covering": "..",
            "concluded": true,
            "runwayDays": null
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/coverage-example-payday-list",
      "layer": "manifest",
      "origin": "impl/test/cli.test.ts: cmdList（単体）——区間註釈と被覆サマリ（残走路 0）が載る（impl/examples/payday.kairos）",
      "command": "list",
      "source": "# 給料日: 毎月 25 日・休日なら前営業日（spec §7.4）\n# 実行: kairos list impl/examples/payday.kairos --from 2026-01-01 --to 2027-01-01（npm 版。開発は node src/cli.ts examples/payday.kairos …）\n\npremise JP {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20,\n                2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06,\n                2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23,\n                2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\nbizDay = everyDay \\ (satSun | holidays2026)\n\neveryDay |> within(month) |> nth(25) |> roll(Preceding, on: bizDay)\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1769094000000,
              1771945200000,
              1774364400000,
              1776956400000,
              1779634800000,
              1782313200000,
              1784818800000,
              1787583600000,
              1790262000000,
              1792681200000,
              1795532400000,
              1798124400000
            ],
            "dates": [
              "2026-01-23",
              "2026-02-25",
              "2026-03-25",
              "2026-04-24",
              "2026-05-25",
              "2026-06-25",
              "2026-07-24",
              "2026-08-25",
              "2026-09-25",
              "2026-10-23",
              "2026-11-25",
              "2026-12-25"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1767279600001,
                "source": "holidays2026",
                "covering": "2026-01-01..2026-12-31"
              }
            ],
            "uid": "kairos-4f63ae78d212-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 0
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/coverage-explicit-claim",
      "layer": "manifest",
      "origin": "impl/test/annotations.test.ts: 束縛後置の covering: が成分の恒常註釈を主張の補集合で置き換える",
      "command": "list",
      "source": "premise JPX { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPX\nh2026 = [2026-02-11] covering: 2026..2026\nh2027 = [2027-02-11] covering: 2027..2027\nnw = (h2026 | h2027) covering: 2026..2027\nnw\n",
      "from": "2026-06-01",
      "to": "2026-07-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [],
            "dates": [],
            "annotations": [],
            "uid": "kairos-d285e7e66501-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "h2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 184
          },
          {
            "source": "h2027",
            "covering": "2027-01-01..2027-12-31",
            "concluded": false,
            "runwayDays": 549
          },
          {
            "source": "nw",
            "covering": "2026-01-01..2027-12-31",
            "concluded": false,
            "runwayDays": 549
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/labels-cycle-weekday",
      "layer": "manifest",
      "origin": "impl/test/result-labels.test.ts: cycle だけを参照する式にも付く（weekday の射影）",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay |> filter(d => weekday(d) == Wed) |> within(month) |> nth(1)\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767711600000,
              1770130800000
            ],
            "dates": [
              "2026-01-07",
              "2026-02-04"
            ],
            "annotations": [],
            "labels": [
              "Wed",
              "Wed"
            ],
            "uid": "kairos-e533d4ea90a7-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "manifest/labels-example-rokuyo",
      "layer": "manifest",
      "origin": "impl/test/result-labels.test.ts: 同梱例 rokuyo: lunarMonth を参照する 3 式とも旧暦の月番号が付く（impl/examples/rokuyo.kairos）",
      "command": "list",
      "source": "# 旧暦と六曜: 朔データで月を切り、(月番号 + 日番号) mod 6 で六曜を出す（stdlib/kyureki.md）\n# 実行: kairos list impl/examples/rokuyo.kairos --from 2026-01-01 --to 2027-01-01（npm 版。開発は node src/cli.ts examples/rokuyo.kairos …）\n# 式 1: 朔日（旧暦月初）12 件——旧正月 2026-02-17 を含む\n# 式 2: 旧暦十五日 13 件——暦要項の望（満月）と 0〜2 日ずれる（十五夜＝満月ではない）\n# 式 3: 2026 年の大安 61 件——同じ旧暦月では 6 日ごと・月替わりで位相が飛ぶ\n# データ被覆域は newMoons の covering: 2024-12-31..2027-12-31（一次データは design/40-examples/95-reference-data.md）。\n# 覆域の外に掛かる評価は「範囲外」の評価註釈（ADR-37・I6）が結果に並走する——評価範囲の制限は不要。\n\npremise Kyureki = Gregorian with {\n  source: \"eco.mtk.nao.ac.jp/koyomi/yoko\"\n  asof:   2026-02-02\n  tz:     \"Asia/Tokyo\"                                                  # データの市民日を内側固定（ADR-33/35/37）\n\n  newMoons = [2024-12-31T07:27,\n              2025-01-29T21:36, 2025-02-28T09:45, 2025-03-29T19:58, 2025-04-28T04:31, 2025-05-27T12:02,\n              2025-06-25T19:32, 2025-07-25T04:11, 2025-08-23T15:07, 2025-09-22T04:54, 2025-10-21T21:25,\n              2025-11-20T15:47, 2025-12-20T10:43, 2026-01-19T04:52, 2026-02-17T21:01, 2026-03-19T10:23,\n              2026-04-17T20:52, 2026-05-17T05:01, 2026-06-15T11:54, 2026-07-14T18:44, 2026-08-13T02:37,\n              2026-09-11T12:27, 2026-10-11T00:50, 2026-11-09T16:02, 2026-12-09T09:52, 2027-01-08T05:24,\n              2027-02-07T00:56, 2027-03-08T18:29, 2027-04-07T08:51, 2027-05-06T19:59, 2027-06-05T04:40,\n              2027-07-04T12:02, 2027-08-02T19:05, 2027-09-01T02:41, 2027-09-30T11:36, 2027-10-29T22:37,\n              2027-11-28T12:24, 2027-12-28T05:12] covering: 2024-12-31..2027-12-31\n\n  lunarStart = newMoons |> snapTo(day)                                  # 朔日（瞬間を含む市民日。F22）\n\n  monthNos = [12, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10, 11,\n              12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,\n              12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]                # newMoons が張る 38 窓と並行（2 個目の 6 が\n                                                                        # 閏六月・末尾 12 は最終窓＝覆域端まで確定 ADR-37）\n\n  # 旧暦月。labels: が並行リストを窓列に結び、リスト長＝窓数を評価時に検査する（ADR-39・F62）。\n  # 読みは束縛名射影: lunarMonth(d) = 点 d の属する窓の月番号\n  lunarMonth = day |> segmentBy(lunarStart, edges: drop, empties: error, labels: monthNos)\n\n  lunarDayNo = d => ordinalIn(day, lunarMonth, d)\n  rokuyoNo   = d => (lunarMonth(d) + lunarDayNo(d)) mod 6               # 0=大安 1=赤口 2=先勝 3=友引 4=先負 5=仏滅\n}\n\npremise Koyomi { calendar-system: Kyureki; tz: \"Asia/Tokyo\"; wkst: Mon }\n\n@Koyomi\n# 朔日（旧暦月初）\nlunarMonth |> first\n# 旧暦十五日\nlunarMonth |> nth(15)\n# 大安\nlunarMonth |> filter(d => rokuyoNo(d) == 0)\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768748400000,
              1771254000000,
              1773846000000
            ],
            "dates": [
              "2026-01-19",
              "2026-02-17",
              "2026-03-19"
            ],
            "annotations": [],
            "labels": [
              "12",
              "1",
              "2"
            ],
            "uid": "kairos-c1ad01d5b767-series@kairos-lang.org"
          },
          {
            "points": [
              1767366000000,
              1769958000000,
              1772463600000
            ],
            "dates": [
              "2026-01-03",
              "2026-02-02",
              "2026-03-03"
            ],
            "annotations": [],
            "labels": [
              "11",
              "12",
              "1"
            ],
            "uid": "kairos-fe767eb424f3-series@kairos-lang.org"
          },
          {
            "points": [
              1767193200000,
              1767711600000,
              1768230000000,
              1769180400000,
              1769698800000,
              1770217200000,
              1770735600000,
              1771599600000,
              1772118000000,
              1772636400000,
              1773154800000,
              1773673200000,
              1774105200000,
              1774623600000
            ],
            "dates": [
              "2026-01-01",
              "2026-01-07",
              "2026-01-13",
              "2026-01-24",
              "2026-01-30",
              "2026-02-05",
              "2026-02-11",
              "2026-02-21",
              "2026-02-27",
              "2026-03-05",
              "2026-03-11",
              "2026-03-17",
              "2026-03-22",
              "2026-03-28"
            ],
            "annotations": [],
            "labels": [
              "11",
              "11",
              "11",
              "12",
              "12",
              "12",
              "12",
              "1",
              "1",
              "1",
              "1",
              "1",
              "2",
              "2"
            ],
            "uid": "kairos-dd13ad339cda-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Kyureki.newMoons",
            "covering": "2024-12-31..2027-12-31",
            "asof": "2026-02-02",
            "concluded": false,
            "runwayDays": 640
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/labels-external-instants",
      "layer": "manifest",
      "origin": "impl/test/result-labels.test.ts: external の labels: を参照する式は各点にラベル（dates と同長・順序も同じ）。filter の部分集合も同じ射影",
      "command": "list",
      "source": "# 二十四節気（external・kind: instants・labels: 値域）\npremise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  sekki = external(kind: instants, labels: [小寒, 大寒, 立春])\n}\n@H\nsekki\nsekki |> filter(s => sekki(s) == 立春)\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "H.sekki": {
          "instants": [
            1767600000000,
            1768870800000,
            1770235200000
          ],
          "covering": "2026..2026",
          "asof": "2026-01-01",
          "labels": [
            "小寒",
            "大寒",
            "立春"
          ]
        }
      },
      "expect": {
        "results": [
          {
            "points": [
              1767600000000,
              1768870800000,
              1770235200000
            ],
            "dates": [
              "2026-01-05T17:00",
              "2026-01-20T10:00",
              "2026-02-05T05:00"
            ],
            "annotations": [],
            "labels": [
              "小寒",
              "大寒",
              "立春"
            ],
            "uid": "kairos-66506f5e8d11-series@kairos-lang.org"
          },
          {
            "points": [
              1770235200000
            ],
            "dates": [
              "2026-02-05T05:00"
            ],
            "annotations": [],
            "labels": [
              "立春"
            ],
            "uid": "kairos-de94b919bf97-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "H.sekki",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-01",
            "concluded": false,
            "runwayDays": 306
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/labels-segmentby-window",
      "layer": "manifest",
      "origin": "impl/test/result-labels.test.ts: segmentBy の labels: は窓の所属で読む——shift(-1) した朔日は前の窓のラベル・最初の窓の前（窓の外）は null",
      "command": "list",
      "source": "premise Kyu = Gregorian with {\n  source: \"test\"\n  asof: 2026-02-02\n  tz: \"Asia/Tokyo\"\n  newMoons = [2026-01-19T04:52, 2026-02-17T21:01, 2026-03-19T10:23, 2026-04-17T20:52,\n              2026-05-17T05:01, 2026-06-15T11:54, 2026-07-14T18:44, 2026-08-13T02:37,\n              2026-09-11T12:27, 2026-10-11T00:50, 2026-11-09T16:02, 2026-12-09T09:52]\n    covering: 2026..2026\n  lunarStart = newMoons |> snapTo(day)\n  monthNos = [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]\n  lunarMonth = day |> segmentBy(lunarStart, edges: drop, empties: error, labels: monthNos)\n}\npremise Koyomi { calendar-system: Kyu; tz: \"Asia/Tokyo\"; wkst: Mon }\n@Koyomi\nlunarMonth |> first\nlunarMonth |> first |> shift(-1, unit: day)\n",
      "from": "2026-01-01",
      "to": "2026-05-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1768748400000,
              1771254000000,
              1773846000000,
              1776351600000
            ],
            "dates": [
              "2026-01-19",
              "2026-02-17",
              "2026-03-19",
              "2026-04-17"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1768748400000,
                "source": "Kyu.newMoons",
                "covering": "2026-01-01..2026-12-31",
                "asof": "2026-02-02"
              }
            ],
            "labels": [
              "12",
              "1",
              "2",
              "3"
            ],
            "uid": "kairos-c1ad01d5b767-series@kairos-lang.org"
          },
          {
            "points": [
              1768662000000,
              1771167600000,
              1773759600000,
              1776265200000
            ],
            "dates": [
              "2026-01-18",
              "2026-02-16",
              "2026-03-18",
              "2026-04-16"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1768748400000,
                "source": "Kyu.newMoons",
                "covering": "2026-01-01..2026-12-31",
                "asof": "2026-02-02"
              }
            ],
            "labels": [
              null,
              "12",
              "1",
              "2"
            ],
            "uid": "kairos-417c8779b39b-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "Kyu.newMoons",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-02-02",
            "concluded": false,
            "runwayDays": 245
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/labels-shift-null",
      "layer": "manifest",
      "origin": "impl/test/result-labels.test.ts: shift 後の点は表に無いので null（snapTo も同じ）",
      "command": "list",
      "source": "# 二十四節気（external・kind: instants・labels: 値域）\npremise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  sekki = external(kind: instants, labels: [小寒, 大寒, 立春])\n}\n@H\nsekki |> shift(1, unit: day)\nsekki |> snapTo(day)\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "H.sekki": {
          "instants": [
            1767600000000,
            1768870800000,
            1770235200000
          ],
          "covering": "2026..2026",
          "asof": "2026-01-01",
          "labels": [
            "小寒",
            "大寒",
            "立春"
          ]
        }
      },
      "expect": {
        "results": [
          {
            "points": [
              1767686400000,
              1768957200000,
              1770321600000
            ],
            "dates": [
              "2026-01-06T17:00",
              "2026-01-21T10:00",
              "2026-02-06T05:00"
            ],
            "annotations": [
              {
                "fromMs": 1767193200000,
                "toMs": 1767279600000,
                "source": "H.sekki",
                "covering": "2026-01-01..2026-12-31",
                "asof": "2026-01-01"
              }
            ],
            "labels": [
              null,
              null,
              null
            ],
            "uid": "kairos-3319a5db5851-series@kairos-lang.org"
          },
          {
            "points": [
              1767538800000,
              1768834800000,
              1770217200000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-20",
              "2026-02-05"
            ],
            "annotations": [],
            "labels": [
              null,
              null,
              null
            ],
            "uid": "kairos-018b4465e051-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "H.sekki",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-01",
            "concluded": false,
            "runwayDays": 306
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/labels-two-bindings-absent",
      "layer": "manifest",
      "origin": "impl/test/result-labels.test.ts: ラベル付き束縛を 2 つ参照する式には添えない——表と表",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\na = [2026-01-05, 2026-01-20] covering: 2026..2026 labels: [x, y]\nb = [2026-02-05] covering: 2026..2026 labels: [z]\na | b\na\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767538800000,
              1768834800000,
              1770217200000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-20",
              "2026-02-05"
            ],
            "annotations": [],
            "uid": "kairos-98b4137c4903-series@kairos-lang.org"
          },
          {
            "points": [
              1767538800000,
              1768834800000
            ],
            "dates": [
              "2026-01-05",
              "2026-01-20"
            ],
            "annotations": [],
            "labels": [
              "x",
              "y"
            ],
            "uid": "kairos-167f6ce85500-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "a",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 306
          },
          {
            "source": "b",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 306
          }
        ],
        "warnings": []
      }
    },
    {
      "id": "manifest/list-example-jp-holidays-window-clip",
      "layer": "manifest",
      "origin": "impl/test/window-clip.test.ts: ② 対照: 同じ範囲 [10/1, 11/4) の list は dates が同じで window-clip を出す（shift(1) 11/3 → 11/4）",
      "command": "list",
      "source": "# 祝日カスケード: 法定祝日から振替休日・国民の休日を導出する（spec §7.5）\n# 実行: kairos list impl/examples/jp-holidays.kairos --from 2026-01-01 --to 2027-01-01（npm 版。開発は node src/cli.ts examples/jp-holidays.kairos …）\n# 2026 年は 5/3(日)→振替 5/6、敬老 9/21・秋分 9/23 に挟まれた 9/22 が国民の休日になる。\n# 表の外（2027 年〜）は範囲外の註釈になり、表の最終日 12-31 から始まる: shift(-1, unit: day) の平行移動像と roll(Following) の依存像が\n# 各 1 日手前へ広がり | の和で残るため（素の表と shift(+1) は 01-01 開始。ADR-37 判断 4・spec §4.10）。\n\npremise JP {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n\n@JP\nstatutory   = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20,\n               2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-07-20,\n               2026-08-11, 2026-09-21, 2026-09-23, 2026-10-12, 2026-11-03,\n               2026-11-23] covering: 2026..2026\nnonHoliday  = everyDay \\ statutory\nsubstitutes = statutory |> filter(d => weekday(d) == Sun) |> roll(Following, on: nonHoliday)\nsandwiched  = ((statutory |> shift(+1, unit: day)) & (statutory |> shift(-1, unit: day))) \\ statutory\nholidays    = statutory | substitutes | sandwiched\n\nholidays\n",
      "from": "2026-10-01",
      "to": "2026-11-04",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1791730800000,
              1793631600000
            ],
            "dates": [
              "2026-10-12",
              "2026-11-03"
            ],
            "annotations": [],
            "uid": "kairos-b94adac01d85-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "statutory",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 58
          }
        ],
        "warnings": [
          "window-clip: shift(1) 2026-11-03 → 2026-11-04（評価範囲 [from, to) の外へ動いた点は出力に含まれない——範囲を広げて評価する。§7.8）"
        ]
      }
    },
    {
      "id": "manifest/next-example-jp-holidays-no-window-clip",
      "layer": "manifest",
      "origin": "impl/test/window-clip.test.ts: ① 同梱例 jp-holidays: next は 10/12・11/3 を返し window-clip なし（to＝11/4・残走路 58 日は不変）",
      "command": "next",
      "source": "# 祝日カスケード: 法定祝日から振替休日・国民の休日を導出する（spec §7.5）\n# 実行: kairos list impl/examples/jp-holidays.kairos --from 2026-01-01 --to 2027-01-01（npm 版。開発は node src/cli.ts examples/jp-holidays.kairos …）\n# 2026 年は 5/3(日)→振替 5/6、敬老 9/21・秋分 9/23 に挟まれた 9/22 が国民の休日になる。\n# 表の外（2027 年〜）は範囲外の註釈になり、表の最終日 12-31 から始まる: shift(-1, unit: day) の平行移動像と roll(Following) の依存像が\n# 各 1 日手前へ広がり | の和で残るため（素の表と shift(+1) は 01-01 開始。ADR-37 判断 4・spec §4.10）。\n\npremise JP {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n\n@JP\nstatutory   = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20,\n               2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-07-20,\n               2026-08-11, 2026-09-21, 2026-09-23, 2026-10-12, 2026-11-03,\n               2026-11-23] covering: 2026..2026\nnonHoliday  = everyDay \\ statutory\nsubstitutes = statutory |> filter(d => weekday(d) == Sun) |> roll(Following, on: nonHoliday)\nsandwiched  = ((statutory |> shift(+1, unit: day)) & (statutory |> shift(-1, unit: day))) \\ statutory\nholidays    = statutory | substitutes | sandwiched\n\nholidays\n",
      "from": "2026-10-01",
      "tz": "Asia/Tokyo",
      "n": 2,
      "horizonYears": 10,
      "expect": {
        "results": [
          {
            "points": [
              1791730800000,
              1793631600000
            ],
            "dates": [
              "2026-10-12",
              "2026-11-03"
            ],
            "annotations": [],
            "uid": "kairos-b94adac01d85-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "statutory",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 58
          }
        ],
        "warnings": [],
        "requested": 2,
        "found": 2,
        "to": "2026-11-04"
      }
    },
    {
      "id": "manifest/next-example-payday-3",
      "layer": "manifest",
      "origin": "impl/test/cli.test.ts: cmdNext（単体）——from 以降の次の 3 発火・to は最終発火日の翌日・残走路が答えの範囲と整合する",
      "command": "next",
      "source": "# 給料日: 毎月 25 日・休日なら前営業日（spec §7.4）\n# 実行: kairos list impl/examples/payday.kairos --from 2026-01-01 --to 2027-01-01（npm 版。開発は node src/cli.ts examples/payday.kairos …）\n\npremise JP {\n  calendar-system: Gregorian\n  tz: \"Asia/Tokyo\"\n  wkst: Mon\n}\n\n@JP\nholidays2026 = [2026-01-01, 2026-01-12, 2026-02-11, 2026-02-23, 2026-03-20,\n                2026-04-29, 2026-05-03, 2026-05-04, 2026-05-05, 2026-05-06,\n                2026-07-20, 2026-08-11, 2026-09-21, 2026-09-22, 2026-09-23,\n                2026-10-12, 2026-11-03, 2026-11-23] covering: 2026..2026\nsatSun = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\nbizDay = everyDay \\ (satSun | holidays2026)\n\neveryDay |> within(month) |> nth(25) |> roll(Preceding, on: bizDay)\n",
      "from": "2026-08-06",
      "tz": "Asia/Tokyo",
      "n": 3,
      "horizonYears": 10,
      "expect": {
        "results": [
          {
            "points": [
              1787583600000,
              1790262000000,
              1792681200000
            ],
            "dates": [
              "2026-08-25",
              "2026-09-25",
              "2026-10-23"
            ],
            "annotations": [],
            "uid": "kairos-4f63ae78d212-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "holidays2026",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": 69
          }
        ],
        "warnings": [],
        "requested": 3,
        "found": 3,
        "to": "2026-10-24"
      }
    },
    {
      "id": "manifest/next-horizon-end-reports-window-clip",
      "layer": "manifest",
      "origin": "impl/test/window-clip.test.ts: ④ 対照: 地平線まで探して不足のときは従来どおり報告する（to＝地平線は --horizon で広げられる）",
      "command": "next",
      "source": "premise Cal { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon\n  nonWorking = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n}\npremise JP = Gregorian with { calendar: Cal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\nedge = [2027-08-05] covering: 2027..2027\nedge |> shift(+1, unit: day)\n",
      "from": "2026-08-06",
      "tz": "Asia/Tokyo",
      "n": 1,
      "horizonYears": 1,
      "expect": {
        "results": [
          {
            "points": [],
            "dates": [],
            "annotations": [
              {
                "fromMs": 1785942000000,
                "toMs": 1798815600000,
                "source": "edge",
                "covering": "2027-01-01..2027-12-31"
              }
            ],
            "uid": "kairos-07d3bee63dde-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "edge",
            "covering": "2027-01-01..2027-12-31",
            "concluded": false,
            "runwayDays": 148
          }
        ],
        "warnings": [
          "window-clip: shift(1) 2027-08-05 → 2027-08-06（評価範囲 [from, to) の外へ動いた点は出力に含まれない——範囲を広げて評価する。§7.8）"
        ],
        "requested": 1,
        "found": 0,
        "to": "2027-08-06"
      }
    },
    {
      "id": "manifest/next-horizon-short",
      "layer": "manifest",
      "origin": "impl/test/cli.test.ts: 地平線まで探して不足なら見つかった分を返す（found < requested）",
      "command": "next",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\nonce = [2026-09-01] covering: 2026..2026\nonce\n",
      "from": "2026-08-06",
      "tz": "Asia/Tokyo",
      "n": 3,
      "horizonYears": 2,
      "expect": {
        "results": [
          {
            "points": [
              1788188400000
            ],
            "dates": [
              "2026-09-01"
            ],
            "annotations": [
              {
                "fromMs": 1798729200000,
                "toMs": 1849100400000,
                "source": "once",
                "covering": "2026-01-01..2026-12-31"
              }
            ],
            "uid": "kairos-0b2b72a1c26d-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "once",
            "covering": "2026-01-01..2026-12-31",
            "concluded": false,
            "runwayDays": -583
          }
        ],
        "warnings": [],
        "requested": 3,
        "found": 1,
        "to": "2028-08-06"
      }
    },
    {
      "id": "manifest/next-labels-cut",
      "layer": "manifest",
      "origin": "impl/test/result-labels.test.ts: next: labels も要求件数で切る（dates と同長のまま）",
      "command": "next",
      "source": "# 二十四節気（external・kind: instants・labels: 値域）\npremise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  sekki = external(kind: instants, labels: [小寒, 大寒, 立春])\n}\n@H\nsekki\n",
      "from": "2026-01-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "H.sekki": {
          "instants": [
            1767600000000,
            1768870800000,
            1770235200000
          ],
          "covering": "2026..2026",
          "asof": "2026-01-01",
          "labels": [
            "小寒",
            "大寒",
            "立春"
          ]
        }
      },
      "n": 2,
      "horizonYears": 1,
      "expect": {
        "results": [
          {
            "points": [
              1767600000000,
              1768870800000
            ],
            "dates": [
              "2026-01-05T17:00",
              "2026-01-20T10:00"
            ],
            "annotations": [],
            "labels": [
              "小寒",
              "大寒"
            ],
            "uid": "kairos-66506f5e8d11-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "H.sekki",
            "covering": "2026-01-01..2026-12-31",
            "asof": "2026-01-01",
            "concluded": false,
            "runwayDays": 345
          }
        ],
        "warnings": [],
        "requested": 2,
        "found": 2,
        "to": "2026-01-21"
      }
    },
    {
      "id": "manifest/static-at-anchor-argument",
      "layer": "manifest",
      "origin": "impl/test/at-time-of-day.test.ts: (c) anchor 引数形（日時リテラル・裸日付リテラル）は誘導つき静的エラー",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\nt = [2026-01-05, 2026-01-12, 2026-01-19, 2026-01-26, 2026-02-02] covering: 2026-01-01..2026-03-01\nt |> at(2026-01-20T07:00)\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "at: 引数は単独時刻リテラル（Thh:mm）のみ——日付つきの錨は前方専用で anchor より前の点が黙って空になる（anchor 引数形は不採＝ADR-51 判断 8）。日の調整は日の層で: shift(±k, unit: day) |> at(Thh:mm)"
        }
      }
    },
    {
      "id": "manifest/static-at-windowed-input",
      "layer": "manifest",
      "origin": "impl/test/at-time-of-day.test.ts: (a) 窓付き入力は誘導つき静的エラー",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay |> within(month) |> at(T07:00) |> first\n",
      "from": "2026-01-01",
      "to": "2026-03-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "at: 窓付き入力は取らない——展開形は入力の窓を引き継がない（通し数えや選択子の型エラーに化ける）。窓は at の後で切る: … |> at(Thh:mm) |> within(…)（外延同値。ADR-51 追記）"
        }
      }
    },
    {
      "id": "manifest/static-binding-cycle",
      "layer": "manifest",
      "origin": "impl/test/static-errors.test.ts: 引数なし束縛の循環参照も経路つき静的エラー（F110）",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\nx = y\ny = x\nx\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "束縛の循環参照は静的エラー: x → y → x（§4.8 の依存解析）"
        }
      }
    },
    {
      "id": "manifest/static-core-word-redefinition",
      "layer": "manifest",
      "origin": "impl/test/static-errors.test.ts: core 語の再定義は静的エラー（§4.8）",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\nfilter = everyDay\neveryDay\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "core 語 filter の再定義は静的エラー（§4.8）"
        }
      }
    },
    {
      "id": "manifest/static-coverage-claim-exceeds",
      "layer": "manifest",
      "origin": "impl/test/annotations.test.ts: 必要条件検査: どの成分も語れない区間の完全性は主張できない",
      "command": "list",
      "source": "premise JPX { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPX\nh2026 = [2026-02-11] covering: 2026..2026\nnw = (h2026) covering: 2026..2027\nnw\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "被覆主張が成分覆域を越える: nw covering 2026-01-01..2027-12-31——どの成分も語れない区間の完全性は主張できない（必要条件・ADR-37 判断 5）"
        }
      }
    },
    {
      "id": "manifest/static-labelordinal-out-of-range",
      "layer": "manifest",
      "origin": "impl/test/label-ordinal.test.ts: 値域外: 別の宣言のラベルを渡すと値域の表示つきで止まる",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay |> filter(d => labelOrdinal(weekday, \"寅\") == 1)\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "labelOrdinal: 寅 は weekday の値域の外（値域 [Mon, Tue, Wed, Thu, Fri, Sat, Sun]。三項形の既定枝が黙って吸っていた形＝ADR-54 判断 2）"
        }
      }
    },
    {
      "id": "manifest/static-next-multiple-expressions",
      "layer": "manifest",
      "origin": "impl/test/cli.test.ts: 本体式が複数のファイルは明示エラー（どの式の「次」か曖昧なため）",
      "command": "next",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay |> within(month) |> nth(1)\neveryDay |> within(month) |> nth(15)\n",
      "from": "2026-08-06",
      "tz": "Asia/Tokyo",
      "n": 1,
      "horizonYears": 10,
      "expect": {
        "error": {
          "kind": "static",
          "message": "next は本体式 1 つのファイル向け（2 式ある——list を使うか式を 1 つに）"
        }
      }
    },
    {
      "id": "manifest/static-no-body-expression",
      "layer": "manifest",
      "origin": "impl/test/boundary-checklist.test.ts: F126 CLI list は本体式の無いファイル（空・premise だけ）を止める（it の題は「使い方エラー」だが kind は static＝実装どおり）",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "本体式がない（評価する式を 1 行以上書く。premise だけのファイルは評価対象が無い）"
        }
      }
    },
    {
      "id": "manifest/static-public-word-shadowed",
      "layer": "manifest",
      "origin": "impl/test/static-errors.test.ts: day = day cycle […] の day(d) は公開語の側に解決され、誘導つきの「適用できない値」で止まる",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\nday = day cycle [On, Off] anchor: 2026-01-05\neveryDay |> filter(d => day(d) == On)\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "適用できない値: windows（day は在圏 premise の公開語で、同名の利用側 top-level 束縛は隠れる＝束縛を別の名に改名する。§3.4・90-open 3-17）"
        }
      }
    },
    {
      "id": "manifest/static-range-reversed",
      "layer": "manifest",
      "origin": "impl/test/boundary-checklist.test.ts: F117 評価範囲の逆順（to < from）（it の題は「使い方エラー」だが kind は static＝実装どおり）",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay\n",
      "from": "2026-02-01",
      "to": "2026-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "評価範囲が逆順: to が from より前（[from, to) は半開区間・to は排他。from = to なら空の範囲）"
        }
      }
    },
    {
      "id": "manifest/static-reserved-word-1-1",
      "layer": "manifest",
      "origin": "impl/test/since-before.test.ts: 3 語（labelOrdinal・since・before）は同じ規約の下",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\nsince = 1\neveryDay\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "since は 1.1 で追加した語（予約語・stdlib の標準糖衣）——同名の利用側 top-level 束縛は静的エラー（§4.8）。利用側の束縛は別の名に改名する（ADR-55 判断 8）"
        }
      }
    },
    {
      "id": "manifest/static-selector-without-window",
      "layer": "manifest",
      "origin": "impl/test/static-errors.test.ts: 窓なしの選択子は型エラー（I4）",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay |> first\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "選択子 first は窓なしでは型エラー（I4）"
        }
      }
    },
    {
      "id": "manifest/static-shift-non-integer",
      "layer": "manifest",
      "origin": "impl/test/static-errors.test.ts: 窓単位 shift(1.5, unit: month)（F116）",
      "command": "list",
      "source": "premise Cal { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon\n  nonWorking = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n}\npremise JP = Gregorian with { calendar: Cal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay |> within(month) |> nth(1) |> shift(1.5, unit: month)\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "shift: n は整数（1.5 は不可。方向は符号で表す。§5.2）"
        }
      }
    },
    {
      "id": "manifest/static-since-time-literal",
      "layer": "manifest",
      "origin": "impl/test/since-before.test.ts: 単独時刻: since(T14:00) は呼び出し時に ADR-51 の誘導",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay |> since(T14:00)\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "since(p) の p に単独時刻リテラルは渡せない——単独時刻リテラルは strideBy(1d, from:)（壁時計 tick）の位置でのみ使える。日付つきの日時リテラルで錨を明示する（ADR-51・ADR-55）"
        }
      }
    },
    {
      "id": "manifest/static-sugar-self-recursion",
      "layer": "manifest",
      "origin": "impl/test/static-errors.test.ts: 糖衣定義の自己再帰は静的エラー（§4.8 の依存解析＝F110）",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\nf = s => f(s)\nf(everyDay)\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "糖衣定義の循環参照は静的エラー: f → f——糖衣の展開は有限（再帰は書けない。§4.8 の依存解析）"
        }
      }
    },
    {
      "id": "manifest/static-table-unsorted",
      "layer": "manifest",
      "origin": "impl/test/static-errors.test.ts: テーブルリテラルの乱順は静的エラー（§3.8）",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\nt = [2026-03-01, 2026-02-01]\nt\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "テーブルリテラルは昇順・重複なし（§3.8 静的エラー）"
        }
      }
    },
    {
      "id": "manifest/static-unresolved-name",
      "layer": "manifest",
      "origin": "impl/test/boundary-checklist.test.ts: 文言（軽微 11・12・15・16）: 原因を指す（綴り違いは従来の文言のまま）",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\nevryDay |> within(month) |> first\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "static",
          "message": "未解決の名前: evryDay（premise 相対解決 §3.4）"
        }
      }
    },
    {
      "id": "manifest/supply-covering-reversed",
      "layer": "manifest",
      "origin": "impl/test/boundary-checklist.test.ts: F141 covering の年は 4 桁（同じ検査の枝＝区間の端が逆順・external の解決値）",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates)\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "dates": [
            "2026-01-05"
          ],
          "covering": "2026..2025",
          "asof": "2026-01-01"
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: covering: 区間の端が逆順——external H.h"
        }
      }
    },
    {
      "id": "manifest/supply-covering-unreadable",
      "layer": "manifest",
      "origin": "impl/test/external.test.ts: covering 字面が読めないのは契約違反",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates)\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "dates": [
            "2026-01-05"
          ],
          "covering": "garbage",
          "asof": "x"
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: covering が読めない——external H.h: 構文エラー(1:1): covering の端は日付リテラルか 4 桁の年（値式は不可。§5.6）（'garbage' の位置）"
        }
      }
    },
    {
      "id": "manifest/supply-covering-year-5-digits",
      "layer": "manifest",
      "origin": "impl/test/boundary-checklist.test.ts: F141 covering の年は 4 桁（external の解決値）",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates)\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "dates": [
            "2026-01-05"
          ],
          "covering": "10000..10001",
          "asof": "2026-01-01"
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: covering: 年は 4 桁の整数（0000..9999）: 10000——external H.h"
        }
      }
    },
    {
      "id": "manifest/supply-date-format-invalid",
      "layer": "manifest",
      "origin": "impl/src/eval.ts: 契約違反「日付の形式が不正」の投げ口（impl/test/external.test.ts の契約検査の枝・2026-10-30 機械レビュー所見 7 で追加）",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates)\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "dates": [
            "2026/01/05"
          ],
          "covering": "2026..2026",
          "asof": "x"
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: 日付の形式が不正——external H.h: 2026/01/05（\"YYYY-MM-DD\"）"
        }
      }
    },
    {
      "id": "manifest/supply-instants-non-integer",
      "layer": "manifest",
      "origin": "impl/test/external.test.ts: instants の非整数は契約違反",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: instants)\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "instants": [
            1.5
          ],
          "covering": "2026..2026",
          "asof": "x"
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: instants は有限整数の epoch ms——external H.h: 1.5"
        }
      }
    },
    {
      "id": "manifest/supply-instants-out-of-time-range",
      "layer": "manifest",
      "origin": "impl/test/boundary-checklist.test.ts: F140 時刻として表せない instants は契約違反",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: instants)\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "instants": [
            100000000000000000
          ],
          "covering": "2026..2026",
          "asof": "x"
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: instants が時刻の表現範囲の外——external H.h: 100000000000000000（epoch ms は ±8.64e15 以内。秒やマイクロ秒で渡していないか）"
        }
      }
    },
    {
      "id": "manifest/supply-kind-mismatch",
      "layer": "manifest",
      "origin": "impl/test/external.test.ts: kind 不一致（dates 宣言に instants）は契約違反",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates)\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "instants": [
            0
          ],
          "covering": "2026..2026",
          "asof": "x"
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: kind: dates の解決値は dates（\"YYYY-MM-DD\" の列）を運ぶ——external H.h"
        }
      }
    },
    {
      "id": "manifest/supply-label-outside-range",
      "layer": "manifest",
      "origin": "impl/test/external.test.ts: 宣言値域の外のラベルは契約違反",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates, labels: [a, b])\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "dates": [
            "2026-01-05"
          ],
          "covering": "2026..2026",
          "asof": "x",
          "labels": [
            "c"
          ]
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: 宣言値域の外のラベル——external H.h: c（域外の封止＝ADR-42 判断 7 の契約版）"
        }
      }
    },
    {
      "id": "manifest/supply-labels-length",
      "layer": "manifest",
      "origin": "impl/test/external.test.ts: labels 宣言つきに同長違反は契約違反",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates, labels: [a, b])\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "dates": [
            "2026-01-05"
          ],
          "covering": "2026..2026",
          "asof": "x",
          "labels": [
            "a",
            "b"
          ]
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: labels は時点列と同長——external H.h（ADR-30）"
        }
      }
    },
    {
      "id": "manifest/supply-labels-missing",
      "layer": "manifest",
      "origin": "impl/src/eval.ts: 契約違反「labels 宣言つきの external にラベルが来ない」の投げ口（impl/test に専用の witness なし・契約違反 14 種の 1 つ）",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates, labels: [a, b])\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "dates": [
            "2026-01-05"
          ],
          "covering": "2026..2026",
          "asof": "x"
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: labels 宣言つきの external にラベルが来ない——H.h"
        }
      }
    },
    {
      "id": "manifest/supply-labels-undeclared",
      "layer": "manifest",
      "origin": "impl/test/external.test.ts: labels 無宣言にラベル到着は契約違反（黙って捨てない）",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates)\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "dates": [
            "2026-01-05"
          ],
          "covering": "2026..2026",
          "asof": "x",
          "labels": [
            "a"
          ]
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: labels 無宣言の external にラベルが来た——H.h（黙って捨てない＝ADR-39 の統治）"
        }
      }
    },
    {
      "id": "manifest/supply-no-resolver",
      "layer": "manifest",
      "origin": "impl/test/cli.test.ts: --supply 無しの external は供給エラー・終了コード 1（ADR-46 の既定）",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates)\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "error": {
          "kind": "supply",
          "message": "供給エラー: 解決子がない——external H.h（source: \"x\"）は解決できない（ADR-46 判断 7 (a)）"
        }
      }
    },
    {
      "id": "manifest/supply-nonexistent-date",
      "layer": "manifest",
      "origin": "impl/test/external.test.ts: 実在しない日付は契約違反（ADR-43 の再執行）",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates)\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "dates": [
            "2026-02-30"
          ],
          "covering": "2026..2026",
          "asof": "x"
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: 実在しない日付——external H.h: 2026-02-30（黙ったロールオーバーの封止＝ADR-43 の字句検査の解決値向け再執行。ADR-46）"
        }
      }
    },
    {
      "id": "manifest/supply-point-outside-covering",
      "layer": "manifest",
      "origin": "impl/test/external.test.ts: covering 外の点は契約違反（包含＝ADR-37 判断 1）",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates)\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "dates": [
            "2027-01-05"
          ],
          "covering": "2026..2026",
          "asof": "x"
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: 解決値の点が covering の外——external H.h: 2027-01-05（列の全要素は covering に包含——ADR-37 判断 1）"
        }
      }
    },
    {
      "id": "manifest/supply-unsorted-or-duplicate",
      "layer": "manifest",
      "origin": "impl/test/external.test.ts: 乱順・重複は契約違反",
      "command": "list",
      "source": "premise H { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon; source: \"x\"\n  h = external(kind: dates)\n}\n@H\nh\n",
      "from": "2026-01-01",
      "to": "2026-02-01",
      "tz": "Asia/Tokyo",
      "supply": {
        "h": {
          "dates": [
            "2026-01-05",
            "2026-01-05"
          ],
          "covering": "2026..2026",
          "asof": "x"
        }
      },
      "expect": {
        "error": {
          "kind": "supply",
          "message": "契約違反: 解決値は昇順・重複なし——external H.h（§3.8 と同じ整列則）"
        }
      }
    },
    {
      "id": "manifest/usage-next-horizon-zero",
      "layer": "manifest",
      "origin": "impl/src/cli.ts: posInt（--horizon は正の整数）——impl/test に --horizon 0 の witness なし（終了コード契約の枝）",
      "command": "next",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay\n",
      "from": "2026-01-01",
      "tz": "Asia/Tokyo",
      "n": 1,
      "horizonYears": 0,
      "expect": {
        "error": {
          "kind": "usage",
          "message": "--horizon は正の整数: 0"
        }
      }
    },
    {
      "id": "manifest/usage-next-n-zero",
      "layer": "manifest",
      "origin": "impl/src/cli.ts: posInt（-n は正の整数）——impl/test に -n 0 の witness なし（終了コード契約の枝）",
      "command": "next",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay\n",
      "from": "2026-01-01",
      "tz": "Asia/Tokyo",
      "n": 0,
      "horizonYears": 1,
      "expect": {
        "error": {
          "kind": "usage",
          "message": "-n は正の整数: 0"
        }
      }
    },
    {
      "id": "manifest/warning-horizon-clip-snapto",
      "layer": "manifest",
      "origin": "impl/test/annotations.test.ts: snapTo: 計算範囲を越えたテーブル時点はクリップ＋警告（狭い評価範囲が書ける）",
      "command": "list",
      "source": "premise JPX { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JPX\n[2026-01-19T04:52, 2126-01-19T04:52] |> snapTo(month)\n",
      "from": "2026-01-01",
      "to": "2027-01-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1767193200000
            ],
            "dates": [
              "2026-01-01"
            ],
            "annotations": [],
            "uid": "kairos-53daaa85e477-series@kairos-lang.org"
          }
        ],
        "coverage": [
          {
            "source": "(無名テーブル)",
            "covering": "2026-01-19T04:52..2126-01-19T04:52",
            "concluded": false,
            "runwayDays": 36177
          }
        ],
        "warnings": [
          "horizon-clip: snapTo 2126-01-19T04:52（計算範囲 to+400日 の実体化地平線——言語の地平線ではない。ADR-37 判断 8）"
        ]
      }
    },
    {
      "id": "manifest/warning-horizon-clip-takelast",
      "layer": "manifest",
      "origin": "impl/test/boundary-checklist.test.ts: 文言（軽微 11・12・15・16）——実体化下限で切れた不足は従来どおり警告（horizon-clip: takeLast）",
      "command": "list",
      "source": "premise JP { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay |> filter(d => monthNo(d) == 2 and dayNo(d) == 29) |> takeLast(20, until: 2026-03-01)\n",
      "from": "2026-01-01",
      "to": "2026-04-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [],
            "dates": [],
            "annotations": [],
            "uid": "kairos-90ff69b036ae-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": [
          "horizon-clip: takeLast 2026-03-01（実体化下限で切れ——n=20 個中 14 個のみ。紀元は tz 相対・言語の地平線ではない。ADR-37 判断 8・F107）"
        ]
      }
    },
    {
      "id": "manifest/warning-window-clip-none-when-widened",
      "layer": "manifest",
      "origin": "impl/test/window-clip.test.ts: 対照: 範囲を広げれば点は出て警告なし（7〜9 月窓で ① の式は 7/31 を含む 3 点）",
      "command": "list",
      "source": "premise Cal { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon\n  nonWorking = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n}\npremise JP = Gregorian with { calendar: Cal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay |> within(month) |> nth(1) |> roll(Preceding, on: bizDay)\n",
      "from": "2026-07-01",
      "to": "2026-10-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [
              1782831600000,
              1785423600000,
              1788188400000
            ],
            "dates": [
              "2026-07-01",
              "2026-07-31",
              "2026-09-01"
            ],
            "annotations": [],
            "uid": "kairos-827fb9537ada-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": []
      }
    },
    {
      "id": "manifest/warning-window-clip-roll-preceding",
      "layer": "manifest",
      "origin": "impl/test/window-clip.test.ts: ① roll(Preceding): 8 月窓で 8/1（土）が 7/31 へ——from 側",
      "command": "list",
      "source": "premise Cal { calendar-system: Gregorian; tz: \"Asia/Tokyo\"; wkst: Mon\n  nonWorking = everyDay |> filter(d => weekday(d) == Sat or weekday(d) == Sun)\n}\npremise JP = Gregorian with { calendar: Cal; tz: \"Asia/Tokyo\"; wkst: Mon }\n@JP\neveryDay |> within(month) |> nth(1) |> roll(Preceding, on: bizDay)\n",
      "from": "2026-08-01",
      "to": "2026-09-01",
      "tz": "Asia/Tokyo",
      "expect": {
        "results": [
          {
            "points": [],
            "dates": [],
            "annotations": [],
            "uid": "kairos-827fb9537ada-series@kairos-lang.org"
          }
        ],
        "coverage": [],
        "warnings": [
          "window-clip: roll(Preceding) 2026-08-01 → 2026-07-31（評価範囲 [from, to) の外へ動いた点は出力に含まれない——範囲を広げて評価する。§7.8）"
        ]
      }
    }
  ]
}
