Selected GTM builds
Ten systems, each written up with the problem, the build and measured results. Each now has results on real public data (Wikidata, Criteo, public attack datasets, real vendor prices), shown first; simulation and synthetic results are labelled. Nothing is a made-up customer number.
01
Signals · Entity resolution · Scoring
- Problem
- Buying signals come in from many sources, and they all spell the same company differently. Naive joins either duplicate accounts or merge companies that are actually different.
- Built
- Async connectors pull SEC Form D funding filings, Greenhouse, Lever and Ashby job boards, GitHub and news. An entity-resolution engine (blocking → Jaro-Winkler/TF-IDF features → trained scorer → union-find) merges mentions into canonical accounts, which are then scored with time-decayed signals. It runs incrementally on DuckDB, with a FastAPI and CLI front end.
- Result
- Real data: on a held-out half of a 5,044-record Wikidata company set (subsidiaries, rebrands, same-name firms), F1 0.592 vs 0.393 for the first version and 0.282 for an exact name/domain join (gain +0.15 to +0.25, 95% CI). All tuning was done on the other half. Fixes came from real error analysis: country-site domains, a merge veto, better legal-form handling. Tickers and full rebrands still fail. Synthetic gold set: F1 0.915. A live run pulled 809 real signals.
PythonDuckDBFastAPIEntity resolutionSEC EDGARHypothesis
02
Enrichment · Bandits · Reliability
- Problem
- Static cheapest-first waterfalls burn enrichment credits, because which provider works best depends on country, company size and seniority.
- Built
- A self-hostable enrichment orchestrator. A contextual Thompson-sampling router learns the best provider order for each segment. It runs on a crash-safe SQLite job queue with leases, plus token-bucket rate limits, circuit breakers, a budget-capped cost ledger and idempotency keys.
- Result
- Real inputs: calibrated to real list prices (Apollo, Hunter, Prospeo, Dropcontact, Nov 2026) and a published 5,000-contact benchmark, the router cut cost per verified email 17.2% ± 4.2 pp vs cheapest-first (20k contacts × 5 seeds), mostly through its stopping rule. Net value per contact did not beat the static order, and the README says so. Outcomes are still simulated. Property tests caught a real rate-limiter hang.
PythonasyncioThompson samplingSQLite WALCircuit breakersFastAPI
03
AI agents · Guardrails · Evals · A/B
- Problem
- AI-written outbound is generic, invents facts and is easy to hijack through prompt injection hidden in the web pages it reads.
- Built
- Researcher, strategist, copywriter and critic agents run on an explicit state machine. Every claim in the copy must cite a checked research fact. It adds prompt-injection defences, cost budgets, traced spans and regression evals across prompt versions, a Bayesian A/B module, and a human approval queue. Nothing is ever auto-sent.
- Result
- Real attacks: on held-out tests from 3 public injection datasets (deepset, Lakera Gandalf, Microsoft BIPIA), a regex layer plus a small trained classifier catches 86.5% of 297 attacks (regex alone: 44.8%), flagging 0.16% of sentences on unseen real B2B web pages and 3.6% of benign prompts. End to end, 0/100 embedded real attacks got through (was 14/100). In-house suite: 0/14 pages got through. In mock-mode evals, prompt v2 took clean first drafts from 17% to 100% and cut estimated cost per sequence by 40%. A/B simulation showed peeking at results inflates false winners from 6% to 21%.
Claude APITool usePrompt cachingEvalsBayesian statsFastAPI
04
Reverse ETL · HubSpot · Data integrity
- Problem
- The CRM and the warehouse drift apart. Syncs overwrite reps' edits and create duplicates, and nobody can see what a sync will change before it runs.
- Built
- Two-way warehouse ↔ HubSpot sync driven by a declarative YAML mapping with per-field conflict rules. A three-way diff produces a Terraform-style plan before apply. It batches API calls under rate limits, splits and retries partial failures, and keeps a dead-letter queue with replay. Tests run against a fake HubSpot server.
- Result
- Real data: 11,082 real companies from Wikidata, replaying 16,855 real dated changes (2016–2026) over 12 syncs: 1,031 API calls vs 54,366 one-by-one (52.7× fewer), 0 mismatches after injected 429s, 5xx and timeouts, and re-runs made 0 writes. The CRM side is a fake HubSpot enforcing HubSpot's documented limits. Generated-data run: a 50k-record load used 75× fewer API calls, with 0 rate-limit errors under Starter limits. In a fault run (43 rate-limit errors, 28 server errors, 16 lost responses), exactly the 25 bad rows were dead-lettered and the other 49,975 had 0 mismatches. Hypothesis state-machine tests show the sync converges and re-runs are no-ops.
PythonHubSpot CRM v3PostgresHypothesisRate limiting
05
Analytics engineering · Attribution
- Problem
- Teams move budget based on attribution models nobody has ever validated. Last-touch quietly over-credits the final channel.
- Built
- A synthetic B2B world with known channel effects. A DuckDB SQL warehouse is built in layers (21 models, 59 data tests). It runs first/last/linear/time-decay/U/W, Markov removal-effect and Shapley attribution, then scores each model against the truth across seeds and confounding levels, alongside Kaplan-Meier funnel timing.
- Result
- Real data: on Criteo's public dataset (16.5M real ad impressions, 6.1M users, 438,730 conversions; top 10 campaigns + other), the models agree closely because only 9.4% of converting journeys touch more than one channel. Markov is the outlier, doubling one campaign's credit (1.73% vs 0.86% under last touch), and Criteo's own last-click label ranks campaigns differently from every model (ρ 0.74–0.82). Real data has no ground truth, so this measures disagreement, not accuracy. Synthetic: last-touch had the lowest average error but ranked channels almost at random (ρ 0.12–0.23). It gave organic 17–21% credit when organic's true effect is zero, and gave webinars ~10% when their true share is ~27%. I report this honestly rather than presenting a model win.
DuckDBSQLShapleyMarkov chainsKaplan-Meierpandas
Running now: systems that produce real data
These five run on real data or in real operations. Where results need weeks or hand labels, the status says so.
06
Data quality · LeanData-style routing
- Problem
- Every CRM has duplicate accounts, and inbound leads land on the wrong account or none, so routing breaks.
- Built
- Legal-form and domain normalisation (Public Suffix List, country sites, free-mail), 8-key blocking, a trained pair scorer, constrained clustering, parent–child hierarchies from GLEIF and Wikidata, and a lead matcher that returns account, confidence and reason codes.
- Status
- Real data: 51,581 records (38,669 accounts, 12,912 leads) from 17,987 real companies in 11,492 corporate groups. Held-out test: account dedupe F1 0.771 vs 0.697 for an exact-match baseline; duplicate rate 58.1% → 21.9%; lead-to-account precision 0.905, recall 0.877. Labels come from registry IDs (LEI); a 500-pair hand-labelled check is in progress (0/500).
PythonGLEIF LEIWikidataEntity resolutionFastAPI labeller
07
Enrichment · Waterfalls · Benchmarks
- Problem
- Teams pick enrichment vendors from vendor-run benchmarks and never measure accuracy against the truth.
- Built
- A labelling app for a hand-verified ground-truth set, adapters for 7 providers plus 2 verifiers, scoring with confidence intervals, and a pip-installable library that finds the cheapest provider order for a coverage target.
- Status
- Real data, re-analysed: two public per-contact benchmarks (5,000 contacts × 14 tools, and 288 × 7). Cheapest route to 80% valid coverage: icypeas → apollo → hunter at $0.0179 per contact; all 14 tools together reach 93.1%; trusting the first email any tool returns leaves 11.4% of delivered emails invalid. Own hand-verified set: in progress (0/1,000).
PythonhttpxDynamic programmingWilson CIsFastAPI
08
Signals · Backtesting · Experiment design
- Problem
- Signal scores usually have no outcomes behind them, so nobody knows which signals actually predict replies.
- Built
- Daily collectors for job posts (Greenhouse, Lever, Ashby, Workable), tech-stack changes, website changes, funding and GitHub activity, stored as dated snapshots so the backtest only uses signals seen before each send. Lift per signal with permutation tests and a power analysis.
- Status
- Collecting now: 1,000 companies tracked daily. First snapshot: 3,431 open roles at 151 companies and 1,829 tech-stack detections at 708 companies. The backtest against real reply and meeting outcomes from outbound-engine starts once campaigns run (week 0 of 8).
PythonDuckDBParquetGitHub Actions cronPermutation tests
09
Outbound · Deliverability · Compliance
- Problem
- Cold email works only with clean infrastructure, tight bounce control and honest measurement.
- Built
- DNS checks (SPF, DKIM, DMARC, MTA-STS, blocklists), a warmup and inbox-rotation scheduler, free verification, 3-step sequences with one-click unsubscribe, auto-pause above 2% bounces, reply classification, HubSpot sync and a public anonymised results dashboard. CAN-SPAM, UK/EU GDPR, CASL and Australian Spam Act rules built in.
- Status
- Week 0: first real prospect list built from public job boards and Wikidata: 611 companies, 573 matching the ICP (243 agencies, 330 SaaS across the US, UK, Canada and Australia). The public dashboard goes live when sending starts; it will report sent, bounce rate, reply rate, meetings and cost per meeting.
PythonGmail APIDNS-over-HTTPSHubSpotCloudflare Workers
10
Inbound · WhatsApp · SLA
- Problem
- Local businesses lose enquiries because nobody replies for hours.
- Built
- Built for United Trader, a paint shop in Pune: WhatsApp Cloud API and Meta Lead Ads webhooks, Hindi/Marathi/English intent scoring, routing to the right person, a first reply in seconds, 5- and 15-minute SLA alerts, and source attribution through to the sale.
- Status
- Week 0: a 2-week baseline of today's manual reply times comes first, so the before/after is real. The dashboard will show lead volume, median and p90 response time, and conversion by source.
FastAPIWhatsApp Cloud APISupabaseTelegram alertsHindi/Marathi NLP
Honesty note: every number above comes from an actual run of the code in that repo. Simulation and synthetic data are labelled as such in each README. Live results are added only when they exist.