skip to content

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

  1. Name the four change classes of a collector.
  2. Write, for each class, what it changes, who sees the change, its test, and how to roll it back.
  3. Explain why a new browser image is a new client population.
  4. 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:

classwhat it changeswho sees the change first
Collector codeThe shared code of all targets: fetch, retry, pace, and record formatThe data team, and each defender of each target
ExtractorThe code or the rules that read one page form into a recordThe data team only
Browser imageThe browser, its mode, and the packages that run each attemptEach defender of each target
Target policyThe settings of one target, for example its pace and its volume capThe 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 sidedetection 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

optiongaincostwhen it is correct
One release path for all changesThe 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 classEach 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 digestThe 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 testThe 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.

the four change classes: what each changes, who sees it, its test, and its way back
change classwhat it changeswho sees itits testits way back
Collector codeFetch, retry, pace, record formatData team and each defenderOld and new code on one inputLast good code version
ExtractorThe rules for one page formData team onlyRun on the stored pagesLast good rules, run again
Browser imageBrowser, mode, and packagesEach defenderLab target with its own detectionLast good image by digest
Target policyPace and cap of one targetData team and one defenderCheck against the stored pagesLast good target profile
Only the extractor class stays inside the data team. The other three classes reach a defender.source: My model of the four change classes of a collector

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.

the release of a collector beside the release of a detection rule, at each step
stepcollector releasedetection rule release
ClassifyOne of four change classesRule, model, list, or page script
TestThe test layer of the classTest on recorded traffic
First releaseA small part of the targetsCount mode: record, no action
WidenMore targets by a written ruleOne group of requests at a time
Way backLast good version of the classTurn the rule off
The two teams follow the same steps, but the detection team can watch a rule before it acts.source: My model of the release steps of a collector and of a detection rule

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.

m55-x01-change-log.tstypescript

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: ok

The output shows two faults. Entry c-102 names no exact image, and entry c-103 claims no change with no test.

failure modes

problemcausecorrection
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

  1. Name the four change classes of a collector.

    sample answer

    Collector code, extractor, browser image, and target policy.

  2. A change adds a new rule that reads one page form into a record. Who sees this change first?

    1. Each defender of each target
    2. The data team only
    3. 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.

  3. How do you roll back a browser image change?

    1. Put back the last good target profile.
    2. Run the extractor again on the stored pages.
    3. 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.

  4. 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.

  5. A change makes the record step faster, and its author writes "no change of behavior". What do you do before the release?

    1. Accept the claim, because the change is only about speed.
    2. Run a test that compares the old and the new version on the same input.
    3. 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".
  1. Write the change class of each change.
  2. Write who sees each change first.
  3. Write the test that each change must pass before its release.
  4. 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

  1. My model of the four change classes of a collector, with the test and the way back of each class, 2026-11 (not public).