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
- List the five classes of silent failure.
- Select a check for each class: the oracle, a control twin, or a relation between two outputs.
- Build a monitor from a script inventory, an interface contract, and a structure baseline.
- 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.
- A silent failure: the site answers with a normal page, but the content or the flow is wrong.
- 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 side | detection 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
| option | gain | cost | when it is correct |
|---|---|---|---|
| Status check only | Simple and fast | Each silent failure counts as a pass, and a stale error status counts as a fail. | Never as the only check |
| Success oracle | It finds wrong and empty content. | Each page type must have its expected facet. | Each target |
| Control twin | It separates noise from a change of the configuration. | Two attempts in place of one | Before you read a difference as real |
| Metamorphic relation | It finds a wrong result with no expected output. | The relation must be true for the target. | Search and list pages |
| Script inventory and interface contract | They find a change that the page does not show. | One baseline for each page and endpoint | Each target that the work uses each day |
| Synthetic flow on a schedule | It finds a change of the steps. | Traffic, and a pattern that the target can learn | A 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.
| reading | what you see | what is true | check or monitor |
|---|---|---|---|
| Silent failure | A normal page with a success code | The content or the flow is wrong | Success oracle, control twin, relation |
| Change below the page | The same visible page | A script, endpoint, or template changed | Inventory, contract, baseline, flow |
the monitor of a change below the page: five checks feed one change record
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.
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 itemThe 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
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
| series | page or tool class | % | interval |
|---|---|---|---|
| by test page | page 1 | 100 | 99.7 to 100 (level 0.95) |
| by test page | page 2 | 99.6 | 99 to 99.8 (level 0.95) |
| by test page | page 3 | 92.6 | 90.9 to 94 (level 0.95) |
| by test page | page 4 | 80.3 | 77.7 to 82.6 (level 0.95) |
| by test page | page 5 | 79.8 | 77.3 to 82.1 (level 0.95) |
| by test page | page 6 | 66.9 | 64.1 to 69.6 (level 0.95) |
| by test page | page 7 | 48.7 | 45.7 to 51.6 (level 0.95) |
| by test page | page 8 | 17.2 | 14.7 to 20.1 (level 0.95) |
| by test page | page 9 | 17.1 | 14.9 to 19.4 (level 0.95) |
| by test page | page 10 | 6.3 | 5 to 7.8 (level 0.95) |
| by test page | page 11 | 0 | 0 to 0.3 (level 0.95) |
| by tool class | http client | 89.7 | 87.2 to 91.8 (level 0.95) |
| by tool class | plain driver | 66.8 | 64.5 to 69.1 (level 0.95) |
| by tool class | protocol or attach | 61.1 | 59.3 to 62.8 (level 0.95) |
| by tool class | patched driver | 54.4 | 52.9 to 55.8 (level 0.95) |
| by tool class | modified build | 29.9 | 27.8 to 32.1 (level 0.95) |
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
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
| change and monitor | s |
|---|---|
| interface change: interface contract | 2.972 |
| interface change: selector health | 2.972 |
| template structure: structure baseline | 3.271 |
| gate rule change: synthetic flow | 5.303 |
| script change: script inventory | 6.339 |
| template class: structure baseline | 6.385 |
| template class: selector health | 6.385 |
| hidden step token: interface contract | 6.565 |
| interface change: synthetic flow | 11.298 |
| hidden step token: synthetic flow | 16.016 |
| template class: synthetic flow | 16.878 |
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
| problem | cause | correction |
|---|---|---|
| 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
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.
A search for "red shoe" gives more items than a search for "shoe". Both pages have status 200. Which check finds this fault?
- A check of the status
- A metamorphic relation
- A script inventory
- 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.
A page has status 503, the correct title, and the full list of items. What does the success oracle give?
- A pass, with a stale error status
- A fail by the status
- A block
- 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.
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?
- The script inventory
- The structure baseline
- The interface contract
- 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.
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
cursorin place ofnext.
- For each record, write pass or fail by the success oracle.
- For each fail, write its class of silent failure.
- 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
- Using rule actions in AWS WAF, Amazon Web Services, documentation, read 2026-11-22
- 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).
- Benchmark platform, data (my test system): the silent failure share of definitive attempts on public test pages, 2026-11 (not public).
- Lab result of this course: the time to the first alarm for planted changes on an own lab target, 2026-11 (not public).