---
title: "Test the Harness Before You Blame the Model"
description: "Hold the model and task fixed, change one harness control, and judge accepted results with the same independent checks."
author: "Gunner Technology"
published: "2026-12-04"
url: "https://www.gunnertech.com/blog/test-the-harness-before-you-blame-the-model"
---

# Test the Harness Before You Blame the Model

To find out whether the model or the harness changed AI code quality, hold the model and task fixed while you change one part of the harness. Judge both runs with the same independent checks. If you change the worker, tools, instructions and proof at once, the result tells you nothing about which change mattered.

## What counts as the harness in an AI coding test?

The harness is everything around the model that turns a request into work: the instructions, context loader, tools, permissions, retry loop, state, routing and checks. It decides what the model can see, what it can do and what evidence comes back. The model supplies capability. The harness turns that capability into an operating route.

That distinction matters because two teams can use the same model and get very different results. One route may find the repository rules, run the right tests and stop when a product decision is missing. Another may start from a thin prompt, guess at the missing decision and declare success after a narrow test passes. Calling that a model comparison hides the machinery that produced the difference.

Write down the route before you compare it. Record the model version, task input, available context, tools, limits, retry behavior and acceptance checks. Our explanation of [why a harness is not the whole factory](https://www.gunnertech.com/blog/the-harness-is-not-the-factory) gives the boundary: the harness operates the agent, while the factory also controls intake, approval, release and production learning.

## How do you isolate a harness change from a model change?

Keep the model, task, starting repository and acceptance checks fixed, then change one harness control. If you want to test context retrieval, do not also add a planning pass and raise the attempt budget. Run the current route first, run the candidate route under comparable conditions, and keep every failed attempt rather than comparing only the best-looking result.

Use work that can expose the control you changed. A context-loading experiment needs tasks whose governing rules live in different scopes. A retry experiment needs failures that can be repaired and failures that should stop. Include a straightforward task too, because a harness that rescues hard work by slowing every easy change may still be the wrong route.

Repeat the unchanged route before trusting a difference. Normal variation can make one run look like an improvement. [Rerunning the baseline before changing the harness](https://www.gunnertech.com/blog/rerun-the-baseline-before-changing-the-harness) helps separate ordinary movement from a change worth promoting.

## What should you measure besides a passing result?

Measure accepted work, not the agent's claim that it finished. The same verifier should check the requirement, behavior and prohibited side effects for every route. Keep that verifier outside the builder's authority. If the candidate harness can rewrite its own test or narrow the task after failing, a green result is not comparable evidence.

Then count the whole route: attempts, elapsed time, model usage, tool failures, human interventions and repairs after review. A harness can raise the first-pass success rate while creating a review queue full of changes nobody can explain. It can also spend more on retries than the accepted change is worth. The verdict belongs to the complete outcome, not one attractive metric.

Check whether the route preserves evidence a person can judge. The final diff, executed checks, unresolved questions and authority used should survive the run. [A handoff needs receipts](https://www.gunnertech.com/blog/what-must-an-agent-handoff-include) because a result that cannot explain its state pushes discovery back onto the next worker.

## When is the model actually the thing to change?

Change the model when the harness supplies the required context, tools and stopping rules, yet the worker still cannot complete the task within the agreed limits. That may mean it cannot reason across the change, use the tool reliably or recover from a representative failure. Preserve the failed route so the new model faces the same job.

A model upgrade starts a new comparison; it does not erase the harness question. First run the new model through the existing route. Then test any harness simplification separately. A stronger worker may let you remove a workaround, but removing it during the upgrade makes the source of the improvement impossible to name.

Do not turn this into loyalty to either side. Some failures belong to the worker. Others belong to missing context, weak tools or proof that cannot reject bad work. The useful question is not whether models or harnesses matter more. It is which controlled change improved accepted work on your route.

## How should the winning route reach production?

Promote it only for the model and work class you tested. Save the previous configuration, define the failure that triggers a rollback and watch the production signals the experiment could not reproduce. A result on small maintenance tasks does not authorize the same route for a release migration or a change carrying sensitive data.

Record the decision beside the configuration: what changed, what stayed fixed, which tasks ran, which checks judged them and why the trade was accepted. When the model, repository or workload changes, that record tells you which assumptions need another test.

The factory should make this routine. Every model upgrade and harness edit becomes a bounded experiment against fixed proof. That is how you stop buying capability on reputation and start operating it on evidence.

## Quick answers

### Can you compare two harnesses with different models?

You can compare complete operating routes, but you cannot attribute the difference to the harness. Run additional tests that hold the model fixed if attribution matters.

### How many tasks should a harness test include?

Use enough repeated, representative tasks to expose ordinary variation and the failure the changed control is meant to prevent. There is no useful universal count.

### Should the agent know which harness is under test?

Do not add labels or hints that change how the task is interpreted. Give each route the inputs it would receive in real operation.
