本文へ移動
cccskills
無料GitHub で公開

ab-test-validity-checklist

Workflow skill that builds an A/B-test validity checklist from an experiment proposal, walking the canonical design-correctness gates - pre-registered OEC/power/guardrails, randomization unit + SRM check, assignment integrity, telemetry, peeking discipline, novelty/primacy, post-experiment SRM re-check - into a per-experiment checklist + sign-off form. Use when launching, auditing, or governing an experiment. For pitfall mechanics (guardrails, peeking) see experiment-results-interpreter's references; to read an already-valid result use experiment-results-interpreter; for per-SDK harness tests use experiment-sdk-testing - this gates DESIGN, not SDK code.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qaスター 13(GitHub 13 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(2)

  • SKILL.md10.1 KB
  • .tessl-plugin/plugin.json804 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

ab-test-validity-checklist

Overview

This skill produces the pre-flight + post-flight validity checklist for an A/B test. Each item is a gate; failing one without explicit acknowledgment invalidates the experiment.

Per Kohavi et al. Trustworthy Online Controlled Experiments (ISBN 978-1108724265): "More than 50% of experiments in practice are invalidated by issues the checklist catches."

The output: a per-experiment markdown checklist + a sign-off form for the experiment owner.

When to use

  • Launching a new experiment.
  • Auditing an experiment that produced surprising results.
  • Building experimentation governance / a peer-review process.
  • PR review of experiment configuration changes.

Step 1 - Pre-registration

Document before launch:

ItemWhat
OECThe single metric (or weighted combination) to improve
PowerExpected effect size, sample size, alpha, beta
GuardrailsPer experiment-results-interpreter references/guardrails.md - list each + threshold
Randomization unitUser / session / device / cookie / IP / tenant
AllocationPercentages per arm; rules for ramp-up
Look schedulePre-declared days; per experiment-results-interpreter references/peeking.md
Sequential methodFixed / Pocock / O'Brien-Fleming / always-valid
Stop-early rulesWhat signals stop (loss on OEC, blocking guardrail)

Candidate guardrail set to pick from, with typical block thresholds (per experiment-results-interpreter references/guardrails.md; Kohavi et al. Trustworthy Online Controlled Experiments, ISBN 978-1108724265):

ClassGuardrailDirectionTypical block threshold
Quality (web)TTFB, LCP, INPnot-increase> 10% or > 50ms, whichever is greater
Quality (API)p95 / p99 latencynot-increase> 10% or > 50ms, whichever is greater
Quality (API)error rate, 5xx ratenot-increase+0.1pp absolute
Quality (mobile)crash rate, ANR rate, app start timenot-increaseany statistically significant increase
EngagementDAU, sessions / user, retention day 7not-decrease-1%
Revenuegross revenue, AOV, conversionnot-decreaseany statistically significant decrease
Trustopt-out, complaint, refund ratenot-increaseany statistically significant increase

Each guardrail carries two levels: alert (statistically significant degradation - investigate before ship) and block (past the pre-declared limit - ship-decision flips to "no"). Per Kohavi et al., always include a quality guardrail (latency / error); it is the most-missed category. Percentage-only thresholds on fast endpoints are a trap - use max(%, absolute).

Commit this to the repo as experiments/<id>/proposal.yml. Any post-launch change requires explicit team approval.

Step 2 - Sample Ratio Mismatch (SRM)

Per Microsoft Experimentation Platform research (KDD 2019 paper "Diagnosing Sample Ratio Mismatch in Online Controlled Experiments"): if the observed allocation (e.g., 50.3% A, 49.7% B) deviates significantly from intended (50% / 50%), the experiment is invalid until root cause is found. SRM signals:

  • Logging bugs (assignments not all logged)
  • Bot filtering (different ratios filtered per arm)
  • Redirects (one variant redirects more)
  • Telemetry drops (one variant has heavier client → more drops)
  • Randomisation bugs (hash collisions)

Chi-square test:

χ² = Σ ((observed_i - expected_i)² / expected_i)

For 2 arms at 50/50 with N=1e6 users:

  • Expected: 500k each
  • Observed: 503k / 497k
  • χ² = (3000²/500000) + (3000²/500000) = 36
  • p-value: < 0.0001

Threshold: p < 0.0001 is the canonical SRM-detection boundary (the chi-square is super-sensitive at large N; this threshold prevents false-positive SRM alarms).

If SRM is detected: stop ship discussion; root-cause first.

Step 3 - Assignment integrity

Tests for the assignment SDK / service:

TestPattern
DeterminismSame (user, experiment) → same arm across calls
Sticky assignmentUser reassigned only if experiment reconfigured
Cross-experiment independenceAssignment to expt A doesn't bias expt B
Bot exclusion consistentIf bots filtered, filter applies before assignment
LatencyAssignment SDK adds < 5ms to request path

These tests live in the per-vendor harnesses of experiment-sdk-testing.

Step 4 - Telemetry correctness

Verify the event firing matches the proposal:

  • Conversion events fire exactly once per user per conversion-eligible session.
  • Exposure events fire for everyone who could see the variant (not just those who actually saw it - that's a different measure, "treatment effect on the treated").
  • Guardrail metrics are queryable against the experiment partition (variant ID joined to event stream).

Step 5 - Peeking discipline

Per experiment-results-interpreter references/peeking.md:

RuleTest
If sequential / always-valid: p-value valid at any lookDashboard p-value uses the valid math
If fixed-horizon: no early-stop UI"Ship" button disabled until N reached
If Pocock/OBF: look schedule pre-declaredDashboards lock looks outside the schedule

Step 6 - Novelty / primacy effects

Per Kohavi et al.: users react differently to novel UX. Novelty inflates the early-period effect; primacy depresses it. Mitigation:

  • Run for ≥ 2 weeks (typical mature-effect period).
  • Segment results by "first exposure vs returning to treatment."
  • For long-running tests, segment by week to spot trend reversal.

Step 7 - Post-experiment validation

Before ship:

GatePass criterion
Pre-registration honouredOEC / guardrails / unit / schedule unchanged since launch
SRM cleanp > 0.0001 on the chi-square (Step 2)
OEC significant under the declared methodSequential / always-valid / fixed-horizon p-value
All guardrails within thresholdsEach Step 1 guardrail below its block threshold; per experiment-results-interpreter references/guardrails.md
Multiple-comparison correctedBonferroni / BH if many metrics
Novelty assessmentEffect persisting in week 2+
Segment-stabilityEffect direction consistent across major segments (no Simpson's paradox)
Trust metric stableOpt-out / complaint rate not up

Document each pass in experiments/<id>/result.md with the specific numbers.

Step 8 - Emit the checklist

The output of this skill: a markdown checklist + sign-off form.

# Experiment <id> - Validity Checklist

## Pre-registration (signed by: <owner>, date: <YYYY-MM-DD>)

- [ ] OEC declared: <metric>
- [ ] Power calc: N=<X>, alpha=0.05, beta=0.20, MDE=<Y>%
- [ ] Guardrails declared: <list with thresholds>
- [ ] Randomization unit: <user_id / device_id>
- [ ] Allocation: <50/50>
- [ ] Look schedule: <Pocock 5 looks at days 2,4,7,10,14>
- [ ] Stop-early rules: <on OEC reaching alpha-threshold>

## During experiment

- [ ] SRM check: chi-square p > 0.0001 ([result: <p>])
- [ ] Assignment integrity tests passing
- [ ] Telemetry validated

## Post-experiment (signed by: <reviewer>, date: <YYYY-MM-DD>)

- [ ] Pre-registration honoured (no scope changes)
- [ ] SRM final check: p > 0.0001 ([result])
- [ ] OEC significant (p=<X>; method: <Pocock>)
- [ ] All guardrails within thresholds:
   - api_p95_latency: +<X>% / +<Y>ms - <status>
   - dau: <X>% - <status>
- [ ] Multiple-comparison adjusted (method: <Bonferroni / BH>)
- [ ] Novelty assessment: effect persists week 2+? <yes / no>
- [ ] Segment stability: direction consistent? <yes / no>
- [ ] Trust metric stable? <yes / no>

## Ship decision: <ship / no-ship / extend>

Reasoning: <one paragraph>

Sign-off: <name>, <date>

Anti-patterns

Anti-patternWhy it failsFix
Post-hoc OEC change"We found a better metric" = p-hackingPre-register
Skip SRM checkInvalidates results without detectionAlways run chi-square pre-ship
Decision before checklist completionShip-then-validate is rejected by trusted-experiments frameworkBlock ship on incomplete checklist
Reviewer = experiment ownerSelf-sign-off; no second pair of eyesDifferent sign-off than owner
Skip novelty assessmentEffect disappears post-shipLook at week-2+ subset
Skip segment stabilitySimpson's paradox: total positive, per-segment negativeAudit by major segments
Treat the checklist as paperworkItems checked without verificationEach item produces evidence (number, link, calc)

Limitations

  • Checklist is necessary, not sufficient. Quality of the underlying telemetry + assignment logic matter.
  • Multiple-comparison corrections are conservative. May reject real wins.
  • Novelty assessment needs ≥ 2 weeks. Pressure to ship fast conflicts.
  • Doesn't catch ecosystem effects. Cross-experiment interaction, carry-over, etc. require global statistics.

References

  • Kohavi, Tang, Xu. Trustworthy Online Controlled Experiments (Cambridge Univ. Press, 2020). ISBN 978-1108724265.
  • KDD 2019 paper "Diagnosing Sample Ratio Mismatch" (Microsoft Research).
  • Microsoft Experimentation Platform articles: microsoft.com/en-us/research/group/experimentation-platform-exp/.
  • Companion: experiment-results-interpreter (result reading; peeking + guardrail methodology in its references/).
  • Operationalised: experiment-sdk-testing (Statsig / Optimizely / Split.io / Amplitude / VWO harnesses).

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Builds a CI gate that fails the build on **new** WCAG / a11y violations introduced by a PR while grandfathering pre-existing violations on a per-rule / per-page baseline. Aggregates verdicts from axe-core / pa11y / Lighthouse a11y / WAVE / IBM Equal Access scans. Use when a project has accumulated a11y debt and a strict "zero violations" gate would block every PR - the ratchet pattern lets the team ship while preventing regressions.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

The single install-flow skill: the reference contract for the PWA install flow (installability gate fields, `beforeinstallprompt` handshake, per-platform paths - Android WebAPK / iOS Share menu / Firefox no-op - and the `display-mode` post-install signal, in references/install-flow-reference.md) plus the build-an-X workflow that emits the Add-to-Home-Screen suite. Walks the four-stage timeline, emitting one test per gate cell per [web.dev/articles/install-criteria][install-criteria], the deferred-prompt → `prompt()` → `userChoice` chain per [web.dev/articles/customize-install][customize-install], the iOS Safari manual-metadata branch (`apple-touch-icon`) per [web.dev/learn/pwa/installation][learn-pwa], and the post-install `(display-mode: standalone)` MQ assertion. Output: a Playwright spec with per-stage cells plus a coverage matrix. Use when a PWA's manifest, icons, or install handler change, when install conversion drops at an unknown stage, or when triaging a flaky install assertion.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Build-an-X workflow that uses an LLM to map existing tests to spec sections - given a spec doc + the test suite, the LLM identifies which tests cover which sections, surfaces uncovered sections (gap), and recommends specific tests to add. Output is a coverage matrix per spec ID. Scope is mapping tests that already exist and naming the gaps, not authoring tests for new acceptance criteria. Use when a spec doc and a test suite both exist but nobody can say which requirements are actually covered - before a release sign-off, an audit, or a decision about where to spend the next round of test effort.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Generates tests from natural-language specs (acceptance criteria, user stories, requirements) using an LLM, with confidence scoring per test case (LLM self-assessment plus heuristics: assertion quality, naming, completeness), batching uncertain cases for human review, and integration with the team's existing test framework. Use when the user asks to generate unit tests from acceptance criteria, convert user stories to test cases, automate test creation from requirements, or augment a spec-driven test suite with AI-generated stubs that are then curated before merge.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Configures Allure Report (test-runner adapter install, `allure-results` directory wiring, `categories.json` for failure classification, `history-trend.json` retention via the copy-history-between-runs pattern), runs the Allure CLI to convert `allure-results` to a static HTML site, and uploads the report as a CI artifact. Use when the team needs richer test reporting than JUnit XML - step-level attachments, per-test history, retry tracking, and severity / epic / feature labeling across framework-agnostic adapters (pytest, Jest, JUnit, TestNG, NUnit, Mocha). As a rich static HTML report generator, it is the open-source alternative to the sunset ExtentReports (JVM/.NET per-test HTML narrative); for hosted cross-run flakiness analytics rather than a static per-run report use currents-integration.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Runs the project's existing API tests under injected network chaos - latency, timeouts, dropped connections, bandwidth caps, packet loss - via Toxiproxy (notes on Pumba / Gremlin / LitmusChaos). Builds a per-scenario chaos matrix and reports which assertions break under which conditions, verifying resilience patterns (retry, circuit-breaker, timeout, fallback). Unlike schemathesis-fuzzing and restler-fuzzing, which generate new tests from a schema, this drives your EXISTING example-based suite.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

testland のスキルをすべて見る

このスキルの問題を報告する