ADR-0104: Suggestions can be turned off, and each CI has a context
Status: Accepted
Date: 2026-11-05
Amends: 0071: which contexts a run is in; 0076: when config:suggest proposes changes
Context
The gate suggests changes in several places: config:suggest’s proposals,
what stopping a doomed pull request’s run would have saved (ADR-0103), and
the files most of the suite runs through that nothing holds. A team that has
weighed a suggestion sees it on every run. And a setting that should differ
between the CIs a project runs in, such as one CI’s runners being slower,
could only differ by local, CI, pull request and default branch.
Decision
-
suggest.enabledturns every suggestion on or off, on by default. Off,config:suggestreads no ledger and says suggestions are off, the verdict warns of no saving a doomed run missed, and it names no file that nothing holds. Problems, failures and the warnings that are no suggestion stay as they are.doctorandinitsay what they find whatever it is, as a reader asked them. -
Each CI has a context block:
github,gitlab,bitbucket,azure,buildkite,jenkinsandcircleci. A run in CI laysci, then the block of the CI its plan is for, whether the config names the plan or the gate detects it, thenprormain. A run whose plan is no CI’s own, such asjson, lays no CI’s block.--contexttakes each, laid overci. The PHP builder writes them withContext::gitHub(),gitLab(),bitbucket(),azure(),buildkite(),jenkins()andcircleCi(). -
So one CI’s suggestions are turned off with its block, as
contexts.gitlab.suggest.enabled: false, and any other key can differ by CI the same way.
Alternatives considered
- A
suggestionssection besidesuggest. Two sections named alike would split one subject. - A map of environments under
suggestalone. Each setting that needs to differ by CI would need its own map; one context per CI serves them all with the precedence ADR-0071 already gives.
Consequences
A team can silence what it has weighed without losing what fails or warns of a problem.
A setting can differ by CI. The CI’s block sits under pr and main,
so what a pull request’s run does still wins over what a CI does.