ADR 0054: Runs that are the same for everyone are kept

  • Status: Accepted on 2026-11-29.
  • Date: 2026-11-29
  • SDD: 12; ADR 0021, 0052
  • Prompted by: finding E20 of docs/design/hardening-2026-11.md

Context

Every benchmark runs each scenario and seed once with no agent, and every participant runs the two reference controls beside their gate. Both are deterministic: the same code, version and settings give the same run, byte for byte. Yet each was made again in every run, by every participant, on every change. In a participant's quick run with three gates, two thirds of the gated runs are the reference controls'.

Decision

bench run --cache DIR keeps each run without an agent and each run of a reference control (null_gate, static_allowlist, as installed) in DIR, and takes it from there the next time. The key is the SHA-256 of the benchmark version hashes, every setting that changes a run (scenarios, seeds, length, replay bounds, held-out variants, facility), the call's name, and a hash of every Python file of the installed agentic_datacenter packages. Any change to the code or a setting is another key. The settings a served gate reads (ADC_) are not in it: neither kind of run reads them.

Only what is the same for everyone. A gate is kept only if it is the reference control's own factory, not a gate that only has its name. A run of a participant's gate, or with a language-model agent, is never kept. A kept file for another key is not used.

The card is the same. A run with a cold cache, a warm one or none gives the same card, byte for byte.

The participant workflow keeps the cache between its runs with actions/cache, in the participant's own repository.

Measured

A quick run of OP-03 and AD-11 with a command gate and both reference controls, four jobs, on a laptop with eight cores: 104 s and 386 s of CPU with no cache, 115 s with a cold one, 50 s and 150 s of CPU with a warm one. The cards were identical.

Security

A cache is the cache of whoever runs: a participant's cache can only change that participant's own reference figures, which anyone can make again from the command on the report page, and which a reproduction would not confirm. No cache crosses from one repository to another.

Not done

  • Replays of decisions. Keyed by the state before a step and the step, they would save more, but the state of a run with a participant's gate is the participant's; kept for the reference controls, they are already in the kept run.
  • Compressing result files. The two published results hold 8 MB each, uncompressed. Writing them compressed would change what bench verify reads and what a reader downloads; that is a change of the record format, not a cost fix, and waits for a result directory format with a version.