Loading...
Loading...
Guides experiment state transitions: launching, pausing, resuming, ending, shipping variants, archiving, resetting, and duplicating. Covers preconditions, implications for variant assignment and analysis, and the decision framework for when to use each action. TRIGGER when: user asks to launch, pause, resume, end, ship, archive, reset, or duplicate an experiment. DO NOT TRIGGER when: user is creating an experiment (use creating-experiments), configuring rollout (use configuring-experiment-rollout), or setting up metrics (use configuring-experiment-analytics).
npx skill4agent add posthog/ai-plugin managing-experiment-lifecycledraft ──launch──▶ running ──end──▶ stopped ──archive──▶ archived
│ ▲ │
pause resume ship_variant
│ │ (also ends if running)
▼ │
paused (flag inactive, still "running" status)
Any non-draft state ──reset──▶ draftexperiment-launchstart_datestart_dateexperiment-pause/decideexperiment-resumeexperiment-resumeexperiment-endend_dateend_dateconclusionconclusion_commentexperiment-ship-variantvariant_keyconclusionconclusion_commentexperiment-archivearchived=falseexperiment-updateexperiment-resetstart_dateend_dateconclusionarchivedstart_dateexperiment-duplicatefeature_flag_keyname| Situation | Action | Tool |
|---|---|---|
| Draft ready, flag implemented, metrics set | Launch | |
| Clear winner, significant results | Ship the winning variant | |
| No significant difference after sufficient time | End as inconclusive | |
| Something wrong, need to stop exposure temporarily | Pause | |
| Resume after pause | Resume | |
| Experiment ended, ready to clean up | Archive | |
| Need to start over with same config | Reset to draft | |
| Want a similar experiment with a fresh start | Duplicate | |
finding-experiments| Error message | Meaning |
|---|---|
| "Experiment has already been launched." | Can't launch a non-draft experiment |
| "Experiment has not been launched yet." | Can't end/pause/ship a draft |
| "Experiment has already ended." | Can't end/pause a stopped experiment |
| "Experiment is already paused." | Use resume instead |
| "Experiment is not paused." | It's already active |
| "Experiment is already in draft state." | Nothing to reset |
| "Experiment is already archived." | Already done |