ADR-0337: A pull request can be held to its new code alone
Status: Accepted Date: 2026-11-29
Context
A pull request and a merge group are held to their trees’ floors and to their new code’s (ADR-0005, ADR-0022). The default branch is held to its trees’ floors on every push and schedule.
A change to what decides how the gate runs reaches every unit (ADR-0005). On such a pull request a survivor or an unjudged mutant on a line the change never touched fails the run, and the change waits on code it did not write.
Decision
newCode.alone, false by default, holds a pull request and a merge group to their new code alone. The verdict judges the new code againstnewCode.floorand shows each tree against its floor without failing on it, as awatchround does. The security sets are not held either.- A floor a command names still decides.
--securityand--suitehold what they hold. - Such a run judges the units that hold new code and none beside them. The units it would run that hold no line of new code are left out as a sample leaves units out (ADR-0020), each tree’s estimate counting them.
pre-pushis held as the push’s pull request will be: to its new code alone wherenewCode.aloneis on, running the same units.- No other run changes. A push or a schedule on the default branch and a run with no pull request are held to their trees and run every unit they reach, whatever the setting says.
- What fails a run beside a floor still fails it: a floor lowered
without its reason, a raise not committed where
baseline.improvementrequires it, a held unit its holding tests miss lines of, a unit a time budget left unjudged, and what cannot be judged. - The verdict names
newCode.aloneas a loose value in force (ADR-0142).
Consequences
- A pull request passes where its own lines are killed, and merges without waiting on survivors elsewhere in a tree.
- A survivor outside the new code, and one a changed test lets through in code the change did not touch, is found by the default branch’s run, not by the pull request.
- Where
newCode.aloneis false, a pull request is held to its trees and its new code, as before.