Wave 2 · Phase 2–3 · Spec §6 · Feeds L10, L11
Every SPEC §6 metric defined once, as SQL over the aggregate tables, each with a test whose expected value was worked out by hand.
sql/metrics/*.sql, except cp_effect.sql and pay_event.sql (L10)pipeline/metrics.py: registers data/agg/*.parquet as views, runs a named metric with parameters, returns an Arrow table; CLI python -m pipeline.metrics <name> and --alltests/test_metrics_<name>.pycontracts/metrics.md, each with a header comment: question(s), params, grain, output columnsNULLIF(denominator, 0)uber, lyft); taxi tip rate uses card trips onlytrips_per_hour_worked reads ref_indicators and is marked TLC-reported in its outputcontracts/metrics.md exactly (tested)python -m pipeline.metrics --all runs on the G2 aggregates without errorOnly this lane writes here. Newest first.
| Date | State | Note |
|---|---|---|
| not started |
Blocked: none
Hand-off