ci(deps): run Renovate on push to main, state the own-image wait, shorten rule descriptions #172

Open
opened 2026-11-15 18:10:24 +00:00 by Claude · 7 comments
Owner

Spec: Renovate automerge posture (resolution comment).

What to build

  • .gitea/workflows/renovate.yml: add an on: push trigger for main, next to the daily cron. A push run is live (not a dry run), like the schedule. The existing concurrency: renovate group (no cancel) stays. Why: with "Block on outdated branch", only one bot pull request merges per Renovate run; a run after each merge rebases the next one, and Gitea's scheduled merge (platform automerge) merges it once green.
  • renovate.json: set minimumReleaseAge: "0 days" explicitly for git.rkdr.net/mortis/** (today they pass only through timestamp-optional). Third-party updates keep 3 days.
  • renovate.json: every description (top level, custom managers, package rules) is at most two short sentences: why the rule exists, plus how it works only when that is not obvious. Investigation notes (run numbers, versions tested) move out of the config; they stay in the history of the pull request that added the rule.
  • Remove the "open item: do not enable automerge until a live run…" text from CLAUDE.md and CONTRIBUTING.md (met: #140, #141, #146 and #148 were merged by the bot). Where the docs describe the posture, cut it to one line pointing at renovate.json.

Acceptance

  • A merge to main starts a Renovate run; with two automergeable bot pull requests open, both merge without waiting for the cron.
  • renovate --platform=local (version from renovate.yml) validates the config.
  • No description longer than two sentences.
  • No doc claims automerge is pending a live run.

Not in scope

The exception list itself (majors, job_image, kaniko, hooks, lock-file maintenance, renovate.yml) is unchanged; its re-evaluation is a separate issue.

Spec: [Renovate automerge posture](https://git.rkdr.net/Mortis/Kamino/issues/97) (resolution comment). ## What to build - `.gitea/workflows/renovate.yml`: add an `on: push` trigger for `main`, next to the daily cron. A push run is live (not a dry run), like the schedule. The existing `concurrency: renovate` group (no cancel) stays. Why: with "Block on outdated branch", only one bot pull request merges per Renovate run; a run after each merge rebases the next one, and Gitea's scheduled merge (platform automerge) merges it once green. - `renovate.json`: set `minimumReleaseAge: "0 days"` explicitly for `git.rkdr.net/mortis/**` (today they pass only through `timestamp-optional`). Third-party updates keep 3 days. - `renovate.json`: every `description` (top level, custom managers, package rules) is at most two short sentences: why the rule exists, plus how it works only when that is not obvious. Investigation notes (run numbers, versions tested) move out of the config; they stay in the history of the pull request that added the rule. - Remove the "open item: do not enable automerge until a live run…" text from `CLAUDE.md` and `CONTRIBUTING.md` (met: #140, #141, #146 and #148 were merged by the bot). Where the docs describe the posture, cut it to one line pointing at `renovate.json`. ## Acceptance - [ ] A merge to `main` starts a Renovate run; with two automergeable bot pull requests open, both merge without waiting for the cron. - [ ] `renovate --platform=local` (version from `renovate.yml`) validates the config. - [ ] No description longer than two sentences. - [ ] No doc claims automerge is pending a live run. ## Not in scope The exception list itself (majors, `job_image`, kaniko, hooks, lock-file maintenance, `renovate.yml`) is unchanged; its re-evaluation is a separate issue.
Claude added the
Status
Ready for Agent
label 2026-11-15 18:10:24 +00:00
Author
Owner

Added by Contributor doc set (resolution, section 1): put the two rules from Renovate automerge posture in renovate.json's top-level description, each with "held by review":

  • Every rule's description is at most two short sentences: why, plus how when not obvious.
  • A broken unattended merge is fixed with a test or check; an automerge exception only when no test can, naming the incident.

Check that renovate-config-validator accepts a top-level description. If it does not, put them in docs/contributing/making-a-change.md (from the contributor doc split) and say so in the PR.

Added by [Contributor doc set](https://git.rkdr.net/Mortis/Kamino/issues/103) (resolution, section 1): put the two rules from [Renovate automerge posture](https://git.rkdr.net/Mortis/Kamino/issues/97) in `renovate.json`'s top-level `description`, each with "held by review": - Every rule's description is at most two short sentences: why, plus how when not obvious. - A broken unattended merge is fixed with a test or check; an automerge exception only when no test can, naming the incident. Check that `renovate-config-validator` accepts a top-level `description`. If it does not, put them in `docs/contributing/making-a-change.md` (from [the contributor doc split](https://git.rkdr.net/Mortis/Kamino/issues/189)) and say so in the PR.
Claude added a new dependency 2026-11-15 22:20:53 +00:00
Claude added this to the Continuous delivery milestone 2026-11-15 22:21:21 +00:00
Author
Owner

Order: this now waits on the contributor-doc split (#189) where it edits CONTRIBUTING.md, and on docs(agents): replace CLAUDE.md with a root AGENTS.md (#185): put the CLAUDE.md edits in the root or nested AGENTS.md instead. (From Order of the implementation backlog, #198.)

Order: this now waits on the contributor-doc split (#189) where it edits `CONTRIBUTING.md`, and on docs(agents): replace CLAUDE.md with a root AGENTS.md (#185): put the `CLAUDE.md` edits in the root or nested `AGENTS.md` instead. (From Order of the implementation backlog, #198.)
Author
Owner

Review of the map (2026-11-15): corrections to this issue.

  • The exception list is not unchanged for renovate.yml. "Not in scope" says the exception list, renovate.yml included, is unchanged. Enforcement map for each prose-only rule decided that Renovate tracks its own image weekly, and ci(renovate): validate the config in Lint and let Renovate bump its own image weekly replaces the enabled: false rule (renovate.json:114-120). Change: in "Not in scope", list renovate.yml as "proposed weekly, never automerged (owned by the self-bump issue)", not as unchanged. If this issue lands after that one, its description cuts must keep that rule's security reason.
  • The zero-wait rule must match Docker images only. The issue sets minimumReleaseAge: "0 days" for the organisation's own mortis/** packages. A package-name pattern alone also matches any other datasource that resolves to this organisation, for example agent skills fetched from a repository here once they are tracked. Those would then automerge minutes after an upstream push. Change: add matchDatasources: ["docker"] to that rule.
  • Updates with no release timestamp get no wait at all. renovate.json:24 sets "minimumReleaseAgeBehaviour": "timestamp-optional", so the 3-day wait for third-party updates does not apply when a datasource has no timestamp. Change: say so in the top-level description (one short sentence), so nobody reads "Third-party updates keep 3 days" as universal.
Review of the map (2026-11-15): corrections to this issue. - **The exception list is not unchanged for `renovate.yml`.** "Not in scope" says the exception list, `renovate.yml` included, is unchanged. [Enforcement map for each prose-only rule](https://git.rkdr.net/Mortis/Kamino/issues/102) decided that Renovate tracks its own image weekly, and [ci(renovate): validate the config in Lint and let Renovate bump its own image weekly](https://git.rkdr.net/Mortis/Kamino/issues/188) replaces the `enabled: false` rule (`renovate.json:114-120`). Change: in "Not in scope", list `renovate.yml` as "proposed weekly, never automerged (owned by the self-bump issue)", not as unchanged. If this issue lands after that one, its description cuts must keep that rule's security reason. - **The zero-wait rule must match Docker images only.** The issue sets `minimumReleaseAge: "0 days"` for the organisation's own `mortis/**` packages. A package-name pattern alone also matches any other datasource that resolves to this organisation, for example agent skills fetched from a repository here once they are tracked. Those would then automerge minutes after an upstream push. Change: add `matchDatasources: ["docker"]` to that rule. - **Updates with no release timestamp get no wait at all.** `renovate.json:24` sets `"minimumReleaseAgeBehaviour": "timestamp-optional"`, so the 3-day wait for third-party updates does not apply when a datasource has no timestamp. Change: say so in the top-level description (one short sentence), so nobody reads "Third-party updates keep 3 days" as universal.
Author
Owner

Scope added by Code-owner approval against Renovate automerge, and where secrets live (resolution, points 1 and 3), for renovate.json:

  • The own-image pin-follow rule (git.rkdr.net/mortis/* pins in workflow files) becomes a never-automerge exception: those files are code-owned and Gitea cannot exempt the bot. Its description says so in two sentences.
  • Dockerfile FROM tag and digest bumps (images/*/Dockerfile) are grouped into one weekly pull request and also do not automerge, because images/** is code-owned.
  • Python and collection pins keep automerging.
  • Drop CLAUDE.md's "hand edits on a bot branch" note: only the bot and the maintainer can push to renovate/* (push allowlist, #192).
Scope added by [Code-owner approval against Renovate automerge, and where secrets live](https://git.rkdr.net/Mortis/Kamino/issues/210) (resolution, points 1 and 3), for `renovate.json`: - The own-image pin-follow rule (`git.rkdr.net/mortis/*` pins in workflow files) becomes a never-automerge exception: those files are code-owned and Gitea cannot exempt the bot. Its description says so in two sentences. - Dockerfile `FROM` tag and digest bumps (`images/*/Dockerfile`) are grouped into one weekly pull request and also do not automerge, because `images/**` is code-owned. - Python and collection pins keep automerging. - Drop CLAUDE.md's "hand edits on a bot branch" note: only the bot and the maintainer can push to `renovate/*` (push allowlist, [#192](https://git.rkdr.net/Mortis/Kamino/issues/192)).
Author
Owner

Scope added by Molecule and Renovate on the shared runner: isolation, capacity and cost, item 8. Measured 3–17 Nov: a scheduled Renovate run has a median of 16s and a maximum of 2m04. So:

  • Lower renovate.yml's timeout-minutes from 30 to 10.
  • Keep the renovate group with cancel-in-progress: false: it already allows at most one running and one waiting run when pushes arrive in a burst. There is no extra trigger condition and no separate runner label.
  • Replace "up to 30 minutes" with the measured time (seconds to about 2 minutes, capped at 10) in CLAUDE.md and in the molecule.yml schedule comment.
Scope added by [Molecule and Renovate on the shared runner: isolation, capacity and cost](https://git.rkdr.net/Mortis/Kamino/issues/212), item 8. Measured 3–17 Nov: a scheduled Renovate run has a median of 16s and a maximum of 2m04. So: - Lower `renovate.yml`'s `timeout-minutes` from 30 to 10. - Keep the `renovate` group with `cancel-in-progress: false`: it already allows at most one running and one waiting run when pushes arrive in a burst. There is no extra trigger condition and no separate runner label. - Replace "up to 30 minutes" with the measured time (seconds to about 2 minutes, capped at 10) in `CLAUDE.md` and in the `molecule.yml` schedule comment.
Author
Owner

Review of the map (2026-11-17).

  • Two comments tell this issue to edit CLAUDE.md (drop the "hand edits on a bot branch" note; replace "up to 30 minutes"). docs(agents): replace CLAUDE.md with a root AGENTS.md lands first and deletes that file. Apply both to wherever the root AGENTS.md issue moved those lines, or to nothing if it dropped them; the molecule.yml schedule comment still gets the measured time.
  • Dropping the "hand edits on a bot branch" note rests on the push allowlists for renovate/*. A protected branch cannot be deleted in Gitea, so whether those allowlists stay is open in Pushes onto a pull request that has a scheduled merge. Keep the note until that ticket closes.
Review of the map (2026-11-17). - Two comments tell this issue to edit `CLAUDE.md` (drop the "hand edits on a bot branch" note; replace "up to 30 minutes"). [docs(agents): replace CLAUDE.md with a root AGENTS.md](https://git.rkdr.net/Mortis/Kamino/issues/185) lands first and deletes that file. Apply both to wherever the root `AGENTS.md` issue moved those lines, or to nothing if it dropped them; the `molecule.yml` schedule comment still gets the measured time. - Dropping the "hand edits on a bot branch" note rests on the push allowlists for `renovate/*`. A protected branch cannot be deleted in Gitea, so whether those allowlists stay is open in [Pushes onto a pull request that has a scheduled merge](https://git.rkdr.net/Mortis/Kamino/issues/248). Keep the note until that ticket closes.
Author
Owner

Update of 2026-11-20 (final validation round of the map, #87 (comment)).

Pushes onto a pull request that has a scheduled merge (#248) is closed: renovate/* has no push allowlist, so the allowlist reason in the comment of 2026-11-16 no longer applies. The content of the "hand edits on a bot branch" note moves to the contributing-doc rule "do not push to someone else's branch or a bot's branch" (#189). Drop the note here only once that rule exists; until then carry it into wherever this issue moves the Renovate notes.

Also, the body's "Not in scope" says the exception list, renovate.yml included, is unchanged. The comments win on that: Renovate bumps its own image weekly, never automerged (#188).

Update of 2026-11-20 (final validation round of the map, https://git.rkdr.net/Mortis/Kamino/issues/87#issuecomment-12281). Pushes onto a pull request that has a scheduled merge (#248) is closed: `renovate/*` has no push allowlist, so the allowlist reason in the comment of 2026-11-16 no longer applies. The content of the "hand edits on a bot branch" note moves to the contributing-doc rule "do not push to someone else's branch or a bot's branch" (#189). Drop the note here only once that rule exists; until then carry it into wherever this issue moves the Renovate notes. Also, the body's "Not in scope" says the exception list, `renovate.yml` included, is unchanged. The comments win on that: Renovate bumps its own image weekly, never automerged (#188).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#172