# One eval taken apart, and the eight rules for every run

> The Korvin task read-fact, traced from its data to its saved run, plus the eight rules that make each run repeatable, and the rule I broke.

Canonical: https://nosistech.com/one-eval-taken-apart/
Published: 2026-11-26
Last updated: 2026-11-26
Author: Carlos, NosisTech LLC

The task is one line long. The user asks Korvin to read `warehouse.txt` and say how many copper valves are in the north bay.

Korvin is a small private assistant for one model, Qwen 3.5 2B, with a 64k context. It runs through Ollama on a laptop with a 4 GB graphics card (RTX 3050 Ti). The line above is one of its evals: a task that a program can run many times and grade the same way each time.

Behind that line sit four parts. If one part is weak, the result is hard to trust or to repeat.

![The four parts of one eval: data, target, judgment, run](https://nosistech.com/wp-content/uploads/2026/11/korvin-08-four-parts.png)

*Figure 1. One trial of `read-fact` passes through four parts.*

| Part | In Korvin |
| --- | --- |
| Data | The tasks, with the files and notes that each task needs, and the expected result |
| Target | Korvin with one model, or one single model call |
| Judgment | A check written in code |
| Run | A saved result file that records the versions, the settings, and every transcript |

*Table 1. The four parts of every eval, from the eval plan.*

## A warehouse that does not exist

The data for `read-fact` is the user's line and one small file. The task sits in `evals/tasks/core.py` in the [Korvin repository](https://github.com/nosistech/korvin). The file holds four lines:

```
Inventory of warehouse Kestrel-9.
North bay: 1,742 copper valves.
South bay: 318 brass hinges.
Manager on duty: Odile Vantraub.
```

The expected result is written into the task before any run: the answer must hold 1742, after a read of the file.

Every fact in the file is invented, so the model cannot answer from memory. A task about a famous fact tests what the model learned in training, and it tells you little about the assistant.

Each trial gets a new temporary folder with the task's files. The evals remove the folder afterwards, so no trial sees the leftovers of another.

## A target named down to the digest

The target is what you test, named so that someone else can run it again. Here it is Korvin 0.3.0 with the model `qwen-base-64k`, which is Qwen 3.5 2B at a 64k context. The run record adds the model's digest, ac9a18114f20, because two models can share one name.

A whole task like this one runs Korvin in a separate process, as if a person typed the line. Some other evals have a smaller target: one model call on a fixed conversation.

## Two checks in code

Both checks must pass.

1. The final answer holds the number 1742. The check removes digit separators first, so "1,742" also counts.
2. Korvin's action lines show a successful read of `warehouse.txt`.

The second check makes sure that the answer came from the file. When the route counts for you, check the route as well as the answer.

A program decides the verdict, and no AI model judges the answer. Number checks have a weak spot of their own. They can pass an answer that holds the right number for a wrong reason.

## Eight rules for every run

A run turns the task into evidence. The [eval plan](https://github.com/nosistech/korvin/blob/main/docs/EVAL_PLAN.md) has eight rules for it. Table 2 lists them next to what the final run of Korvin 0.3.0 recorded.

| # | Rule | The final run |
| --- | --- | --- |
| 1 | Record the model, its digest, the context size, and the share on the graphics card | `qwen-base-64k`, ac9a18114f20, 65,536 tokens, 100% on the card |
| 2 | Record the Ollama version, the Korvin version, and a fingerprint of the system prompt | Ollama 0.40.17, Korvin 0.3.0, prompt 272ff933d4ff |
| 3 | Stop the run if the context is below 64k | 65,536, the minimum |
| 4 | Load only one model at a time | One model loaded at the end |
| 5 | Run each task at least 5 times, and each single-decision case 20 times | 5 per task, 20 per decision case, but 3 per long-context task |
| 6 | Make a saved run gradable again with a new check, with no new model run | All three full runs graded again, no verdict changed |
| 7 | Unload the model with `ollama stop` before each run, and load it again | Not shown in the report |
| 8 | Keep each run to about 30 to 40 minutes, in parts | Broken: one part of 2 hours 22 minutes |

*Table 2. The eight rules, and what the final run recorded for each.*

Rule 2 has a history. An Ollama update changed the version in the middle of my second round of evals. Since then, the version goes into every record.

Rule 1 has a reason of its own on a 4 GB card. With the context setting alone, 30% of the model ran on the CPU. For that reason, the share on the card goes into every record.

The evals check most of these points before the first task, and the context check stops the run.

![The checks before a run: Ollama, one model, context size, record, warm-up, then the tasks](https://nosistech.com/wp-content/uploads/2026/11/korvin-08-preflight.png)

*Figure 2. The checks before the first task. A context below 65,536 tokens stops the run.*

## The memory stop behind rules 7 and 8

One of my tuning experiments stopped at 346 of 530 trials. The computer was low on memory, and the run was ended.

I measured what held the memory. Ollama's model service, `llama-server`, keeps old requests so that it can reuse them. Its log says: "prompt cache is enabled, size limit: 8192 MiB". One request with a 64k context took about 330 MiB. At the same time, a part of the Wi-Fi driver held 13.5 GB.

![Private memory of llama-server fell from 8.6 GB to 4.1 GB after ollama stop](https://nosistech.com/wp-content/uploads/2026/11/korvin-08-memory-stop.png)

*Figure 3. One `ollama stop` freed more than half the private memory of the model service.*

I did not catch the moment of the stop. The cause above is a reasoned cause, with no proof. After the two new rules, free memory never fell below 11.8 GB in the next four hours.

The same entry in the decision log found a second problem. Before each run, the evals send one short warm-up request, "Say OK". Four times, the model thought in a loop on those two words until the 64k context was full. Each loop took about 14.5 minutes. The evals now cut the warm-up reply after 4,000 characters. That change touched the eval code only, and Korvin stayed the same.

If you build your own harness, [unload the model](https://docs.ollama.com/faq) before each run and cap the warm-up reply.

## The rule that the final run broke

The final run had 203 tasks and 1,407 trials. It ran in one part, for 2 hours 22 minutes, against my own rule of parts of 30 to 40 minutes.

![Rule 8 asks for at most about 40 minutes; the final run took 142 minutes in one part](https://nosistech.com/wp-content/uploads/2026/11/korvin-08-run-length.png)

*Figure 4. The final run against the upper end of rule 8.*

It finished normally and passed 1,238 trials, which is 88%. I still wrote the break into the eval plan and the decision log. One long run that finished does not show that long runs are safe.

Rule 6 helped here. I graded all three full runs again with the current checks, with no model, and no verdict changed.

The rules also leave a gap open. Runs are not seeded: Korvin sends [no seed](https://docs.ollama.com/modelfile) to the model, so two runs can differ by chance.

## What `read-fact` scored

In the final run, `read-fact` passed 5 of 5. Its four other wordings, polite, terse, with typos, and in Spanish, also passed 5 of 5 each.

That makes `read-fact` easy for this model. It shows the structure better than it shows the difficulty. The same four parts give very different results on harder tasks.

![Trials passed of 5: read-fact 5, read-summary 5, read-find 4, chain-6 3](https://nosistech.com/wp-content/uploads/2026/11/korvin-08-same-structure.png)

*Figure 5. Four whole tasks with the same structure and different difficulty.*

`read-find` lost one trial because its answer lacked the word "moonpetal". `chain-6` lost two because the final code was missing. Five trials of one task are few, and one more run could move any of these bars.

The structure is what lets me compare them at all. Each task has the same kind of data, a named target, and a check in code. Each run is saved, so a new check can grade it again.
