PIT Migration Notes¶
This guide tracks PIT contract versions and required migration actions for breaking validation or API behavior changes.
Template¶
- Version: semantic version string
- Date: YYYY-MM-DD
- Change Type: breaking | non-breaking
- Summary: short statement of what changed
- Required Actions: concrete migration steps for downstream projects
Entries¶
Version 2.2.0¶
- Date: 2026-04-05
- Change Type: non-breaking
- Summary: Stabilized the typed ref-period PIT query surface around
RefSnapshotQuery/RefRevisionQueryand the canonicalsnapshot_ref(...)/revisions_ref(...)APIs, while keeping the older direct helper methods as compatibility wrappers. - Required Actions:
- Existing
get_snapshot_ref(...)andget_revision_timeline_ref(...)callers remain valid; no forced migration is required. - Prefer
snapshot_ref(...)andrevisions_ref(...)with typed query objects or equivalent mappings for new code sofreqandobs_date_anchornormalization happen in one place. - Fresh environments no longer need an out-of-band
pytzinstall for PIT/docs examples because timezone support is declared in package metadata.
Version 2.1.0¶
- Date: 2026-03-10
- Change Type: non-breaking
- Summary: Added adjusted PIT
splice, explicit PIT fold generators, and filtered vs retrospective snapshot-tape contracts. - Required Actions:
- Existing transform, pipeline, and expression-graph code remains valid without changes.
- Use
spliceinstead of hand-rolled continuation logic when ratio/additive adjusted PIT continuation is required. - Prefer
iter_walk_forward_folds(...),iter_purged_kfold_folds(...), andbuild_snapshot_tape(...)for training/validation/filtering loops so as-of semantics are explicit.
Version 2.0.0¶
- Date: 2026-02-28
- Change Type: non-breaking
- Summary: Added ingestion policy modes (
strict="error|warn|coerce"), release selection helpers, expression graph APIs, union-vintage utility, and snapshot panel builder. - Required Actions:
- Existing
strict=True/Falsecalls remain valid;Falsenow maps to warn semantics explicitly. - Downstream nowcast release-rank logic can migrate to
list_release_stream(...)andresolve_release(...). - Prefer expression graph APIs for multi-input PIT bridge features to standardize lineage and as-of alignment.
Version 2.0.1¶
- Date: 2026-03-04
- Change Type: non-breaking
- Summary: Fixed stale
type: ignorecomments and TypedDict narrowing inpit/models.pyandpit/accessor.py. No runtime behavior change. - Required Actions: None.
Version 2.0.2¶
- Date: 2026-03-12
- Change Type: non-breaking
- Summary: Code-quality fixes only — import block sorting, removal of unused imports, and mypy type-narrowing assertion in
iter_walk_forward_folds. No public API or runtime behavior change. - Required Actions: None.