{
  "id": "cron-occurrences-expand",
  "name": "Supplied-offset cron occurrence expander",
  "description": "Expand bounded five-field cron into complete UTC occurrences using an exact caller-supplied offset timeline, including every fold instant and no nonexistent gap minute.",
  "category": "structured",
  "priceUsd": "0.005",
  "pricingStatus": "proposed-unverified",
  "pricing": {
    "unit": "one successful operation call",
    "proposedNominalUsd": "0.005",
    "sixDecimalTokenBaseUnits": "5000",
    "subscription": false,
    "includesPayerWalletOrNetworkFees": false,
    "liveQuoteVerified": false,
    "condition": "Actual SDK challenge is authoritative only within the caller's explicit authorization; configured six-decimal token peg is an operator assertion, not a conversion guarantee."
  },
  "intents": [
    "expand cron occurrences in a supplied UTC window",
    "enumerate fixed-offset or UTC cron schedules offline",
    "inspect cron gap and fold matches against supplied offset periods"
  ],
  "whenToUse": [
    "expand cron occurrences in a supplied UTC window",
    "enumerate fixed-offset or UTC cron schedules offline",
    "inspect cron gap and fold matches against supplied offset periods"
  ],
  "whenNotToUse": [
    "An IANA timezone name without an explicit trusted offset-period timeline",
    "Daemon scheduling, Cronie clock-jump replay, catch-up or once-per-wall-time suppression",
    "Quartz, seconds/year fields, names, macros, hashed values, command suffixes or Sunday 7",
    "Accessing calendars, scheduling jobs, reserving meetings, network requests or external state changes"
  ],
  "capabilities": [
    "UTC and fixed offsets need one period spanning the exact window; labels are inert metadata and timezone rules are unverified",
    "Sorted contiguous offset periods are normalized; splitting equal-offset periods leaves output unchanged",
    "Exact five-field decimal grammar; positive steps only on * or ascending ranges",
    "Day-of-month/day-of-week use OR when both restricted; either exact wildcard delegates to the other; stepped wildcards in these day fields are rejected",
    "Minute-aligned half-open UTC window, Gregorian dates, gap omission and every distinct fold instant; no hidden current time",
    "Caller-supplied data only; no current clock, randomness, environment or timezone-database reads",
    "Complete bounded validation before payment challenge; externalRequests=0"
  ],
  "limits": {
    "inputBytes": 100000,
    "outputBytes": 400000,
    "jsonNodes": 12000,
    "depth": 20,
    "profile": "cron5-offset-periods-v1",
    "expressionCodeUnits": 256,
    "atoms": 32,
    "offsetPeriods": 32,
    "absoluteOffsetMinutes": 840,
    "windowDays": 366,
    "calendarDateVisits": 512,
    "prospectiveCandidates": 50000,
    "occurrences": 2000,
    "utcYears": "2000–2100",
    "timezoneLabelCodeUnits": 128
  },
  "related": [
    "recurrence-dates-expand",
    "timezone-convert",
    "icalendar-compose"
  ],
  "errorCodes": [
    "INPUT_LIMIT",
    "OUTPUT_LIMIT",
    "COMPLEXITY_LIMIT",
    "INVALID_JSON",
    "INVALID_NUMBER",
    "INVALID_UNICODE",
    "UNSAFE_KEY",
    "INVALID_CRON",
    "INVALID_UTC_TIME",
    "INVALID_WINDOW",
    "INVALID_OFFSET_PERIODS"
  ],
  "requirementsProfile": {
    "format": "declared-requirements-v1",
    "facts": {
      "execution.suppliedCode": false,
      "execution.remoteMutation": false,
      "execution.llmInference": false,
      "execution.paidMcp": false,
      "verification.semanticTruth": false,
      "verification.sourceAuthenticity": false,
      "verification.liveVulnerabilities": false,
      "numbers.arbitraryPrecisionJson": false,
      "numbers.model": "ieee754-binary64",
      "privacy.requestBodyPersisted": false,
      "execution.deterministic": true,
      "execution.networkAccess": false,
      "privacy.resultBodyPersisted": false,
      "payment.x402": true,
      "payment.mpp": true,
      "operation.id": "cron-occurrences-expand",
      "operation.category": "structured",
      "limit.httpRequestBytes": 131072,
      "limit.requestBytes": 100000,
      "limit.responseBytes": 524288,
      "limit.resultBytes": 400000,
      "limit.jsonDepth": 20,
      "limit.jsonNodes": 12000,
      "cron.profile": "cron5-offset-periods-v1",
      "cron.fields": 5,
      "cron.maxWindowDays": 366,
      "cron.maxOffsetPeriods": 32,
      "cron.maxCalendarDateVisits": 512,
      "cron.maxCandidateMinutes": 50000,
      "cron.maxOccurrences": 2000,
      "cron.maxExpressionAtoms": 32,
      "cron.offsetSource": "caller-supplied-contiguous-periods",
      "cron.dayCombination": "restricted-dom-or-restricted-dow",
      "cron.sunday": 0,
      "cron.foldSemantics": "each-distinct-matching-utc-instant",
      "cron.gapSemantics": "no-instant-for-missing-wall-minute",
      "cron.namedIanaResolution": false,
      "cron.timezoneRulesVerified": false,
      "cron.cronieDaemonParity": false,
      "cron.quartzGrammar": false,
      "cron.schedulesExecution": false,
      "cron.currentTimeLookup": false,
      "input.expression.maxLength": 256,
      "input.expression.minLength": 1
    },
    "unknownPolicy": "Undeclared requirements are unknown, never compatible. Matching declared facts does not establish semantic fit or input validity.",
    "preflight": "/preflight"
  },
  "documentation": "/reference/tools/cron-occurrences-expand.md",
  "serviceContract": "/reference/services/cron-occurrences-expand.json",
  "errors": [
    {
      "status": 400,
      "meaning": "Malformed JSON, missing/invalid idempotency key, or payment identifier mismatch",
      "retry": "Correct the request before payment"
    },
    {
      "status": 402,
      "meaning": "Payment challenge or rejected payment",
      "retry": "Use official protocol SDK; inspect payment outcome before another payment"
    },
    {
      "status": 409,
      "meaning": "Idempotency conflict, duplicate proof, or PAYMENT_UNCERTAIN",
      "retry": "Keep original key, body, and proof; reconcile uncertainty with operator; never blindly repay"
    },
    {
      "status": 413,
      "meaning": "Input or generated output too large",
      "retry": "Reduce input; no payment attempted for validation failure"
    },
    {
      "status": 415,
      "meaning": "Unsupported media type or compression",
      "retry": "Send uncompressed application/json"
    },
    {
      "status": 422,
      "meaning": "Schema or service-specific semantic validation failure",
      "retry": "Correct input using returned error code; no payment attempted"
    },
    {
      "status": 429,
      "meaning": "Request/payment-attempt rate exceeded",
      "retry": "Wait for rate limit window; preserve existing payment identity"
    },
    {
      "status": 503,
      "meaning": "Payment configuration/provider/state unavailable, or live DNS preparation failed before settlement",
      "retry": "Check readiness; DNS preparation failures may retry the identical key/body/credential only; uncertainty requires reconciliation"
    }
  ],
  "numericPrecision": "JavaScript IEEE-754 numbers; use strings for large integer IDs/exact decimals where the schema accepts strings. No lossless numeric parsing.",
  "paymentWorkflow": {
    "discoveryOnly": false,
    "supportedProtocols": [
      "x402",
      "mpp"
    ],
    "x402": {
      "credentialHeader": "PAYMENT-SIGNATURE",
      "challengeHeader": "PAYMENT-REQUIRED",
      "receiptHeader": "PAYMENT-RESPONSE",
      "version": 2,
      "scheme": "exact",
      "paymentIdentifier": "payment-identifier extension MUST equal the HTTP Idempotency-Key",
      "sdk": "@x402/core with @x402/evm"
    },
    "mpp": {
      "supported": true,
      "credentialHeader": "Authorization",
      "challengeHeader": "WWW-Authenticate",
      "receiptHeader": "Payment-Receipt",
      "method": "tempo",
      "intent": "charge",
      "sdk": "mppx",
      "tokenDecimals": 6
    },
    "steps": [
      "Check configured readiness and the exact service schema",
      "Generate a fresh random Idempotency-Key for this operation; never use a discovery probe fixture for purchases",
      "Send valid input without a credential to obtain the official protocol challenge",
      "Use the official SDK and authorized wallet to fulfill the challenge",
      "Retry only with identical key, body, protocol and credential",
      "On PAYMENT_UNCERTAIN stop and request operator reconciliation; never blindly pay again"
    ],
    "versionedRetries": "Request fingerprint includes service release version. Retries across a version upgrade can conflict; coordinate upgrades outside the 24-hour replay window and reconcile pending attempts.",
    "docs": "/llms.txt"
  },
  "method": "POST",
  "paths": {
    "x402": "/v1/x402/cron-occurrences-expand",
    "mpp": "/v1/mpp/cron-occurrences-expand"
  },
  "inputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "expression": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      },
      "window": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "minLength": 20,
            "maxLength": 20,
            "pattern": "^(?:20[0-9]{2}|2100)-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:00Z$"
          },
          "end": {
            "type": "string",
            "minLength": 20,
            "maxLength": 20,
            "pattern": "^(?:20[0-9]{2}|2100)-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:00Z$"
          }
        },
        "required": [
          "start",
          "end"
        ],
        "additionalProperties": false
      },
      "timezone": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[\\x20-\\x7e]+$"
          },
          "periods": {
            "minItems": 1,
            "maxItems": 32,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "start": {
                  "type": "string",
                  "minLength": 20,
                  "maxLength": 20,
                  "pattern": "^(?:20[0-9]{2}|2100)-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:00Z$"
                },
                "end": {
                  "type": "string",
                  "minLength": 20,
                  "maxLength": 20,
                  "pattern": "^(?:20[0-9]{2}|2100)-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:00Z$"
                },
                "offsetMinutes": {
                  "type": "integer",
                  "minimum": -840,
                  "maximum": 840
                }
              },
              "required": [
                "start",
                "end",
                "offsetMinutes"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "label",
          "periods"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "expression",
      "window",
      "timezone"
    ],
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "operation",
      "version",
      "result",
      "provenance"
    ],
    "properties": {
      "operation": {
        "const": "cron-occurrences-expand",
        "type": "string"
      },
      "version": {
        "const": "0.29.0",
        "type": "string"
      },
      "result": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "profile": {
            "type": "string",
            "const": "cron5-offset-periods-v1"
          },
          "timezoneLabel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[\\x20-\\x7e]+$"
          },
          "occurrences": {
            "maxItems": 2000,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "instant": {
                  "type": "string",
                  "minLength": 20,
                  "maxLength": 20,
                  "pattern": "^(?:20[0-9]{2}|2100)-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:00Z$"
                },
                "localDateTime": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:00$"
                },
                "offsetMinutes": {
                  "type": "integer",
                  "minimum": -840,
                  "maximum": 840
                }
              },
              "required": [
                "instant",
                "localDateTime",
                "offsetMinutes"
              ],
              "additionalProperties": false
            }
          },
          "complete": {
            "type": "boolean",
            "const": true
          },
          "rulesSource": {
            "type": "string",
            "const": "caller-supplied-offset-periods"
          },
          "timezoneRulesVerified": {
            "type": "boolean",
            "const": false
          },
          "execution": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "profile",
          "timezoneLabel",
          "occurrences",
          "complete",
          "rulesSource",
          "timezoneRulesVerified",
          "execution"
        ],
        "additionalProperties": false
      },
      "provenance": {
        "type": "object",
        "required": [
          "inputSha256",
          "outputSha256",
          "deterministic",
          "externalRequests"
        ],
        "properties": {
          "inputSha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "outputSha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "deterministic": {
            "const": true
          },
          "externalRequests": {
            "const": 0
          }
        }
      }
    },
    "additionalProperties": false
  },
  "exampleInput": {
    "expression": "0 9 * * 1-5",
    "window": {
      "start": "2026-10-05T00:00:00Z",
      "end": "2026-10-08T00:00:00Z"
    },
    "timezone": {
      "label": "UTC",
      "periods": [
        {
          "start": "2026-10-05T00:00:00Z",
          "end": "2026-10-08T00:00:00Z",
          "offsetMinutes": 0
        }
      ]
    }
  },
  "exampleResponse": {
    "operation": "cron-occurrences-expand",
    "version": "0.29.0",
    "result": {
      "profile": "cron5-offset-periods-v1",
      "timezoneLabel": "UTC",
      "occurrences": [
        {
          "instant": "2026-10-05T09:00:00Z",
          "localDateTime": "2026-10-05T09:00:00",
          "offsetMinutes": 0
        },
        {
          "instant": "2026-10-06T09:00:00Z",
          "localDateTime": "2026-10-06T09:00:00",
          "offsetMinutes": 0
        },
        {
          "instant": "2026-10-07T09:00:00Z",
          "localDateTime": "2026-10-07T09:00:00",
          "offsetMinutes": 0
        }
      ],
      "complete": true,
      "rulesSource": "caller-supplied-offset-periods",
      "timezoneRulesVerified": false,
      "execution": false
    },
    "provenance": {
      "inputSha256": "fe96d9515b4ae70eefd4667f72628cd07f8ccde455e53be969cc789539811a84",
      "outputSha256": "9a7bd770faba0810104e5978c7661f2ff710afe70115d536c705d59a97b89a5b",
      "deterministic": true,
      "externalRequests": 0
    }
  },
  "requiredHeaders": {
    "Content-Type": "application/json",
    "Idempotency-Key": "random 16–128 character operation identifier"
  },
  "fixedExample": "/reference/examples/cron-occurrences-expand.json",
  "execution": {
    "deterministic": true,
    "externalRequests": 0,
    "maxExternalRequests": 0,
    "resultSnapshotPersisted": false,
    "fixedExampleIsIllustrativeSnapshot": false,
    "requiresPayment": true,
    "supportsMcpExecution": false
  },
  "releaseSnapshot": {
    "format": "static-release-reference-v1",
    "sourceVersion": "0.29.0",
    "sourceRegistrySha256": "a2b5ec09bf6c38b9d2879d746a4fded374f5928b445377b0270ef6aa8e6cac65",
    "generatedAt": "2026-10-06T15:38:00Z",
    "releaseAcceptance": "not-verified-by-generator",
    "runtimeReadiness": "not-evaluated",
    "livePaymentsVerified": false,
    "indexingVerified": false,
    "apiOrigin": null,
    "notice": "Build-time release reference. Runtime readiness, deployment, payment settlement and external indexing are not evaluated here. Prices are proposed; this file cannot authorize execution or payment."
  }
}
