Repository navigation
Description
Problem
Renovate does not update the hook revisions of .pre-commit-config.yaml. The header comment of the file says Renovate updates rev.
Cause
enabledManagers of .github/renovate.json does not name the pre-commit manager. The shared preset github>dan-petty/infra//renovate/base turns the manager on, but a manager runs only when enabledManagers names it. A local run of Renovate 45.6.0 on main matched no file for the manager.
On 2026-11-30 the hook revision v6.0.0 is the newest tag of pre-commit/pre-commit-hooks, so no update is late now.
Acceptance criteria
.github/renovate.jsonnamespre-commitinenabledManagers.- A local run of Renovate lists
.pre-commit-config.yamlfor the manager.
Source
Source: #143
Alternatives check of 2026-11-30: not-applicable.
Class: ci, no model call.
Tool: none found.
Proposed design
Problem statement
Renovate does not update the hook revision in .pre-commit-config.yaml, although the header comment of the file says Renovate updates rev. Renovate runs only the managers that enabledManagers in .github/renovate.json names, and the list lacks pre-commit. The change adds pre-commit to the list and names the manager in the description field. The newest tag v6.0.0 is current on 2026-11-30, so no update is late now. No other setting of the file changes.
Acceptance criteria
Requirement: Pre-commit manager enabled
.github/renovate.json SHALL name pre-commit in enabledManagers, so that Renovate runs the pre-commit manager on this repository.
Scenario: Renovate extracts the hook file
- WHEN I run
LOG_LEVEL=debug npx --yes --package [email protected] renovate --platform=local --dry-run=lookupin a clone of the repository with the changed.github/renovate.json. - THEN The
packageFiles with updatesline of the debug log names.pre-commit-config.yamlunder thepre-commitmanager, and the run ends with no config error.
Requirement: Other managers stay enabled
The change MUST keep each other manager that enabledManagers names enabled.
Scenario: Renovate still extracts the other files
- WHEN I run the same command in the same clone.
- THEN The debug log still lists a matched file for each of the
copier,dockerfile,github-actions,mise,npmandpip-compilemanagers. The files include.copier-answers.yml,Dockerfile,mise.toml,npm/package.json,python/pre-commit.txtand.github/workflows/image.yml.
Requirement: Renovate config stays valid
The changed .github/renovate.json MUST pass the strict validator of Renovate.
Scenario: Validator accepts the changed config
- WHEN I run
npx --yes --package [email protected] renovate-config-validator --strict --no-global .github/renovate.json. - THEN The command exits with status 0 and prints no error.
Existing Tool Considered
The alternatives check of 2026-11-30 in the issue body records not-applicable with no tool. Renovate is the open, maintained tool that covers the need. Its built-in pre-commit manager reads .pre-commit-config.yaml and updates the hook revisions. The repository already runs Renovate from .github/renovate.json, so the change builds no code. It adds one name to enabledManagers and one sentence to the description field. It lacks nothing for this change.
Key questions
- Does
.github/renovate.jsonnamepre-commitinenabledManagers?: No. The list holdscopier,dockerfile,github-actions,mise,npmandpip-compileonly. [sources: .github/renovate.json:5] - Does
enabledManagerslimit which managers Renovate runs?: Yes. Renovate runs a manager only whenenabledManagersnames it. The archived change of ci(deps): let Renovate update the repository template #143 records the same rule for thecopiermanager. [sources: openspec/changes/archive/2026-11-30-143-renovate-copier-manager/design.md:6, .github/renovate.json:5] - Which file and revision does the
pre-commitmanager read?: The manager reads.pre-commit-config.yamlat the repository root. The file pinspre-commit/pre-commit-hooksatrev: v6.0.0. [sources: .pre-commit-config.yaml:1, .pre-commit-config.yaml:8] - Which proof shows that Renovate now runs the
pre-commitmanager?: A local Renovate run with--platform=local --dry-run=lookupandLOG_LEVEL=debug. ItspackageFiles with updatesline names each matched file under its manager. It shows.pre-commit-config.yamland keeps the proof of the other managers. The archived change of ci(deps): let Renovate update the repository template #143 used the same command. (best practice) [sources: openspec/changes/archive/2026-11-30-143-renovate-copier-manager/tasks.md:9, openspec/changes/archive/2026-11-30-143-renovate-copier-manager/tasks.md:10]- Chosen: Local Renovate dry run. It runs the real managers on the real config and shows the file that each manager matches. The archived change of ci(deps): let Renovate update the repository template #143 proved a manager this way.
- Rejected:
renovate-config-validator. It checks the schema only, so it cannot show which managers run. The change uses it as an additional check, not as the proof of the manager. - Rejected: A repository test that reads the JSON. A test asserts no value of a config file, and the repository asks for a command to prove such a change.
- Must the file set
managerFilePatternsfor thepre-commitmanager?: No. The file setsmanagerFilePatternsonly where the default pattern does not match the project file, as thepip-compileentry does forpython/*.txt. The change of ci(deps): let Renovate update the repository template #143 addedcopierwith no pattern entry, and its local run then matched.copier-answers.yml. The hook file keeps its standard name.pre-commit-config.yaml, so the default pattern matches it. (best practice) [sources: .github/renovate.json:5, .github/renovate.json:6, .pre-commit-config.yaml:1, openspec/changes/archive/2026-11-30-143-renovate-copier-manager/tasks.md:7, openspec/changes/archive/2026-11-30-143-renovate-copier-manager/proposal.md:34]- Chosen: Keep the default file pattern. The hook file has the default name of the manager, and the change of ci(deps): let Renovate update the repository template #143 added a manager with no pattern entry.
- Rejected: Add a
managerFilePatternsentry. It repeats the default file name and adds a setting to keep.
- Must the
fix(deps):package rule match.pre-commit-config.yamlbecause a hook revision update changes the image?: No. A hook revision update does not change the image, so the defaultchore(deps):prefix of the shared preset applies. Thefix(deps):rule and itsmatchFileNameslist stay as they are. (best practice) [sources: .github/renovate.json:12, README.md:188, openspec/changes/archive/2026-11-30-143-renovate-copier-manager/proposal.md:27]- Chosen: Keep the default
chore(deps):prefix. Thefix(deps):rule matches onlyDockerfile,mise.toml,npm/**andpython/**. A hook revision update changes none of them. - Rejected: Add
.pre-commit-config.yamlto thefix(deps):rule. The rule would give the typefixto a change that does not change the image.
- Chosen: Keep the default
- Must the
descriptionfield of.github/renovate.jsonname thepre-commitmanager?: Yes. The field lists the managers and the files they update, so the new manager makes it incomplete. Rule 8 ofAGENTS.mdsays to fix a document that the change makes wrong in the same pull request. The change of ci(deps): let Renovate update the repository template #143 addedcopierto the field in the same pull request. (best practice) [sources: .github/renovate.json:3, AGENTS.md:16, openspec/changes/archive/2026-11-30-143-renovate-copier-manager/tasks.md:7]- Chosen: Name
pre-commitin thedescriptionfield. The field lists the managers, and rule 8 ofAGENTS.mdsays to fix a document that the change makes wrong. - Rejected: Leave the
descriptionfield. The field would not list the manager that the change turns on.
- Chosen: Name
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 30, 2026
Both configure Renovate in .github/renovate.json, but #35 changes the preset source while this candidate enables the pre-commit manager.devops-cli-service commentedon Nov 30, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Nov 30, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
devops-cli-service commentedon Nov 30, 2026
Plan state: branch
ci/145-let-renovate-update-the-pre-commit, draft pull request #153. The pull request plans the item and closes no issue. The stage job and the step fix-plan edit this comment, and a comment of each run tells what the run did.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
A model review of the plan found these points. They stop no draft, and a person judges them:
otherat tasks (1): The plan says the new entry goes in alphabetical order and also says to put it beforepip-compile. Alphabeticallypip-compilecomes beforepre-commit, so the two instructions conflict. Placepre-commitafterpip-compile. Evidence: "Add"pre-commit"toenabledManagers, after"npm"and before"pip-compile"."devops-cli-service commentedon Nov 30, 2026
The stage job staged the plan of draft pull request #153. The plan state comment of #153 holds the branch, the task groups and the findings.
The runs of the planner and the review made 20 model request(s), and used 870748 input tokens and 38571 output tokens. The tool calls, in order:
Run 1 (stage):
read_file({"path":".github/renovate.json","start_line":1,"end_line":7})find_issues({"terms":"renovate.json"})read_issue({"number":2})Run 3 (stage):
search_code({"text":"renovate-config-validator"})search_code({"text":"devops ci --check"})Run 6 (stage):
search_code({"text":"renovate-config-validator"})Run 7 (stage):
list_files({"directory":"openspec/changes/archive/2026-11-30-143-renovate-copier-manager"})search_code({"text":"renovate","path":"openspec"})search_code({"text":"devops ci"})Run 8 (stage_verify):
read_spec({})list_files({"directory":"openspec/changes/archive/2026-11-30-143-renovate-copier-manager"})read_file({"path":"openspec/changes/archive/2026-11-30-143-renovate-copier-manager/tasks.md"})Tool calls: find_issues=1 (empty=0), list_files=2 (empty=0), read_file=2 (empty=0), read_issue=1 (empty=0), read_spec=1 (empty=1), search_code=5 (empty=4)
The stage job read the open pull requests and their files in 1 GraphQL request(s).
The plan request held these comments of the item whole: #145 (comment), #145 (comment), #145 (comment).
devops-cli-service commentedon Nov 30, 2026
The runner Job devops-cli-implement-devtools-145-af89de ended: failed.
Image digest: sha256:746ed4cf3e5f932e8dcad99e9896570510db1a0294d64feff206da14e6a1fd50
The last lines of its log:
The kubelet evicted the pod of the Job: Usage of EmptyDir volume "agent-tmp" exceeds the limit "1Gi".
Failure class:
limit_reached.Action taken: none.
Action left:
raise_limit: raise the limit that the run went over.The Job left this item without a result. The item is Blocked. When a retry can fix the class of the stop, the Service starts a new Job in the next round. The limit is
roadmap.implement.continuations_per_item, and the comment of that round says so. If no continuation is left, fix the cause. Then commentimplement: retry. A new runner image also clears the stop. This holds only if a retry can fix the class of the stop. The limits ofroadmap.implement.digest_clears_per_classandroadmap.implement.digest_clears_per_itemmust also allow it.docs: plan #145 Enable the Renovate pre-commit manager (#153)