data-pipeline
Installation
SKILL.md
Data Pipeline Correctness
Degree of freedom: MIXED. Layering and window design [HIGH freedom];
idempotency, atomic writes, overlap lock, and the DoD [LOW freedom — run exactly].
How to reason
- Observe — job, retry path, write targets, schedule
- Interpret — at-least-once vs atomic vs contract vs overlap
- Classify — upsert / window-recompute / quarantine / lock / watermark
- Severity — retry double-count outranks a missing metric
Worked example
Observe: nightly
refresh_order_statsdoescount = count + 1; cron overlapped twice; dashboard totals jumped. Interpret: at-least-once delivery + non-idempotent delta. Classify: recompute-and-replace the day window;pg_try_advisory_lock; persist a watermark. Verify: re-run the same window → identical rows; overlap skipped;pipeline_runsrecorded.