Supplied-offset cron occurrence expander
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.
structured · Operation ID: cron-occurrences-expand
Choose this operation when
- 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
Outside this profile
- 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
Exact release references
Static JSON contract · Markdown reference · Fixed example response
Complete input schema
{
"$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
}
Complete output-envelope schema
{
"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
}
Fixed example
One accepted fixed example, not a custom-input trial. No operation runs when this static page is requested.
Example input
{
"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
}
]
}
}
Example response
{
"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
}
}
Bounds and precision
JavaScript IEEE-754 numbers; use strings for large integer IDs/exact decimals where the schema accepts strings. No lossless numeric parsing.
{
"global": {
"requestBytes": 131072,
"responseBytes": 524288,
"jsonDepth": 32,
"jsonNodes": 20000,
"requestsPerMinute": 60,
"paidAttemptsPerMinute": 20,
"idempotencyHours": 24
},
"operation": {
"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
}
}
Complete schemas, descriptions and cross-field validation may impose additional limits.
Proposed price and protocol definitions
{
"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."
}
Protocol definitions: x402, mpp. MPP uses Tempo charge. Paid MCP execution is unsupported. All runtime readiness is not evaluated in this build.
API path templates, not endpoints on this documentation host
{
"x402": "/v1/x402/cron-occurrences-expand",
"mpp": "/v1/mpp/cron-occurrences-expand"
}
Required headers
{
"Content-Type": "application/json",
"Idempotency-Key": "random 16–128 character operation identifier"
}
Actual SDK challenge amount, asset, network, recipient and wallet costs must pass independent authorization. Preserve identical key, body, protocol and credential on retries; on PAYMENT_UNCERTAIN stop and reconcile.
Execution profile and provider conditions
{
"deterministic": true,
"externalRequests": 0,
"maxExternalRequests": 0,
"resultSnapshotPersisted": false,
"fixedExampleIsIllustrativeSnapshot": false,
"requiresPayment": true,
"supportsMcpExecution": false
}
Deterministic supplied-input operation with no external requests or stored request/result bodies. Payment infrastructure retains payment metadata and hashes.
Failure handling
- HTTP 400: Malformed JSON, missing/invalid idempotency key, or payment identifier mismatch Correct the request before payment
- HTTP 402: Payment challenge or rejected payment Use official protocol SDK; inspect payment outcome before another payment
- HTTP 409: Idempotency conflict, duplicate proof, or PAYMENT_UNCERTAIN Keep original key, body, and proof; reconcile uncertainty with operator; never blindly repay
- HTTP 413: Input or generated output too large Reduce input; no payment attempted for validation failure
- HTTP 415: Unsupported media type or compression Send uncompressed application/json
- HTTP 422: Schema or service-specific semantic validation failure Correct input using returned error code; no payment attempted
- HTTP 429: Request/payment-attempt rate exceeded Wait for rate limit window; preserve existing payment identity
- HTTP 503: Payment configuration/provider/state unavailable, or live DNS preparation failed before settlement Check readiness; DNS preparation failures may retry the identical key/body/credential only; uncertainty requires reconciliation
Declared requirements
Before any paid call, refresh the live operation contract and POST the complete bounded budgeted plan to the separate API's /preflight. Unknown requirements block selection; compatible preflight is not permission to spend.