Skip to content

v0.2.1

Latest

Choose a tag to compare

@jehrr jehrr released this 16 Oct 11:10
ffad07e

Behaviour change. A page that serves fewer than twelve ads while the
response's own total says more remain now makes the run incomplete:
stop_reason: short_page, status partial, exit 6 (was status
complete, exit 0). The ads it did serve are kept.

Behaviour change. --allow-empty now writes an empty file only for a
genuine empty result, and its sidecar says status: empty (was
failed). A blocked or failed run with --allow-empty no longer
replaces an earlier output with an empty file. It keeps its exit code
(3 or 5) and leaves that output and its sidecar untouched.

Fixed

  • --allow-empty could destroy the output it exists to protect. With
    the flag, a blocked run or a run that never obtained its content wrote
    an empty JSON and CSV over the previous good result, plus a sidecar
    saying failed. A genuinely empty, complete run (the library's own
    total: 0) was labelled failed too, so diff_runs.py refused it. Now:

    • A finished run whose answer was nothing writes [], a header-only
      CSV and a sidecar with status: empty and its stop_reason. It
      exits 4.
    • Blocked (3), never obtained (5) and partial (6) keep their exit codes.
      No empty row file is written for them, and an earlier output at the
      same --out is kept byte for byte, sidecar included.
    • When nothing earlier exists, a blocked or failed --allow-empty run
      writes only a sidecar, with status: blocked or failed.
    • diff_runs.py compares an empty run like a complete one.
  • A listing cut short was reported as a complete region. On
    2026-10-13 the library served France two ads on page 1, with
    has_more: false beside total: 17,071,905, and Germany eleven on
    page 2. The run stopped those regions as has_more_false and ended
    complete. The site's page size is twelve (45 of the 47 pages in the
    canary artifacts from 2026-10-09 to 2026-10-15 carried exactly twelve)
    and it documents no cap, so all three engines now record such a page
    under short_pages in the sidecar and stop that region as
    short_page. A short last page that brings the count up to the stated
    total is still the end of the listing, and the run is complete.

Changed

  • The canary's per-region floor follows the page contract, not a
    count.
    It required at least 12 ads per region. It now requires a full
    first page of twelve and at least one new ad on page 2 in every region,
    fails on any recorded short page, and re-checks every dumped payload
    for a short page the run did not record.
  • The canary no longer requires creative_type on every row. Some
    records carry no creative at all: on 2026-10-15, 4 of 71 had
    videos: [] and image_urls: [] in the payload itself, and the
    parser's null is the honest value for them. The canary now checks the
    column against the dumped record. It must be null exactly when the
    record carries neither a video nor an image.