Is automerge on by default with exceptions (today), or off by default and enabled per rule? Which checks must pass before a bot pull request merges unattended, and what waiting period applies?
Context
renovate.json already enables automerge, while CLAUDE.md and CONTRIBUTING.md say not to until a live run has shown that bot pull requests get Lint and Build.
The maintainer wants continuous delivery behind strong tests, which favours automerge where the tests are a real gate.
In the maintainer's environment repository each automerge exception was added after an unattended merge broke something. On a public repository an unattended merge also reaches consumers.
Candidates to adopt: a minimum release age, one group for all image inputs, a short description on every rule.
Part of #87
## Question
Is automerge on by default with exceptions (today), or off by default and enabled per rule? Which checks must pass before a bot pull request merges unattended, and what waiting period applies?
## Context
- `renovate.json` already enables automerge, while `CLAUDE.md` and `CONTRIBUTING.md` say not to until a live run has shown that bot pull requests get Lint and Build.
- The maintainer wants continuous delivery behind strong tests, which favours automerge where the tests are a real gate.
- In the maintainer's environment repository each automerge exception was added after an unattended merge broke something. On a public repository an unattended merge also reaches consumers.
- Candidates to adopt: a minimum release age, one group for all image inputs, a short description on every rule.
Whether that PR automerges is this ticket's to decide.
Measured cost of a manual pin PR: 23 minutes to 6h40m from merging the image input to merging the pin.
The last pin PR was opened by hand because the hourly PR limit was used up.
Input from [CI image pipeline: keep, simplify or replace](https://git.rkdr.net/Mortis/Kamino/issues/96):
- `image.yml` will dispatch Renovate right after it pushes a new image version ([ci(images): assign image versions in CI and open the pin PR right after a push](https://git.rkdr.net/Mortis/Kamino/issues/165)), so the pin-follow PR opens within minutes.
- Whether that PR automerges is this ticket's to decide.
- Measured cost of a manual pin PR: 23 minutes to 6h40m from merging the image input to merging the pin.
- The last pin PR was opened by hand because the hourly PR limit was used up.
Defame1297
was assigned by Claude2026-11-15 17:18:12 +00:00
Automerge already runs live: the Renovate bot merged #140, #141, #146 and #148 after the required checks passed. The "open item" in CLAUDE.md and CONTRIBUTING.md is met.
Gitea does the merge (Renovate's platformAutomerge, default on; Gitea 1.24+ merge_when_checks_succeed): #146 merged 51 seconds after it opened, the moment its last check turned green.
With "Block on outdated branch", Gitea keeps a scheduled merge waiting on an outdated pull request and never updates the branch itself; a rebase does not cancel the schedule. Renovate merges or rebases-then-merges about one pull request per run. Gitea has no merge queue.
An unattended merge does not reach consumers: they get the Collection only from a maintainer's tag, and tooling is in build_ignore.
An image-input pull request merges with Molecule selecting no scenario; the new image is first exercised by the pin pull request that follows.
Decision
Posture: automerge on by default, with named exceptions. renovate.json is where the posture lives (it is its own control); contributor docs point at it in one line.
Gate: branch protection's required checks (Lint, including check_bot_pr_diff.py; Build; Molecule) on an up-to-date branch, no approval. For an image input the real gate is the pin pull request's CI on the new image.
Throughput:renovate.yml also runs on every push to main, so each merge rebases the next outdated bot pull request at once. Group only updates that must move together (as ansible-core + ansible-lint); no group for convenience, no "all image inputs" group.
Waiting period: 3 days (minimumReleaseAge) for third-party updates; 0, stated explicitly, for git.rkdr.net/mortis/**.
Exceptions (never automerge): majors; each image.ymljob_image; kaniko; pre-commit hooks; lock-file maintenance; renovate.yml disabled. To be re-evaluated once the trigger is live.
Rule: short descriptions. Every Renovate rule has a description of at most two short sentences: why it exists, plus how it works when that is not obvious. Reason: the config is the documentation of the posture and must read at a glance. Held by: review.
Rule: a broken merge earns a test. When an unattended merge breaks main, fix it with a test or check that would have caught it; add an automerge exception only when no test can, and name the incident in its description. Reason: continuous delivery behind tests, not manual gates. Held by: review.
The two rules wait on Contributor doc set for where they live (map: Implementation owed).
## Resolution (2026-11-15)
Grilled with the maintainer.
### Facts found
- Automerge already runs live: the Renovate bot merged #140, #141, #146 and #148 after the required checks passed. The "open item" in `CLAUDE.md` and `CONTRIBUTING.md` is met.
- Gitea does the merge (Renovate's `platformAutomerge`, default on; Gitea 1.24+ `merge_when_checks_succeed`): #146 merged 51 seconds after it opened, the moment its last check turned green.
- With "Block on outdated branch", Gitea keeps a scheduled merge waiting on an outdated pull request and never updates the branch itself; a rebase does not cancel the schedule. Renovate merges or rebases-then-merges about one pull request per run. Gitea has no merge queue.
- An unattended merge does not reach consumers: they get the Collection only from a maintainer's tag, and tooling is in `build_ignore`.
- An image-input pull request merges with Molecule selecting no scenario; the new image is first exercised by the pin pull request that follows.
### Decision
- **Posture:** automerge on by default, with named exceptions. `renovate.json` is where the posture lives (it is its own control); contributor docs point at it in one line.
- **Gate:** branch protection's required checks (Lint, including `check_bot_pr_diff.py`; Build; Molecule) on an up-to-date branch, no approval. For an image input the real gate is the pin pull request's CI on the new image.
- **Throughput:** `renovate.yml` also runs on every push to `main`, so each merge rebases the next outdated bot pull request at once. Group only updates that must move together (as `ansible-core` + `ansible-lint`); no group for convenience, no "all image inputs" group.
- **Waiting period:** 3 days (`minimumReleaseAge`) for third-party updates; 0, stated explicitly, for `git.rkdr.net/mortis/**`.
- **Exceptions (never automerge):** majors; each `image.yml` `job_image`; kaniko; pre-commit hooks; lock-file maintenance; `renovate.yml` disabled. To be re-evaluated once the trigger is live.
- **Rule: short descriptions.** Every Renovate rule has a description of at most two short sentences: why it exists, plus how it works when that is not obvious. *Reason:* the config is the documentation of the posture and must read at a glance. *Held by:* review.
- **Rule: a broken merge earns a test.** When an unattended merge breaks `main`, fix it with a test or check that would have caught it; add an automerge exception only when no test can, and name the incident in its description. *Reason:* continuous delivery behind tests, not manual gates. *Held by:* review.
- **No ADR:** a one-line config change reverses it.
### Backlog
- [ci(deps): run Renovate on push to main, state the own-image wait, shorten rule descriptions](https://git.rkdr.net/Mortis/Kamino/issues/172)
- [Re-evaluate Renovate's never-automerge exceptions once the push trigger is live](https://git.rkdr.net/Mortis/Kamino/issues/173) (blocked by the above)
- The two rules wait on [Contributor doc set](https://git.rkdr.net/Mortis/Kamino/issues/103) for where they live (map: Implementation owed).
Review of the map (2026-11-15): corrections to this issue.
- **The `renovate.yml` exception is superseded by [Enforcement map for each prose-only rule](https://git.rkdr.net/Mortis/Kamino/issues/102).** The exception list says "`renovate.yml` disabled". The later decision: Renovate tracks its own image weekly, with a 3-day `minimumReleaseAge`, not automerged. Implemented by [ci(renovate): validate the config in Lint and let Renovate bump its own image weekly](https://git.rkdr.net/Mortis/Kamino/issues/188).
- **The "no approval" gate is partly superseded by [Recommended repository settings and branch protection](https://git.rkdr.net/Mortis/Kamino/issues/179).** The decision says the gate is the required checks, "no approval". With "Require approval from code owners" on, a bot pull request that touches a code-owned path waits for the maintainer's approval. How the two fit is open in [Code-owner approval against Renovate automerge, and where secrets live](https://git.rkdr.net/Mortis/Kamino/issues/210).
The question the last note left open is closed by Code-owner approval against Renovate automerge, and where secrets live: .gitea/** and images/** are code-owned, so the own-image pin-follow pull request and the weekly grouped Dockerfile FROM bumps wait for one maintainer approval; the pin-follow is a named never-automerge exception. The Python and collection pin files are not code-owned and keep automerging.
Review of the map (2026-11-17).
The question the last note left open is closed by [Code-owner approval against Renovate automerge, and where secrets live](https://git.rkdr.net/Mortis/Kamino/issues/210): `.gitea/**` and `images/**` are code-owned, so the own-image pin-follow pull request and the weekly grouped Dockerfile `FROM` bumps wait for one maintainer approval; the pin-follow is a named never-automerge exception. The Python and collection pin files are not code-owned and keep automerging.
Open after this review: an ansible-core minor bump automerges before Molecule has run on the new core ([What Molecule proves before a merge, and who acts on the nightly run](https://git.rkdr.net/Mortis/Kamino/issues/256)).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #87
Question
Is automerge on by default with exceptions (today), or off by default and enabled per rule? Which checks must pass before a bot pull request merges unattended, and what waiting period applies?
Context
renovate.jsonalready enables automerge, whileCLAUDE.mdandCONTRIBUTING.mdsay not to until a live run has shown that bot pull requests get Lint and Build.Input from CI image pipeline: keep, simplify or replace:
image.ymlwill dispatch Renovate right after it pushes a new image version (ci(images): assign image versions in CI and open the pin PR right after a push), so the pin-follow PR opens within minutes.Resolution (2026-11-15)
Grilled with the maintainer.
Facts found
CLAUDE.mdandCONTRIBUTING.mdis met.platformAutomerge, default on; Gitea 1.24+merge_when_checks_succeed): #146 merged 51 seconds after it opened, the moment its last check turned green.build_ignore.Decision
renovate.jsonis where the posture lives (it is its own control); contributor docs point at it in one line.check_bot_pr_diff.py; Build; Molecule) on an up-to-date branch, no approval. For an image input the real gate is the pin pull request's CI on the new image.renovate.ymlalso runs on every push tomain, so each merge rebases the next outdated bot pull request at once. Group only updates that must move together (asansible-core+ansible-lint); no group for convenience, no "all image inputs" group.minimumReleaseAge) for third-party updates; 0, stated explicitly, forgit.rkdr.net/mortis/**.image.ymljob_image; kaniko; pre-commit hooks; lock-file maintenance;renovate.ymldisabled. To be re-evaluated once the trigger is live.main, fix it with a test or check that would have caught it; add an automerge exception only when no test can, and name the incident in its description. Reason: continuous delivery behind tests, not manual gates. Held by: review.Backlog
Review of the map (2026-11-15): corrections to this issue.
renovate.ymlexception is superseded by Enforcement map for each prose-only rule. The exception list says "renovate.ymldisabled". The later decision: Renovate tracks its own image weekly, with a 3-dayminimumReleaseAge, not automerged. Implemented by ci(renovate): validate the config in Lint and let Renovate bump its own image weekly.Review of the map (2026-11-17).
The question the last note left open is closed by Code-owner approval against Renovate automerge, and where secrets live:
.gitea/**andimages/**are code-owned, so the own-image pin-follow pull request and the weekly grouped DockerfileFROMbumps wait for one maintainer approval; the pin-follow is a named never-automerge exception. The Python and collection pin files are not code-owned and keep automerging.Open after this review: an ansible-core minor bump automerges before Molecule has run on the new core (What Molecule proves before a merge, and who acts on the nightly run).