splithub_ship
Finalize an A/B experiment by keeping one variant, archiving the test in the cloud, and rewriting code to remove experiment branches and unused imports.
Instructions
Keep one variant and take the experiment out: archives it in the cloud (numbers stay readable), removes it from splithub.config.ts and rewrites the code ( → the kept , useValue → the kept literal, useVariant branches folded, unused imports dropped). Ask the user which variant to keep first (recommend verdict.winner; never a variant listed in verdict.guardrailBreached). Call with dryRun: true, show the diff, then without. Fix leftovers[] by hand, then follow next[] (push, doctor, tests).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep | Yes | variant key to keep | |
| dryRun | No | only return the diff | |
| experiment | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | unified diff of the config and the source files | |
| kept | Yes | ||
| kind | Yes | ||
| live | Yes | ||
| next | Yes | ||
| files | Yes | ||
| dryRun | Yes | ||
| leftovers | Yes | ||
| configFile | Yes | ||
| experiment | Yes |