change management for a collector · lesson 1 of 6 · sources checked 2026-11-30
the four change classes and their risks
This lesson sorts each own change of a collector into one of four change classes, each with its risk, its test, and its way back.
purpose
A collector changes for many reasons, and each change has a different risk. Some changes touch only the data. Other changes touch what a defender sees on each target. You must know which kind of change you release before you can choose its test and its way back.
objectives
- Name the four change classes of a collector.
- Write, for each class, what it changes, who sees the change, its test, and how to roll it back.
- Explain why a new browser image is a new client population.
- Put each own change of a collector into one class, with a reason.
new terms
- client population
- The distribution of the client surfaces of all attempts of a fleet, as a defender can count it.
how it works
A collector is the code that gets pages from targets and makes records. I sort each own change of a collector into one of four classes. Each change class has its own risk:
| class | what it changes | who sees the change first |
|---|---|---|
| Collector code | The shared code of all targets: fetch, retry, pace, and record format | The data team, and each defender of each target |
| Extractor | The code or the rules that read one page form into a record | The data team only |
| Browser image | The browser, its mode, and the packages that run each attempt | Each defender of each target |
| Target policy | The settings of one target, for example its pace and its volume cap | The data team and the defender of that one target |
A target policy is the target profile of one target. More detail is in The target profile.
who sees the change
The last column of the table gives the risk for a defender. An extractor change can break the records, but a site cannot see it. A browser image change can leave each record the same, but each site can see it.
For example, a release changes only the mode of the browser. Each record stays correct. But each request now comes from a different client. Thus the release is a change for each defender.
a new image is a new client population
A defender counts the clients that come to a site. A surface is a value that a site can read, for example the browser version or the screen size. The client population is the distribution of the client surfaces of all attempts of a fleet.
A new browser image changes some of these values for each attempt. Thus a new image is a new client population. While a release is only on a part of the fleet, a defender can see two client forms from one fleet.
a claim of no change must have a test
A change can say "no change of behavior". For example, a change makes the record step faster, and its author writes that the results do not change. A faster step can change a timing, an order, or a retry. Each of these can change a result.
Thus I treat each change as a change of behavior until a test shows otherwise. The test compares the old version and the new version on the same input.
the test and the way back for each class
Each class has its own test. A test layer is one class of test in a test plan. For example, an extractor change runs first on stored pages, and a browser image change runs first on a lab target with its own detection.
A collector code change runs the old and the new code on one input. A target policy change is checked against the stored pages. More detail on the layers is in The test layers of a collector.
Each class also has its own way to roll back:
- Collector code: release the last good version of the code.
- Extractor: put back the last good rules, and run the extractor again on the stored pages.
- Browser image: start the attempts again on the last good image, by its digest.
- Target policy: put back the last good version of the target profile.
The way back for a browser image must have the exact image of each attempt. A version name can point to a different image later. A digest is a hash of the image content, so it names one image only.
the record of each change
The change log holds each own change with its class, its time, its versions, and its scope. It also holds each supplier notice, but a supplier notice is not an own change. For example, an entry holds the class "extractor", the time, the versions "ex-4" and "ex-5", and the scope "article targets".
For a browser image, the entry holds the image digest and the browser mode. Without them, nobody can know later which client ran an attempt. The code example shows such an entry.
the detection side has its own classes
A detection team also releases changes: rules, models, lists, and the script on the page. Each of these has a risk, a test, and a way back. For example, a detection team can release a new rule in count mode first. The rule records each match and takes no action. More detail is in Release a rule in count mode (not yet published).
the two sides
| automation side | detection side |
|---|---|
| A change class table shows which releases touch the data and which touch the client population. Each class gets its own test and its own way back. | A detection team has its own change classes: rules, models, lists, and the script on the page. It can release a new rule in count mode first. |
design decisions
| option | gain | cost | when it is correct |
|---|---|---|---|
| One release path for all changes | The process is simple. | A small extractor fix waits for the full test of a browser image. | Only for a very small collector |
| One path for each change class | Each change gets the test that fits its risk. | The team keeps four paths and four ways back. | For a collector with many targets |
| Name each image by its digest | The change log names one exact client. | A digest is long and hard to read. | Always for the browser image class |
| Accept a claim of no change without a test | The release is fast. | A hidden change of a result goes live. | Never |
diagram
The first diagram puts the four classes against what each changes, who sees it, its test, and its way back.
A matrix of the four change classes. Rows: collector code, extractor, browser image, and target policy. Columns: what it changes, who sees it, its test, and its way back. Collector code and browser image reach each defender. Target policy reaches the defender of one target. Extractor reaches the data team only.
| change class | what it changes | who sees it | its test | its way back |
|---|---|---|---|---|
| Collector code | Fetch, retry, pace, record format | Data team and each defender | Old and new code on one input | Last good code version |
| Extractor | The rules for one page form | Data team only | Run on the stored pages | Last good rules, run again |
| Browser image | Browser, mode, and packages | Each defender | Lab target with its own detection | Last good image by digest |
| Target policy | Pace and cap of one target | Data team and one defender | Check against the stored pages | Last good target profile |
The second diagram puts the release of a collector beside the release of a detection rule, step by step.
A matrix with two columns, a collector release and a detection rule release, and five rows: classify, test, first release, widen, and way back. At the first release the collector changes the clients that a site sees, and the rule runs in count mode with no action.
| step | collector release | detection rule release |
|---|---|---|
| Classify | One of four change classes | Rule, model, list, or page script |
| Test | The test layer of the class | Test on recorded traffic |
| First release | A small part of the targets | Count mode: record, no action |
| Widen | More targets by a written rule | One group of requests at a time |
| Way back | Last good version of the class | Turn the rule off |
code example
The example gives a type for one change log entry, and checks synthetic entries against the rules of the class. All names, digests, and targets are synthetic.
A change log entry with its change class, versions, image digest, flag states, scope, and way back, and a check of each entry.
type ChangeClass = "collector-code" | "extractor" | "browser-image" | "target-policy";
type Entry = {
id: string;
changeClass: ChangeClass;
time: string;
versions: { from: string; to: string };
imageDigest?: string;
browserMode?: string;
flags: Record<string, boolean>;
scope: string[];
rollbackRef: string;
claimsNoBehaviorChange: boolean;
testRef?: string;
};
// The rules of each class, from the lesson text.
function faults(e: Entry): string[] {
const out: string[] = [];
if (e.changeClass === "browser-image") {
if (!e.imageDigest?.startsWith("sha256:")) out.push("no image digest");
if (!e.browserMode) out.push("no browser mode");
}
if (e.claimsNoBehaviorChange && !e.testRef) out.push("claim of no change has no test");
if (e.scope.length === 0) out.push("no scope");
if (!e.rollbackRef) out.push("no way back");
return out;
}
const entries: Entry[] = [
{ id: "c-101", changeClass: "extractor", time: "2026-01-05T10:00Z",
versions: { from: "ex-4", to: "ex-5" }, flags: {}, scope: ["article"],
rollbackRef: "ex-4", claimsNoBehaviorChange: false },
{ id: "c-102", changeClass: "browser-image", time: "2026-01-06T09:00Z",
versions: { from: "img-7", to: "img-8" }, browserMode: "headless",
flags: { newWait: false }, scope: ["product", "listing"],
rollbackRef: "img-7", claimsNoBehaviorChange: false },
{ id: "c-103", changeClass: "collector-code", time: "2026-01-07T14:00Z",
versions: { from: "core-12", to: "core-13" }, flags: {}, scope: ["all"],
rollbackRef: "core-12", claimsNoBehaviorChange: true },
{ id: "c-104", changeClass: "browser-image", time: "2026-01-08T08:00Z",
versions: { from: "img-8", to: "img-9" }, imageDigest: "sha256:0f1e2d3c",
browserMode: "headless", flags: {}, scope: ["event"],
rollbackRef: "img-8", claimsNoBehaviorChange: false },
];
for (const e of entries) {
const f = faults(e);
console.log(`${e.id} ${e.changeClass}: ${f.length ? f.join("; ") : "ok"}`);
}output
One line for each synthetic entry, with its class and the faults of the entry.
c-101 extractor: ok
c-102 browser-image: no image digest
c-103 collector-code: claim of no change has no test
c-104 browser-image: okThe output shows two faults. Entry c-102 names no exact image, and entry c-103 claims no change with no test.
failure modes
| problem | cause | correction |
|---|---|---|
| A change that only made a step faster changed the results. | The change claimed no change of behavior, and no test compared the two versions. | Treat each change as a change of behavior until a test shows otherwise. |
| Nobody can know which client ran an attempt. | The change log holds the version name of the image, but no digest and no browser mode. | Put the image digest and the browser mode in each entry of the browser image class. |
| A browser image change goes out with the light test of an extractor fix. | The team has one release path for all changes. | Give each change class its own test and its own way back. |
| A defender sees two client forms from one fleet, and the team did not plan it. | The team classified a new image as a data change. | Classify each new image as a change of the client population. |
check questions
Name the four change classes of a collector.
sample answer
Collector code, extractor, browser image, and target policy.
A change adds a new rule that reads one page form into a record. Who sees this change first?
- Each defender of each target
- The data team only
- The defender of one target only
answer
b. The data team only
An extractor change can break the records, but a site cannot see it. Thus only the data team sees it.
How do you roll back a browser image change?
- Put back the last good target profile.
- Run the extractor again on the stored pages.
- Start the attempts again on the last good image, by its digest.
answer
c. Start the attempts again on the last good image, by its digest.
The way back for a browser image must have the exact image. A digest names one image only, but a version name can point to a different image later.
Explain why a new browser image is a new client population.
sample answer
A new image changes some client surfaces of each attempt, for example the browser version. The client population is the distribution of these surfaces over all attempts of a fleet. Thus the new image changes what a defender counts, also when each record stays the same.
A change makes the record step faster, and its author writes "no change of behavior". What do you do before the release?
- Accept the claim, because the change is only about speed.
- Run a test that compares the old and the new version on the same input.
- Put the change into the browser image class.
answer
b. Run a test that compares the old and the new version on the same input.
A faster step can change a timing, an order, or a retry. Thus each change is a change of behavior until a test shows otherwise.
exercise
exercise Do this task on paper. Use the five synthetic changes of a lab collector below. Do not send a request to a site.
- Change 1: a new rule reads the price field of one page form.
- Change 2: the retry step of all targets waits 2 seconds more.
- Change 3: the browser in the image goes from headed mode to headless mode.
- Change 4: the volume cap of one lab target goes from 500 to 300 pages each day.
- Change 5: a change makes the record step faster, and its author writes "no change of behavior".
- Write the change class of each change.
- Write who sees each change first.
- Write the test that each change must pass before its release.
- Write how to roll back each change.
sample answer
The answer uses the five synthetic changes of the task.
Change 1 is an extractor change. Only the data team sees it. Run the extractor on the stored pages, and roll back to the last good rules.
Change 2 is a collector code change, and each defender of each target can see the new timing. Test the old and the new code on one input, and roll back to the last good code version. Change 4 is a target policy change, and only the defender of that one target sees it. Check it against the stored pages, and put back the last good target profile.
Change 3 is a browser image change, and it is a new client population. Record the image digest and the browser mode, and roll back to the last good image by its digest.
Change 5 is a collector code change. Its claim of no change must have a test that compares the old and the new version on the same input. Roll back to the last good code version.
sources
- My model of the four change classes of a collector, with the test and the way back of each class, 2026-11 (not public).