skip to content

build a benchmark harness · lesson 1 of 7 · sources checked 2026-11-22

the registry of subjects and targets

This lesson defines the subjects and the targets of a benchmark harness, and the registry rules that keep a control page out of each score.

purpose

A benchmark harness publishes numbers about automation tools, and other people make decisions from them. A number is only as good as the list of what the harness measured. If the list mixes a page that cannot fail with real test pages, each published rate is wrong before the first attempt.

objectives

  1. Define a subject and a target, and name the fields of a target in the registry.
  2. Explain why the control flag and the scored flag of a target are exclusive.
  3. Apply the admission gate to a target before it enters a score.
  4. Validate a registry file with a schema and a validator.

new terms

subject
One tool, one version, and one configuration that the harness measures.
target registry
The versioned list of targets with their flags, verdict rules, owners, and retire dates.
admission gate
A test that a target must pass before it enters a score.

how it works

The registry names two kinds of things. A subject is what the harness measures. A target is where the harness measures it.

The registry is the one place that names both. The harness runs no attempt against a subject or a target that the registry does not hold.

subjects

A subject is one tool, one version, and one configuration. A change of one of the three makes a new subject.

For example, "tool A, version 2.4.1, headless, default settings" is one subject. The same tool and version with a window is a second subject. The two get separate rows, and their rates never go into one number.

targets

A target is a public test page or a page of your own lab, for example a login form that you host. It is never a site of a third party. The registry of this module holds no other kind of target.

The target registry gives each target these fields:

fieldwhat it holds
Control flagYes for a page with no defense that proves the harness works
Scored flagYes for a page whose result goes into a published score
verdict rule versionThe version of the rule that reads the page and gives the result
OwnerThe person who answers for the page and its rule
Retire dateThe date after which the page leaves the registry

A target with the control flag is a control page. The verdict rule version goes into the registry, because a new rule can change the result of an old page. For example, rule v3 can give fail where rule v2 gave pass on the same page.

the control flag and the scored flag are exclusive

A control page has no defense. Each subject passes it when the harness works. Thus a control page shows that the harness works, and it shows nothing about a tool.

A registry with no rule on the two flags can let a control page into a score. For example, with one control page among five scored pages, each tool gets one free pass of six. The differences between the tools look smaller.

The correction is a schema rule: a target can have the control flag or the scored flag, never both.

the admission gate

A scored target must first pass an admission gate. The gate asks one question: does the page separate the subjects?

For example, a page that all subjects pass, or that all subjects fail, separates nothing. It stays out of each score, also when it is a real test page. The test of separation is in Public detector pages as instruments (not yet published). The registry keeps only its result: the date of the gate and pass or fail.

public test pages and lab pages

A public detector page reports what it detects about the visiting browser. Such a page can change with no notice, for example a new check in its script. Thus the owner field and the retire date matter: a page that changed after its gate goes back to the gate.

A lab page is a page of your own lab. You control its code and its version. Thus a lab page can be a control page, a scored page, or a page with a known result.

the harness from start to end

The registry is the first step of the harness. The first diagram shows all steps, from the registry to the release.

The scheduler reads only rows whose retire date is not in the past. For example, a row with the retire date 2027-01-31 leaves the schedule after that day. The manifest check and the control check come before the first attempt. More detail is in The run manifest.

the same registry from the detection side

A defender on the detection side can use the same design to test its own detection. The targets are its own staging pages behind its detection. The subjects are known automation tools and real browsers on real hosts.

A real browser is a negative control: the detection must not flag it. A known tool is a positive control: the detection must flag it. For example, a known tool that the detection flags before a release and passes after it shows a gap in the detection.

the two sides

automation sidedetection side
A registry that mixes a control page with scored pages ranks tools on a page that cannot fail. The admission gate keeps such pages out of each score.A defender registers its own protected staging pages as targets. Known automation tools and real browsers on real hosts are the subjects.

design decisions

optiongaincostwhen it is correct
One row for each tool, version, and configurationEach rate has one clear subject.The registry gets more rows.Always
Control flag and scored flag exclusive by schemaNo control page can enter a score.A schema rule and a validator to keep.Always
Admission gate before a page scoresEach scored page separates the subjects.A gate test for each new page.For each scored target
A retire date on each targetOld pages leave the registry on a known date.Somebody must check the date.For public test pages that can change
Lab pages in place of public pagesYou control the code and the version.The pages are your own design, not a real defense.For control pages and pages with a known result

diagram

the benchmark harness from the registry to the release

The registry is the first step. No attempt starts before the manifest check and the control check.source: My model of the benchmark harness from the registry to the release

The second diagram shows the fields of one registry entry.

the fields of one registry entry

  1. SubjectOne tool, one version, and one configuration.
  2. TargetA public test page or a page of your own lab, never a site of a third party.
  3. Control flagYes for a page with no defense that proves the harness works.no result
  4. Scored flagYes for a page whose result goes into a score. Never together with the control flag.no result
  5. Verdict rule versionThe version of the rule that reads the page.
  6. Admission gateThe date and the result of the test of separation. A scored page must have a pass.pass
  7. Retire dateThe date after which the page leaves the registry.

The target can enter a scorepass

A target enters a score only with the scored flag, no control flag, and a passed admission gate.source: My model of the target registry

The third diagram shows the same harness from the detection side.

the same harness from the detection side

A defender measures its own detection with real browsers that must pass and known tools that must fail.source: My model of the harness from the detection side

code example

The example checks a registry file with synthetic entries. It refuses an entry with both flags, a scored entry with no passed gate, and an entry with a missing field.

m45-x01-registry.tstypescript

A registry schema and a validator: the control flag and the scored flag are exclusive, and a scored target must have a passed admission gate.

type Target = {
  id: string;
  control: boolean;
  scored: boolean;
  verdictRule: string;
  owner: string;
  retire: string;
  gate?: { date: string; result: "pass" | "fail" };
};

const FIELDS = ["id", "control", "scored", "verdictRule", "owner", "retire"] as const;

function check(t: Partial<Target>): string[] {
  const faults: string[] = [];
  for (const f of FIELDS) if (t[f] === undefined || t[f] === "") faults.push(`missing ${f}`);
  if (t.control && t.scored) faults.push("control and scored are exclusive");
  if (t.scored && t.gate?.result !== "pass") faults.push("scored without a passed gate");
  return faults;
}

// Synthetic entries. No entry names a real page.
const registry: Partial<Target>[] = [
  { id: "lab-control-1", control: true, scored: false, verdictRule: "v3", owner: "owner-a", retire: "2027-06-30" },
  { id: "lab-page-2", control: false, scored: true, verdictRule: "v3", owner: "owner-a", retire: "2027-06-30",
    gate: { date: "2026-10-01", result: "pass" } },
  { id: "lab-page-3", control: true, scored: true, verdictRule: "v3", owner: "owner-b", retire: "2027-06-30",
    gate: { date: "2026-10-01", result: "pass" } },
  { id: "public-page-4", control: false, scored: true, verdictRule: "v2", owner: "owner-b", retire: "2027-01-31" },
  { id: "public-page-5", control: false, scored: false, verdictRule: "v2", owner: "", retire: "2027-01-31" },
];

let good = 0;
for (const t of registry) {
  const faults = check(t);
  if (faults.length === 0) good++;
  console.log(`${t.id}: ${faults.length === 0 ? "ok" : faults.join("; ")}`);
}
console.log(`good entries: ${good} of ${registry.length}`);

output

One line for each entry with its faults, and the count of good entries.

lab-control-1: ok
lab-page-2: ok
lab-page-3: control and scored are exclusive
public-page-4: scored without a passed gate
public-page-5: missing owner
good entries: 2 of 5

The output shows that the validator refuses three of the five entries, each for one rule.

data

The table holds four synthetic registry entries. No row describes a real page. The exercise uses this table.

entrycontrol flagscored flagverdict rule versionownerretire dateadmission gate
Ayesnov3owner-a2027-06-30none
Bnoyesv3owner-a2027-06-30pass
Cyesyesv3owner-b2027-06-30pass
Dnoyesv2owner-b2027-01-31fail

failure modes

problemcausecorrection
A control page enters the score, and each tool passes it.The registry has no rule that keeps a control page out of a score.Make the control flag and the scored flag exclusive in the schema.
Two configurations of one tool go into one rate.The registry names a tool, not a subject.Give each tool, version, and configuration its own row.
A scored page separates nothing.The page entered the score with no admission gate.Let a page score only after a passed gate.
A public test page changed, and old and new results look the same.The registry has no owner who checks the page, and no retire date.Give each target an owner and a retire date. Send a changed page back to the gate.
A new verdict rule changes old results with no record.The registry does not hold the version of the verdict rule.Record the verdict rule version for each target.

check questions

  1. Name the five fields that the registry gives each target.

    sample answer

    The control flag, the scored flag, the verdict rule version, the owner, and the retire date.

  2. A tool runs one time with a window and one time headless. The version and the other settings are the same. How many subjects does the registry hold?

    1. One subject, because it is one tool
    2. Two subjects, because the configuration changed
    3. No subject, because a subject is a target
    answer

    b. Two subjects, because the configuration changed

    A subject is one tool, one version, and one configuration. A change of one of the three makes a new subject.

  3. Explain why a target cannot have the control flag and the scored flag.

    sample answer

    A control page has no defense, thus each subject passes it when the harness works. In a score, it gives each tool one free pass, and the differences between the tools look smaller. Thus the schema makes the two flags exclusive.

  4. All subjects fail a new public test page. What does the admission gate do?

    1. It keeps the page out of each score, because the page does not separate the subjects.
    2. It gives the page the control flag.
    3. It lets the page score, because it is a real test page.
    answer

    a. It keeps the page out of each score, because the page does not separate the subjects.

    The gate asks if the page separates the subjects. A page that all subjects fail separates nothing.

  5. An entry has the scored flag and no admission gate record. What does the validator give?

    1. ok
    2. missing owner
    3. scored without a passed gate
    answer

    c. scored without a passed gate

    A scored target must have a passed admission gate. An entry with no gate record does not have a pass.

exercise

exercise Do this task on paper, with the four synthetic entries of the section "Data". Do not send a request to a site.

  1. For each entry, write if it is a control page, a scored page, or neither.
  2. For each entry, write each rule of the registry that it breaks.
  3. For each entry, write if it can go into a score.
sample answer

The answer uses the four synthetic entries of the task.

Entry A is a control page. It breaks no rule, and it never goes into a score. Entry B is a scored page with a passed gate. It breaks no rule, and it can go into a score.

Entry C has the control flag and the scored flag. It breaks the rule that the two flags are exclusive, and it cannot go into a score. Entry D has the scored flag, but its gate result is fail. It cannot go into a score until it passes the gate.

sources

  1. My model of the target registry, the exclusive flags, and the admission gate, 2026-11 (not public).