Browse operation contracts · Static machine index · OpenAPI release reference · Build manifest

Time-series cadence inspection

Inspect up to 1,000 supplied timestamp/value points for ordering, duplicate timestamps, null values and optional cadence deviations. Returns bounded interval evidence, aligned missing-point estimates and descriptive numeric summaries. No clock, interpolation, anomaly prediction or forecasting.

data-assurance · Operation ID: time-series-inspect

Choose this operation when

Outside this profile

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": {
    "points": {
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "timeMs": {
            "type": "integer",
            "minimum": 0,
            "maximum": 8640000000000000
          },
          "value": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -1e+100,
                "maximum": 1e+100
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "timeMs",
          "value"
        ],
        "additionalProperties": false
      }
    },
    "expectedStepMs": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 8640000000000000
    },
    "toleranceMs": {
      "default": 0,
      "type": "integer",
      "minimum": 0,
      "maximum": 8640000000000000
    }
  },
  "required": [
    "points"
  ],
  "additionalProperties": false
}

Complete output-envelope schema

{
  "type": "object",
  "required": [
    "operation",
    "version",
    "result",
    "provenance"
  ],
  "properties": {
    "operation": {
      "const": "time-series-inspect",
      "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": "time-series-inspection-v1"
        },
        "pointCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "distinctTimestampCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "nullValueCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "firstTimeMs": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 8640000000000000
            },
            {
              "type": "null"
            }
          ]
        },
        "lastTimeMs": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 8640000000000000
            },
            {
              "type": "null"
            }
          ]
        },
        "sortedInput": {
          "type": "boolean"
        },
        "outOfOrderPairCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "outOfOrderPairs": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "previousRowIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "rowIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "previousTimeMs": {
                "type": "integer",
                "minimum": 0,
                "maximum": 8640000000000000
              },
              "timeMs": {
                "type": "integer",
                "minimum": 0,
                "maximum": 8640000000000000
              }
            },
            "required": [
              "previousRowIndex",
              "rowIndex",
              "previousTimeMs",
              "timeMs"
            ],
            "additionalProperties": false
          }
        },
        "outOfOrderPairsTruncated": {
          "type": "boolean"
        },
        "duplicateTimestampCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "duplicateTimestamps": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "timeMs": {
                "type": "integer",
                "minimum": 0,
                "maximum": 8640000000000000
              },
              "count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "rowIndices": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "rowIndicesTruncated": {
                "type": "boolean"
              }
            },
            "required": [
              "timeMs",
              "count",
              "rowIndices",
              "rowIndicesTruncated"
            ],
            "additionalProperties": false
          }
        },
        "duplicateTimestampsTruncated": {
          "type": "boolean"
        },
        "cadenceChecked": {
          "type": "boolean"
        },
        "irregularIntervalCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "irregularIntervals": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "fromTimeMs": {
                "type": "integer",
                "minimum": 0,
                "maximum": 8640000000000000
              },
              "toTimeMs": {
                "type": "integer",
                "minimum": 0,
                "maximum": 8640000000000000
              },
              "deltaMs": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "kind": {
                "type": "string",
                "enum": [
                  "short",
                  "long"
                ]
              },
              "inferredMissingPoints": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "fromTimeMs",
              "toTimeMs",
              "deltaMs",
              "kind",
              "inferredMissingPoints"
            ],
            "additionalProperties": false
          }
        },
        "irregularIntervalsTruncated": {
          "type": "boolean"
        },
        "numeric": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "min": {
                  "type": "number"
                },
                "max": {
                  "type": "number"
                },
                "mean": {
                  "type": "number"
                },
                "median": {
                  "type": "number"
                }
              },
              "required": [
                "count",
                "min",
                "max",
                "mean",
                "median"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "conventions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "profile",
        "pointCount",
        "distinctTimestampCount",
        "nullValueCount",
        "firstTimeMs",
        "lastTimeMs",
        "sortedInput",
        "outOfOrderPairCount",
        "outOfOrderPairs",
        "outOfOrderPairsTruncated",
        "duplicateTimestampCount",
        "duplicateTimestamps",
        "duplicateTimestampsTruncated",
        "cadenceChecked",
        "irregularIntervalCount",
        "irregularIntervals",
        "irregularIntervalsTruncated",
        "numeric",
        "conventions"
      ],
      "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

{
  "points": [
    {
      "timeMs": 0,
      "value": 10
    },
    {
      "timeMs": 1000,
      "value": 12
    },
    {
      "timeMs": 3000,
      "value": null
    },
    {
      "timeMs": 1000,
      "value": 11
    }
  ],
  "expectedStepMs": 1000
}

Example response

{
  "operation": "time-series-inspect",
  "version": "0.29.0",
  "result": {
    "profile": "time-series-inspection-v1",
    "pointCount": 4,
    "distinctTimestampCount": 3,
    "nullValueCount": 1,
    "firstTimeMs": 0,
    "lastTimeMs": 3000,
    "sortedInput": false,
    "outOfOrderPairCount": 1,
    "outOfOrderPairs": [
      {
        "previousRowIndex": 2,
        "rowIndex": 3,
        "previousTimeMs": 3000,
        "timeMs": 1000
      }
    ],
    "outOfOrderPairsTruncated": false,
    "duplicateTimestampCount": 1,
    "duplicateTimestamps": [
      {
        "timeMs": 1000,
        "count": 2,
        "rowIndices": [
          1,
          3
        ],
        "rowIndicesTruncated": false
      }
    ],
    "duplicateTimestampsTruncated": false,
    "cadenceChecked": true,
    "irregularIntervalCount": 1,
    "irregularIntervals": [
      {
        "fromTimeMs": 1000,
        "toTimeMs": 3000,
        "deltaMs": 2000,
        "kind": "long",
        "inferredMissingPoints": 1
      }
    ],
    "irregularIntervalsTruncated": false,
    "numeric": {
      "count": 3,
      "min": 10,
      "max": 12,
      "mean": 11,
      "median": 11
    },
    "conventions": [
      "Timestamps are supplied Unix milliseconds. Cadence checks adjacent distinct sorted timestamps, not absolute grid phase or wall-clock freshness.",
      "Missing-point counts are inferred only when a long interval is within tolerance of an integer step multiple. Other irregular intervals return null; no data is imputed.",
      "Numeric summary includes every non-null supplied value, including duplicate timestamps. Statistics use IEEE-754 arithmetic and do not establish a forecast or anomaly cause."
    ]
  },
  "provenance": {
    "inputSha256": "9e9f6fa86c25c41d24fc6a75e6b1ecb1eac14ad7773de1b2ed73918897510926",
    "outputSha256": "7aa0ada91ec76f7c1cbe2f504d5a66b00d27da27f68aae4e128228d1a1ff0b99",
    "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,
    "evidence": 200,
    "keyWorkBytes": 3000000,
    "matchingSteps": 2000000,
    "points": 1000,
    "timestampUnit": "Unix milliseconds",
    "numericAbsoluteMaximum": 1e+100
  }
}

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/time-series-inspect",
  "mpp": "/v1/mpp/time-series-inspect"
}

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

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.

Related contracts