Evaluation Harnesses and Reproducibility › What a Harness Has to Pin Down
Language AI HandbookAll chapters Record the inputs and rules that determined the score. The checklist below covers what this chapter’s local harness records.
The Seven Versioned Surfaces
The fixture separates seven parts of the evaluation record. Each part can matter when rerunning or comparing scores.
- Dataset snapshot. The exact items, in the exact order, with a content digest. Pin the dataset bytes and item order. A mutable URL or tag alone cannot identify the snapshot. Item order matters more than people expect, because harnesses that shuffle, truncate, or batch items can behave differently depending on the order in which items arrive, and because some statistical procedures (like early stopping on a stream of items) are order-sensitive by design.
- Prompt template. The system message, the instruction, the few-shot exemplars, the answer-format constraints, and the exact whitespace and delimiters. Prompt wording changes behavior measurably; the Evaluation Prompt Engineering chapter showed how much. A stored template artifact makes those bytes auditable, including when the template originated in code. This includes the boring parts: a trailing newline, a capitalization change, or a swapped delimiter between the question and the answer format can all move a score, and none of them will show up in a diff of a config that only records "the prompt."
- Model identity and settings. The model name, the exact checkpoint or revision, temperature, top-p, max tokens, stop sequences, penalties when used, and any seed parameter. "GPT-class model, defaults" is not a specification. Defaults in particular are a trap: they are provider-defined, can change between API versions, and are usually not documented at the granularity an evaluation needs. If you rely on a default, you are outsourcing part of your specification to a vendor you cannot audit.
- Grader. The code or model that turns a raw response into a score, plus its version. A regex change is a grader change. A change to a judge prompt is a grader change. A change to the judge model is a grader change. Graders are the surface most often forgotten and most often responsible for silent drift, because grader code frequently lives in a helper module that nobody thinks of as part of the evaluation.
- Harness code. The orchestration logic: how prompts are assembled, how responses are parsed, how retries and truncation are handled, how items are batched. A parsing change can alter the measured score without changing model outputs. Truncation policy is a subtle case: if a response exceeds
max_tokens, does the harness score whatever was produced, retry with a larger budget, or drop the item? Choose and record the policy. For an affected item, these choices can change its score or whether it enters the denominator. - Environment. Library versions, the tokenizer version, the inference engine and its build, the hardware. Tokenization differences alone can change scores (Tokenization Challenges). A tokenizer revision that splits a number into different subword units can change how a model completes a numeric answer, without any change to the model weights.
- Reporting convention. What a "score" is (accuracy over items? mean over seeds?), what uncertainty is reported (none? standard error? bootstrap interval?), and what the sampling unit is. Two teams can compute the same per-item scores and still report incompatible headline numbers because one averages over seeds and the other pools items, or because one reports a standard error and the other a full interval.
Record the exact bytes where you can. When a service exposes only a model or backend identifier, retain it alongside the request and compare output behavior on repeat runs.
An evaluation harness is the versioned, executable bundle of a dataset snapshot, prompt template(s), model configuration, grader, orchestration code, environment specification, and reporting convention, together with the code that executes the bundle and archives its outputs. "Harness" refers to both the specification and the runner; the point is that they travel together and are archived together.
Why Digests, Not Version Strings
Teams naturally reach for version strings: prompt: "v3", grader: "v2". Version strings are necessary for humans but insufficient for machines, because a version string can be reassigned, mis-copied, or silently diverge between the config file and the code. A content digest is computed over canonicalized bytes. Anyone with a trusted expected SHA-256 digest can recompute it and compare the two values.
A SHA-256 mismatch proves the canonical bytes differ. A match is evidence that they agree, assuming SHA-256 remains collision-resistant and the expected digest came from a trusted source. This catches a changed template even when the human version label stays at v3.
A run manifest lists input identities, so readers can compare the declared settings. If results differ under the same manifest, the execution may use stochastic draws or depend on state the manifest does not record. Testing repeated execution is how you find that difference.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!