build a benchmark harness · lesson 2 of 7 · sources checked 2026-11-22
the run manifest
This lesson defines the run manifest of a benchmark harness, the check that refuses an incomplete manifest, and the diff that compares two runs.
status of this lesson: from a public sourcepurpose
Two numbers of a harness differ, and somebody must say why. The answer is only as good as the record of each run. Without that record, a change of the tool and a change of the test look the same.
objectives
- List the fields of a run manifest and of its version manifest.
- Refuse a run that has an incomplete manifest.
- Use a diff of two manifests to decide if a comparison changes one variable only.
- Explain why the manifest records the browser mode of the harness itself.
new terms
- rule version
- The version of the rule that made a verdict, stored on the verdict.
how it works
A run is one group of tries of one subject on one or more targets, in one time window.
Each attempt of a run is one try, for example one load of a lab login page.
A run manifest is the record of the reason, the design, the versions, and the conditions of one run. The harness writes the manifest before the first attempt. The subject and the targets come from the registry. The manifest adds the versions and the conditions of the run.
the fields of the manifest
The manifest has these fields:
- The reason of the run: schedule, release trigger, or manual.
- The design ID: the test design that the run belongs to.
- The version manifest: the version of each component.
- The network path class, for example "datacenter" or "residential". The class is a word, never an address.
- The oracle version and the rule period.
- The browser mode: headless or with a window.
The list holds the versions and the conditions of the run. A full manifest can also hold each parameter, the class of the hardware, and each random seed.
the version manifest
The version manifest is the part of the run manifest that lists the version or digest of each component:
- The tool and its version.
- The browser build.
- The driver and its version.
- The digest of the image, for example
sha256:4f1cand more hex digits. - The commit of the harness code.
A digest names one exact image. A tag such as "latest" can name a different image tomorrow. Thus the manifest records the digest, not the tag.
the oracle version and the rule period
The success oracle decides if one attempt got the real content. Its version changes the meaning of each verdict. A rule period is a time range in which the meaning of a number does not change. The manifest names both, for example "oracle v4, period 3". The periods are in Rule periods, chart breaks, and the statistics library (not yet published).
the refusal rule
The harness refuses a run with an incomplete manifest. A run with no manifest record gives numbers that nobody can explain. Thus the harness does not start such a run, and it records the refusal.
For example, a manifest with no oracle version is refused. The harness does not fill a missing field with a default value. A default value looks like a record, but nobody checked it.
the diff of two manifests
Before you compare two runs, compare their manifests. The diff counts the fields that changed.
A comparison is valid only when one field changed. For example, the tool version changed, and the design changed too. The diff then counts two changes. The difference of the two rates has two possible causes, and the data cannot separate them.
the attempt record
The run also keeps an attempt record. It has one row for each attempt and each step. Each row holds the stage reached: the last stage of the flow that the attempt completed. For example, an attempt can reach the form page and stop before the result page. The stages are in The oracle for a flow: stages and the stage reached (not yet published).
the browser mode is a condition of the run
The harness itself can show signals to a target, for example its browser mode.
A browser in headless mode builds pages with no visible window. A headful browser draws a real window. A target can treat the two modes in different ways. Thus the browser mode is a field of the manifest, and a comparison across modes changes one variable.
Targets also block some attempts of the harness itself. When nobody records this loss, it looks like random loss. The section "Data" shows two results of one public study about this loss.
the same manifest from the detection side
A detection team can record its own changes in the same form. Its manifest holds the rule version of its rules and the version of its model. Then each change of its detection rate has a recorded cause. For example, the rate fell on the day that rule version 12 replaced version 11.
the two sides
| automation side | detection side |
|---|---|
| Without a manifest, a team cannot separate a tool change from a design change. The manifest also records the signals that the harness itself shows, for example headless mode. | A detection team records its rule version and model version in the same manifest. Thus each change of its detection rate has a cause. |
design decisions
| option | gain | cost | when it is correct |
|---|---|---|---|
| Refuse a run with an incomplete manifest | Each number has a full record. | Some runs do not start. | Always |
| Fill a missing field with a default value | The run starts. | The record looks complete, but nobody checked the value. | Never |
| Record the image digest | One exact image for each run | A long value to store | Always |
| Record the image tag only | Short and easy to read | A tag can name a different image later. | Never as the only record |
| Diff the manifests before a comparison | A comparison with two changes is visible. | One more step before each comparison | Before each comparison of two runs |
| Record the browser mode | A comparison across modes is visible. | One more field | Always |
diagram
the fields of a run manifest
- Run reasonSchedule, release trigger, or manual.
- Design IDThe test design that the run belongs to.
- Version manifestThe tool, the browser build, the driver, the image digest, and the harness commit.
- Network path classA class word, for example datacenter. Never an address.
- Oracle versionThe version of the oracle that gives the verdicts.
- Rule periodThe period in which the meaning of the numbers does not change.
- Browser modeHeadless or with a window.
Each field is full: the run can startpass
code example
The example checks two synthetic manifests before a run. Then it compares them with a diff.
A run manifest schema, a pre-run check that refuses an incomplete manifest, and a diff that counts the changed fields.
type Manifest = {
reason: "schedule" | "release" | "manual";
designId: string;
tool: string;
browserBuild: string;
driver: string;
imageDigest: string;
harnessCommit: string;
pathClass: string;
oracle: string;
period: string;
mode: "headless" | "window";
};
const FIELDS: (keyof Manifest)[] = [
"reason", "designId", "tool", "browserBuild", "driver", "imageDigest",
"harnessCommit", "pathClass", "oracle", "period", "mode",
];
function preRun(m: Partial<Manifest>): string {
const empty = FIELDS.filter((f) => m[f] === undefined || m[f] === "");
return empty.length === 0 ? "start" : `refused: empty ${empty.join(", ")}`;
}
function diff(a: Manifest, b: Manifest): (keyof Manifest)[] {
return FIELDS.filter((f) => a[f] !== b[f]);
}
// Synthetic manifests. No value names a real image or host.
const monday: Manifest = {
reason: "schedule", designId: "design-7", tool: "tool-a 2.4.1", browserBuild: "build-131",
driver: "driver-x 4.2", imageDigest: "sha256:4f1c9e", harnessCommit: "c0ffee1",
pathClass: "datacenter", oracle: "oracle v4", period: "period 3", mode: "headless",
};
const tuesday: Manifest = { ...monday, tool: "tool-a 2.5.0", designId: "design-8" };
const broken: Partial<Manifest> = { ...monday, oracle: "" };
console.log(`monday: ${preRun(monday)}`);
console.log(`tuesday: ${preRun(tuesday)}`);
console.log(`broken: ${preRun(broken)}`);
const changed = diff(monday, tuesday);
console.log(`diff monday to tuesday: ${changed.join(", ")} (${changed.length} changed)`);
console.log(changed.length === 1 ? "comparison: valid" : "comparison: not valid, more than one change");output
The check result of each manifest, and the changed fields of the diff with their count.
monday: start
tuesday: start
broken: refused: empty oracle
diff monday to tuesday: designId, tool (2 changed)
comparison: not valid, more than one changeThe output shows that the check refuses the manifest with no oracle version. It also shows that the two complete manifests differ in two fields, thus their comparison is not valid.
data
measurement papers that report a block rate
status of this figure: from a public source
source: Public study of bot detection and block loss in web measurement, 2026 (public source, https://psi.uni-bamberg.de/en/forschung/bot-detection/, read 2026-11-12); date 2026-11-12; sample of 81
data table
| papers | % |
|---|---|
| report a block rate | 17 |
| do not report a block rate | 83 |
The first chart shows the share of papers that report the block rate of their own crawl. A manifest with the path class and the browser mode makes that loss visible for each run.
soft-block rate of a measurement crawl by browser mode
status of this figure: from a public source
source: Public study of bot detection and block loss in web measurement, 2026 (public source, https://psi.uni-bamberg.de/en/forschung/bot-detection/, read 2026-11-12); date 2026-11-12; sample size not stated; condition: Top 10,000 sites, 40,000 visits in all, from datacenter addresses.
data table
| browser mode | % |
|---|---|
| headless Chromium | 15.2 |
| headed Chromium | 7.2 |
| Firefox | 6.8 |
The second chart shows that the soft-block rate of the study changed with the browser mode. Thus two runs in different modes do not measure the same condition.
failure modes
| problem | cause | correction |
|---|---|---|
| Nobody can say why a rate changed. | The run has no manifest. | Write the manifest before the first attempt, and refuse a run without it. |
| A design change and a tool change come close together, and the data cannot separate them. | No diff of the manifests before the comparison. | Diff the manifests. Compare two runs only when one field changed. |
| Two runs of one tag use different images. | The manifest records the tag, not the digest. | Record the image digest. |
| A manifest looks complete, but one value is wrong. | The harness filled a missing field with a default value. | Refuse the run. Do not fill a missing field. |
| A rate falls when the harness changes its browser mode. | The browser mode is not a field of the manifest. | Record the browser mode, and treat a change of mode as a change of one variable. |
check questions
List the five parts of a version manifest.
sample answer
The tool and its version, the browser build, the driver and its version, the digest of the image, and the commit of the harness code.
A manifest has no oracle version. What does the harness do?
- It fills the field with the last oracle version and starts the run.
- It starts the run and marks the field later.
- It refuses the run and records the refusal.
answer
c. It refuses the run and records the refusal.
The harness refuses a run with an incomplete manifest. A default value looks like a record, but nobody checked it.
The diff of two manifests shows a new tool version and a new design ID. Is a comparison of the two rates valid?
- No, because two fields changed and the data cannot separate the two causes.
- Yes, because the target is the same.
- Yes, because the oracle version is the same.
answer
a. No, because two fields changed and the data cannot separate the two causes.
A comparison is valid only when one field of the manifest changed.
Explain why the run manifest records the browser mode.
sample answer
The harness itself can show signals to a target. A target can treat a headless browser and a browser with a window in different ways. Thus a change of the browser mode is a change of one variable, and a comparison across modes must show it.
exercise
exercise Do this task on paper, with the three synthetic manifests of the table. The table gives six fields. The other fields are complete and equal in the three manifests. Do not start a run.
| field | manifest a | manifest b | manifest c |
|---|---|---|---|
| Reason | schedule | schedule | manual |
| Design ID | design-7 | design-7 | design-7 |
| Tool | tool-a 2.4.1 | tool-a 2.4.1 | tool-a 2.4.1 |
| Image digest | sha256:4f1c9e | sha256:4f1c9e | none |
| Oracle version | oracle v4 | oracle v4 | oracle v4 |
| Browser mode | headless | window | headless |
- Write which manifest the pre-run check refuses, and why.
- Write the diff of manifest A and manifest B.
- Write if a comparison of the rates of run A and run B is valid.
sample answer
The answer uses the three synthetic manifests of the task.
The check refuses manifest C, because it has no image digest. Manifests A and B differ in one field: the browser mode. Thus the comparison of run A and run B is valid, and it measures the effect of the browser mode only.
sources
- My model of the run manifest, the refusal rule, and the diff of two manifests, 2026-11 (not public).