(1)                                          ToggleTruth® is an independent verification instrument for self-hosted Flagsmith experiments, built to gate releases on real statistical integrity. Rather than trusting dashboard summaries blindly, it pulls raw exposure and conversion counts, recomputes sample ratio mismatch, audits quarantine drift, and runs Bayesian expected-loss inference locally—returning an unambiguous verdict before you ship.

TT®

ToggleTruth
Console®

/V.01 (2026)
(1)
(2)

ToggleTruth® verifies self-hosted Flagsmith experiments independently—auditing freshness, SRM, quarantine drift, and Bayesian expected loss with zero runtime dependencies.

Four read-only commands—check, exposures, preflight, and propose—turn raw feature-flag telemetry into deterministic exit codes (0 ship, 1 invalid, 2 wait).

(2)                                          The console covers the full experiment lifecycle: preflight traffic estimation, live Flagsmith check and exposure inspection, deterministic offline fixtures, and clean pull-request spec generation. Every number comes straight from the CLI engine with zero external telemetry.

INDEPENDENT BAYESIAN INFERENCE • SAMPLE RATIO MISMATCH GATE • ZERO RUNTIME DEPENDENCIES • QUARANTINE DRIFT AUDIT • READ-ONLY BY DESIGN •

Verify Before
You Ship.

(Vol. 01 — Statistical Method)

Dashboards rarely halt a bad rollout on their own. ToggleTruth implements the exact statistical checks of Flagsmith's upstream experimentation engine in standalone TypeScript so CI pipelines and engineers get reproducible, deterministic answers.

  • 01 Freshness & Warehouse Refresh Gate
  • 02 Chi-Square Sample Ratio Mismatch (p > 0.001)
  • 03 Multi-Variant Quarantine Share Tracking
  • 04 95% Credible Interval & Expected Loss Bound
FAILURE MODES HOVER OR SELECT TO INSPECT
01

Freshness

FR / GATE

Stale warehouse snapshots or a failed scheduled refresh never silently masquerade as live truth. If lastErrorAt is present or asOf exceeds --max-age-hours, ToggleTruth returns INVALID (exit 1) immediately.

02

Sample Split

SRM / χ²

Recomputes Pearson's chi-square goodness-of-fit against expected variant weights. When p ≤ 0.001, assignment bias or bot filtering skew invalidates the run—blocking false positives before they reach production.

03

Quarantine

QZ / DRIFT

Identities exposed to multiple variants during a session are quarantined by Flagsmith. A trace amount is expected during flag flips; an elevated share leaks cross-arm contamination and forces an INVALID verdict.

04

Bayesian Interval

CI / LOSS

Point lift alone is meaningless under low sample counts. ToggleTruth computes the 95% credible interval, chance to beat control, and expected loss if shipped—returning INCONCLUSIVE (exit 2) until uncertainty settles.

DIAGNOSTIC SCENARIOS

Exit Codes in Practice

1 / 3
EXIT 0 · TRUSTWORTHY

invite_cta / outcome_first

SRM p = 0.9271 · 0 quarantined

“Lift +86.5% (95% CI: 23.9% to 149.1%), 99.7% chance to win, expected loss 0.03% of lift. Safe to gate CI/CD deployment.”
EXIT 1 · INVALID

checkout_v2 / broken_split

SRM p < 1e-6 · Skewed assignment

“Traffic split diverged beyond p = 0.001. Inference is withheld automatically so teams never ship on corrupted assignment telemetry.”
EXIT 2 · INCONCLUSIVE

preflight / power_check

Sample size horizon · Before launch

“At 5% baseline and 10% MDE with 400 daily visitors, you need 16,818 exposures per arm (84.1 days)—run preflight before flipping the flag.”
PREFLIGHT / SAMPLE SIZE CALCULATOR

Estimate Traffic Before Launch

TWO-PROPORTION POWER