
Skill
braintrust-design-eval-experiment
design controlled LLM eval experiments
Description
Design or audit controlled eval experiments for model, prompt, retrieval, tool, guardrail, or agent-architecture changes. Use before data collection to state directional and minimum-effect hypotheses, name independent, dependent, and control variables including the serving environment and tool surface, choose paired designs, set repetitions and allocation, distinguish exploratory from confirmatory comparisons, and pre-specify stopping, exclusion, multiplicity, and analysis rules. Do not use primarily to analyze results already collected.
SKILL.md
Design the experiment
Contract: references/interaction-contract.md. Calibration, templates, provenance: references/experiment-manifest.md.
Trigger
- A planned comparison: prompt A vs. B, M0 → M1, retrieval on/off, a new guardrail.
- "Write a hypothesis." / "Create a pre-analysis plan." / "Name the stopping rule."
- A sweep about to run with no plan for how the winner gets confirmed.
Do
- Convert the change into one tradeoff-aware hypothesis: directional, minimum effect, naming what may not regress, plus population, proxies, and scorers. This is the release gate stated in advance.
- Name independent, dependent, and control variables (
reference.md). Any control that matters must be a schema field, or it cannot be held constant or sliced by. - Pin what hides inside apparently atomic variables: the serving path behind a model string, the tool manifest behind "the agent." If more than one thing changes per arm, the design cannot attribute the effect to any single factor — isolate first.
- Choose pairing (same items across arms — the default, far more sensitive) and K = 3–5 runs for anything gating.
- Verify the treatment is implementable in every arm. Publish the per-arm implementation table, and exclude arms that cannot receive it from the treatment-effect claim rather than recording them as "no benefit."
- Pre-specify stopping, exclusions, exploratory vs. confirmatory, multiplicity, and estimators — the elicitation regime dictates the estimator.
Avoid
- Do not choose the analysis after seeing outcomes, or relabel a sweep as confirmatory.
- Do not fix a defect mid-comparison. Restart under the corrected config, or finish as designed and record the defect — a mid-run correction leaves no trace in the results table.
- Do not run unbounded parallelism; it is the most productive source of fake failures.
- Do not analyze results here.
Check
- One hypothesis with direction, minimum effect, and guardrail bounds.
- All three variable classes enumerated; every control exists as a field.
- Serving environment and tool manifest pinned per arm.
- Pairing and K stated; stopping rules fixed; exploratory vs. confirmatory labeled in advance.
- Per-arm treatment implementation table drafted; manifest reproducible.
Risk
- Flexible stopping, undocumented arms, and uncontrolled changes make an apparent improvement indistinguishable from selection noise.
- A treatment with no uniform implementation quietly becomes several treatments.
- Metered ceilings fail in the worst available way — partway through one arm, leaving a partial result that resembles data.
- Confounds enumerated on a whiteboard stay there unless they become fields.
Braintrust
Write H1 into the experiment description so the pre-registered claim travels with the results — the cheapest integrity control available. Mark the confirmatory run explicitly in its name and description.
This is the stage that has to get the shared mechanics right, because they are decided here and
cannot be repaired afterwards. From references/platform-mechanics.md: §3 pinning, since
pairing must be chosen before running and cannot be applied retroactively; §4 metadata for
every independent variable, serving path and tool manifest included, and every control named in
step 2; §5 naming, or the arms never line up; §6 separate sweep experiments, losers kept,
so the denominator survives to the report; §7 hygiene for concurrency and smoke-test
deletion.
Each of those is cheap now and impossible later. That asymmetry is the whole argument for designing the experiment before running it.
More skills from the eval-library repository
View all 24 skillsbraintrust-analyze-eval-experiment
analyze LLM and agent eval experiments
Aug 20AnalysisBraintrustEvalsLLM +1braintrust-attribute-multi-variable-change
attribute performance changes to multiple variables
Aug 20AnalysisBraintrustEvalsLLM +1braintrust-build-eval-dataset
create and manage LLM eval datasets
Aug 20AgentsBraintrustDatasetsEvals +1braintrust-define-eval-objective
define LLM evaluation objectives
Aug 20BraintrustEvalsLLMProduct Management +1braintrust-define-eval-release-gate
configure release gates for LLM applications
Aug 20AgentsBraintrustCI/CDEvals +1braintrust-deploy-evaluator
deploy evaluators to Braintrust
Aug 20BraintrustDeploymentEvals
More from Braintrust
View publishertroubleshoot-braintrust-mcp
configure and troubleshoot Braintrust MCP servers
braintrust-claude-plugin
Jul 12BraintrustDebuggingMCPbraintrust-design-eval-instrumentation
design trace and evaluation dataset schemas
eval-library
Aug 20BraintrustDatasetsEvalsObservability +1braintrust-design-eval-metric-bundle
create multi-objective evaluation metric bundles
eval-library
Aug 20AgentsBraintrustEvalsLLM +1braintrust-design-human-eval-review
design human evaluation and review workflows
eval-library
Aug 20AgentsBraintrustDatasetsEvals +1braintrust-discover-agent-failures
identify and classify agent failure modes
eval-library
Aug 20AgentsBraintrustDebuggingEvals +1