skip to content

the success oracle · lesson 4 of 9 · sources checked 2026-11-22

detector targets and verdict rules

This lesson shows how an oracle reads a detector page, and how to find and correct a rule that cannot fail or pass.

status of this lesson: measured by me

purpose

A detector target shows a page to each visitor, also to a bot. Thus a check that the page loaded gives no information about your client. A fault in the rule that reads the page then becomes a false number about a tool.

objectives

  1. Explain why an oracle must read the detector verdict of a detector page.
  2. Find a verdict rule that cannot fail or cannot pass, and correct its shape.
  3. Resolve a detector verdict against the result of stage 1 with the hybrid policy.
  4. Read a rate of a detector page together with its rule period.

new terms

vacuous rule
A verdict rule that cannot fail, or cannot pass, for any client.

how it works

A normal target holds the content that the collector asked for. The success oracle checks that content. For example, it reads the status, the size, the title, and a count of results.

Such a check is a content assertion. It can also look for an element with a selector. A detector page is different. It loads for each visitor, and its content is its own conclusion about the visitor.

That conclusion is the detector verdict. For example, a page shows verdict: bot, score: 12. A content assertion passes on this page, because the page loaded with a title and a body.

read the detector verdict

The oracle reads the detector verdict with a verdict rule. The rule gives the stage result, and the oracle then gives its verdict. For example, the rule contains "verdict: human" gives a pass on a human verdict and a fail on a bot verdict.

A rule must also have a third result. An observation can be empty, missing, or malformed, for example a body with no text after a block. Then the rule gives inconclusive: it has nothing to assert, and it does not guess.

rules that cannot fail

A vacuous rule cannot fail, or cannot pass, for any client. Two shapes give false passes:

  • A rule that checks only that a score shows. The page shows a score to each visitor, so each visitor passes.
  • A negative-only rule, for example notContains "bot". An empty block page does not hold the word "bot", so it passes.

The second shape has a bad property: the harder a site blocks, the more false passes it gives. The correction has two parts. An empty observation gives inconclusive. A negative-only rule must have a positive co-assertion, for example contains "verdict: human".

rules that cannot pass

Other rules cannot pass. For example, a rule for a demo page of a challenge passes only on an accepted token, and the demo page never issues one. The rule then measures nothing. A solver gets credit only when the attempt drove it, and only when the page accepted its token.

To find a vacuous rule, run it against five fixed observations:

  1. an empty body;
  2. no observation;
  3. a value that is not text;
  4. a page with a clear human verdict;
  5. a page with a clear bot verdict.

A rule that passes on 1, 2, or 3 is broken. A rule that gives the same result on 4 and 5 is vacuous.

the hybrid policy

Stage 1 of the oracle looks for a block. More detail is in Stage 1: block signatures, definitive and ambient (not yet published).

The oracle has a separate layer value for a fail that the detector verdict decides: detector-verdict. The hybrid policy resolves the detector verdict against stage 1. A definitive marker of stage 1 wins. If stage 1 finds no block, the detector verdict decides. An unreadable detector verdict gives ambiguous.

For example, a page shows a human verdict inside a challenge page. The result is a fail, with the layer from stage 1. Stage 1 counts only definitive markers here. A detector page that a vendor runs can load the sensor of that vendor on each visit, and that ambient marker proves nothing.

The grid of the first diagram in the section "Diagram" is my model. The benchmark platform, my test system, uses a different grid. There, a human verdict wins over a browser-layer block, and only a TLS block wins over the page.

Also record who runs each detector page: an independent party, a vendor, or an unknown party. The class shows whose conclusion the detector verdict is. More detail on each silent failure is in Silent failure and the change below the page.

rates belong to a rule period

The benchmark platform read detector pages in two rule periods:

  • the marker period: the oracle reads a content marker of the page;
  • the detector-verdict period: the oracle reads the detector verdict.

The browsers stayed the same, but the rates of the detector pages changed. In the detector-verdict period, almost all fails name the detector-verdict layer as the blocking layer. Thus each rate and each blocking layer is valid only in its rule period. Never pool rates across a change of the rule.

the two sides

automation sidedetection side
On a detector page, the verdict rule is the oracle. A fault of the rule becomes a published fact about a tool. The rule must give inconclusive on an empty or unreadable observation.A test page that gives each client the same answer does not measure the client. A page that writes its verdict only in the client, after a round trip to its server, is also not reliable.

design decisions

optiongaincostwhen it is correct
Check the content onlyOne rule for all targetsIt cannot fail on a detector page.Never on a detector page
Read the detector verdict onlyIt measures what the detector concluded.A block before the detector verdict shows looks like an unreadable page.A lab page with no block in front of it
The hybrid policyA block and a detector verdict both count, each with its layer.Two inputs, and one more layer valueEach detector page
A negative-only ruleEasy to writeIt passes on an empty block page.Never alone. Only with a positive co-assertion.
Inconclusive on an empty observationNo false pass from a hard blockMore ambiguous attemptsEach verdict rule

diagram

A matrix of the detector verdict, bot, human, or unreadable, against the result of stage 1, no block, a browser-layer block, or a network block. Each table cell gives the verdict and the blocking layer.

hybrid policy for a detector page: the detector verdict against the result of stage 1
detector verdictstage 1: no blockstage 1: browser-layer blockstage 1: network block
Botfail, layer detector-verdictfail, layer from stage 1fail, layer from stage 1
Humanpassfail, layer from stage 1fail, layer from stage 1
Unreadableambiguousfail, layer from stage 1fail, layer from stage 1
A definitive block of stage 1 wins. With no block, the detector verdict decides, and an unreadable detector verdict gives ambiguous.source: My model of the hybrid policy for a detector page

The first diagram shows the hybrid policy. Each block of stage 1 gives a fail with the layer from stage 1, for each detector verdict.

A matrix with five rows of rule shape and three columns, empty, missing, and malformed observation. Four shapes change from fail to inconclusive. The shape notContains only changes from pass to inconclusive.

rule shape against an observation with nothing to read: the verdict before and after the fix
rule shapeempty observationmissing observationmalformed observation
containsfail, then inconclusivefail, then inconclusivefail, then inconclusive
matchesfail, then inconclusivefail, then inconclusivefail, then inconclusive
minLengthfail, then inconclusivefail, then inconclusivefail, then inconclusive
scoreGtefail, then inconclusivefail, then inconclusivefail, then inconclusive
notContains onlypass, then inconclusivepass, then inconclusivepass, then inconclusive
Before the fix, each shape gives a pass or a fail on an observation with nothing to read. After the fix, each shape gives inconclusive.source: My model of the shapes of a verdict rule

The second diagram shows why the negative-only shape is the dangerous one. It is the only shape that gave a pass when the page showed nothing.

code example

The first example applies five rule shapes to three observations with nothing to read. It gives the old verdict, the new verdict, and the verdict strength of a fixed rule.

example The rules and the observations are synthetic. No part describes a real detector page.

m30-x05-target-verdict.tstypescript

Give inconclusive for an empty, missing, or malformed observation, ask for a positive assertion, and give the verdict strength.

// Target verdict for a detector page, in model form, with synthetic observations.
// An empty, missing, or malformed observation gives "inconclusive", never "pass" or "fail".
type Shape = "contains" | "matches" | "minLength" | "scoreGte" | "notContains";
type Rule = { shape: Shape; arg: string | number };
type Verdict = "pass" | "fail" | "inconclusive";
type Result = { verdict: Verdict; strength: "none" | "single" | "joint" };

function check(rule: Rule, text: string): boolean | null {
  switch (rule.shape) {
    case "contains": return text.includes(String(rule.arg));
    case "matches": return new RegExp(String(rule.arg)).test(text);
    case "minLength": return text.length >= Number(rule.arg);
    case "notContains": return !text.includes(String(rule.arg));
    case "scoreGte": {
      const m = /score: (\d+)/.exec(text);
      return m ? Number(m[1]) >= Number(rule.arg) : null; // no score: nothing to assert
    }
  }
}

// Old shape: a value that is not text counts as an empty text.
function oldVerdict(rule: Rule, obs: unknown): Verdict {
  const text = typeof obs === "string" ? obs : "";
  return check(rule, text) ? "pass" : "fail";
}

// New shape: read the observation first, and ask for a positive assertion.
function targetVerdict(rules: Rule[], obs: unknown): Result {
  if (typeof obs !== "string" || obs.trim() === "") return { verdict: "inconclusive", strength: "none" };
  if (rules.every((r) => r.shape === "notContains")) return { verdict: "inconclusive", strength: "none" };
  for (const r of rules) {
    const ok = check(r, obs);
    if (ok === null) return { verdict: "inconclusive", strength: "none" };
    if (!ok) return { verdict: "fail", strength: "single" };
  }
  return { verdict: "pass", strength: rules.length > 1 ? "joint" : "single" };
}

const shapes: Rule[] = [
  { shape: "contains", arg: "verdict: human" },
  { shape: "matches", arg: "verdict: (human|person)" },
  { shape: "minLength", arg: 20 },
  { shape: "scoreGte", arg: 70 },
  { shape: "notContains", arg: "bot" },
];
const observations: Record<string, unknown> = { empty: "", missing: null, malformed: 404 };

for (const rule of shapes) {
  const cells = Object.entries(observations).map(
    ([name, obs]) => `${name} ${oldVerdict(rule, obs)} -> ${targetVerdict([rule], obs).verdict}`,
  );
  console.log(`${rule.shape}: ${cells.join(", ")}`);
}

const fixed: Rule[] = [{ shape: "contains", arg: "verdict: human" }, { shape: "notContains", arg: "bot" }];
for (const page of ["verdict: human, score: 88", "verdict: bot, score: 12"]) {
  const r = targetVerdict(fixed, page);
  console.log(`fixed rule on "${page}": ${r.verdict}, strength ${r.strength}`);
}

output

The old and the new verdict of each rule shape, and the verdict and strength of a fixed rule on two pages.

contains: empty fail -> inconclusive, missing fail -> inconclusive, malformed fail -> inconclusive
matches: empty fail -> inconclusive, missing fail -> inconclusive, malformed fail -> inconclusive
minLength: empty fail -> inconclusive, missing fail -> inconclusive, malformed fail -> inconclusive
scoreGte: empty fail -> inconclusive, missing fail -> inconclusive, malformed fail -> inconclusive
notContains: empty pass -> inconclusive, missing pass -> inconclusive, malformed pass -> inconclusive
fixed rule on "verdict: human, score: 88": pass, strength joint
fixed rule on "verdict: bot, score: 12": fail, strength single

The verdict strength is "joint" when two assertions agree on a pass, and "single" when one assertion decides. The old notContains shape passes on each of the three observations.

The second example resolves each detector verdict against each result of stage 1.

example The inputs are synthetic. The function follows the first diagram.

m30-x06-hybrid-policy.tstypescript

Resolve the detector verdict of a detector page against the result of stage 1, and name the blocking layer.

// Hybrid policy for a detector page, in model form, with synthetic inputs.
// Stage 1 counts definitive markers only. A definitive block wins over the detector verdict.
type DetectorVerdict = "bot" | "human" | "unreadable";
type Stage1 = "none" | "browser-layer block" | "network block";
type Outcome = { verdict: "pass" | "fail" | "ambiguous"; layer: string };

function resolveDetectorTarget(page: DetectorVerdict, stage1: Stage1): Outcome {
  if (stage1 !== "none") return { verdict: "fail", layer: "from stage 1" };
  if (page === "bot") return { verdict: "fail", layer: "detector-verdict" };
  if (page === "human") return { verdict: "pass", layer: "none" };
  return { verdict: "ambiguous", layer: "none" }; // nothing to assert: no guess
}

const verdicts: DetectorVerdict[] = ["bot", "human", "unreadable"];
const stages: Stage1[] = ["none", "browser-layer block", "network block"];

for (const page of verdicts) {
  for (const stage1 of stages) {
    const o = resolveDetectorTarget(page, stage1);
    console.log(`page ${page}, stage 1 ${stage1}: ${o.verdict}, layer ${o.layer}`);
  }
}

output

The verdict and the blocking layer for each of the nine pairs.

page bot, stage 1 none: fail, layer detector-verdict
page bot, stage 1 browser-layer block: fail, layer from stage 1
page bot, stage 1 network block: fail, layer from stage 1
page human, stage 1 none: pass, layer none
page human, stage 1 browser-layer block: fail, layer from stage 1
page human, stage 1 network block: fail, layer from stage 1
page unreadable, stage 1 none: ambiguous, layer none
page unreadable, stage 1 browser-layer block: fail, layer from stage 1
page unreadable, stage 1 network block: fail, layer from stage 1

Only the pair of a human verdict and no block gives a pass.

data

All five charts are measured values of the benchmark platform. The first chart defines page 1.

a vacuous rule stamped pass on 96 of 155 headless pages of page 1

status of this figure: measured by me

a vacuous rule stamped pass on 96 of 155 headless pages of page 1stamped pass96not stamped pass59unit: pages

source: Benchmark platform, data (my test system): a development audit of one public fingerprint test page; date 2026-11-16; sample of 155; condition: Each page was a headless browser. The count of pages that did not get the stamp is the total minus 96.

data table
a vacuous rule stamped pass on 96 of 155 headless pages of page 1
rule resultpages
stamped pass96
not stamped pass59
The rule checked only that a score showed. It did not read what the detector concluded. Page 1 is a public fingerprint test page. The data is development data with known defects.

The first chart shows the first shape of a rule that cannot fail. The rule gave a pass to most headless browsers, because the page shows a score to each visitor. It shows the fault of the rule, not a property of the browsers.

block rate of page 1 before and after the rule change

status of this figure: measured by me

block rate of page 1 before and after the rule changemarker period (sample of 2485)page 18.3%unit: %detector-verdict period (sample of 2755)page 169.2%unit: %

lines: interval, level 0.95

source: Benchmark platform, data (my test system): stored definitive attempts on one public test page, two rule periods; date 2026-11-03; sample of 5,240; condition: Definitive attempts only. The intervals treat attempts as independent, so they are too narrow.

data table
block rate of page 1 before and after the rule change
seriespage%interval
marker periodpage 18.37.3 to 9.4 (level 0.95)
detector-verdict periodpage 169.267.4 to 70.9 (level 0.95)
The browsers did not change. Only the rule changed, from a content marker to the verdict of the detector. The page numbers are those of the first chart.

The second chart shows how two rules disagree on the same kind of attempts. The block rate of page 1 is much higher in the detector-verdict period. The difference comes from the oracle, not from the clients. Thus a rate of a detector page has a meaning only with its rule period.

fails of a size floor on page 2 while the page said pass

status of this figure: measured by me

fails of a size floor on page 2 while the page said passpage said pass570other fails3unit: fails

source: Benchmark platform, data (my test system): stored fails of one public IP-check page in the marker period; date 2026-11-03; sample of 573; condition: The block rate of this page under that rule is an oracle error, not a detector result.

data table
fails of a size floor on page 2 while the page said pass
fail reasonfails
page said pass570
other fails3
In the marker period, page 2 itself said pass in 570 of its 573 fails. A reply of 180 bytes was below a floor of 200 bytes. Page 2 is not page 1.

The third chart shows a size floor that failed a short reply that was correct. Almost each fail of page 2 was an error of the oracle. Thus compare the fails of the oracle with the detector verdict before you count them.

layer that gets the blame for a failed attempt, by rule period

status of this figure: measured by me

layer that gets the blame for a failed attempt, by rule perioddetector verdict1: 02: 17869server coherence1: 139952: 195challenge1: 23842: 310unit: fails1. marker period2. detector-verdict period

source: Benchmark platform, data (my test system): stored failed browser attempts, two rule periods; date 2026-11-03; sample of 34,753; condition: One label for each attempt, so this is not a distribution of causes. The chart does not pool across the two rule periods.

data table
layer that gets the blame for a failed attempt, by rule period
seriesblocking layerfails
marker perioddetector verdict0
marker periodserver coherence13995
marker periodchallenge2384
detector-verdict perioddetector verdict17869
detector-verdict periodserver coherence195
detector-verdict periodchallenge310
Share of fails by blocking layer. Server coherence: 85.4% in the marker period, 1.1% in the detector-verdict period. Detector verdict: 0% and 97.3%. The detector verdict now decides first.

The fourth chart shows that the blame for a fail moved to a different layer when the rule changed. A count by blocking layer is valid only in one rule period.

outcomes of an http client on detector pages in both rule periods

status of this figure: measured by me

outcomes of an http client on detector pages in both rule periodspass of definitive attempts (sample of 1900)HTTP client10%unit: %ambiguous attempts (sample of 4371)HTTP client56.5%unit: %

lines: interval, level 0.95

source: Benchmark platform, data (my test system): stored attempts of an HTTP client on detector pages; date 2026-11-03; sample of 4,371; condition: Compare clients on definitive attempts, with the ambiguous share beside them. The intervals are at attempt level. The source gives no split by rule period.

data table
outcomes of an http client on detector pages in both rule periods
seriesclient%interval
pass of definitive attemptsHTTP client108.7 to 11.4 (level 0.95)
ambiguous attemptsHTTP client56.555.1 to 58 (level 0.95)
The HTTP client has no JavaScript. It passes 10.0% of 1,900 definitive attempts, and 56.5% of its 4,371 attempts are ambiguous. An old rule gave 0 of 80 (development data with known defects).

The fifth chart shows the HTTP client on detector pages, in both rule periods together. A definitive attempt has a pass or a fail. Most attempts of this client are ambiguous, because a page that runs its check in JavaScript gives it no readable detector verdict. Compare clients on definitive attempts, and give the ambiguous share beside each rate.

failure modes

problemcausecorrection
A tool gets a pass on almost each visit to a detector page.The rule checks only that the page loaded or that a score showed.Read the detector verdict. Run the rule against the five fixed observations.
The harder a site blocks, the more passes the oracle gives.A negative-only rule passes on an empty block page.Give inconclusive on an empty observation. Add a positive co-assertion.
No client ever passes a demo page.The page never issues a token, so the rule cannot pass.Give a solver credit only when the attempt drove it and the page accepted its token.
The oracle fails a short reply that is correct.A size floor applies to a detector page.Read the detector verdict, and compare the fails of the oracle with it.
The block rate of one page changes sharply.The rule changed between two rule periods.Store the rule period with each rate, and never pool across the change.
The blame for fails moves to a different layer.The rule period changed the blocking layer.Give the blocking layer for each rule period.
A client with no JavaScript gets a zero score.The oracle reads a missing detector verdict as a fail.Give inconclusive when the detector verdict is missing, and report the ambiguous share.

check questions

  1. Explain why a content assertion alone cannot give a correct verdict on a detector page.

    sample answer

    A detector page loads for each visitor, also for a bot, so its status, size, and title pass for each client. The content of the page is its own conclusion about the visitor. Thus the oracle must read the detector verdict with a verdict rule.

  2. A verdict rule is only notContains "bot". The site sends an empty block page. What does the old shape give, and what does the correct shape give?

    1. Fail, and then fail
    2. Pass, and then inconclusive
    3. Inconclusive, and then pass
    4. Pass, and then pass
    answer

    b. Pass, and then inconclusive

    The empty page does not hold the word "bot", so the negative-only rule passes. The correct shape gives inconclusive on an empty observation, and it asks for a positive co-assertion.

  3. A rule gives a pass on a page with a clear human verdict and also on a page with a clear bot verdict. Name the fault and give a correction.

    sample answer

    The rule is vacuous: it cannot fail for any client. A rule that checks only that a score shows has this fault. The correction is a positive assertion on the detector verdict, for example contains "verdict: human".

  4. A detector page shows a human verdict, and stage 1 finds a definitive marker of a challenge page. What does the hybrid policy give?

    1. Pass, because the detector verdict is human
    2. Ambiguous, because the two inputs disagree
    3. Fail, with the blocking layer of stage 1
    answer

    c. Fail, with the blocking layer of stage 1

    A definitive block of stage 1 wins over the detector verdict. The fail names the layer of stage 1.

  5. The block rate of one detector page is much higher in a new rule period. The browsers did not change. What do you do with the two rates?

    1. Report each rate with its rule period, and do not pool them
    2. Report the mean of the two rates
    3. Keep only the higher rate, because it is newer
    answer

    a. Report each rate with its rule period, and do not pool them

    The change comes from the oracle, not from the clients. A rate has a meaning only in its rule period, so the two rates stay apart.

exercise

exercise Do this task on paper or in your own lab, with synthetic data only. Do not send a request to a site.

The three rules:

  • Rule A: matches "score: [0-9]+"
  • Rule B: notContains "bot"
  • Rule C: contains "verdict: human" and notContains "bot"

The four observations:

  • Observation 1: an empty body
  • Observation 2: no observation
  • Observation 3: verdict: human, score: 88
  • Observation 4: verdict: bot, score: 12
  1. Give the verdict of each rule on each observation with the old shape: no third result.
  2. Give the verdict of each rule with the new shape of the first code example.
  3. Write which rule is vacuous, and the reason.
  4. Write which rule is negative-only.
  5. Write a correction for each broken rule.
sample answer

The answer uses the rules of the first code example.

With the old shape, rule A fails on observations 1 and 2, and passes on 3 and 4. Rule B passes on 1, 2, and 3, and fails on 4. Rule C fails on 1 and 2, passes on 3, and fails on 4.

With the new shape, observations 1 and 2 give inconclusive for each rule. Rule A still passes on 3 and 4. Rule B gives inconclusive on each observation, because it has no positive assertion. Rule C passes on 3 and fails on 4.

Rule A is vacuous: it gives the same result on a human verdict and on a bot verdict. Rule B is negative-only. The correction for both is rule C. It reads the detector verdict with a positive assertion, and it keeps the negative check beside it.

sources

  1. My model of the detector verdict, the shapes of a verdict rule, the test with five fixed observations, and the hybrid policy, 2026-11 (not public).
  2. Benchmark platform, data (my test system): stored attempts on detector pages under two rule periods, and a development audit, 2026-11 (not public).
  3. Benchmark platform, design (my test system): the hybrid policy of a detector page, 2026-11 (not public).