skip to content

the detection model · lesson 3 of 5 · sources checked 2026-11-20

decisions: the worst layer decides

This lesson shows how a site combines the results of many checks into one decision, and why a predicted result must carry its calibration.

status of this lesson: documented in my test system

purpose

A clean result at one layer does not save a visit when a different layer fails. A model that adds up good results predicts passes that the live site refuses. The worst-layer rule and the coherence of a visitor across layers explain these refusals.

objectives

  1. Explain the worst-layer rule with the three checks of a predicted matrix.
  2. Separate a runtime enforcer from a score widget.
  3. Explain why a check with no data is not a pass.
  4. Compare the two combine rules worst wins and noisy-OR.
  5. Explain why a predicted matrix must show its calibration next to each result.

new terms

worst-layer rule
The rule that the final result is fail if one layer fails. A layer with no result does not change the final result.
coherence
Agreement between all signals that a visitor presents, across all layers.
predicted matrix
A table of tool by vendor verdicts that a model computes without a live run.
static analysis
Analysis of a script from its source text, without a run of the script.
runtime enforcer
A detection product that blocks on universal automation tells even if its loader does not reference them.
score widget
A challenge product that lowers a score on a tell but does not block alone.
fold
A computation that reduces many rows to one value or to a few values.
noisy-OR
A combine rule that treats each probe as an independent chance of a bot verdict.
calibration
The agreement rate between a model's predicted verdicts and the measured verdicts.

how it works

Each layer gives one of three results: pass, fail, or no result. The worst-layer rule makes one verdict from them:

  • Fail, if one layer fails.
  • Pass, if no layer fails and one layer or more passes.
  • No result, if no layer gives a result.

example Transport passes, the JavaScript fingerprint fails, and behavior gives no result. The final result is fail. One strong layer cannot rescue a layer that fails.

three checks of a predicted matrix

A predicted matrix gives a verdict for each tool and each vendor without a live test. The benchmark platform, my test system, builds its predicted matrix from three checks:

  1. Static overlap: the static analysis of the vendor script, against the automation artifacts of the tool.
  2. Runtime enforcement: a vendor class that blocks on universal automation artifacts, also when its script does not read them.
  3. Fingerprint coherence: the agreement of the fingerprint values that the tool presents.

The platform combines the three checks with the worst-layer rule. For example, a tool with no overlap and no runtime enforcer still gets a fail when its fingerprint values do not agree.

runtime enforcers and score widgets

A runtime enforcer blocks on a universal automation artifact. Static analysis cannot see this, because the script of the vendor does not reference it.

A score widget lowers a score on an automation artifact, but does not block alone. Thus a score widget gives a lower result than a block, not a fail. For example, the code example gives such a result the value DEGRADED.

no data is not a pass

A check with no input gives no data. The result names DETECTED, DEGRADED, UNDETECTED, and NO-DATA are the names of the code example. In a fold, the value NO-DATA does not change the result of the other checks. When all checks give NO-DATA, the result is NO-DATA, not UNDETECTED.

For example, a tool with NO-DATA, UNDETECTED, and NO-DATA gets UNDETECTED from one known check only. Thus a missing check never adds a pass. If you count no data as a pass, you report a confidence that you do not have.

two combine rules

A combine rule makes one value from the bot chance of each check. The bot chance is a value from 0 to 1: the chance that the visitor is a bot, by that check. I show two rules:

  • Worst wins: the result is the maximum over the checks.
  • Noisy-OR: the result is 1 minus the product of (1 minus the chance) over the checks. Each check is an independent chance of a bot verdict.

example Three checks give the bot chances 0.2, 0.3, and 0.5. Worst wins gives 0.5. Noisy-OR gives 1 - (0.8 x 0.7 x 0.5) = 1 - 0.28 = 0.72.

Worst wins ignores weak evidence that agrees. Noisy-OR adds it, but each signal must then be independent. The fold of the benchmark platform uses worst wins. A full design combines many checks and keeps a store of calibration values. More detail is in The decision chain and its latency budget.

coherence across layers

Coherence is the agreement of all signals across the layers. A value can be normal alone and still contradict a different signal.

For example, a JA4 value shows one browser family, and the User-Agent header shows a different family. The timezone does not agree with the IP location. No single value is wrong, but the set is wrong.

calibration of a predicted result

A predicted matrix is a model, not a measurement. Its calibration is the agreement rate of its predicted verdicts with the live verdicts. The calibration can fall as more tools and pages come in.

Thus show the calibration next to each predicted result, and keep measured results and predicted results apart. For example, a predicted UNDETECTED with a low calibration value is a weak claim.

the two sides

automation sidedetection side
A clean result at one layer does not help if a different layer fails. The coherence across layers matters more than one perfect value. Each value that does not agree is still a signal for the site.Combine the layers with worst wins or with noisy-OR. Keep a calibration value next to each predicted result.

design decisions

optiongaincostwhen it is correct
Worst winsIt is simple, and one fail always shows.It ignores weak evidence that agrees.A fold that must explain each fail
Noisy-ORMany weak signals add up.Each signal must be independent, or the result is too high.A score from many small checks
An average of the layersIt gives a smooth number.One strong layer hides a layer that fails.Never for a block decision
Count no data as a passThe matrix has fewer empty cells.It reports a confidence that you do not have.Never
Show the calibration next to each predicted resultA reader sees how far to trust the model.The model must get live results for a part of its cells.Each predicted matrix

diagram

worst-wins fold of three checks with the no-data guard

No data never adds a pass. The worst known result of the three checks decides.source: My model of the worst-wins fold with the no-data guard

A matrix of seven signals: user agent, JA4, the navigator vendor value, the WebGL renderer, the timezone, the locale, and the IP location. Each row gives the layer of the signal and the signals that it must agree with.

coherence across layers: each signal must agree with signals of other layers
signallayermust agree with
User-Agent headerTransportJA4, navigator vendor value
JA4 valueTransportUser-Agent header
Navigator vendor valueJavaScript fingerprintUser-Agent header
WebGL rendererJavaScript fingerprintUser-Agent header, platform
TimezoneJavaScript fingerprintIP location, locale
LocaleJavaScript fingerprintIP location, timezone
IP locationIP reputationTimezone, locale
Coherence compares signals of different layers. A set of values can fail when no single value is wrong.source: My model of coherence across layers

code example

The example folds the three checks of four synthetic tools with worst wins. Then it computes the two combine rules for one set of bot chances.

The tools, the checks, and the values are synthetic. No part describes a real product.

m14-x03-worst-wins.tstypescript

Fold three checks with worst wins and a no-data guard, with a lower result for a score widget. Compare worst wins with noisy-OR.

// Synthetic model of a three-check fold with the worst-wins rule.
// Each check gives DETECTED, DEGRADED, UNDETECTED, or NO-DATA.
// NO-DATA does not change the result. All checks with NO-DATA give NO-DATA.
// The tools, the checks, and the values are synthetic.
type Result = "DETECTED" | "DEGRADED" | "UNDETECTED" | "NO-DATA";
const rank: Record<Exclude<Result, "NO-DATA">, number> = { UNDETECTED: 0, DEGRADED: 1, DETECTED: 2 };

interface Cell { tool: string; staticOverlap: Result; runtimeEnforcer: Result; coherence: Result }

function fold(c: Cell): Result {
  const known = [c.staticOverlap, c.runtimeEnforcer, c.coherence].filter(
    (r): r is Exclude<Result, "NO-DATA"> => r !== "NO-DATA");
  if (known.length === 0) return "NO-DATA";
  return known.reduce((worst, r) => (rank[r] > rank[worst] ? r : worst), "UNDETECTED" as Exclude<Result, "NO-DATA">);
}

// Two combine rules for bot probabilities from three checks.
const worstWins = (p: number[]): number => Math.max(...p);
const noisyOr = (p: number[]): number => 1 - p.reduce((acc, x) => acc * (1 - x), 1);

const cells: Cell[] = [
  { tool: "tool 1", staticOverlap: "UNDETECTED", runtimeEnforcer: "UNDETECTED", coherence: "DETECTED" },
  { tool: "tool 2", staticOverlap: "UNDETECTED", runtimeEnforcer: "DEGRADED", coherence: "NO-DATA" },
  { tool: "tool 3", staticOverlap: "UNDETECTED", runtimeEnforcer: "NO-DATA", coherence: "UNDETECTED" },
  { tool: "tool 4", staticOverlap: "NO-DATA", runtimeEnforcer: "NO-DATA", coherence: "NO-DATA" },
];
for (const c of cells) {
  console.log(`${c.tool}: ${c.staticOverlap} / ${c.runtimeEnforcer} / ${c.coherence} -> ${fold(c)}`);
}

const p = [0.2, 0.3, 0.5];
console.log(`worst wins of ${p.join(", ")}: ${worstWins(p).toFixed(2)}`);
console.log(`noisy-OR of ${p.join(", ")}: ${noisyOr(p).toFixed(2)}`);

output

One line for each synthetic tool with its fold result, and the two combine values.

tool 1: UNDETECTED / UNDETECTED / DETECTED -> DETECTED
tool 2: UNDETECTED / DEGRADED / NO-DATA -> DEGRADED
tool 3: UNDETECTED / NO-DATA / UNDETECTED -> UNDETECTED
tool 4: NO-DATA / NO-DATA / NO-DATA -> NO-DATA
worst wins of 0.2, 0.3, 0.5: 0.50
noisy-OR of 0.2, 0.3, 0.5: 0.72

I ran the code with the Node runtime and the flag --experimental-strip-types. Tool 1 has two clean checks and one fail, and it gets DETECTED. Tool 4 has no data at each check, and it gets NO-DATA, not a pass.

data

A comparable unit has a predicted result and a live result. The first state counts cells of the matrix, and the second state counts tools. The first date is the freeze date of a stored data set.

agreement of the predicted matrix with live detector results at two states

status of this figure: documented in my test system

Table of two states. First state: 11 comparable cells, 9 where the model and the detector agree. Second state: 12 comparable tools, 6 where they agree.

agreement of the predicted matrix with live detector results at two states
countfirst state (cells)second state (tools)
comparable1112
agree96

source: Benchmark platform, design (my test system): calibration of the predicted matrix against real detector verdicts; period 2026-06-11 to 2026-08-07; condition: At the first state, a unit is a cell of the predicted matrix. At the second state, a unit is a tool. Only units with a predicted and a live result count.

At the first state, 9 of 11 comparable cells agree. At the second state, 6 of 12 comparable tools agree. The units differ, so the counts do not add. The states date from 2026-06-11 and 2026-08-07.

The agreement of the predicted matrix with the live results fell from the first state to the second state. Thus a predicted result without its calibration value says more than the model knows.

failure modes

problemcausecorrection
The predicted matrix says UNDETECTED for tools that live tests flag.Static analysis misses runtime enforcement, and fingerprint coherence is not in the fold.Add a runtime enforcer class and a check of fingerprint coherence, and fold with worst wins.
The agreement of the predicted matrix with live results falls.A model that infers results gets worse as more pages and tools come in.Show the calibration next to each predicted value. Keep measured and predicted results apart.
More human-like input does not repair a refusal.The site refused on coherence and timing, not on behavior.Examine coherence before the behavior layer.
A cell with no data counts as a pass.The fold reads NO-DATA as UNDETECTED.Keep NO-DATA as its own result.
A score from many checks is too high.Noisy-OR treats checks that depend on each other as independent.Use noisy-OR only for independent checks, or use worst wins.

check questions

  1. Static overlap and runtime enforcement give a pass for a tool. Fingerprint coherence gives a fail. Explain the final result with the worst-layer rule.

    sample answer

    The final result is fail. The worst-layer rule gives a fail when one check fails. The two passes cannot rescue the failed check.

  2. A product lowers a score on an automation artifact, but does not block alone. Which class is it?

    1. A runtime enforcer
    2. A score widget
    3. A fraud scorer
    answer

    b. A score widget

    A score widget lowers a score and does not block alone. A runtime enforcer blocks on a universal automation artifact.

  3. All three checks of a cell give NO-DATA. Explain why the result of the fold is NO-DATA and not UNDETECTED.

    sample answer

    A check with no input gives no data, and no data never adds a pass. NO-DATA does not change the result of the other checks. When no check has a known result, the fold has nothing to assert. If you count no data as a pass, you report a confidence that you do not have.

  4. Three checks give the bot chances 0.2, 0.3, and 0.5. Which pair gives worst wins and then noisy-OR?

    1. 0.5 and 0.5
    2. 0.2 and 0.72
    3. 0.5 and 0.72
    4. 1.0 and 0.28
    answer

    c. 0.5 and 0.72

    Worst wins gives the maximum, 0.5. Noisy-OR gives 1 - (0.8 x 0.7 x 0.5) = 0.72, because it adds weak evidence that agrees.

  5. Explain why a predicted matrix must show its calibration next to each result.

    sample answer

    A predicted matrix is a model, not a measurement. Its agreement with live verdicts can fall as more tools and pages come in. The calibration shows how far a reader can trust each predicted result.

exercise

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

The two changes, one record in each item:

  • A new cell before tool 4: tool 5, static overlap DEGRADED, runtime enforcement NO-DATA, coherence UNDETECTED.
  • New bot chances: [0.1, 0.1, 0.1] in place of [0.2, 0.3, 0.5].
  1. Save the code example in an empty folder of your lab.
  2. Add the cell of tool 5 to the list cells, before tool 4.
  3. Change the bot chances in the line const p.
  4. Run the code with Node and the flag --experimental-strip-types.
  5. Record the result of tool 5 and the two combine values.
  6. Write which combine rule adds the three weak chances.
sample answer

The answer uses the synthetic cells of the code example.

Tool 5 gets DEGRADED, because DEGRADED is the worst known result and NO-DATA does not count. Worst wins gives 0.10. Noisy-OR gives 0.27, because 1 - (0.9 x 0.9 x 0.9) = 1 - 0.729. Noisy-OR adds the three weak chances, and worst wins keeps only the largest one.

sources

  1. My model of the worst-layer rule, the two combine rules, and coherence across layers, 2026-11 (not public).
  2. Benchmark platform, design (my test system): the three checks of the predicted matrix, the worst-wins fold with the no-data result, and its calibration, 2026-11 (not public).