Stephen Marn
I turn operational complexity into data systems that anyone can trust and act on.
I don't just build pipelines. I operate them, in public, and you can watch.
By day I build and operate the data platform at a manufacturing company: orchestrated warehousing, automated ingestion from operational systems, and predictive models in daily use by operations and management.
Every claim on these cards resolves to public evidence (a repo, a workflow history, a dashboard) in two clicks or fewer.
A question-first analytics catalog for an institutional digital-asset business — fund growth, stablecoin settlement timing, customer retention and desk capacity — built only on data whose terms were read and recorded before a line of ingest code was written. Most of the sources it wanted were refused, and every refusal is published alongside the work.
SEC EDGAR XBRL · AWS Public Blockchain Data → policy-gated client → DuckDB medallion → dbt star (96 tests) → Python models (survival · queueing · text) → Quarto site
Hardest decisionReading the terms first meant losing most of the data the project was designed around — every ETF issuer's daily holdings file included. Rebuilding it on what the terms actually permit, and publishing all 27 verdicts including the refusals →
Fund growth is decomposed with an accounting identity rather than a model, and only the 119 of 233 fund-quarters that reconcile to reported net assets are published; the remaining 114 are withheld rather than estimated.
Across every USDC, USDT and dollar-stablecoin transfer on Ethereum, 33.1% of USDC value moved while Fedwire and ACH settlement were both closed (95% interval 19–52%, from resampling whole days), against 38% of clock hours — settlement barely notices the banking calendar. Unusual hours are flagged with a robust score and a one-sentence reason, never an allegation, and no address of any party is retained.
Customer and service questions run on a fully synthetic custody book, generated from published assumptions and labeled synthetic in the header of every page that shows it. Because the effects are planted, the models are scored on whether they recover them: 8 of 8 hazard ratios inside their intervals, a sealed-holdout ranking score of 0.68 against 0.61 for segment alone, and a withdrawal-desk arrival model that recovered a planted 2.0× stress response to within 0.01 — after a first version that was biased, and said so.
One network client enforces a host allowlist, pacing, daily budgets and a circuit breaker; a test fails the build if any other module imports an HTTP library. Raw third-party data is never committed, the published site loads nothing from any third party, and a pre-publication audit reads every blob in the git history before a push.
The compliance work is the portfolio piece: in a regulated setting, what you decline to use is as much of the answer as what you ship.
Simulates eight CNC machines with real wear physics, publishes their sensor readings the way a factory actually does, trains a model to predict tool failure an hour ahead, deploys it to AWS — then pulls the whole thing back out of the cloud to prove the cloud was a choice rather than a dependency.
OPC UA → Sparkplug B / MQTT → AWS IoT Core → SQS + Lambda → S3 medallion → dbt (Athena · DuckDB · MinIO) → SageMaker spot → Lambda container → CloudWatch drift
Hardest decisionRunning the same models on three engines was slower than shipping one — and the gate's first run reported 1 of 15, because the cloud was quietly serving a month-old answer while every build passed. Here's what a parity gate is actually for →
The model beats the baseline a maintenance engineer would actually use — threshold on vibration slope — at 0.478 PR-AUC against 0.186. Precision is 28%, and that is reported next to recall, because a predictive-maintenance model that hides its false-positive rate is selling something.
The first label horizon was wrong: failure within 24 hours made 86% of rows positive. Measuring the fleet showed mean time between failures is 3.2 hours — the horizon was seven times wider than the phenomenon.
Drift is demonstrated with a declared cause: the fleet's wear rate is multiplied mid-stream, so scores move without a single published signal being edited. PSI hits 2.24 and the CloudWatch alarm fires, with AWS's own timestamps kept as evidence.
Total AWS spend, verified against Cost Explorer across eight months: $0.00 — because nothing in the stack bills for merely existing.
All of the project's AWS infrastructure is Terraform, nothing created by console: 39 resources in 11 files covering the IoT device, its certificate and the Sparkplug topic rule, the SQS buffer and dead-letter queue, both Lambdas, the encrypted S3 lake, Glue tables, an Athena workgroup, the SageMaker model registry, ECR, and the CloudWatch drift alarms. The account-wide budgets and billing report it runs under are Terraform too, declared once in FactoryStream (SYS-03) so the two projects never fight over them. Terraform also exposed two things. An apply failed creating Firehose because the account had no Kinesis access, so SQS took over the buffering. The teardown terraform destroy stopped at the model registry, which still held model versions that training had registered at runtime and Terraform had no record of; they were deleted through the API, and the lesson is written up as a decision record. Teardown is verified against the AWS APIs, not Terraform state, because anything created outside Terraform never appears in its state.
Deliberately breaks its own data — sending events late, twice, out of order, with wrong clocks and malformed payloads — then proves the pipeline handled every single one, by reconciling the warehouse against a record the generator wrote down before the pipeline ever saw it.
adversarial generator → Redpanda (Kafka API) → S3 parquet → Glue · Athena → dbt Kimball star → exact reconciliation
Hardest decisionBuilding a generator whose whole job is to corrupt its own output. Every pipeline claims it handles late and duplicate data; almost none can show you the arithmetic. Here's why the disorder had to be manufactured →
Real pipelines assert correctness. Very few can prove it, because ground truth is unknowable — you cannot diff against the world. A synthetic generator knows exactly what it emitted, so it writes a signed per-window manifest that never travels the pipeline, and the gold layer must match it exactly.
523 of 523 windows reconcile, and the arithmetic closes with nothing unexplained: 4,155 manifest events, minus 4 corrupt quarantined, gives the 4,151 deduped rows Athena reports; add back the 92 duplicate copies that were injected on purpose and you get raw bronze exactly.
The consumer commits offsets only after a durable write, and a kill-test proves it — crash it mid-batch, restart, and assert both no loss and no consumer-introduced duplicates. That test runs on every push against a real broker.
Account-level cost guardrails live here and cover both manufacturing projects: budgets, a Cost and Usage Report, and a shared Athena workgroup with a per-query scan cap.
The AWS side is Terraform, split into two separately applied layers (26 resources in 12 files). The account layer holds those guardrails plus a GitHub OIDC deploy role, chosen over long-lived access keys. The app layer holds the versioned, encrypted S3 lake and the Glue tables. The split paid off in the acceptance run: the app layer was destroyed and rebuilt from nothing, the data was replayed and dbt re-run on Athena, and the result was 523 of 523 again, in 183 seconds. The account layer stayed up deliberately, because destroying it would have left WearWatch without cost guardrails and a billing report can't be backfilled.
Continuously ingests real solar-wind, proton-flux, event, and satellite data, flags dangerous conditions with deterministic rules, and uses a local language model to turn each anomaly into a plain-English incident report, graded against NASA's official event log.
NOAA · NASA · CelesTrak APIs → DuckDB → deterministic detector → local LLM (schema-validated) → eval harness / CI gate → FastAPI 3D console
Hardest decisionThe model never decides whether something happened; deterministic rules do. The LLM only describes and structures what happened. Why the model is kept out of the detection path →
Source connectors sit behind one plugin interface with strict rate-policy compliance; the deterministic detector is a set of reusable DuckDB window queries (same SQL for backtest and live). The local LLM's output is schema-validated with retry-on-error and failure quarantine, so malformed output never reaches the store. A hand-labeled golden set plus DONKI correlation gate every prompt change in CI; one documented iteration moved severity accuracy from 37% to 83%.
The operator console is a live 3D geospace situation display: Earth's magnetopause compresses from real solar-wind pressure and satellites are SGP4-propagated from real orbital elements, with every panel labeled LIVE (real physics / telemetry) or ILLUSTRATIVE (decorative).
Takes 2.18M raw baseball pitch records and turns them into 13 statistical models and a live dashboard, rebuilt from scratch every night, automatically, with the build refusing to ship if any check fails.
Statcast → DuckDB → dbt (Kimball, SCD2) → R + Python models → static dashboard
Hardest decisionEvery model is implemented twice (once in R, once in Python) and deployment is blocked unless both agree. Here's why the duplication is the feature →
A tested bronze / silver / gold medallion with a Kimball star schema and a daily-grain SCD2 dimension. The run-expectancy matrix (RE24) is rebuilt from scratch; the win-probability model is evaluated once on a sealed 2025 holdout and beats both baselines.
A separate live 2026 layer refreshes playoff odds nightly while the validated analysis stays frozen, surfaced in an audience-oriented dashboard with an honest, uncertainty-forward voice.
Pulls college-football data from a public API, warehouses it with full history, and forecasts the 2026 season before it starts, with a win-probability model benchmarked against the betting market.
CFBD API → DuckDB → dbt (Kimball, SCD2) → tidymodels + scikit-learn → Quarto dashboard
Hardest decisionConference realignment quietly breaks naive team dimensions; SCD2 tracks who played where, when. Why team history is a schema problem, not a lookup table →
Ingests the CollegeFootballData API plus an ethically web-scraped source into a tested medallion. Implements the models from Football Analytics with Python & R in both languages behind a committed R↔Python parity check.
Benchmark target: the betting market. Preseason predictions committed in public, checkable after the fact.
Ingests real, live aircraft positions from the OpenSky Network (a source that moves, rate-limits you, and never stops) and warehouses them into a queryable star schema with a live air-traffic map.
OpenSky API (ADS-B) → incremental polling → DuckDB → dbt (Kimball) → map
Hardest decisionThe source is live and hostile to polling; why the landing zone is append-only, retries are deliberately boring, and losing a poll is designed to be a non-event →
Demonstrates production-grade API ingestion (incremental polling, rate-limit & retry handling, immutable landing with lineage) on a real, moving source rather than a static CSV.
Geospatial + time-series on genuinely live telemetry: the same ingestion problems sensor fleets create.
Turns a plant's daily PDF production reports (a format built for humans, not machines) into a tested analytics warehouse and interactive dashboard.
PDF (pdfplumber) → Dagster → dbt medallion → DuckDB (Kimball) → dashboard
Hardest decisionBad rows don't fail the pipeline and don't vanish; they're quarantined with lineage. Why silent drops are the real bug, and failure-on-anomaly is a design smell →
Append-only lineage, a quarantine for bad rows, source-freshness & relationship tests, and architecture "fitness functions." All data is synthetic and generated from scratch, with nothing derived from employer work.
The same shape as real plant reporting problems, solved entirely in public with synthetic data.
I'm a data engineer who likes the unglamorous parts: getting data out of awkward formats, making transformations testable, and building the warehouse layer that analytics and ML actually depend on.
I care about systems that are reproducible, well-tested, and clear enough that the next person can trust and extend them.