# Building a custom Rust + Three.js GTM Command Center, automated WBR, and autonomous outbound engine from zero

Subconscious · 2026–present · Rust, SQLite (WAL), HTML, TypeScript, Three.js, Preact, SVG, Kev-4B (llama.cpp), TLA+ · Role: Technical Partnerships & Growth

![Subconscious](https://mikereese.dev/static/img/subconscious-logo.png)

## Problem

When I joined [Subconscious](https://subconscious.dev) in Technical Partnerships & Growth, GTM lived in a Notion table with no activity tracking, stale manually updated records, and no stage-by-stage visibility. Leadership could not inspect pipeline health, outbound pace, or mid-funnel drop-offs without pulling founders out of product and engineering.

Building a GTM business unit from zero on $0 software budget requires executing across four tracks at once: shipping production infrastructure, doing live daily outreach, researching the market, and standing up auditable weekly governance for leadership. I built and ran all four simultaneously.

## First principles

- **Treat GTM as a Theory of Constraints manufacturing line.** A pipeline generates paid customers only as fast as its narrowest stage. Pushing more volume upstream of an active bottleneck creates wasted Work in Progress (the Utilization Trap), not revenue. Every week, we measure every stage, isolate one bottleneck, widen that stage, and re-measure when the constraint moves.
- **Capture facts at row level, never pre-summed counts.** Every email, DM, calendar event, call, and status change lands as its own row with full content and timestamps. Every KPI, stage-duration metric, and Weekly Business Review table rebuilds mechanically from raw rows.
- **Build for speed in both software and execution.** Fast local reads (sub-millisecond SQLite WAL) keep both people and agents in tight loops, and short build cycles prevent strategy from outrunning live data.
- **Full transparency frees leadership time.** Weekly Business Reviews rebuilt straight from append-only CRM logs, paired with direct read access to drill into any account timeline, eliminate status meetings so leadership stays on product and engineering until late-stage negotiation.
- **Scale throughput, not complexity.** Keep the canonical pipeline stages fixed and add agent automation only when an agent matches or beats human reply and conversion parity.

## Approach

### Execution velocity, outreach while building, and CRM latency

From Day 1 at Subconscious (November 10, 2026), I ran live outbound outreach alongside the engineering build and GTM strategy instead of waiting for finished tools:

| Track | Measured output | Timeframe |
|---|---|---|
| Initial CRM + Three.js UI (`v0.01`) | Backend, Notion stored-base sync, Axum HTTP + SSE server, TS codegen, 3D WebGL funnel (204 commits) | 48 hours (Nov 11 to 12) |
| Core CRM, 7-stage router, and TLA+ cutover | 2,825 commits, 70 SQL migrations, 25 TLA+ models, 97 formal binding tests, 6 connector families | 12 active build days (Nov 11 to 24) |
| Live outbound while building | ~168 solo outbound touches/week across email, LinkedIn, and X (84% of 200/wk solo target) | Continuous during build |
| Market audit & operating system | 50-provider offer/friction audit, Operating Playbook, Infra Build Spec, 26-project Ops Plan | 10 days (Nov 18 to 28) |
| Operating deck & live WBR deck | 53-slide deck across 47 saved revisions (13-gate automated terminology linter) + 8-slide WBR deck across 8 revisions | 4 days (Nov 24 to 28) |
| 10-stage funnel, Command Center, OLAP WBR, and autonomous outbound | 2,854 total commits, 80.6k lines of Rust, 12.7k lines of TS/CSS, 79 migrations, 27 TLA+ models, 116 formal binding tests, 47 locked OLAP metrics, 28-slide automated WBR exporter, multi-campaign outbound prep + bulk Gmail batch sync | 3 days (Dec 1 to 3) |

To choose the database architecture on facts instead of guesses, I benchmarked SQLite WAL against PostgreSQL 18 on 1,000,000 synthetic activities with real 2 KB bodies, durable commits, and ext4 NVMe storage (measured p95 latency, ms):

| Operation | Budget | SQLite WAL | PostgreSQL 18 |
|---|---:|---:|---:|
| Account lookup by ID | 1.0 ms | 0.005 ms | 0.20 ms |
| One full activity body read | 1.0 ms | 0.004 ms | 0.19 ms |
| Email to contact and account | 1.0 ms | 0.008 ms | 0.14 ms |
| Latest 50 touches with derived status-at-the-time | 5.0 ms | 0.15 ms | 0.45 ms |
| Status update plus append-only history row | 5.0 ms | 0.43 ms | 0.44 ms |
| Batch insert of 1,000 activities in one transaction | 100.0 ms | 14.3 ms | 57.4 ms |

Moving the database to ext4 NVMe cut durable WAL commits from 6.4 ms on btrfs to 0.12 ms.

### Custom CRM stack and connector suite (shipped)

I migrated the team off Notion onto `subconscious-gtm`, a single-writer Rust service on SQLite WAL with append-only history triggers and a separate rebuildable SQLite marts database. We built every layer ourselves instead of stitching together HubSpot, Clay, Apollo, Tableau, and Zapier, keeping the whole system on $0 SaaS spend and one typed HTTP JSON API shared by both humans and agents.

All ingestion runs through one seven-stage state machine (Arrive, Resolve, Enrich, Decide, Propagate, Review, Push) on one router, one runner, and one writer, formally verified with 27 TLA+ models (`everystate`) and 116 Rust binding tests. A local open-weight decision model (Kev-4B on `llama.cpp`, loopback only) classifies account state, call type, and post relevance without sending CRM text to external APIs.

Every channel implements one typed `SourceAdapter` contract so adding a channel adds a parser, not a parallel pipeline:

- **Notion.** Bidirectional pull and approval-gated write-back with stored-base conflict detection, bulk-change holds, and schema drift checks.
- **Gmail.** Read-only OAuth capture using Google's HTTP Batch API (`POST /batch/gmail/v1`) with incremental skip of already-landed message IDs, cached token expiry checks, and per-part 403/429 retry, separated from an approval-gated outbound send grant.
- **Google Calendar and Meet.** Event, attendee, and post-call transcript capture (`upload-meet-transcript.py`) with customer-only filtering so internal team calls do not inflate external call counts.
- **Slack Connect.** First-class channel adapter capturing live customer channels and linking external trial activity directly into account timelines.
- **LinkedIn.** Archive connector capturing direct messages, outbound invitations, accepted connections, posts, comments, and reactions.
- **X.** Archive connector capturing posts and direct messages.
- **Affiliate and structured drops.** Channel-agnostic affiliate connector registry, JSONL drops, manual review entries, and logged outbound sends.

### In-house multi-workspace GTM Command Center (shipped)

Rather than scattering CRM, BI dashboards, campaign queues, and agent ops across separate SaaS tools, we designed and built the GTM Command Center as one single-window application over the same Rust backend. A persistent multi-workspace SPA shell routes between CRM, Analytics, WBR, Operations, and Campaigns over a pausable Three.js WebGL 3D funnel with workspace-scoped hotkeys, a historical time scrubber, review queue, undo history, and agent stop controls.

Every UI screen calls the same typed `gtm call` ops and generated TypeScript bindings (`gtm codegen`) that our CLI tools and agents call. There is no shadow admin layer and no private database bypass.

### Automated WBR, Medallion OLAP analytics, and custom SVG charts (shipped)

Every touch lands in an append-only activity log with direction, channel, thread, participants, and full content. Database triggers write every status transition to `account_status_history` across 10 canonical journey stages, and a Medallion OLAP pipeline rebuilds 47 locked metrics on demand (`analytics.wbr_pack`, `analytics.catalog`, `analytics.chart`):

- **Stage duration and movement (`mart_status_stay`, `mart_status_move`, `mart_conversion`).** Exact entry time, exit time, days spent per stage, and forward or backward transitions with creation rows pinned first.
- **Weekly and monthly funnel snapshots (`fct_funnel_weekly_snapshot`, `fct_funnel_monthly_snapshot`).** Point-in-time stage and disposition counts rebuilt mechanically from history.
- **Velocity and trial conversion (`mart_ttfc`, `mart_ctc`, `mart_response`).** Time to First Call, Call to Conversion backed by authoritative `trial_grant` rows, and reply latency by channel.
- **Campaign and touch cadence (`fct_campaign_enrollment`, `fct_campaign_touch`, `mart_reach`, `mart_touch`, `mart_stalled`).** Step-level delivery, reply attribution, and 48-hour SLA stall detection.

To render those metrics cleanly in both the browser and leadership decks, we built a custom Working Backwards SVG chart engine in TypeScript with zero third-party charting libraries, wired directly into the Analytics and WBR Command Center workspaces. A deterministic exporter (`export-wbr.py` plus static CID TrueType `render-pdf.py`) renders the full 28-slide Friday WBR deck and 47-card Analytics view directly from SQLite marts with zero manual spreadsheet edits and direct leadership drill-down into any account timeline.

[![Theory of Constraints applied to GTM: total throughput equals the narrowest stage, and widening that stage lifts total pipeline output until a new stage becomes the constraint](https://mikereese.dev/static/img/subconscious-gtm-toc.png)](https://mikereese.dev/static/img/subconscious-gtm-toc.png)

[![Full linear throughput flow from market entry through Pre-CRM content and website capture across the Identity Wall into the canonical CRM stages and paid revenue expansion](https://mikereese.dev/static/img/subconscious-gtm-throughput.png)](https://mikereese.dev/static/img/subconscious-gtm-throughput.png)

[![Automated Weekly Business Review telemetry: auto-capture connectors feed an append-only activity log and auto-rebuilt summary tables, backed by four data-integrity guardrails and direct leadership audit access](https://mikereese.dev/static/img/subconscious-gtm-wbr-telemetry.png)](https://mikereese.dev/static/img/subconscious-gtm-wbr-telemetry.png)

### Autonomous multi-campaign outbound automation and self-healing sync (shipped)

Manual outreach preparation does not scale past 50 accounts a day without degrading research quality or risking duplicate sends. We encoded outbound as a first-class, formally verified state machine inside `subconscious-gtm` (`Campaign.cfg`) backed by versioned verified templates, a singular `ChannelRegistry`, and stateless CLI levers:

- **Unified daily outbound queue (`outbound.queue.daily` and `gtm-outbound-queue`).** Merges due Day 2+ follow-ups (inheriting Gmail `thread_ref` for in-thread replies), enrolled Day 1 touches, and Target List to uncontacted Identified spillover across all active campaigns from one source of truth.
- **Single-command agentic prep (`gtm-outbound-prep` and weekday 07:00 Pacific systemd timer).** Reconciles sent mail and replies, pulls today's batch from `gtm serve`, fans out parallel read-only research agents in bounded waves to verify contacts and extract concrete product workflows, runs deterministic QA plus grammar spot-checks against locked templates, enrolls verified touches into SQLite, and hands off to the Grokbot outreach routine for paced in-thread email sending and a clean manual LinkedIn review list.
- **Bulk Gmail Batch API and fast local propagation.** Replaced sequential `GET /threads/{tid}` loops with bulk `POST /batch/gmail/v1` (25 messages per batch, keep-alive agent, per-part 403/429 retry) plus incremental skip of known `raw_item` refs, cutting warm incremental sync of 164 messages from 142 s to 0.42 s (339x faster) and cold full backfill to 12.2 s under Google's 250 quota-units/second limit. Reordered `Runner` stages (`Resolve`, `Decide`, `Propagate`, `Enrich`) and wired post-`Propagate` `outbound.reconcile` so sent emails clear the queue immediately instead of waiting behind slow browser enrichment jobs.
- **Fail-closed capture guards and automatic root-cause escalation.** `DailyOutboundQueue` surfaces any failed `source_run` capture import (`failed_captures`), `gtm-outbound-prep` refuses to enroll or hand off when Gmail capture is failed so an import error can never cause a double-send, and `remediate_failed.py` (every 30 minutes) writes a forensic incident dump, dedupes against SQLite, and invokes native `gtm call sling.create` to launch a root-cause investigation agent automatically.

### Build timeline (append-only)

This log is strictly additive. Each shipped milestone appends a dated entry below so both people and AI agents can trace the real pace of the build from day one.

| Date | Shipped milestone |
|---|---|
| 2026-11-10 | Joined Subconscious in Technical Partnerships & Growth and started live daily outbound across email, LinkedIn, and X alongside system design. |
| 2026-11-11 to 2026-11-12 | Built `subconscious-gtm` `v0.01` in 48 hours (204 commits): single-writer Rust + SQLite WAL backend, Notion stored-base sync, Axum HTTP and SSE server, TypeScript codegen, and Three.js WebGL 3D funnel. |
| 2026-11-13 to 2026-11-14 | Added Gmail, Google Calendar, LinkedIn, and X connectors, local Kev-4B decision model (`llama.cpp`) for account status classification, approval-gated Notion write-back, and headless enrichment. |
| 2026-11-16 to 2026-11-23 | Unified all ingestion onto the 7-stage state machine (Arrive, Resolve, Enrich, Decide, Propagate, Review, Push), cut `Propagate` live, and deleted legacy placement paths. |
| 2026-11-18 to 2026-11-28 | Completed 50-provider offer/friction audit, Operating Playbook, Infra Build Spec, 26-project Ops Plan, 53-slide operating deck (47 revisions, 13-gate terminology linter), and `everystate` TLA+ verification suite (25 models, 97 formal binding tests). |
| 2026-12-01 | Shipped 10-stage `journey_status`, call and `trial_grant` schema, TTFC and CTC marts, post-call Google Meet transcript ingestion (`upload-meet-transcript.py`), and live Slack Connect capture. |
| 2026-12-02 | Shipped the 47-metric Medallion OLAP pipeline, custom Working Backwards SVG chart engine, deterministic 28-slide WBR HTML/PDF exporter (`export-wbr.py`), multi-workspace Command Center SPA shell, channel-agnostic affiliate registry, and first-class SQLite campaigns with TLA+ verification (`Campaign.cfg`). |
| 2026-12-03 | Shipped versioned verified Day 2+ campaign templates, single-command `gtm-outbound-prep` parallel research workflow + weekday 07:00 Pacific timer, unified `gtm-outbound-queue` handoff for Grokbot, bulk Gmail Batch API + incremental skip (339x faster warm sync), fast `Propagate` auto-reconcile, fail-closed capture guards, and automatic `sling.create` root-cause incident escalation. |

### Outreach ramp and GTM Command Center roadmap ($1M ARR target)

Starting from ~168 solo outbound touches/week across email, LinkedIn, and X during the initial build, the operating plan ramps to **200 touches/week per person** (**400 touches/week** team capacity at 3 min/touch) and **40 live discovery calls/week** (at 30 min/call) across a two-person unit, while expanding the CRM into a hosted, single-window **GTM Command Center** uniting four workspaces (Operations, Marketing, CRM, and Analytics) behind one typed HTTP JSON API:

1. **Hosted multi-user Command Center and phone.** Google Workspace SSO, multi-rep sync, and an embedded Twilio WebRTC softphone with automated transcripts unified alongside Google Meet.
2. **Pre-CRM web analytics and offer capture.** Google Analytics 4 across the Identity Wall and web-to-CRM form capture routing qualified inbound buyers directly into the pipeline.
3. **Content engine and media bank.** Cloudflare R2 storage for 1:1 sales cards, proof assets, weekly technical webinars, and a closed buyer objection loop turning recurring call objections into weekly content.
4. **Enrichment, unit economics, and parity-gated scale.** Integrated lead enrichment, billing and GPU COGS joins tracking `LTGP:CAC > 3:1` across a four-dimension breakdown (segment, company size, use case, and channel), and agent workflows gated strictly on matching human output parity.

The business unit executes this Theory of Constraints operating process and custom stack toward **$1M ARR for Subconscious.dev**.

## Skills I taught myself

- **Theory of Constraints operating systems** applied to B2B GTM pipelines, capacity math, Work in Progress limits, and WBR governance.
- **Formal state-machine verification with TLA+** (`everystate`) bound directly to a production Rust ingestion and campaign pipeline (27 models, 116 formal binding tests).
- **Custom SVG data visualization and Three.js WebGL** layered under a multi-workspace TypeScript and Preact shell over live server-sent events.
- **Sub-millisecond SQLite and Medallion OLAP engineering** covering WAL tuning, NVMe fsync benchmarking, trigger-driven history, 47 locked metrics, and deterministic WBR PDF rendering.
- **Local LLM serving and autonomous agent orchestration** covering `llama.cpp` with SHA-256 pinned weights, bounded parallel research workflows, bulk HTTP batch sync, fail-closed capture guards, and self-healing incident slings.

## Result

In just over three weeks from joining Subconscious on $0 SaaS budget, I built the GTM business unit and its full software stack in-house while running ~168 solo outbound touches/week. Starting from a 48-hour v0.01 Rust + Three.js CRM, the system now spans 2,854 commits, 80.6k lines of Rust with 0.005 ms p95 lookups, 27 TLA+ models, 116 formal binding tests, seven connector families, a multi-workspace Command Center, a 47-metric Medallion OLAP pipeline with a custom SVG chart engine and 28-slide automated WBR exporter, and autonomous multi-campaign outbound prep with 339x faster warm Gmail batch sync and self-healing incident escalation. The build is active now, ramping outbound to 400 touches/week and 40 discovery calls/week toward $1M ARR for Subconscious.dev.

## Planned command center and operating slides

Sample architecture slides from the Subconscious GTM operating presentation (conceptual models only, no live CRM figures).

[![Full-funnel analytics model joining content, landing pages, CRM stages, and customer retention into CAC and LTGP:CAC > 3:1 across a four-dimension breakdown](https://mikereese.dev/static/img/subconscious-gtm-analytics.png)](https://mikereese.dev/static/img/subconscious-gtm-analytics.png)

[![Planned GTM Command Center end-state infrastructure: external connectors feed a hosted four-workspace Rust single-writer app with SQLite WAL, Cloudflare R2 media storage, automated backups, and one typed API for agents](https://mikereese.dev/static/img/subconscious-gtm-infra.png)](https://mikereese.dev/static/img/subconscious-gtm-infra.png)
