skip to content

diagnose a collector from its results · lesson 8 of 9 · sources checked 2026-11-22

silent failure and the change below the page

This lesson sorts the failures that show no block, and builds a monitor for a target change that the visible page does not show.

purpose

A failure with no block page can pass a check of the status alone. A site can also change a part below the page, while the visible page stays the same. You must read the content, and check the parts that the page does not show.

objectives

  1. List the five classes of silent failure.
  2. Select a check for each class: the oracle, a control twin, or a relation between two outputs.
  3. Build a monitor from a script inventory, an interface contract, and a structure baseline.
  4. Write a change record that starts a measurement, not a full collection.

new terms

metamorphic relation
A rule that links the outputs of two related inputs when no expected output exists.
script inventory
A list of the scripts that a target page loads, with a hash or a behavior identity for each script.
interface contract
The recorded request and response shape of each target endpoint that a collector uses.
structure baseline
The recorded structure of a page template, used to find a change that the visible page does not show.

how it works

A result can fail with no visible change. This has two readings. The first diagram shows them side by side.

  1. A silent failure: the site answers with a normal page, but the content or the flow is wrong.
  2. A change below the page: the visible page is the same, but a script, an endpoint, or a template changed.

the classes of silent failure

A silent failure shows no block signature. I use five classes:

  • a page verdict that says bot, inside a normal page;
  • wrong content with a success code;
  • an empty result, for example a list with no items;
  • a stale error status over real content;
  • a flow that does not advance, for example a form that sends and then shows the same step.

The fourth class is the reverse of the other four. The content is real, but the status says error. Thus a check of the status alone gives a false fail.

checks for a silent failure

The success oracle decides from the content, not from the status. For example, it asks for the expected item count and the page title. An empty list with status 200 is then a fail.

A control twin runs the same configuration two times at the same time. When the twins disagree, the cause is noise or the site, not the configuration.

A metamorphic relation helps when no expected output exists. For example, a search for "red shoe" must give no more items than a search for "shoe". A result that breaks the relation is wrong, also with status 200.

A defender can also take no visible action. One cloud firewall documents a rule action that counts a matching request and does not decide if the request passes or gets a block. The other rules then go on Amazon Web Services, source 1. Thus a rule in count mode alone gives no sign in the answer to the client.

the change below the page

A target can change a part that the page does not show. For example, a new script loads, an endpoint renames a field, or a template gets a new structure. The page looks the same, but the extractor or the configuration starts to fail.

The monitor has five checks, as the second diagram shows:

  • a script inventory, with a hash of each script that the page loads;
  • an interface contract for each endpoint that the collector uses;
  • a structure baseline for each template;
  • a synthetic flow on a schedule, which runs the steps of the real work;
  • selector health: each selector still finds its element.

Each check writes to one change record. A finding starts a measurement of that change, not a new full collection. Measure first, and then decide which part of the own system must change.

what the monitor costs

Each check reads the target, so each check puts load on it. Keep the checks few. For example, a structure baseline can read the pages that the work already collects.

Three other lessons own similar monitors. The monitor of completed work is in Silent failure: a monitor watches failure, not silence (not yet published). The drift canary is in Drift: targets, detectors, and tools change (not yet published). The regression suite of the extractor is in The extraction regression suite and selector drift (not yet published).

the two sides

automation sidedetection side
A failure can show no block page, so the oracle must read the content, not the status. A monitor finds a change below the page before the work fails.A defender can answer with a page that looks normal: a decoy, an empty result, or a later action. A synthetic flow on a fixed schedule from a known place is a pattern that the target can learn.

design decisions

optiongaincostwhen it is correct
Status check onlySimple and fastEach silent failure counts as a pass, and a stale error status counts as a fail.Never as the only check
Success oracleIt finds wrong and empty content.Each page type must have its expected facet.Each target
Control twinIt separates noise from a change of the configuration.Two attempts in place of oneBefore you read a difference as real
Metamorphic relationIt finds a wrong result with no expected output.The relation must be true for the target.Search and list pages
Script inventory and interface contractThey find a change that the page does not show.One baseline for each page and endpointEach target that the work uses each day
Synthetic flow on a scheduleIt finds a change of the steps.Traffic, and a pattern that the target can learnA flow with more than one step

diagram

A matrix of two readings against three columns: what you see, what is true, and the check or monitor. A silent failure shows a normal page, but the content or the flow is wrong. Its checks are the oracle, a control twin, and a relation. A change below the page shows the same page, but a script, an endpoint, or a template changed. Its monitors are the inventory, the contract, the baseline, and the flow.

two readings of a failure with no visible change, and the check for each reading
readingwhat you seewhat is truecheck or monitor
Silent failureA normal page with a success codeThe content or the flow is wrongSuccess oracle, control twin, relation
Change below the pageThe same visible pageA script, endpoint, or template changedInventory, contract, baseline, flow
A silent failure and a change below the page look the same in the result. Each reading has its own check.source: My model of the two readings of a failure with no visible change

the monitor of a change below the page: five checks feed one change record

Each check of the monitor writes to one change record, and a finding starts a measurement.source: My model of a monitor for a change below the page

code example

The example compares a synthetic baseline of one lab page with a synthetic capture of today. It runs three checks of the monitor and writes one change record.

m49-x12-monitor.tstypescript

A monitor for a change below the page. It has a script inventory with hashes, an interface contract check on a recorded response, and a structure baseline diff.

import { createHash } from "node:crypto";

// Hidden-change monitor on synthetic captures of one lab page.
// Three checks: script inventory, interface contract, structure baseline.
type Capture = {
  scripts: Record<string, string>; // script name -> script text
  response: Record<string, unknown>; // recorded body of one endpoint
  structure: string[]; // tag paths of the page template
};

const sha = (text: string) => createHash("sha256").update(text).digest("hex").slice(0, 12);
const shape = (body: Record<string, unknown>) =>
  Object.entries(body).map(([k, v]) => `${k}:${Array.isArray(v) ? "array" : typeof v}`).sort();

const baseline: Capture = {
  scripts: { "app-script": "render(items)", "check-script": "verify(v1)" },
  response: { items: [], total: 0, next: "" },
  structure: ["main", "main>ul.list", "main>ul.list>li", "main>nav.pager"],
};

const today: Capture = {
  scripts: { "app-script": "render(items)", "check-script": "verify(v2)", "new-script": "collect()" },
  response: { items: [], total: "0", cursor: "" },
  structure: ["main", "main>div.grid", "main>div.grid>article", "main>nav.pager"],
};

const changes: string[] = [];

// 1. Script inventory: a new, missing, or changed hash.
const inv = (c: Capture) => Object.fromEntries(Object.entries(c.scripts).map(([p, t]) => [p, sha(t)]));
const before = inv(baseline);
const after = inv(today);
for (const p of new Set([...Object.keys(before), ...Object.keys(after)])) {
  if (!(p in before)) changes.push(`script inventory: new script ${p}`);
  else if (!(p in after)) changes.push(`script inventory: missing script ${p}`);
  else if (before[p] !== after[p]) changes.push(`script inventory: changed hash ${p}`);
}

// 2. Interface contract: each field and its type must stay the same.
const want = shape(baseline.response);
const got = shape(today.response);
for (const f of want) if (!got.includes(f)) changes.push(`interface contract: missing ${f}`);
for (const f of got) if (!want.includes(f)) changes.push(`interface contract: new ${f}`);

// 3. Structure baseline: tag paths that left or came into the template.
const gone = baseline.structure.filter((t) => !today.structure.includes(t));
const added = today.structure.filter((t) => !baseline.structure.includes(t));
if (gone.length || added.length)
  changes.push(`structure baseline: ${gone.length} paths gone, ${added.length} paths new`);

console.log(`change record: ${changes.length} findings`);
for (const c of changes) console.log(`- ${c}`);
console.log(changes.length ? "next step: measure the change before the next work item" : "no change");

output

The count of findings, one line for each finding, and the next step.

change record: 7 findings
- script inventory: changed hash check-script
- script inventory: new script new-script
- interface contract: missing next:string
- interface contract: missing total:number
- interface contract: new cursor:string
- interface contract: new total:string
- structure baseline: 2 paths gone, 2 paths new
next step: measure the change before the next work item

The output shows a changed script, a new script, a renamed field, a field with a new type, and a new template structure. The visible page can be the same in each case.

data

silent failures as a share of attempts, by page and by tool class

status of this figure: measured by me

silent failures as a share of attempts, by page and by tool classby test page (sample of 11695)page 1100%page 299.6%page 392.6%page 480.3%page 579.8%page 666.9%page 748.7%page 817.2%page 917.1%page 106.3%page 110%unit: %by tool class (sample of 11695)http client89.7%plain driver66.8%protocol or attach61.1%patched driver54.4%modified build29.9%unit: %

lines: interval, level 0.95

source: Benchmark platform, data (my test system): silent failure share of definitive attempts; date 2026-11-03; sample of 11,695; condition: 13 public test pages, not commercial sites. Silent is partly a property of test pages: they answer with a normal page and give the verdict in the content. Definitive attempts only.

data table
silent failures as a share of attempts, by page and by tool class
seriespage or tool class%interval
by test pagepage 110099.7 to 100 (level 0.95)
by test pagepage 299.699 to 99.8 (level 0.95)
by test pagepage 392.690.9 to 94 (level 0.95)
by test pagepage 480.377.7 to 82.6 (level 0.95)
by test pagepage 579.877.3 to 82.1 (level 0.95)
by test pagepage 666.964.1 to 69.6 (level 0.95)
by test pagepage 748.745.7 to 51.6 (level 0.95)
by test pagepage 817.214.7 to 20.1 (level 0.95)
by test pagepage 917.114.9 to 19.4 (level 0.95)
by test pagepage 106.35 to 7.8 (level 0.95)
by test pagepage 1100 to 0.3 (level 0.95)
by tool classhttp client89.787.2 to 91.8 (level 0.95)
by tool classplain driver66.864.5 to 69.1 (level 0.95)
by tool classprotocol or attach61.159.3 to 62.8 (level 0.95)
by tool classpatched driver54.452.9 to 55.8 (level 0.95)
by tool classmodified build29.927.8 to 32.1 (level 0.95)
A failure is silent when no block signature shows and a later check fails. Intervals are Wilson 95%. Page numbers are local to this chart. The chart is not a ranking of products.

The first chart holds measured values of the benchmark platform, my test system, on public test pages. It gives the share of silent failures by test page and by tool class.

Silent is partly a property of these pages. They answer with a normal page and give the verdict in the content. Thus the chart does not show the share on a real site.

median time to the first alarm for each planted change and monitor

status of this figure: measured by me

median time to the first alarm for each planted change and monitorinterface change: interfacecontract2.972interface change: selectorhealth2.972template structure:structure baseline3.271gate rule change: syntheticflow5.303script change: scriptinventory6.339template class: structurebaseline6.385template class: selectorhealth6.385hidden step token: interfacecontract6.565interface change: syntheticflow11.298hidden step token: syntheticflow16.016template class: syntheticflow16.878unit: s

source: Lab result of this course: own lab target with planted changes and own monitors; date 2026-11-15; sample of 30; condition: Capture monitors read a lab target every 8 s and a synthetic flow ran every 20 s. One shared host. The agent planted each change, so the chart shows the method.

data table
median time to the first alarm for each planted change and monitor
change and monitors
interface change: interface contract2.972
interface change: selector health2.972
template structure: structure baseline3.271
gate rule change: synthetic flow5.303
script change: script inventory6.339
template class: structure baseline6.385
template class: selector health6.385
hidden step token: interface contract6.565
interface change: synthetic flow11.298
hidden step token: synthetic flow16.016
template class: synthetic flow16.878
Each point is the median of 5 trials with one planted change below the page. Only monitors that found the change show. Times depend on the declared cadences.

The second chart is a lab result of this course, on an own lab target. The changes were planted, so the chart shows the method.

No one monitor found each kind of change. The synthetic flow was the only monitor that found the change of a gate rule. The script inventory was the only one that found the change of a script.

failure modes

problemcausecorrection
A page verdict that says bot counts as a pass.The check reads the status, not the content.Let the success oracle decide.
A real page counts as a fail.A stale error status stays over real content.Read the content before the status.
An empty list counts as data.The oracle has no expected item count.Give each page type its expected facet.
A difference looks like a change of the configuration.One attempt only, with no twin.Run a control twin.
The extractor fails with no change on the page.An endpoint or a template changed below the page.Keep an interface contract and a structure baseline.
A change starts a full collection again.The change record has no measurement step.Measure the change first, then decide.

check questions

  1. List the five classes of silent failure.

    sample answer

    The classes are a page verdict that says bot, wrong content with a success code, and an empty result. The other two are a stale error status over real content and a flow that does not advance.

  2. A search for "red shoe" gives more items than a search for "shoe". Both pages have status 200. Which check finds this fault?

    1. A check of the status
    2. A metamorphic relation
    3. A script inventory
    4. A structure baseline
    answer

    b. A metamorphic relation

    The narrower search must give no more items than the wider search. A result that breaks this relation is wrong, also with status 200.

  3. A page has status 503, the correct title, and the full list of items. What does the success oracle give?

    1. A pass, with a stale error status
    2. A fail by the status
    3. A block
    4. An empty result
    answer

    a. A pass, with a stale error status

    The oracle decides from the content. The content is real, so the status is a stale error status, and a check of the status alone gives a false fail.

  4. An endpoint now sends the field "cursor" in place of "next". The visible page is the same. Which check of the monitor finds the change?

    1. The script inventory
    2. The structure baseline
    3. The interface contract
    4. Selector health
    answer

    c. The interface contract

    The interface contract records the fields and types of each endpoint. A missing field and a new field are findings.

  5. The monitor writes a change record with one finding. What is the next step?

    sample answer

    Measure that change first, and then decide which part of the own system must change. The finding does not start a new full collection.

exercise

exercise Do this task on paper, with the synthetic records below. Do not send a request to a site.

The records of one lab page:

  • Record 1: status 200, the page title is correct, and the list has 24 items.
  • Record 2: status 200, the page title is correct, and the list has 0 items.
  • Record 3: status 200, and the page text says "automated access detected".
  • Record 4: status 503, the page title is correct, and the list has 24 items.
  • Record 5: status 200 and 24 items, but the endpoint now sends cursor in place of next.
  1. For each record, write pass or fail by the success oracle.
  2. For each fail, write its class of silent failure.
  3. For record 5, write which check of the monitor finds the change.
sample answer

The answer uses the five classes and the checks of the monitor.

Record 1 is a pass. Record 2 is a fail: an empty result. Record 3 is a fail: a page verdict that says bot. Record 4 is a pass by the content, and its status is a stale error status. A status check alone gives a false fail.

Record 5 is a pass by the content today. The interface contract finds the renamed field. Write a change record, and measure the change before the extractor fails.

sources

  1. Using rule actions in AWS WAF, Amazon Web Services, documentation, read 2026-11-22
  2. My model of the classes of silent failure, the checks for each class, and the monitor of a change below the page, 2026-11 (not public).
  3. Benchmark platform, data (my test system): the silent failure share of definitive attempts on public test pages, 2026-11 (not public).
  4. Lab result of this course: the time to the first alarm for planted changes on an own lab target, 2026-11 (not public).