Skip to content

Methods and checksMethods

How every result is reached and what it was checked against, app by app.

Methods and checks pages

How Drybench captures a public file

When a capture runs, what it keeps, how two captures are compared, when a capture is held for a person, and what a change record does not claim. The capture log lists the files Drybench names on this site.

  1. A scheduled job fetches the file from its publisher.
  2. The file is read and checked. A file that is not what was expected fails, and nothing of it is kept as the file's text.
  3. Its rows are compared with the last accepted capture. If they fall by more than a fifth, the capture is held for a person.
  4. Otherwise its text is kept if it differs from the last capture, with a record of the capture, and the rows added, no longer listed or changed are recorded under the capture's date.

When a capture runs

Each file is captured by a scheduled job, once or twice a day. Where the publisher states when it updates a file, the job runs after that time.

Requests to a publisher are spaced out and retried a set number of times, and no request starts after a fixed deadline, so every run ends inside its time limit.

A scheduled check fails when a file's last successful capture is older than its allowance, so a capture that stops is seen.

What a capture keeps

The file's text, apart from any column the file's own page says is left out, normalised so that two captures compare line by line: the header first and the rows sorted, with the encoding it was read in recorded. The text is kept only when it differs from the last capture.

Beside it, a record of the capture: the address it came from, a SHA-256 hash of the file as served and of the text kept, its size, the publisher's Last-Modified date where the server sends one, the number of rows and the time of the capture.

Each run also writes one line for each file: whether it changed, was unchanged or failed.

A file published as a PDF or in an old spreadsheet format is kept whole, and only when it changes.

The captures are kept in Drybench's own repository, apart from the site's code.

How two captures are compared

Each row is identified by key columns chosen for its file. Two captures of a file give three kinds of difference: a row added, a row no longer listed, and a row with the same key whose other cells changed.

Where a file lacks its key columns, or two rows share a key, those rows are identified by their whole text, so a change to one of them reads as a row no longer listed and a row added.

A file's first capture is its baseline. It records no differences, and no row in it is shown as added.

When a capture is held for a person

A capture fails, and the last accepted text stays as it was, when what was served is not the file expected: another kind of file, a part missing, or rows of the wrong width.

When a file's rows fall by more than a fifth against its last accepted capture, the capture is held: the last accepted text stays as it was, no difference is recorded, and what was served is kept aside for a person to read.

A person who has read it may accept it, and its differences are then recorded as that run's. Otherwise it stays held until the publisher serves the whole file again, which then reads as unchanged.

On these pages a held capture is a sentence, never rows.

What a change record is, and is not

A change record says what a file held at one capture and not at another, row by row. It matches the file as captured, and it is what was recorded, not a statement by the publisher.

It is not the publisher's current record. For that, go to the publisher's own page.

A difference is dated by the first capture that showed it, which can be a day or more after the publisher made the change.

A capture date is a UTC date: the date on which the capture run started, given to every file that run reads, and a week runs from Monday to Sunday by those dates. A run that starts before midnight UTC and reads a file after midnight gives that capture the earlier date. Where a file is captured twice a day, two captures can share a date.

A row no longer listed is recorded as no longer listed in the file as captured on that date. That is not an event in the world, and no cause is given. A date in a row is the publisher's, as written; a capture date is the capture's. The two are labelled apart.

A file's record starts at its first capture. Nothing earlier is held.

Stop dates

Each capture has a stop date. From that date the capture stops, or stops if a condition set when it began is met. Some stop dates are proposed and not yet decided. The capture log gives the stop date of each file it lists, and says which.

What a reader cannot check

The captures are kept in a private repository. A reader can open a publisher's file as it is served now, but not Drybench's earlier captures of it.