ADR-0290: A plan can stop at its selection
Status: Accepted Date: 2026-11-19 Amends: 0067: replay plans the selection alone, in a clone of its own
Context
replay plans the newest merged pull requests again and reads, from each
plan, only its selection: the units it runs and the reasons it reached
them. A plan does far more after the selection. It measures the held units’
coverage, hands each shard its part of the map, takes the opening, first-run
and start-up timings, and cuts the shards. Measured on one replayed commit,
that work was about 160 s of a 257 s plan. Eleven such plans outlasted the
job’s 45 minutes. The job printed nothing until the timeout.
Decision
plan --selection-onlystops after the selection. It selects the units to run as a plan does: the reach, the proofs, sampling and pruning. It writes them with their reasons as one uncut shard. It measures no held coverage, hands nothing off and takes no timings.- A selection is never run.
plan.jsonmarks itselectionOnly, inside the plan’s digest, and every command that reads a plan,run --plan,verdict,leftoversandsurvivors, refuses a plan so marked, saying so.runwithout a plan takes no--selection-only. With no timings, a selection holds no mutant time limit.plan --selection-onlyhands the selection to no CI and writes no comment. - Replay plans the selection alone, in a clone of its own.
replay.pyrunsplan --selection-onlyin agit clone --localunder a temporary directory, so the job’s checkout and its branches stay as they are. It prints one line per plan as it ends, with its seconds and its units, ends a plan that outlasts its limit after printing the plan’s processes, and the job’s timeout is 20 minutes.
Consequences
- A replayed plan costs its selection: the keys, the reach and the proofs.
- The replay table has no shard column, since a selection cuts none.
Related
- ADR-0067: replay.