Skip to work
Kevin Y
Cartoon Kevin from the show, waving, holding a DATA mug
Kevin YData Solutions Architect, Canada

I build the data foundation AI runs on.

Pipelines, warehouses and dbt models a team can read, run and trust. I also make Grain of Truth, a cartoon where every episode is a real data failure.

Episode 3 on Grain of Truth,

We hit 112% of target. Then we checked.

An animated workplace comedy about a data team at a fictional retailer. Every episode is a real data failure, and every one has a lesson you can run.

More from the show

  • What "grain" means in data modeling (and how it breaks your numbers)

  • Episode 2. Yesterday's sales changed overnight. Nobody touched anything.

    Define the day once. Close it on purpose.

    What really happened →
  • Episode 1. Revenue dropped 63% overnight. Every test passed.

    Count against the source.

    Run the bug →

Shorts

  • We fixed time zones in July. It's December.

  • Meet Dedup. He has one job.

  • Every test passed. 63% of the rows were gone.

  • Revenue is down 63%. The AI has a theory.

Meet the team

Data Team takes place at Larkspur, a fictional online home-goods retailer. The people are made up; the data problems are real.

  • Kevin, Head of Data

    Kevin

    Head of Data

    The calm one, talking to camera. Played by me; off screen I am a Data Solutions Architect.

  • Marisol, CFO

    Marisol

    CFO

    Wants one number, by Thursday. Never wrong about the business.

  • Greg, VP Sales

    Greg

    VP Sales

    Chases the deck and the shiny tool. Loves anything labelled AI.

  • Theo, Junior analytics engineer

    Theo

    Junior analytics engineer

    Eager, fast, breaks things on Fridays. Learns something every episode.

  • Ana, Data engineer

    Ana

    Data engineer

    Quiet, sees everything, gets one line per episode. It lands.

  • Pip, The AI assistant

    Pip

    The AI assistant

    Confident, fluent, sometimes wrong. Not the chat in the corner: that one only knows my CV.

  • Dedup, The bouncer

    Dedup

    The bouncer

    Keeps one row per order. Never asks who is missing.

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
) = 1

Source, 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 →

Dedup, the bouncer from the show
Dedup. Keeps one row per order. Never asks who’s missing.

Selected work

  • dbt-reconcile

    updated

    A one-word dedup bug kept 37% of the rows and still passed its uniqueness test. These tests catch it.

    • dbt
    • Jinja tests
    • DuckDB
    • Agent skills
    • Data quality
  • Project Lighthouse

    updated

    End-to-end analytics for a fictional real estate investor: 200 simulated projects scored for risk, cost and duration on a live dashboard.

    • Python
    • Flask
    • SQLite
    • scikit-learn
    • Pandera
    • React
    • Gemini
  • Warehouse Volume Forecast

    updated

    Four-week container volume forecast, off by about 4% a week on a 52-week holdout.

    Weekly container volume, actual vs forecast
    05001,0001,5002,00020242025next 4 weeksActualForecast

    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
    WeekActualForecast80% range
    2024-01-07917866822–907
    2024-01-14849873830–916
    2024-01-21844877836–919
    2024-01-28938891847–937
    2024-02-04968914873–954
    2024-02-11973940897–983
    2024-02-181,027963921–1,009
    2024-02-251,027989949–1,032
    2024-03-031,0761,028985–1,072
    2024-03-101,1331,0841,040–1,125
    2024-03-171,1701,1471,103–1,188
    2024-03-241,2141,2001,159–1,242
    2024-03-311,2911,2391,194–1,281
    2024-04-071,3151,2711,227–1,313
    2024-04-141,2621,3091,266–1,352
    2024-04-211,3301,3541,313–1,396
    2024-04-281,4071,3971,353–1,440
    2024-05-051,4701,4331,390–1,478
    2024-05-121,5971,4631,419–1,506
    2024-05-191,5281,4991,459–1,541
    2024-05-261,5671,5421,500–1,584
    2024-06-021,7271,5841,540–1,625
    2024-06-091,6461,6111,571–1,653
    2024-06-161,6891,6191,577–1,660
    2024-06-231,6081,6161,577–1,661
    2024-06-301,6751,6171,575–1,661
    2024-07-071,6951,6281,586–1,672
    2024-07-141,7331,6461,604–1,687
    2024-07-211,7081,6601,620–1,703
    2024-07-281,7061,6621,620–1,706
    2024-08-041,6501,6501,607–1,691
    2024-08-111,5941,6301,591–1,673
    2024-08-181,6001,6081,565–1,649
    2024-08-251,5771,5841,540–1,628
    2024-09-011,5771,5541,512–1,595
    2024-09-081,5021,5121,465–1,555
    2024-09-151,5221,4561,413–1,500
    2024-09-221,4591,3971,357–1,440
    2024-09-291,4561,3481,308–1,392
    2024-10-061,4151,3181,276–1,361
    2024-10-131,4601,2991,255–1,339
    2024-10-201,2861,2771,235–1,323
    2024-10-271,2841,2421,199–1,288
    2024-11-031,1961,1981,157–1,239
    2024-11-101,2091,1581,112–1,200
    2024-11-171,1961,1301,090–1,175
    2024-11-241,2501,1091,067–1,154
    2024-12-011,2181,0871,047–1,128
    2024-12-081,1461,0631,022–1,104
    2024-12-151,1681,0461,001–1,091
    2024-12-221,1011,045999–1,086
    2024-12-291,0481,0581,015–1,102
    2025-01-05–1,1281,081–1,175
    2025-01-12–1,1411,097–1,188
    2025-01-19–1,1491,102–1,194
    2025-01-26–1,1651,118–1,210
    • Python
    • Prophet
    • statsmodels
    • Streamlit
  • Churn Risk Dashboard

    updated

    A model's churn scores turned into a one-page view a sales manager can act on.

    • Next.js
    • TypeScript
    • MUI
    • Recharts
  • Power BI Route Map Visual

    updated

    A custom Power BI visual that draws trips as weighted lines, past what the built-in maps can do.

    • Power BI Visuals SDK
    • TypeScript
    • Leaflet
6 earlier projects
  • Batch Prediction Pipeline

    updated

    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.

    • Python
    • GitHub Actions
    • joblib
  • Data Drift Detector

    updated

    A CLI that flags when live data has drifted from training data: catches the one shifted feature, passes the stable ones.

    • Python
    • SciPy
    • Click
  • Predictive Maintenance

    updated

    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.

    • Python
    • scikit-learn
  • Shipment Delay Prediction

    updated

    Late-shipment predictions served by an API so customer service can warn customers early. Modest signal: ROC AUC 0.65.

    • Python
    • FastAPI
  • Data Cleaner

    updated

    A CLI that cleans a messy shipments CSV the same way every time: 4 duplicates and 41 incomplete rows removed, 110 clean rows out.

    • Python
    • pandas
    • Click
  • Container Loading

    updated

    Watch First Fit Decreasing pack a container: ten mixed packages into a 500 × 500 space, nothing left over.

    • Python
    • Flask
    • JavaScript
    • Docker

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.