Run the bugs from the show
The lesson Count against the source.
Run the one-word bug
A fact table at order-line grain ends with a dedup. Pick the key it partitions by, then run it. The query runs in your browser on DuckDB with 5,391 synthetic order lines.
qualify row_number() over (
partition by l.
order by o.updated_at desc
) = 1Source, tests and the agent skill: github.com/Kevin-yyuan/dbt-reconcile
- Synthetic data
- Runs in your browser
- Same SQL as the repo
- MIT licensed
Watch episode 1 and read what really happened →
A new bug every episode.

Selected work
dbt-reconcile
A one-word dedup bug kept 37% of the rows and still passed its uniqueness test. These tests catch it.
Project Lighthouse
End-to-end analytics for a fictional real estate investor: 200 simulated projects scored for risk, cost and duration on a live dashboard.
Warehouse Volume Forecast
Four-week container volume forecast, off by about 4% a week on a 52-week holdout.
Weekly container volume, actual vs forecast Trained on 2022–2023, tested on 52 weeks of 2024: off by 52.5 containers a week on average (3.9% of an average week). The shaded 80% range held only 44.2% of real weeks, so it is too narrow. Synthetic data.
Show the numbers
Week Actual Forecast 80% range 2024-01-07 917 866 822–907 2024-01-14 849 873 830–916 2024-01-21 844 877 836–919 2024-01-28 938 891 847–937 2024-02-04 968 914 873–954 2024-02-11 973 940 897–983 2024-02-18 1,027 963 921–1,009 2024-02-25 1,027 989 949–1,032 2024-03-03 1,076 1,028 985–1,072 2024-03-10 1,133 1,084 1,040–1,125 2024-03-17 1,170 1,147 1,103–1,188 2024-03-24 1,214 1,200 1,159–1,242 2024-03-31 1,291 1,239 1,194–1,281 2024-04-07 1,315 1,271 1,227–1,313 2024-04-14 1,262 1,309 1,266–1,352 2024-04-21 1,330 1,354 1,313–1,396 2024-04-28 1,407 1,397 1,353–1,440 2024-05-05 1,470 1,433 1,390–1,478 2024-05-12 1,597 1,463 1,419–1,506 2024-05-19 1,528 1,499 1,459–1,541 2024-05-26 1,567 1,542 1,500–1,584 2024-06-02 1,727 1,584 1,540–1,625 2024-06-09 1,646 1,611 1,571–1,653 2024-06-16 1,689 1,619 1,577–1,660 2024-06-23 1,608 1,616 1,577–1,661 2024-06-30 1,675 1,617 1,575–1,661 2024-07-07 1,695 1,628 1,586–1,672 2024-07-14 1,733 1,646 1,604–1,687 2024-07-21 1,708 1,660 1,620–1,703 2024-07-28 1,706 1,662 1,620–1,706 2024-08-04 1,650 1,650 1,607–1,691 2024-08-11 1,594 1,630 1,591–1,673 2024-08-18 1,600 1,608 1,565–1,649 2024-08-25 1,577 1,584 1,540–1,628 2024-09-01 1,577 1,554 1,512–1,595 2024-09-08 1,502 1,512 1,465–1,555 2024-09-15 1,522 1,456 1,413–1,500 2024-09-22 1,459 1,397 1,357–1,440 2024-09-29 1,456 1,348 1,308–1,392 2024-10-06 1,415 1,318 1,276–1,361 2024-10-13 1,460 1,299 1,255–1,339 2024-10-20 1,286 1,277 1,235–1,323 2024-10-27 1,284 1,242 1,199–1,288 2024-11-03 1,196 1,198 1,157–1,239 2024-11-10 1,209 1,158 1,112–1,200 2024-11-17 1,196 1,130 1,090–1,175 2024-11-24 1,250 1,109 1,067–1,154 2024-12-01 1,218 1,087 1,047–1,128 2024-12-08 1,146 1,063 1,022–1,104 2024-12-15 1,168 1,046 1,001–1,091 2024-12-22 1,101 1,045 999–1,086 2024-12-29 1,048 1,058 1,015–1,102 2025-01-05 – 1,128 1,081–1,175 2025-01-12 – 1,141 1,097–1,188 2025-01-19 – 1,149 1,102–1,194 2025-01-26 – 1,165 1,118–1,210 Churn Risk Dashboard
A model's churn scores turned into a one-page view a sales manager can act on.
Power BI Route Map Visual
A custom Power BI visual that draws trips as weighted lines, past what the built-in maps can do.
6 earlier projects
Batch Prediction Pipeline
A churn model that retrains and scores every customer weekly on GitHub Actions: ROC AUC 0.835 on held-out customers, 88 of 1,000 flagged.
Data Drift Detector
A CLI that flags when live data has drifted from training data: catches the one shifted feature, passes the stable ones.
Predictive Maintenance
Flags trucks in the 30 days before a failure: catches 49% of pre-failure readings at 55% precision on unseen trucks, where the baseline catches none.
Shipment Delay Prediction
Late-shipment predictions served by an API so customer service can warn customers early. Modest signal: ROC AUC 0.65.
Data Cleaner
A CLI that cleans a messy shipments CSV the same way every time: 4 duplicates and 41 incomplete rows removed, 110 clean rows out.
Container Loading
Watch First Fit Decreasing pack a container: ten mixed packages into a 500 × 500 space, nothing left over.
What I do
- Data architect
- I design the platform before anyone writes a model: where data lands, how it is modeled, who owns it and what it costs. Then I stay to deliver it. As a Solution Architect at DSC I lead client engagements end to end, from assessing the current state to handing over a platform the team can run.
- Analytics engineer
- dbt, Snowflake, BigQuery, PostgreSQL, Airbyte, Dagster, Terraform. Dimensional models with a stated grain, tests that reconcile back to the source, and pipelines a team can still read and run long after the project ends.
- AI on data
- An agent is only as good as the tables and definitions under it. I build that layer: clear metric definitions, reconciliation tests, and agent skills that let a coding agent review and document a dbt project safely.
- Builder
- I started on the operations floor and as a founder, so every pipeline, model and dashboard has to earn its place by improving a decision. I still ship tools end to end, including this site and Grain of Truth.
Next time: your data.
Hiring, a data project, or a bug story for the show? Send a note, or message me on LinkedIn.









