What this layer controls
- Which visitor saw which variant, assigned consistently
- The metric, the guardrails and the stopping rule
- Whether results are published including flat and negative ones
- The feedback loop from support and sales into hypotheses
What it looks like when it is wrong
These are the symptoms that show up in a marketing report or a Monday meeting. Each one has a technical cause in this layer, and each is cheaper to fix before it has a quarter of history behind it.
- Tests stopped the moment the graph looked good
- No pre-registered sample size, so every result is ‘promising’
- Client-side assignment blocked by ad blockers, biasing the split
- Only wins are recorded, so the win rate is unknowable
- Guardrail metrics like refund rate never checked
An open-source stack for this layer
Every project below is open source and self-hostable, with the licence the project publishes today. This is a reference build, not a recommendation to run all of it: pick the layers your stack is missing.
| Layer | Project | Licence | What it does |
|---|---|---|---|
| Flags + experiments | GrowthBook | MIT (core) | Assignment, Bayesian and frequentist engines, results with confidence intervals. |
| Analytics | PostHog | MIT (core) | Event capture, funnels and replay for diagnosing why a variant lost. |
| Statistics | statsmodels | BSD-3-Clause | Power calculation before the test; sequential correction if you must peek. |
| Data quality | dbt tests | Apache-2.0 | Asserts the event fires once per session and the split is not broken. |
| Register | A git-tracked results table | n/a | Every experiment, its effect size, interval and decision. |
Evaluation checklist
Answer each of these about your current stack. A ‘no’ is a work item, and the count is a fair summary of the layer’s health.
- Is assignment server-side and logged independently of the browser?
- Was the sample size computed before launch, and is the stopping rule written down?
- Is sample-ratio mismatch checked before results are read?
- Are guardrail metrics defined and reported per variant?
- Are flat and negative results in the register?
- Is the hypothesis traceable to a customer conversation or support ticket?
What to instrument
Numbers that make the layer’s health visible before a customer complains.
- Experiments per quarter that reached the pre-registered sample
- Share of results published (wins and losses)
- Sample-ratio-mismatch failures
- Guardrail regressions caught before rollout
Where this fits
Scope. This page describes the category and an open-source way to build it. It does not publish 5 Kings’ internal method, client data or vendor terms, and it is not an endorsement of every project listed: check the licence and the maintenance activity against your own constraints before you adopt one.