Skip to content
DavmunreyPublic

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Zolts — GTM Operating System

Bottom line: Zolts is the execution system for go-to-market — a composable, warehouse-native, governed layer that turns signals into decisions, decisions into plays, and plays into revenue measured by incrementality. It is not another CRM (system of record) and not another AI SDR (commodity). It is the runtime where a company's GTM logic lives: versioned, testable, auditable.

Dimension Position
Category GTM Operating System (execution runtime + governance)
Core primitive GTM Program = signal → segment → enrichment → decision → play → channel → measurement
Adaptability Blueprints per company archetype (configuration, never a per-customer fork)
Moat Proprietary outcome loop + data routing layer + jurisdictional policy engine
Business model Platform + seats + credits (three-part tariff), target gross margin 75-80%

Plan index

# Document What it settles
00 Executive summary Thesis, trade-offs, decision
01 Market and positioning Category, competition, wedge, Build/Buy/Partner
02 Architecture Layers, runtime, stack, ADRs
03 Data model Canonical entities, identity graph, multi-tenancy
04 GTM Program DSL Config-as-code, versioning, testing
05 Blueprints and adaptability 10 company archetypes, resolver, overlays
06 Signal library Catalogue, decay, time-to-touch SLA
07 Data engine and waterfall Multi-provider routing, cost optimiser
08 AI agent layer Roles, guardrails, evals, auto-send gating
09 Execution and deliverability Channels, sending capacity, reputation
10 Measurement and incrementality Holdouts by default, per-play P&L
11 Compliance and governance GDPR/ePrivacy/AI Act, policy engine
12 Pricing and unit economics Tariff, COGS, margins, expansion
13 90-day roadmap Three phases with binary exit criteria
28 Operator experience The road to enviable, walked: thirteen rows built, each proved by the browser check; two of its three tests pass and the third is half
14 KPIs Leading/lagging with targets
15 Risks and debt Commoditisation, mitigations
16 Team and operations Org, burn, forward-deployed model
17 Buyer sequencing Operator and CFO: both, in two acts
18 Decision register 136 decisions with defaults; 12 blocking
19 Reference core Which claims are proven, and what building it changed
20 The runtime What actually runs, how a signal becomes a gated action, what breaks first
21 The demo What is synthetic and what is not, the four beats, and what a buyer will push on
22 Defect register Every defect this repository found in itself, how it was found, and what stops it returning
23 Security register Controls and the test that holds each one, findings with a security dimension, and the risks that are open
24 Backlog What is built, what is next, and what is blocked on a decision rather than on engineering
25 Runbook What an operator does when a signal fails, with every command executed while it was written
26 Partner onboarding From an invitation to a first send with a holdout, per CRM, and the letter a pilot signs before it starts
27 Brand Steel on paper, one accent, five data semantics, and the rule that keeps them apart — every figure measured from the shipped surface

Technical artefacts

The runtime — the part that runs

  • runtime/migrations/ — 37 tables on Postgres 16, row-level security forced on all 32 tenant-scoped ones
  • runtime/db.py, runtime/repo/ — data access where the only way to get a cursor is to name a tenant
  • runtime/engine/ — signal ingest, holdout assignment, step planning, the policy gate, and a leased worker with backoff and dead-letter
  • runtime/connectors/ — the CRM contract and its suite, HubSpot, Pipedrive and Salesforce as sources, a generic source driven by a tenant-authored mapping for CRMs nobody here has seen, Smartlead for sending
  • runtime/engine/inbound.py, runtime/api/webhooks.py — signed inbound webhooks that close the measurement loop: replies and deals become outcomes, bounces and opt-outs become suppressions
  • runtime/agents/, runtime/engine/generate.py — the agent layer: agents write proposals and cannot send; cost is governed by Trazum's spend_guard before every model call
  • runtime/api/ — HTTP surface with API-key tenancy; no route takes a tenant id, and GET /console serves the operator surface with the tenant's live figures inlined
  • runtime/cli.py — migrate, provision a tenant, issue a key, seal a credential, run the worker, serve
  • Dockerfile, docker-compose.yml, render.yaml, fly.toml — database, migrations, API and worker in one command, locally or on a managed host
export ZOLTS_SECRET_KEY=$(openssl rand -hex 32)
docker compose up                                      # database, API, worker
python3 -m runtime.cli quickstart --slug acme          # tenant, programs, key, console URL
PYTHONPATH=. python3 scripts/smoke_runtime.py          # signal in, gated action out, outcome back

The reference core — the part that decides

  • zolts/ — reference implementation of the core primitives: overlay resolution, deterministic holdouts, signal decay and PIT-R scoring, the waterfall cost optimiser, the policy engine, and the DSL loader and linter
  • zolts/blueprint.py plus blueprints/ — the archetype resolver and 11 blueprints as configuration
  • zolts/catalog.py — the join between programs and blueprints, and the integrity checks neither schema can perform
  • zolts/deliverability.py — sending capacity as managed inventory: warm-up, thresholds, per-provider segregation, staggered ramp
  • zolts/provenance.py — every claim in a generated message maps to a source, or it is removed
  • zolts/evals.py — the auto-send gate: compliance vetoes, an unmeasured check is not a pass
  • tests/ — 1960 tests, each backing a specific claim made in docs/; 564 of them run against a real Postgres (pytest -m db) and CI fails a run that skipped them
  • examples/tests/*.test.yaml — declarative program tests: compliance expectations enforced in CI
  • examples/programs/*.yaml — four complete programs (B2B SaaS sales-led, PLG/PLS, ecommerce DTC, local multi-site services)
  • examples/schema/zolts-program.schema.json — JSON Schema for the DSL
  • examples/sql/schema.sql — the original reference DDL, superseded for execution by runtime/migrations/
  • scripts/validate.py — validates programs against the schema
  • scripts/benchmark_waterfall.py — measures optimiser savings against a static waterfall
  • scripts/mutation_check.py, scripts/mutation_coverage.py — sixteen named guards broken on every push, and a sampled measurement of what share of mutations the tests catch at all
  • scripts/ambient_check.py — runs the suite under named ambient conditions (a shifted clock, an operator's exported variables, a database role that is not restricted) and reports the tests whose verdict moves. Five defects in the register were checks that failed on their environment rather than their subject; this is that probe, made repeatable. Hand-run: each condition is a full suite, so the default pair takes about six minutes
python3 scripts/validate.py                            # schema validation
PYTHONPATH=. python3 -m pytest tests/ -q               # 1960 tests
PYTHONPATH=. python3 scripts/run_program_tests.py      # 20 declarative cases
PYTHONPATH=. python3 scripts/benchmark_waterfall.py    # measured savings

The reference core exists to test the plan; the runtime exists to run it. Building both, and then running what was built, has corrected 109 defects — recorded one by one in 22 with how each was found. Sixty-five of them were the same shape: a complete specification with no caller. A price in docs/12 nothing charged, a column no code set, a button labelled for a feature that did not exist, a process table CI never ran, a restore script that ends by telling you to test it. The register's most useful column is not the defect, it is how it was found: reading found only documents contradicted by code, never a wrong line, and every high-cost one came from executing the thing or from breaking a guard on purpose to see whether it bites. See 19, 20 and 22.

Two more came from rendering the console against live data: the surface crashed on a program with no measurement yet — which is every program on day one — and it reported EUR 1.75m of incremental pipeline against a control arm with zero observed conversions, because its detectable effect had been computed from a floor rather than an estimate. That second one is now a rule in the core: no effect is declared while either arm carries fewer than five observed conversions.

Deploying, onboarding and demonstrating it found a dozen more, every one of them silent. The container image carried the code and none of the data the code reads, so it started, reported healthy, and seeded a tenant with zero programs. A tenant-authored CRM mapping read an unmapped boolean as an opt-out flag, which inverted consent for every positively-phrased field and granted a legal basis the document never named. A customer-supplied base_url was unrestricted, so 169.254.169.254 would have written this runtime's own cloud credentials into a tenant's account table. An invitation marked redeemed before its tenant existed left a row nothing could interpret. The preflight isolation probe passed for the wrong reason, on an exception an outer catch was swallowing. A liveness check asked for a program status the schema does not allow, so it could never fire. And pg_dump grants to a role it does not create, which means a restore into a fresh managed project reports success and leaves the application unable to read a row.

Not one was found by reading. Every one was found by running the thing and looking at what came back — which is why the deployment path, the signup path and the restore path are now executed in CI rather than described in a document.

Wiring the agent layer to real data added two more: the provenance rule measured overlap across every content word, so an interpretive clause could sink a sentence whose exact fact was in evidence; and the retrieval split a company's name into its own citation, so no single source could support a sentence that named who did the thing.

Every one of the seventeen was found by executing, none by reading.

Definition status

docs/18 is the living register: 124 decisions carry a default and execute unless contradicted; 12 are blocking and depend on facts only the founder holds (network, capital, risk appetite). A decision settled elsewhere in these documents is not reopened without amending the register.

Design

  • DESIGN.md — the design system, in the DESIGN.md format that design agents read directly.
  • design/console.html — the reference product surface implementing it: a program's evidence, P&L and policy trace.

Its governing rule is that the violet accent never enters a data region. Brand and interaction live in chrome; five separate colours carry measurement semantics — verified lift, experimental control, policy denial, review, live latency. Violet is the only hue left once measurement has taken its five, so brand and evidence can never collide on a dense screen.

That is also positioning. The category's most visible product renders warm cream, claymation illustration and five saturated card colours; reading as its opposite communicates audited before a word is read.

Deployment

The product surface deploys as a static site with no build step beyond a wrapper.

PYTHONPATH=. python3 scripts/build_site.py   # derives the data, inlines it, derives the CSP

The surface carries no data of its own. scripts/build_fixture.py reads the real programs and blueprints and computes every figure with the same zolts.experiment and zolts.policy functions the test suite covers, so the minimum detectable effect on screen cannot drift from the one in the runtime. Observed rates are the only invented numbers and are marked as such; everything downstream of them — lift, significance, whether a pipeline figure may be reported at all — is derived.

scripts/build_site.py hashes the inline style and script it actually ships into the Content-Security-Policy, so the policy cannot drift from the page. style-src-elem stays hash-locked while style-src-attr allows inline attributes, because the surface sets transforms from data at runtime and a hash never covers a style="" attribute. CI fails if the committed site/ is stale.

Target Configuration Status
Cloudflare Pages wrangler.toml, site/_headers, .github/workflows/deploy-pages.yml Deploys on push to main once CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID are set; the job skips cleanly until then
Vercel vercel.json The static demo at /; behind it, the runtime as one function and the worker as a cron (below)

Manual Cloudflare deploy from a checkout:

npx wrangler pages deploy site --project-name=zolts

The runtime deploys to the same Vercel project (ADR-041): api/index.py serves the API and the console as one function, Vercel Cron invokes /api/tick to drain the outbox and /api/watch to look for signals — daily on the Hobby plan, once a minute and every fifteen under ZOLTS_VERCEL_PLAN=pro (decision 43) — and production is released only by .github/workflows/deploy-vercel.yml, which migrates and runs preflight first. The container path — Dockerfile, fly.toml, render.yaml, docker-compose.yml — is still executed in CI. docs/20 has the checklist; the secrets it names are the founder's and never pass through a chat, an issue or a file.

Conventions

See CLAUDE.md. The repository is English-only — product, code, documentation, commits and pull requests.

Stated assumptions

This plan assumes: (1) a founding team with senior engineering capability, (2) 6-9 months of initial runway (~€700k-1M), (3) an initial market of Europe plus LATAM with later US expansion, (4) no exclusivity commitment to any data provider. Changing any of these alters phase 1 of the roadmap, not the thesis.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages