Selected Work
What I do
Agents on analytics data
The problem: A demo answers questions on a clean toy schema. Real data has hundreds of tables, columns that still exist but are no longer filled, and business words that do not match column names. On that data the dangerous answer is not an error. It is a clean result that is wrong.
What I do: Build analytics agents and Text-to-SQL over the real schema on BigQuery, Snowflake, and SQL databases: schema and business-vocabulary grounding, enforced retrieval, deterministic read-only guardrails, and an interface that shows the SQL and each pipeline stage.
Evidence: Text-to-SQL against a production ERP with hundreds of tables, rebuilt as the open-source txt2sql. I currently work as a Senior AI Engineer, building and evaluating analytics agents on Google Cloud (BigQuery).
Agent evaluation & reliability
The problem: Most agent projects cannot say how often the agent is right. A handful of passing examples is not a measurement, and an eval set the prompts were tuned on overstates accuracy.
What I do: Build eval suites scored on returned results, keep a held-out split and track when it stops being independent, read traces to classify failures, and turn recurring failures into tests or guardrails.
Evidence: The txt2sql suite has 404 synthetic cases over 217 intents. Its holdout was authored blind and frozen, and has since informed several model comparisons, so I treat the suite as regression evidence on one synthetic schema, not as a production accuracy claim. Re-measuring my own pipeline changed three conclusions of the original write-up, and the post says which.
Coding agents for engineering work
The problem: Coding agents produce plausible code quickly. On migrations and optimizations, plausible is the failure mode: the fastest result is sometimes wrong.
What I do: Set up the oracle first — parity tests against the reference, row-level validation against a known-good baseline — then let agents do the volume. I use this for code migrations, platform-migration validation, and pipeline redesign.
Evidence: A Databricks-to-Snowflake validator live in about a week. A daily pipeline whose largest job now runs 5-10x faster, after a faster design failed row-level validation. A CFD solver ported from C to PyTorch under parity tests.
AI enablement & interim leadership Opportunity discovery, stakeholder alignment, PoC-to-production, and capability building. I led a 4–7 person DS/analytics team as interim lead. At RISE, I was project lead for a ~9M SEK Vinnova project and AI lead for a ~2M SEK CISUTAC initiative.
Time series & telemetry ML Production ML for sensor and telemetry data: activity recognition, anomaly detection, forecasting. I evaluate ROCKET-family methods against the accuracy, latency, and hardware constraints of the task.
Case studies
Text-to-SQL Against a Real ERP
Natural-language querying against a wide production ERP with enforced retrieval, deterministic guardrails, value-aware evaluation, and a streaming full-stack TypeScript/React app. Rebuilt as a fully synthetic open-source version that keeps the real failure modes.
SQL Pipeline Optimization
A critical daily full-recompute pipeline redesigned into a validated incremental one: the largest daily job runs 5-10x faster and overall compute cost fell by more than 50%. Multi-scale benchmarks and row-level validation killed an attractive but broken optimization before it reached production.
Cross-Platform Migration Validation
A validation system for a large Databricks-to-Snowflake migration: automated comparison across dozens of tables, historical result storage, and a live team dashboard — from zero to deployed in about a week using a coding agent.
Code Migration Methodology
A practitioner’s framework for large code migrations and clean-room-style rewrites with coding agents: evidence-preservation, behavioral oracles, shortcut audits, and agent guardrails, drawn from multiple 10k+ line migrations.
Migration Testing: What Counts as Evidence
A reference for migration test suites: five layers (unit, parity, manifest integrity, end-to-end, performance), why every reference artifact carries a cryptographic hash, and how to sequence the suite so the oracle leads the implementation.
Time Series Classification for Production
A practical overview of ROCKET-family methods for industrial telemetry, including how to compare classification quality, inference latency, and hardware requirements for edge and IoT deployment.
Scopes, deliverables, and contracting are on InertialRange Labs AB. More essays are under Writing.