ADR-0122: A push spends only what its pull request did not
Status: Accepted Date: 2026-11-07 Amends: 0017: where a schedule is set Amends: 0005: rule 5, how a merged pull request’s record reaches the push Amends: 0006: what a plan hands a shard Amends: 0037: where the reads are applied Amends: 0054: item 1, which gates a push runs
Context
A push to the default branch re-ran work its pull request had just done on the same tree, each shard prepared the same coverage again, and a project had to remember to add the scheduled full run that reach relies on.
Decision
ci.scheduleis the full run’s schedule.init --ciwrites it, weekly unless the config says. A reusable workflow cannot hold a trigger, so the schedule belongs to the workflow that calls it, anddoctoradvises one where none exists.- A push drops the gates its pull request passed on the same tree. Where
the pushed tree is the head of the pull request it merged, each gate that
pull request ran on that tree and passed does not run again, since it ran
under the same workflow. A gate its scope skipped still runs, and so does
each gate whose matrix a pull request narrows, mutation, which judges by its
own proofs, and
tests and coverage, whose map SonarCloud and mutation read. Where GitHub cannot say, every gate runs. The repository variablePROVEN_PUSH, on unless it isfalse, sets this.
Related
- ADR-0017: what a run says it saved