﻿# Chronos-2 covariates: match historical schema, future rows and series identity

Validate Chronos-2 covariate dictionaries and DataFrames with explicit historical keys, future membership, timestamps and horizon length before invoking the model.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-chronos2-covariate-schema-future-timestamp-alignment/
Language: en

## Validate the forecasting object before the tensor

A future calendar or maintenance schedule can inform a forecast only when its values refer to the intended asset and future times. Chronos-2 accepts several input forms, but those forms have explicit contracts. The [pipeline reference implementation](https://raw.githubusercontent.com/amazon-science/chronos-forecasting/main/src/chronos/chronos2/pipeline.py) distinguishes targets, historical covariates and known future covariates. Receiving arrays with compatible lengths does not prove that the corresponding observations belong together or were available at the forecast origin.

## Preserve the dictionary schema

In the documented dictionary interface, future-covariate names must also occur among historical covariates. Items in a call share target dimensionality and covariate-key structure, while history lengths may differ. The [preparation implementation](https://raw.githubusercontent.com/amazon-science/chronos-forecasting/main/src/chronos/chronos2/preprocess.py) validates these relationships. Partition genuinely different schemas into appropriate calls rather than inserting an unrelated column solely to make validation pass. A shared column name should describe a shared measurement meaning and unit.

## Align DataFrames by identity and time

The [DataFrame utilities](https://raw.githubusercontent.com/amazon-science/chronos-forecasting/main/src/chronos/df_utils.py) normalize series grouping and timestamp order. The prediction interface expects a regular common frequency and the intended future horizon. A fixture with the correct row count but a shifted timestamp can still describe the wrong future. Keep a forecast-origin record and compare the actual future coordinates, especially around timezone conversion, aggregation boundaries or an asset whose latest observation differs from the others.

## Treat skipped validation as transferred responsibility

The preparation API explains that disabling validation also transfers ordering and schema assumptions to the caller. This is not evidence that arbitrary input becomes acceptable. A production adapter should establish the same invariants before choosing that path. The [artifact manifest guide](/journal/tokenizer-artifact-release-manifest/) offers related interface control. Record the installed preparation revision because categorical handling and normalized input structures can evolve independently of a checkpoint name.

## Test failure cases before forecast quality

Use missing future keys, swapped asset identifiers, an extra future row and shifted timestamps as reviewed adapter fixtures. Confirm that invalid inputs are rejected or corrected by an explicit documented policy, rather than silently reinterpreted. The [entity grouping guide](/journal/data-guide-entity-group-split-design/) supplies related identity reasoning. Only after those boundaries hold should a forecasting evaluation compare error and uncertainty, since a successful model invocation does not establish that it answered the intended temporal question.
