Coverage overlap and blackout gap

Input

{
  "end": "2026-01-05T04:00:00Z",
  "schedules": [
    {
      "end_time": "04:00",
      "id": "coverage",
      "start_time": "00:00",
      "type": "window",
      "weekdays": [
        0
      ]
    },
    {
      "duration_minutes": 60,
      "expression": "0 1 * * *",
      "id": "job",
      "type": "cron"
    },
    {
      "end_time": "03:00",
      "id": "maintenance",
      "role": "blackout",
      "start_time": "02:00",
      "type": "window",
      "weekdays": [
        0
      ]
    }
  ],
  "start": "2026-01-05T00:00:00Z"
}

Output

Build-time verified. stats.elapsed_ms normalized to 0.

{
  "analysis": {
    "blackout_conflicts": [
      {
        "intervals": [
          {
            "end": "2026-01-05T03:00:00Z",
            "start": "2026-01-05T02:00:00Z"
          }
        ],
        "left": "coverage",
        "right": "maintenance"
      }
    ],
    "overlaps": [
      {
        "intervals": [
          {
            "end": "2026-01-05T02:00:00Z",
            "start": "2026-01-05T01:00:00Z"
          }
        ],
        "left": "coverage",
        "right": "job"
      },
      {
        "intervals": [
          {
            "end": "2026-01-05T03:00:00Z",
            "start": "2026-01-05T02:00:00Z"
          }
        ],
        "left": "coverage",
        "right": "maintenance"
      }
    ],
    "schedules": [
      {
        "fires": [],
        "id": "coverage",
        "intervals": [
          {
            "end": "2026-01-05T04:00:00Z",
            "start": "2026-01-05T00:00:00Z"
          }
        ]
      },
      {
        "fires": [
          "2026-01-05T01:00:00Z"
        ],
        "id": "job",
        "intervals": [
          {
            "end": "2026-01-05T02:00:00Z",
            "start": "2026-01-05T01:00:00Z"
          }
        ]
      },
      {
        "fires": [],
        "id": "maintenance",
        "intervals": [
          {
            "end": "2026-01-05T03:00:00Z",
            "start": "2026-01-05T02:00:00Z"
          }
        ]
      }
    ],
    "uncovered_gaps": [
      {
        "end": "2026-01-05T03:00:00Z",
        "start": "2026-01-05T02:00:00Z"
      }
    ]
  },
  "stats": {
    "elapsed_ms": 0,
    "timed_out": false
  },
  "tzdata_version": "2026.6",
  "verdict": "complete",
  "verified": true
}

Request

curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/analyze/schedule-windows -H 'Content-Type: application/json' --data-raw '{"start":"2026-01-05T00:00:00Z","end":"2026-01-05T04:00:00Z","schedules":[{"type":"window","id":"coverage","weekdays":[0],"start_time":"00:00","end_time":"04:00"},{"type":"cron","id":"job","expression":"0 1 * * *","duration_minutes":60},{"type":"window","id":"maintenance","role":"blackout","weekdays":[0],"start_time":"02:00","end_time":"03:00"}]}'