← All live demos
Product Engineering · Feature Flags & Controlled Experimentation adl.featurelab · ADL 0.5.1

Feature Lab

An experiment platform that can say no.

Feature flags and controlled A/B experiments that freeze pre-registered hypotheses, primary metrics, and minimum sample sizes at launch — refusing early peeking, broken sample-ratio splits, and guardrail breaches directly on the Kalos server.

Declarative Domain Pipeline project → flag → experiment (frozen hypothesis & sample) → variants → guardrails → readouts → approved decision
Feature Lab landing page showing ten experiment confidence-interval readouts on a shared axis and live PostgreSQL telemetry
The Feature Lab landing page renders ten treatment-versus-control confidence intervals on one shared axis and queries the live Kalos backend on load for active experiments, under-sampled runs, guardrail halts, and approved decisions.

Why Feature Lab Exists

Most feature-flagging and experimentation dashboards treat statistical discipline as polite advice. Nothing stops an eager team from calling a test on day three the moment p dips below 0.05, swapping a flat primary conversion metric for a noisy secondary click metric after seeing the numbers, ignoring a broken 50/50 assignment split, or shipping a +2% conversion lift that quietly degraded p95 checkout latency by 22%.

Feature Lab turns experimentation methodology into executable domain law. Built as a single ADL 0.5.1 suite (adl.featurelab) running natively on the Kalos C++ engine and PostgreSQL, it unifies feature flags, pre-registered hypotheses, control/treatment variants, safety guardrails, confidence-interval readouts, and rollout decisions under one RBAC and rules model. Nothing is mocked in client JavaScript — every state transition and refusal comes live from /api/v1/featurelab/*.

Inside the Product-Org Demonstration Dataset

Signing into any seat drops you into a realistic product engineering organization running 14 flags and 12 controlled experiments across 10 product areas (Checkout, Onboarding, Search, Scheduling, Messaging, Pricing, Mobile Home, Notifications, Billing, and Help Center):

  • 8 Concluded Experiments with Full Decision Records: Five statistically significant winners rolled out to 100% (exp-one-page-checkout at +3.1%, exp-onboarding-checklist at +4.8%, exp-scheduling-next-available at +6.2%, exp-pricing-annual-default at +7.4%, and exp-help-center-ai-answers cutting support tickets by −8.6%), two null results that kept control (exp-messaging-quick-replies, exp-mobile-home-shortcuts), and one directional result slated to iterate (exp-search-typo-tolerance).
  • 2 Guardrail-Breach Halts: exp-notifications-digest spiked notification unsubscribes by 14.5% (against a 5.0% ceiling), and exp-checkout-express-pay degraded p95 page latency by 22.0% (against a 5.0% ceiling). Both were blocked from concluding and halted with recorded reasons.
  • 1 Live Under-Sampled Experiment (exp-search-semantic-ranking): Currently running at 17,650 of 30,000 pre-registered exposures with a healthy split (p = 0.274) and intact latency guardrail — ready for you to sign in as analyst1, click Conclude, and inspect the live HTTP 422 RULE_VIOLATION response.
  • 1 Ready-to-Launch Draft & 2 Standalone Flags: exp-billing-plan-compare sits in draft with its control, treatment, and support-ticket guardrail configured, alongside gradual release flag billing.new_invoice_view (50%) and kill switch ops.search_cache_bypass (0%).

How ADL Enforces Statistical Discipline on the Server

Every stage of an experiment’s lifecycle is governed by declarative validation expressions, cross-resource AEL query() rules, and role-guarded transitions in backend/domain.yaml:

  1. Frozen pre-registration (noMovingGoalposts): Once an experiment leaves draft, AEL !fieldChanged('hypothesis') && !fieldChanged('goalMetric') && !fieldChanged('minSampleSize') guards reject any attempt to rewrite the question, swap the metric, or lower the sample target mid-flight.
  2. Pre-flight structural checks (twoVariantsToStart, exactlyOneControl, guardrailBeforeStart): Transitioning draft → running executes server-side query() counts to verify at least two arms exist, exactly one arm is marked control: true, and at least one safety guardrail is attached.
  3. Three-gate conclusion (concludeOnlyAtMinimumSample, concludeOnlyWithAHealthySplit, breachesHaltNotConclude): Only analyst (or admin) may invoke conclude, and Kalos refuses the transition unless exposures >= minSampleSize, srmPValue >= 0.001, and zero guardrails have breached == true.
  4. Honest interval math (intervalContainsEstimate, significanceMatchesInterval, breachMatchesObservation): Readout records cannot be saved unless ciLow <= liftPercent <= ciHigh and significant strictly equals (ciLow > 0 || ciHigh < 0), eliminating hand-waved significance badges.
  5. Separated role authority & audit history (decideOnlyFinishedExperiments): Engineers control flags and halts, analysts publish readouts and conclude tests, and product managers approve final ship_variant / keep_control / iterate decisions — with every rollout change and transition captured in Kalos history and audit logs.

Zero Sign-Up · Live Kalos Sessions

Sit at a Bench and Try It Live

Each card below signs directly into a real role-scoped JWT session on the production Kalos backend so you can test role queues, transitions, and server refusals immediately.

Production Interface Walkthrough

Inside Feature Lab — Screen by Screen

Captured directly from the live Kalos deployment. Click any screenshot to inspect full resolution or jump straight to that screen in the running application.

01

Pre-Registered Hypothesis Lock & Live Conclusion Checklist (exp-search-semantic-ranking)

Once started, an experiment's hypothesis, goal metric, and 30,000-exposure minimum sample are frozen by noMovingGoalposts. At 17,650 exposures, the analyst can inspect healthy split (p = 0.274) and latency guardrails — and press Conclude to trigger a live HTTP 422 concludeOnlyAtMinimumSample refusal.

Try concluding early as Analyst ↗
https://feature-lab.infinity-sdg.com/app/#as=analyst1&to=/x/793e9de1-ec38-5bcb-a3f6-01717db8047b Full size ↗
Feature Lab running experiment exp-search-semantic-ranking detail page showing frozen hypothesis and unmet minimum sample check
02

Guardrail Breach Halt & Immutable Audit History (exp-checkout-express-pay)

Express Pay showed a +2.0% [-0.4, +4.4] lift on checkout conversion, but p95 page latency degraded 22.0% against a 5.0% ceiling. Kalos blocks conclusion via breachesHaltNotConclude, requiring an explicit halt reason and recording a Keep Control decision.

Inspect halted experiment as Engineer ↗
https://feature-lab.infinity-sdg.com/app/#as=engineer1&to=/x/cb14f196-5b2a-525c-9adb-f434d0d15ab2 Full size ↗
Feature Lab halted experiment exp-checkout-express-pay showing breached p95 page latency guardrail, halt reason, readout interval, and history
03

Experimentation Analyst Workbench

Role-scoped worklists highlight active tests awaiting statistical readiness alongside any experiment across the company whose guardrail metric has degraded past its pre-registered tolerance.

Open Analyst seat ↗
https://feature-lab.infinity-sdg.com/app/#as=analyst1 Full size ↗
Feature Lab Analyst My Work screen showing running experiment readiness checks and two breached guardrails
04

12-Experiment Portfolio on a Shared Confidence-Interval Axis

Every draft, running, concluded, and halted experiment across 10 product teams is plotted on a unified zero-centered interval scale so statistical significance, effect magnitude, and sample progress are immediately comparable.

Browse all 12 experiments ↗
https://feature-lab.infinity-sdg.com/app/#as=analyst1&to=/experiments Full size ↗
Feature Lab Experiments portfolio table listing 12 experiments with sample progress bars, confidence interval plots, and outcome chips
05

Feature Flags, Percentage Rollouts & Experiment Locks

Engineers control gradual percentage rollouts and operational kill switches (billing.new_invoice_view at 50%, ops.search_cache_bypass at 0%), while active experiment flags remain locked to their parent experiment until a decision is approved.

Open Engineer Flags console ↗
https://feature-lab.infinity-sdg.com/app/#as=engineer1&to=/flags Full size ↗
Feature Lab Engineer Flags console showing release, ops, and experiment-driven flags with rollout meters
06

Four Classic A/B Testing Failure Modes Stopped at the API Layer

Early peeking, post-hoc metric swapping, sample-ratio mismatch, and guardrail-breaking 'wins' are each countered by a named ADL rule returning a structured error envelope.

Read server rules on live site ↗
https://feature-lab.infinity-sdg.com/#rules Full size ↗
Feature Lab overview of four A/B testing failure modes and their corresponding server-enforced ADL rules

Declarative Server Enforcement

What the Kalos Server Refuses — Whoever Asks

These invariants live in the ADL domain definition, not in client-side UI JavaScript. Every REST request is checked by Kalos before touching PostgreSQL, and any violation returns a structured error naming the rule.

Attempted Operation Enforced ADL Rule / Guard Regulatory Alignment
Edit the hypothesis, goal metric, or minimum sample after an experiment starts noMovingGoalposts Pre-registration integrity
Start an experiment without ≥ 2 variants, exactly 1 control, and ≥ 1 guardrail twoVariantsToStart · exactlyOneControl · guardrailBeforeStart Experimental design
Conclude an experiment before reaching its pre-registered minimum sample size concludeOnlyAtMinimumSample Type I error control (peeking)
Conclude an experiment with a failing or missing sample-ratio check (p < 0.001) concludeOnlyWithAHealthySplit SRM assignment validity
Conclude an experiment when any guardrail metric is breached breachesHaltNotConclude Production SLO safety
Halt a running experiment without recording why experiment.halt requires haltReason Incident traceability
Publish a readout whose CI omits the point estimate or mislabels significance intervalContainsEstimate · significanceMatchesInterval Statistical reporting
Ship without naming a winning variant or approve a decision while still running shippingNamesAWinner · decideOnlyFinishedExperiments Rollout governance

Domain Footprint

ADL Suite Inventory

Resources (8)

projectflagmetricexperimentvariantguardrailreadoutdecision

RBAC Roles (4)

engineeranalystproductadmin

Declarative Views (3)

runningExperimentsbreachedGuardrailsdecisionLog