Skip to main content
Run any Skill in Manus
with one click

snapshot-feature-pit-leak-rate-measure-history-change-after-target

Stars1
Forks0
UpdatedJuly 8, 2026 at 12:14

Measure — don't assert — whether a snapshot-sourced TRAINING feature leaks point-in-time (PIT) information, and turn "this field is static, the snapshot is fine" into a per-field GO/FIX/INVESTIGATE verdict backed by a number. Use when: (1) an ML training pipeline reads a current-state SNAPSHOT table (e.g. `crm_account`, `dim_customer`, a CRM/MDM current view) for a feature evaluated at a historical `target_date`/`as_of_date`; (2) someone justified the snapshot as a "static attribute" by engineering judgment, never a check; (3) you must justify EACH remaining snapshot field before a cutover/audit; (4) a `*_history` / CDC / field-history table exists for the entity. The core measure: leak rate = fraction of MATERIALIZED training rows whose field-history shows ≥1 change dated AFTER that row's target_date (equivalently MAX(change_ts per key) > target_date) — that is exactly the share of rows where today's snapshot value differs from the value the model should have seen. Includes: the exact SQL template (single-ho

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly