---
title: "How Coolhand finds and scores your A/B tests"
answer: "Coolhand treats a change you try on part of your traffic as an A/B test: the same prompt on two models, temperatures or providers, a reworded prompt beside the original, or a bakeoff. Every night it scores each side on correctness, feedback, failures, cost and latency, says how sure it is, and names the winner when the test ends."
category: "Feedback \u0026 prompts"
tags: ["experiments","ab-testing"]
published: 2026-12-02T15:01:57Z
updated: 2026-12-02T15:01:57Z
canonical_url: https://coolhandlabs.com/help/how-coolhand-finds-and-scores-ab-tests
index_url: https://coolhandlabs.com/help.md
---

# How Coolhand finds and scores your A/B tests

Coolhand treats a change you try on part of your traffic as an A/B test: the same prompt on two models, temperatures or providers, a reworded prompt beside the original, or a bakeoff. Every night it scores each side on correctness, feedback, failures, cost and latency, says how sure it is, and names the winner when the test ends.

An A/B test compares your current setup, the **champion**, with one or more changes, the **challengers**, on real
traffic over the same days. Coolhand finds the tests you are already running, lets you register your own, and scores
every side the same way so you can tell a real improvement from noise.

## Where tests come from

- **Found in your traffic.** When the same prompt runs on two models, temperatures or providers at the same time, its
  requests split into sibling [templates in one workload](https://coolhandlabs.com/help/what-is-a-workload.md). Coolhand records that as a test once
  both sides have served at least 30 requests over 3 or more days together. A reworded prompt running beside the
  original in the same workload is recognised too. One version simply replacing another is a migration, not a test.
- **Bakeoffs.** Every completed bakeoff becomes a test: the requests sampled from your template against their
  replays on the candidate model.
- **Registered by you.** Send `POST /api/v2/experiments` with a key, a name, an evaluation date and two or more arms.
  An arm can be one of your templates, or the requests you tag with it (see below).

The champion is the side that was serving first. A test runs until its evaluation date, 28 days after it started
unless you set one, or until one side stops getting traffic.

## How each side is scored

Every night Coolhand scores each side on:

| Metric | What it measures | Better |
|---|---|---|
| Correctness pass rate | Share of evaluated responses scored 4 or 5 out of 5 | Higher |
| Correctness score | Average evaluation score, 1–5 | Higher |
| Feedback | Share of your users' thumbs up among thumbs up and down | Higher |
| Failures | Share of requests that failed at the provider | Lower |
| Cost | Average cost per request | Lower |
| Latency | Average response time | Lower |

For each challenger it shows the difference from the champion and how confident that difference is (90%, 95% or
99%), using the same tests as standard web A/B testing: a z-test for rates and a Welch test for averages. It also shows
each side's chance of being the best, from 10,000 simulated draws. A side needs 30 or more requests (and, for a rate,
5 or more events) before a difference can be tested; until then the page says so.

## The result

One metric decides the test, correctness pass rate unless you choose another:

- **Winner.** One side has a 95% or better chance of being the best. While the test runs it is shown as *leading*,
  since it can still change; it *wins* when the test ends.
- **No significant difference.** Every side has enough data and none differs from the champion. Coolhand names the
  cheapest side, since you lose nothing by switching to it.
- **Inconclusive.** Not enough data yet, or the sides differ without a clear winner.

You can see your tests under **A/B tests** in the menu, and the ones on a workload on its page.

## Registering a test and tagging its requests

```json
POST /api/v2/experiments
{
  "experiment": {
    "key": "support-answers/shorter",
    "name": "Shorter support answers",
    "hypothesis": "Answers capped at 80 words get as many thumbs up, for less.",
    "evaluate_at": "2027-01-15T00:00:00Z",
    "primary_metric": "feedback",
    "arms": [
      { "key": "current", "role": "champion", "template_external_key": "Support#answer" },
      { "key": "short", "role": "challenger" }
    ]
  }
}
```

An arm with a `template_id` or `template_external_key` is scored on that template's traffic. An arm with neither is
scored on the requests you tag with it: send the arm's `declared` value from the response on each of its logs, as
described in [the log fields guide](https://coolhandlabs.com/help/llm-request-log-fields.md). A test can have up to 10 arms, each on a different
template, and up to 50 tests you registered can run at once. Arms can't be changed once a test is registered. You can
still rename it, change its hypothesis, evaluation date or deciding metric, or end it early with
`PATCH /api/v2/experiments/{id}` (`"status": "concluded"` scores it one last time; `"cancelled"` stops it). Read tests
back with `GET /api/v2/experiments`, or ask an AI agent connected to Coolhand's MCP server to `list_experiments` or
`get_experiment`.


---

Related:
- [How is feedback quality scored?](https://coolhandlabs.com/help/how-is-feedback-quality-scored.md)
- [What is feedback match rate?](https://coolhandlabs.com/help/what-is-feedback-match-rate.md)
- [Prompt engineering best practices](https://coolhandlabs.com/help/prompt-engineering-best-practices.md)
- [How should I collect feedback on AI output?](https://coolhandlabs.com/help/feedback-collection-best-practices.md)

[← All help articles](https://coolhandlabs.com/help.md) · [Feedback & prompts](https://coolhandlabs.com/help/category/feedback-and-prompts.md)
