ADR 0053: A permanent record of the weekly runs, and missed weeks run later

  • Status: Accepted on 2026-11-29.
  • Date: 2026-11-29
  • SDD: 12; ADR 0046, 0047, 0052
  • Prompted by: findings B6, B7 and B8 of docs/design/hardening-2026-11.md

Context

Each week's run was kept only as a workflow artifact, gone after 90 days, and compared with nothing. The workflow ran on Mondays only, so a Monday GitHub's scheduler dropped was never run. The weekly page asked the beacon for the round of every week since the first, on every build, so it would grow slower each week and stop the site in a few years.

Decision

A record for each week, kept for good. tools/weekly_registry.py catch-up writes runs/<week>.json to a branch of its own, weekly-registry: the week, its status (PASS, or CHECK_FAILED when the week as drawn tests nothing), the generator, the round and its randomness, the relays that agreed, the commit and package version that ran it, the profile hash, the instant by the beacon's clock, and the report of both reference controls. A record is written once and never overwritten. A git branch is permanent, costs nothing, needs no service, and anyone can clone it.

Every day, every missing week. The workflow runs every day. It runs, oldest first and at most four in one go, each week from the first to this one that has no record, each from its own Monday's round, so a late run draws exactly what the week drew. Nothing is drawn again because a run came out badly. A week that could not be run is not recorded, says why, and is tried again the next day; the others are kept. Two triggers make one record: the job has one concurrency group that is never cancelled, and a week with a record is never run again.

The rounds are kept, and check themselves. randomness.json holds every round read, with its signature: a round's randomness is the SHA-256 of its signature, so a changed round is found without asking again. verify checks every record against its week, round, generator and scenarios, and verify --refetch asks the relays again. Reading a round now stops once two relays agree.

The page reads the record. It draws only the 53 weeks it shows, takes their rounds from the record, and asks the beacon only for a round not there. Each week's status is on the page, and a week not run yet says MISSING. Ten years of weeks build it without one more request.

Inactive repositories

GitHub turns off scheduled workflows in a public repository after 60 days with no activity in it. No commit is made only to look active. What there is instead: the records are real commits; a turned-off workflow shows in the Actions tab and is turned on again with gh workflow enable weekly; and nothing is lost while it is off, because the next run catches up every missing week, as above. A trigger from outside GitHub, such as a timer on the benchmark machine calling workflow_dispatch, would not depend on the scheduler at all; it needs a token on that machine, which is the owner's decision.

Not done

  • The record keeps the reference controls' weekly runs. A participant's runs of the week are kept in their own repository, by the participant workflow.
  • A trend over the weeks beyond the table on the page.