Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Test the AI step/Building the golden set
Reference · Test the AI step

Building the golden set

Part of Test the AI step. Install the skill and your agent reads this page when it needs the depth.

Where the cases come from

Never let the prompt author invent cases. Invented cases share the author's blind spots, so the prompt passes them by construction.

Stratification

Slice Share Purpose
Typical, in the real mix about 60% The score you will see in production
Known hard about 25% Where the money is lost
Edge about 15% Where the step breaks loudly

On top of the shares: at least 20 cases for every category, branch or counterparty type that matters, even when it is rare in real traffic. Report those small groups separately; never let them vanish into an average.

Labelling

How many cases

The score on a test set is an estimate. With a measured accuracy of 95%, the 95% confidence range is about:

Cases Range at 95% Range at 99%
50 plus or minus 6.0 points plus or minus 2.8
100 plus or minus 4.3 plus or minus 2.0
300 plus or minus 2.5 plus or minus 1.1
1,000 plus or minus 1.4 plus or minus 0.6

What follows from that:

The holdout

Set aside 20% of the cases, chosen at random within each slice, before anyone tunes anything. Nobody reads them while iterating on the prompt. Score them at each release candidate. If the tuning set scores 6 or more points above the holdout, the prompt has been fitted to the cases and will disappoint in production.

Keeping the set alive

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.