splithub_results
Fetches A/B test results for an experiment, including verdict, lift, guardrails, sample quality, and segment breakdowns to guide ship or iterate decisions.
Instructions
Results of one experiment. SplitHub Cloud gives the full verdict: sample per variant, lift, P(beat), SRM, winner; mvt adds factors[]. verdict.status guardrail_breached means do not ship: a variant made a guardrail metric worse (verdict.guardrailBreached[]); say what broke. verdict.metrics[] has secondary metrics and guardrails. The experiment __holdout is the project holdout (long-term impact of all experiments). Verdicts are sequential (always-valid, safe to check any time) and depend on sample size, not days. verdict.sample.quality is small (below the minimums), ok, or good (every variant has its share of verdict.sample.goodSample, default 5000 visitors): say it next to the verdict; it never changes the decision. verdict.sample.stars (0..5) is a data-quality score from verdict.sample.checks[] (minimum, split, goodSample, power, week; each { met, label }): report the stars and the unmet labels, never as a reason to override the verdict. Quote verdict.message verbatim, use comparisons[].sequential.pValue / sequential.ci (the plain pValue is fixed-horizon, display only: p = 0.01 there can be not significant) and relay verdict.notes[]. daysToVerdict says when to check again. Facts are in verdict.message; voice.line is the friendly line for humans (voice.advice move_on = suggest finishing the experiment and starting the next one); display { label, lines, next } is ready to show. If analysis.available is false the project is self-hosted: report the raw numbers as they are, say verdicts come with SplitHub Cloud (analysis.url), and never call a winner from raw rates. If finished, ask which variant to keep, then splithub_ship. SLICE (SplitHub Cloud): from / to (YYYY-MM-DD, project time zone) keep the visitors first exposed on those days, filters keep visitors by country, device, platform (ios, android, web…), app_version, source, channel, landing page, UTM…; the answer carries scope and the verdict is computed on that slice only: say so and quote scope.note, the decision stays with the unfiltered verdict. A slice carries no voice and no advice (numbers only): never suggest shipping or finishing from one. VIEWS (one at a time, same from / to / filters; the answer has view set): by splits visitors by a dimension, segments[] each with cells per variant (order[] = variants, control first) and comparisons[] (lift vs the control inside the segment, pValue, significant, better; small = too few visitors); timeline gives exposures[] and conversions[] per day and variant (a day = visitors first seen that day, conversions whenever they happened); engagement gives bounce rate, pages per visit and avgVisit (ms) per variant from the analytics property on the same visitors (property null = no analytics there); events gives rows[] for every goal (measured goal / metric / guardrail first) and event of these visitors, each with perVariant visitors and rate and comparisons[] against the control (property null = goals only, other events need analytics on the same site). Segments, engagement and events are for exploring: never call a winner from one segment or one event.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | view: lift per segment of this dimension | |
| to | No | first-exposure day, to (inclusive) | |
| from | No | first-exposure day, from (inclusive) | |
| events | No | view: every goal and event per variant, with lift against the control | |
| filters | No | visitor column → comma-separated values, e.g. { country: "DE,FR", channel: "Paid Search" }; "(none)" matches empty | |
| timeline | No | view: visitors and conversions per day and variant | |
| engagement | No | view: bounce rate, pages per visit, visit length per variant | |
| experiment | Yes | experiment id (key) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | ||
| kind | No | ||
| next | No | ||
| rows | No | view events: every goal and event of these visitors; perVariant { visitors, count, rate, revenue } and comparisons[] against the control (lift, pValue, significant); small = too few visitors | |
| view | No | set when by, timeline, engagement or events was asked: the shape is that view, not a verdict | |
| scope | No | present on a slice (from / to / filters): the verdict is computed on that slice only; quote note | |
| voice | No | friendly line for humans; quote verdict.message for facts. advice move_on = suggest finishing and starting the next experiment | |
| status | No | ||
| display | No | ready-to-print label (WINNER, TOO EARLY, ...), lines and next step, for showing the result | |
| verdict | No | SplitHub Cloud only | |
| analysis | No | self-hosted: raw numbers only. Tell the user verdicts come with SplitHub Cloud; never invent one | |
| variants | No | self-hosted: raw counts per variant (conversions, rate), control first; view engagement: sessions, pagesPerVisit, bounceRate, avgVisit (ms) per variant; view events: the variant keys, control first | |
| experiment | Yes | ||
| daysToVerdict | No | days until a verdict at the current traffic; schedule the next check then |