Skip to main content
Manusで任意のスキルを実行
ワンクリックで

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

スター1
フォーク0
更新日2026年7月8日 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

インストール

Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。

SKILL.md
readonly