Open source
Code you can run, with the numbers it produced.
Public repositories across data platforms, AI systems, databases and delivery, each with its method and measurements, plus contributions to projects I do not maintain.
Each repository builds a working system from scratch, measures how it behaves under failure or load, and keeps the method and the raw results next to the code. The case studies on /work/ explain the decisions; the write-ups on /writing/ explain the result that surprised me. Repositories are grouped by the same capabilities as both.
Data platforms
6 repositories
-
spark-sql-kinesis
Kinesis source and sink for Spark Structured Streaming on Spark 4.2, Scala 2.13 and AWS SDK v2, published to Maven Central.
An idle shard costs one GetRecords call per batch, where the alternative connector waits at least six seconds (staging; see the write-up).
-
streaming-platform
Real-time clickstream platform: Avro contracts, exactly-once through Kafka and Flink into ClickHouse and Iceberg, with a freshness SLO and burn-rate alerts.
Every event layer stayed exact through 9 failures; one broker kill pushed up to 40% of on-time events out of the windows.
-
dataset-registry
Data-ownership control plane: owners, freshness SLOs, versioned JSON Schema contracts, OpenLineage lineage, and breaking changes that wait for consumer acknowledgement.
The compatibility checker called no breaking change safe: 0 false negatives on 51 hand-labelled changes, 2 of 51 false alarms per direction.
-
data-platform-architecture
A reference architecture for a B2B SaaS company leaving Postgres, a scenario common across the industry: the current state measured on a lab copy of its database, options priced in its EU region, a staged target, data contracts, migration, a data model, governance and SOC 2 readiness, 18 decision records and a Databricks proof of concept.
With reports on the product's primary, its p95 latency went from 40 to 525 ms; on the read replica, 3 of 35 long report runs finished. On Databricks, a day's build and reports took 38 s and were billed for 11 minutes awake.
-
data-stack-lab
Hands-on data engineering projects, one per tool, on one generated SaaS dataset: a dbt star schema with a Type 2 dimension, an Airflow 3 DAG comparing three incremental-load strategies, data-quality checks against nine injected defects, the overwrite and file defaults of a PySpark job, and six ways of loading changing files on Databricks.
A Type 1 dimension put 15.1% of a year's revenue on the wrong plan; backfilled newest day first, two high-water-mark loads lost 96.56% of a month with every run green.
-
lakehouse-lab
Iceberg on MinIO with Apache Polaris vending table-scoped credentials to Trino and StarRocks, plus a dbt and Airflow medallion pipeline.
rollback_to_snapshot recovered 909,968 deleted rows in 589 ms; expire_snapshots then destroyed that same safety net.
AI systems
9 repositories
-
evalproof
A local-first LLM evaluation tool that calibrates the judge, corrects its pass rate, and gates CI only on significant regressions. It tests agents through their tool calls, runs repeated trials, imports other tools' test cases and results, and finds model calls no suite tests.
Judge pass rate fell 4.8 pts, but p = 0.39 at n = 83, so the gate passed with a warning.
-
greenproof
A done gate for coding agents. When Claude Code, Codex CLI, Cursor or OpenCode stops, it runs the repository's own checks and flags deleted, skipped and weakened tests, and CI runs the same check. Since 0.5.0, GitHub Copilot, Qwen Code, Droid, Antigravity, OpenHands and Auggie are supported as experimental.
Replayed over 698 human commits that touched tests, 0.4.0 blocks 66, 12 of them wrongly (21 on 0.3.1). None of its 744 tamper probes pass, including 60 aimed at the limits 0.3.x documented, 6 of which got through 0.3.1.
-
ai-platform-architecture
The reference AI architecture for a B2B SaaS company's usage assistant, a scenario common across the industry: text-to-SQL over governed data, with accuracy, tenant isolation and cost measured on Qwen3, Llama 3.3, gpt-oss and Databricks Genie.
Told to stay in one customer's data, the models leaked another account's on 23 of 120 requests; the tool's default-deny query rewrite matched row-level security on every one and refuses 44 of 44 hand-written escapes.
-
governed-agent
An analytics agent whose output becomes state only after schema, policy and grounding checks and, where required, human approval.
48/54 answers matched the key; 3 of 37 published (8%) were wrong, real numbers answering a different question.
-
realtime-ml
Real-time fraud scoring with Feast, LightGBM, MLflow and FastAPI shadow serving, built to measure leakage, training-serving skew and label delay.
The naive training join scored validation AUC-PR 0.746, then 0.363 on the next two weeks; point-in-time scored 0.681 then 0.941.
-
retrieval-bench
Vector and hybrid retrieval benchmark: pgvector, Qdrant and OpenSearch on the same embeddings, measuring recall, latency, filtering, build cost and nDCG.
At a 10% filter, pgvector HNSW post-filtering returns 3.9 rows instead of 10, and nothing errors.
-
short-text-triage
Multilingual short-text triage lab on a reproducible generated corpus: normalize to a key, embed each distinct key once, cluster with HDBSCAN, assign by margin.
A margin rule reached 95.2% precision against 66.2% for the best absolute threshold; labelling per cluster needed 125 LLM calls, not 20,000.
-
prevalence-shift
Monte Carlo simulation with a fixed seed showing why counting predicted labels flattens a trend, and how ACC, SLD and prediction-powered inference report prevalence honestly.
A 95%-accurate classifier counted a rise from 10% to 25% as 8% to 17%, a trend slope 0.628 of the true one.
-
rag-pipeline
Scrape-to-RAG lakehouse: Airflow, Spark Bronze/Silver/Gold on MinIO, DuckDB catalog, Chroma embeddings and a FastAPI RAG API on Ollama.
No published measurement yet.
Databases and distributed systems
3 repositories
-
distributed-db-lab
Scaling PostgreSQL out with Citus, time-series with TimescaleDB, and a 2×2 replicated ClickHouse cluster, with rebalances and failures measured.
Added a Citus worker under write load: 7 shard-group moves in 37.1 s, 977,368 operations, 0 errors.
-
db-failover-lab
Eight failover scenarios on multi-node clusters of PostgreSQL 18, Redis, MongoDB, ScyllaDB, SolrCloud and Galera, one container per node.
Concurrent UPDATEs of one row from two Galera masters converged: 300 / 300 / 300 on all three nodes.
-
postgres-ha-lab
PostgreSQL 18 HA on three amd64 Rocky 8 VMs: Patroni, etcd and pgBackRest over mutual TLS, with failover and restore performed.
After SIGKILL of the leader, Patroni promoted within a 10–20 s window; PITR returned 5 of 5 rows of a dropped table.
Delivery and infrastructure
1 repository
-
platform-deployments
GitOps platform for governed-agent on a three-node kind cluster: Argo CD, Argo Rollouts canaries gated by Prometheus, CloudNativePG, Kyverno.
Canary analysis aborted every bad release in six runs, 30–31 s after the bad pod became Ready (median).
Upstream
Contributions to projects I do not maintain · state as of November 9, 2026
-
awslabs/spark-sql-kinesis-connector #99
Pull request
Adds an opt-in option, kinesis.stopReadWhenMillisBehindLatestIsZero, so a shard's task stops once caught up instead of waiting out empty polls.
-
citusdata/citus #7333
Reproduction and offered patch
Confirmed the bug still reproduces on Citus 14.2.0 with PostgreSQL 17.11, adding a minimal repro, root cause and an offered patch.
-
citusdata/citus #4776
Issue
Reported that adding a primary key without a constraint name failed on a distributed table; Citus engineers later implemented support.
-
roncemer/spark-sql-kinesis #3
Pull request
Moved the connector's build to Scala binary 2.13, fixing conflicting spark-tags cross-version suffixes on Spark 3.2.1.