Skip to the content
Howdah

being built · no release yet

Search

Skip the list of pages

ADR-0060: A result carries only for the code it is of

Status: Accepted Date: 2026-11-03 Amends: 0005: its unit the change does not reach, which carries its newest result, and what a change off the default branch is read since

Context

ADR-0005 has a unit the change does not reach carry its newest result from the ledgers the run reads. The result was checked against the code on disk in two cases only: a unit a last-run change reads only from its own scope (ADR-0005), and a kill a time budget left unjudged (ADR-0008).

The default branch's ledger is as new as its last run that finished. A pull request's change is read from where its base branch stands now. Where the default branch had moved past its ledger, a unit whose source, tests or deciding files it changed in between was reached by no change, and carried a result judged before that change. On 2026-11-02, seven runs on main in a row were cancelled before they delivered a ledger, so pull requests in that time carried results of code main had since changed.

Decision

  1. What the default branch changed since its ledger reaches too. Off the default branch, the run reads what changed from the commit the default branch's ledger last passed at, besides its own change since the ref. Each file changed since that commit that the run's own change does not hold reaches what the same change in the run would reach, by ADR-0005's rules: a source file its unit, a test what its tests run, test support the tests that name it, and what decides how the gate runs everything. Each such reason says it is the default branch's: "On the default branch since its ledger last passed, at <commit>: …". Where git cannot tell what changed since that commit, every unit is reached. The run's new code is still only its own change. Where the ledger records no commit that passed, nothing more is read.
  2. An unreached unit carries a result only of its source as it is now. It carries the newest result, of the ledgers the run reads, whose digest of the unit's source is the digest the run takes now. Where no result is of that source, the unit is reached and runs. A result that records no digest of its source carries for no unit. This guards what rule 1 cannot see, such as a ledger that holds results newer than the commit it last passed at.
  3. Only the source is compared in rule 2. A result's digest of what decides every unit's mutant set (the gate, the config, the runner, what is installed) is not compared here. Proving compares it through the key (ADR-0007), and ADR-0030 has a lock file reach only what its moved packages reach. Comparing it here would run every unit after any such change.
  4. The plan and the verdict carry by the same rule. The plan records the source digest of every unit it carries. The verdict reads the ledgers again and carries each of those units the newest result of that source.
  5. A unit a last-run change reads only from its own scope keeps its rule: its own scope's result carries only where it records both the unit's source and its mutant set as they are now.

Alternatives considered

AlternativeWhy not
The digest check aloneA unit whose source is unchanged still carries a result judged by tests, or against what decides how the gate runs, that the default branch has changed since.
Have a change on the default branch reach the units that call what it changedA change of the run's own reaches only its own unit (ADR-0005), and the default branch's is read by the same rules.
Compare the mutant set's digest tooEvery lock-file or config change would run every unit, which ADR-0030 narrows.
Ask git what changed since the commit each result recordsA result records its commit only where the working tree held nothing more, and git may no longer hold it. The digest says what the result is of without either.
Carry the newest result whatever it is ofA pull request then judges code the default branch has changed with the result of the code before.

Consequences

  • A pull request whose base is newer than the default branch's ledger runs what the default branch changed since that ledger reaches, and its plan says so for each file.
  • A result from before its unit's last change no longer carries. The default branch's next run that finishes judges the unit again.
  • The plan holds one source digest for each unit it carries.