Second Opinionfor Flagsmith

Experimentation diagnostics and deploy gate report

checkout_button

DEMO FIXTURE: hidden-harm
Environment
Development
Sample size
24,000 identities12,000 per variant
Generated
Static snapshot, v0.1.4
Data hash
4b7e48dc2d53Synthetic data

Flagsmith dashboard claim

Winning

99.7% chance to win · +13.3% lift

Recomputed by Second Opinion's replica of Flagsmith's delta method. The repository records the same values from a live Flagsmith results API for this scenario.

Second Opinion decision

VETO: DON'T SHIP

EXIT 20

Block the rollout. One veto outweighs any number of passing layers.

Seven diagnostic layers

L1Sample Ratio MismatchIs traffic split the way the flag says?PASS

Observed counts match the configured 50/50 split exactly.

VariantExpectedObserved
control12,00012,000
treatment12,00012,000

Chi-squared = 0.00, df = 1, p = 1.0000. A veto needs p < 0.001; p < 0.01 warns.

L2Primary Effect & Bayesian RiskDoes the primary metric (purchase) improve overall?PASS
VariantIdentitiesConversionsRate
control12,0009698.08%
treatment12,0001,0989.15%
MeasureValue
Relative lift (95% credible interval)+13.3% (+4.3%, +23.0%)
Chance to win (Bayesian)99.8%
Two-proportion z-testz = 2.97, p = 0.0030
Expected loss if treatment ships0.00016 percentage points

The aggregate result is a genuine win. The problem only appears when users are split by platform (L4).

L3Guardrail ProtectionDid a metric you must not damage get worse?NOT CONFIGURED

The hidden-harm scenario defines no guardrail metrics, so nothing was tested. The engine records this as a pass with the message “No guardrail metrics configured.”

Reference: separate guardrail fixture (not part of this verdict)

MetricControlTreatmentChangeToleranceP(harm > tolerance)
refund_requested1.83%3.33%+81.8%10%99.9%

That run ends in DON'T SHIP. A veto needs P(harm > tolerance) ≥ 90%; ≥ 70% warns.

L4Subgroup HarmIs any segment worse off while the average looks good?VETO

Mobile users convert less on the treatment. Desktop gains are large enough to hide it in the average.

platformControlTreatmentLift95% intervalp-value
desktop506 / 6,000 (8.43%)710 / 6,000 (11.83%)+40.2%+25.8% to +56.3%6.8 × 10⁻¹⁰
mobile463 / 6,000 (7.72%)388 / 6,000 (6.47%)−16.2%−26.4% to −4.5%0.0076

Veto rule: negative lift with the 95% interval entirely below zero, or chance to win ≤ 5% (mobile: 0.4%), with at least 200 identities per arm. Platform mix is balanced across arms (p = 1.0000). Both segments also pass Benjamini–Hochberg at q = 0.10.

L5Novelty DecayDoes the Day 1 lift survive on Days 2–3?SKIPPED

Not evaluated: the control arm has 0 conversions in the later window, below the minimum of 10.

Reference: separate novelty fixture (not part of this verdict)

WindowControlTreatmentLiftChance to win
Day 15.40%9.86%+82.7%100.0%
Days 2–33.30%3.36%+2.0%56.0%

That run ends in DON'T SHIP.

L6Sequential Stopping (mSPRT)Is it safe to stop, even after repeated peeking?HOLD
MeasureValueNeeded to stop
Always-valid p-value0.0716≤ 0.05
Likelihood ratio13.97≥ 20
Expected loss (proportion)0.0000016≤ 0.001

The ordinary p-value in L2 (0.0030) looks decisive. The always-valid one does not yet. On its own this would give HOLD (exit 10); the L4 veto takes precedence.

L7Event Data QualityCan the event stream be trusted?PASS
CheckResult
Total events / conversion events26,067 / 2,067
Duplicate events0
Event-name casing or whitespace mismatches0
Conversions without a prior exposure0
Identities exposed to more than one variant0

Re-run in terminal

Exits with code 20, which is expected for this demo.

so analyze --demo hidden-harm