operations · lesson 3 of 9 · sources checked 2026-11-20
failure triage: attribution before publication
This lesson gives each failed attempt one cause, on the target, the tool, the proxy account, or the platform, before a result goes out.
status of this lesson: documented in my test systempurpose
A low pass rate looks like detection, but an empty proxy account or a browser that did not start gives the same number. A result that goes out with the wrong cause is wrong for each reader who uses it. You must find the cause of each failed attempt before the result goes out.
objectives
- Name the four legs that can cause a failed attempt.
- Keep an availability fact apart from an outcome, and an unknown error apart from a known class.
- Separate a terminal failure from a transient failure, and state the cost of a retry of each failure.
- Read a failure signature across tools, proxy providers, and sites.
- Apply a triage tree to a set of failed attempts before a result goes out.
new terms
- attempt
- One try of one configuration against one target, with its own browser session.
- driver
- Software that controls an unmodified browser through a protocol.
- gateway
- The provider endpoint that the client connects to and that selects an exit node.
- egress
- The network path and the source address through which a request leaves the client side.
- IP reputation
- The trust score that a site gives to an address from its network, its class, its list membership, and its history.
- availability fact
- A record that a tool did not start or a gateway refused, kept apart from the outcome.
- terminal failure
- A failure that cannot change on a retry, so the worker acknowledges it.
- transient failure
- A failure that can change on a retry, so the worker does not acknowledge it.
- configuration
- The set of factors of an attempt: the client, the browser build, the address class, the session state, the pace, and the entry path.
- failure signature
- A pattern of failures across tools, vendors, and sites that points to one cause.
- fleet burn
- The state where a site recognizes and blocks the measurement fleet itself.
- echo service
- A server that records the transport fingerprint and the source IP of a client and returns them to that client.
how it works
A failed attempt has one cause on one leg. A leg is one part of the path of the request. The four legs are:
| leg | example of a failure |
|---|---|
| The target | A detection change on the site gives a block page. |
| The tool | The browser did not start, or its driver broke. |
| The proxy account | The account has no credit, and the proxy refuses each request. |
| The platform | The worker ran an old build or a wrong setting. |
Triage gives each failed attempt one leg before a result goes out. The first diagram shows the tree. The tree asks five questions in this order:
- Did the tool start?
- Did the proxy gateway accept the request?
- Is there an egress block at the transport layer or at the IP reputation layer?
- Did the page give a block?
- Is the result readable?
availability is not an outcome
An availability fact records that a tool did not start or that a gateway refused. The attempt then never reached the page. Thus it is not a fail of the tool against the site.
For example, a proxy gateway answers with status 407. The status comes from the proxy, not from the target. Record it as the reason proxy-rejected on the proxy leg. Do not record a fail of the browser.
One status can have more than one cause. A bad credential, a malformed user field, and an account with no credit can each give status 407. Thus one status code is not proof of one cause.
Keep availability facts in their own record, with a closed list of reasons. Never add them as a fourth outcome value.
The first code example gives such a classifier. It returns no class for an unknown error, and it records no availability fact for it. An unknown error stays unknown. It does not go into a published rate until a person gives it a class.
terminal and transient failures
A terminal failure cannot change on a retry, for example launch deadline exceeded. A transient failure can change on a later retry, for example a connection reset.
A queue that retries each failure sends a job that cannot succeed again and again. Each retry is a new connection to the target and to the proxy. Each failure kind must have its own policy. A short list of terminal failures, the terminal list, gets no retry. More detail is in Queue design: job classes, delivery, and failure policy (not yet published).
failure signatures
A configuration is proven on a site when it passed that site before. A failure signature is a pattern of failures across tools, proxy providers, and sites that points to one cause:
- One provider fails with each tool: an account problem.
- One tool fails with each provider: a driver problem.
- Each proven configuration fails on one site: a fleet burn.
- Some configurations fail on one site: a detection change on that site.
For example, tool 1, tool 2, and tool 3 each fail through provider B on each site, and pass through provider A. The cause is the account of provider B, not detection. The second diagram gives the four signatures, and the second code example scores them.
A detector column where each tool gets the same result measures a shared cause, not the tools. More detail is in Detect that you are detected (not yet published).
an error is not a block
A site can refuse because of the rate of the test, not because of the tool. An error in the code that reads the page can also look like a wall.
For example, a test at a high request rate gets refusals, and a test after a pause at the normal rate passes. Thus test again after a pause before you call a site blocked.
layers that triage cannot see yet
The tree cannot find a block of the egress at the transport layer or at the IP reputation layer without a measurement of that path. For example, a block page and an egress block at the transport layer can give the same failed attempt.
An echo service gives that measurement. More detail is in Measure your own transport: the echo service (not yet published) and IP reputation inside a measurement system (not yet published).
what the benchmark platform showed
The benchmark platform, my test system, had these classes of a wrong cause:
- The gateway answered status 407, and the system recorded the attempt as a fail of the browser. Low scores for browser tools went into a result. The correction gave the reason
proxy-rejectedon the proxy leg. It also gave a script that marks past rows as not valid, and a check of the proxy before dispatch. - A browser that did not start left no row, no metric, and no log line with its name.
- Refusals with status 407 stayed in the stored results as fails, because no process marked those rows as not valid.
The first chart in "Data" gives the causes of the job throws and of the launch failures. Each class also must have its chain of evidence. More detail is in Reconstruct why an attempt failed: the class and the evidence chain (not yet published). A diagnosis excludes the causes in a set order, and a rule stops it. More detail is in Exclusion before attribution (not yet published).
the two sides
| automation side | detection side |
|---|---|
| Give each failure one leg before a result goes out. An empty proxy account, a broken driver, and a flagged egress address each look like detection. An availability fact and an unknown error stay out of the pass rate. | A real detection change breaks some configurations on one site. A fleet burn breaks each proven configuration on one site. The defender can cause the second pattern on purpose. Each retry of a failure that cannot change is one more connection that the target logs. |
design decisions
| option | gain | cost | when it is correct |
|---|---|---|---|
| Record each failure as a fail of the tool | Simple | Proxy faults and start faults go into the result as detection | Never |
| A separate record of availability facts with closed reasons | The pass rate counts only attempts that reached the page | One more record and one more counter | Each system that publishes a pass rate |
| A classifier that returns no class for an unknown error | No wrong class goes into a result | Unknown errors wait for a person | Each classifier of failures |
| Retry each failure | No list to keep | A terminal failure repeats on each retry | Never as the only policy |
| A score of failure signatures before a result goes out | It finds an account problem, a driver problem, and a fleet burn | It must have proven configurations for each site | Each run of more than one tool through more than one provider |
diagram
The first diagram is the triage tree for one failed attempt.
triage tree for one failed attempt
The second diagram gives the failure signatures.
A matrix of four failure patterns. One provider that fails with each tool points to an account problem. One tool that fails with each provider points to a driver problem. Each proven configuration that fails on one site points to a fleet burn. Some configurations that fail on one site point to a detection change.
| pattern of the failures | tools that fail | providers that fail | sites | points to |
|---|---|---|---|---|
| One provider fails with each tool | each tool | one provider | each site | account problem |
| One tool fails with each provider | one tool | each provider | each site | driver problem |
| Each proven configuration fails on one site | each tool | each provider | one site | fleet burn |
| Some configurations fail on one site | some tools | some providers | one site | detection change on the site |
code example
The two examples use synthetic error texts, tools, providers, and sites. No code sends a request.
The first example classifies availability facts and refuses to guess.
Classify an error as an availability fact from a closed list of reasons. Return no class for an unknown error, and record no availability fact for it.
// A classifier of availability facts that refuses to guess.
// It returns null for an unknown error, and the system records no availability fact.
// The error texts are synthetic.
type Reason = "tool-not-started" | "launch-deadline" | "proxy-rejected";
const RECOGNISERS: readonly { reason: Reason; test: RegExp }[] = [
{ reason: "tool-not-started", test: /browser exited at launch/i },
{ reason: "launch-deadline", test: /launch deadline exceeded/i },
{ reason: "proxy-rejected", test: /proxy (refused|rejected).*\b407\b/i },
];
function classifyUnavailability(error: string): Reason | null {
for (const r of RECOGNISERS) if (r.test.test(error)) return r.reason;
return null; // unknown: no guess
}
// Availability facts stay apart from the outcomes. No fourth outcome value.
const availabilityFacts: { attempt: string; reason: Reason }[] = [];
const failed: [string, string][] = [
["attempt-1", "browser exited at launch (code 1)"],
["attempt-2", "proxy rejected the tunnel: status 407"],
["attempt-3", "socket closed before the first byte"],
["attempt-4", "launch deadline exceeded after 120 s"],
];
for (const [attempt, error] of failed) {
const reason = classifyUnavailability(error);
if (reason === null) {
console.log(`${attempt}: unknown, no availability fact, the outcome path decides`);
} else {
availabilityFacts.push({ attempt, reason });
console.log(`${attempt}: availability fact ${reason}, no outcome row`);
}
}
console.log(`availability facts: ${availabilityFacts.length}, unknown: ${failed.length - availabilityFacts.length}`);output
The class of four synthetic errors, and the count of availability facts and unknown errors.
attempt-1: availability fact tool-not-started, no outcome row
attempt-2: availability fact proxy-rejected, no outcome row
attempt-3: unknown, no availability fact, the outcome path decides
attempt-4: availability fact launch-deadline, no outcome row
availability facts: 3, unknown: 1The second example scores the failure signature of each site from the results of proven configurations.
Score the failure signature of one site: an account problem, a driver problem, or a fleet burn where each proven configuration fails together.
// Failure signatures on one site. A proven configuration passed this site before.
// Tools, providers, and results are synthetic.
type Result = { tool: string; provider: string; proven: boolean; pass: boolean };
function signature(results: Result[]): string {
const proven = results.filter((r) => r.proven);
const failed = proven.filter((r) => !r.pass);
if (proven.length === 0) return "no proven configuration: no signature";
if (failed.length === proven.length) {
const tools = new Set(proven.map((r) => r.tool)).size;
const providers = new Set(proven.map((r) => r.provider)).size;
if (tools > 1 && providers > 1) return "fleet burn: each proven configuration fails";
}
const groupFails = (key: "tool" | "provider") => {
const keys = [...new Set(proven.map((r) => r[key]))];
return keys.filter((k) => proven.filter((r) => r[key] === k).every((r) => !r.pass));
};
const badProviders = groupFails("provider");
const badTools = groupFails("tool");
if (badProviders.length === 1 && badTools.length === 0) return `account problem: provider ${badProviders[0]} fails with each tool`;
if (badTools.length === 1 && badProviders.length === 0) return `driver problem: tool ${badTools[0]} fails with each provider`;
return `no single cause: ${failed.length} of ${proven.length} proven configurations fail`;
}
const grid = (fails: (t: string, p: string) => boolean): Result[] =>
["tool-1", "tool-2", "tool-3"].flatMap((tool) =>
["A", "B"].map((provider) => ({ tool, provider, proven: true, pass: !fails(tool, provider) })),
);
const cases: [string, Result[]][] = [
["site 1", grid((_t, p) => p === "B")],
["site 2", grid((t) => t === "tool-2")],
["site 3", grid(() => true)],
["site 4", grid((t, p) => t === "tool-1" && p === "A")],
];
for (const [site, results] of cases) console.log(`${site}: ${signature(results)}`);output
The signature of four synthetic sites.
site 1: account problem: provider B fails with each tool
site 2: driver problem: tool tool-2 fails with each provider
site 3: fleet burn: each proven configuration fails
site 4: no single cause: 1 of 6 proven configurations failI ran the two examples with the Node runtime and the flag --experimental-strip-types, with no argument. The first gives no class to the socket error. The second finds one signature on each of the first three sites, and no single cause on site 4.
data
The first chart gives the causes of two kinds of failure.
causes of job throws in one audit, against causes of launch failures
status of this figure: measured by me
source: Benchmark platform, data (my test system): one audit of job throws, and stored launch failures; date 2026-11-03; sample of 1,390; condition: Panel 1 shows the four causes that the audit names, not each throw line. The panels count different things. A launch failure means that the tool never started. A job throw happens after a job starts.
data table
| series | cause | value | unit |
|---|---|---|---|
| Job throws by cause (one audit) | proxy rejected | 440 | throws |
| Job throws by cause (one audit) | no endpoint in 120 s | 373 | throws |
| Job throws by cause (one audit) | navigation timeout | 357 | throws |
| Job throws by cause (one audit) | embed fetch failed | 220 | throws |
| Launch failures by cause (stored events) | browser exited at launch | 6940 | events |
| Launch failures by cause (stored events) | proxy rejected | 2750 | events |
| Launch failures by cause (stored events) | launch deadline | 637 | events |
| Launch failures by cause (stored events) | launch refused | 20 | events |
These are measured values of the benchmark platform. The two panels count different things. A launch failure means that the tool never started. A job throw is an error that ends a job after it starts.
Each panel gives the causes of one kind of failure. A proxy refusal occurs in both panels. Thus the proxy leg causes failures before and after the start of the tool. Measure the same split in your own system before you read a pass rate.
The second chart gives the attempts for each job of one audit.
attempts for each job before a list of terminal failures
status of this figure: measured by me
source: Benchmark platform, data (my test system): the attempts of the jobs of one audit; date 2026-11-16; sample of 75; condition: The value n counts the jobs of the audit. The audit covers the jobs through one proxy provider.
data table
| measure | attempts |
|---|---|
| average for each job | 2.4 |
| most for one job | 5 |
These are measured values of the benchmark platform. A queue that retries each failure sends a job that cannot succeed more than one time.
failure modes
| problem | cause | correction |
|---|---|---|
| Low scores for browser tools go into a result. | The gateway refused, and the system recorded the attempt against the browser. | Record proxy-rejected on the proxy leg, mark the past rows as not valid, and check the proxy before dispatch. |
| A browser that did not start leaves no row and no metric. | A start failure and a block give the same stored result. | Record an availability fact beside the outcome, never a fourth outcome value. |
| A job that cannot succeed runs again and again. | The retry rule does not separate a terminal failure from a transient failure. | Use a short list of terminal failures that get no retry. |
| Each tool fails through one provider. | The account of that provider has no credit or a bad credential. | Read the failure signature before you blame detection. |
| A site goes into a report as "blocked". | The test rate or an error in the code that reads the page caused the refusals. | Test again after a pause, at the normal rate. |
| A wrong class goes into the pass rate. | The classifier guessed a class for an unknown error. | Return no class for an unknown error, and keep the attempt out of the rate. |
check questions
Name the four legs that can cause a failed attempt, and give one example of a failure on each leg.
sample answer
The target: a detection change on the site gives a block page. The tool: the browser did not start, or its driver broke. The proxy account: the account has no credit, and the proxy refuses each request. The platform: the worker ran an old build or a wrong setting.
A proxy gateway answers with status 407. How do you record the attempt?
- As a fail of the browser against the site
- As a fourth outcome value next to pass, fail, and ambiguous
- As an availability fact with the reason proxy-rejected on the proxy leg
answer
c. As an availability fact with the reason proxy-rejected on the proxy leg
The status comes from the proxy, and the attempt never reached the page. An availability fact stays in its own record, never as a fourth outcome value.
Which failure is a terminal failure?
- A connection reset
- The error launch deadline exceeded
- A slow answer of the site
answer
b. The error launch deadline exceeded
A terminal failure cannot change on a retry. A connection reset and a slow answer can change on a later retry.
Each proven configuration fails on one site, with three tools and two providers. Each passes on the other sites. What does the failure signature point to?
- A fleet burn on that site
- A driver problem of one tool
- An account problem of one provider
- A detection change that breaks some configurations
answer
a. A fleet burn on that site
A driver problem fails one tool with each provider, and an account problem fails one provider with each tool. When each proven configuration fails on one site, the site recognizes the fleet.
A failed attempt has the error text socket closed before the first byte, and no reason of the closed list matches it. Describe what triage does with it before a result goes out.
sample answer
The classifier returns no class, and the system records no availability fact for it. The attempt stays unknown, and it does not go into the published pass rate. A person gives it a class before it can go in.
exercise
exercise Do this task on paper. Use only the synthetic attempts of the table. Each configuration in the table is proven on its site. Your lab has an echo service, and it shows no egress block for each attempt.
| no. | tool | provider | site | tool started | error or result |
|---|---|---|---|---|---|
| 1 | tool 1 | A | site 1 | yes | proxy rejected the tunnel: status 407 |
| 2 | tool 2 | A | site 1 | yes | proxy rejected the tunnel: status 407 |
| 3 | tool 3 | B | site 2 | no | browser exited at launch |
| 4 | tool 1 | B | site 3 | yes | block page |
| 5 | tool 2 | B | site 3 | yes | block page |
| 6 | tool 3 | A | site 3 | yes | block page |
| 7 | tool 2 | A | site 2 | yes | socket closed before the first byte |
- Put each attempt through the triage tree of the first diagram.
- Write the class of each attempt: availability fact, outcome, or unknown.
- Write the failure signature of attempts 1 and 2.
- Write the failure signature of site 3.
- Write which attempts can go into a published pass rate.
sample answer
The answer uses the triage tree and the failure signatures of "How it works".
Attempts 1 and 2 are availability facts with the reason proxy-rejected. Attempt 3 is an availability fact: the tool did not start. Attempts 4, 5, and 6 are outcomes with a page block. Attempt 7 is unknown, because no reason of the closed list matches it.
Attempts 1 and 2 show one provider that fails with two tools: an account problem of provider A, not detection. On site 3, each proven configuration fails, with three tools and two providers: a fleet burn.
Only attempts 4, 5, and 6 reached the page and have a class, thus only they can go into the pass rate. Attempt 7 waits for a person to give it a class.
sources
- My model of the legs of a failed attempt, the triage tree, availability facts, and failure signatures, 2026-11 (not public).
- Benchmark platform, code, documents, and data (my test system): the classes of a wrong cause, and one audit of failures and retries, 2026-11 (not public).