Skip to content

fix(roadmap): keep no tool versions in runner_tools.py - #6403

Merged
dan-petty merged 13 commits into
mainfrom
fix/5585-no-tool-versions-in-runner-tools
Nov 19, 2026
Merged

dan-petty merged 13 commits into
mainfrom
fix/5585-no-tool-versions-in-runner-tools

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

runner_tools.py held copies of the uv, gh, Node, actionlint and Python pins of the Dockerfile. Tests compared them with the Dockerfile, and two Renovate custom managers wrote the uv and Node copies. So each tool bump changed a .py file under src/, needed a fix title, and failed the Fail-to-Pass Check (#6370). The owner rule of 2026-11-19 forbids such copies.

Now the module holds no tool version. The image check is a presence check: each tool is on PATH and its version command exits 0, and the readiness text says so. A dev dependency and the project still print their installed version. The pin tests and the two custom managers go. The gh group rule goes too: no manager reads gh, so a person bumps it until #4361. The documents and specs follow. is_source_code gets no guard for a pin-only module: after this change no module under src/ holds only a tool version.

Closes #5585

Change: openspec/changes/archive/2026-11-19-5585-no-tool-versions-in-runner-tools/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 19, 2026
@dan-petty

dan-petty commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner Author

Test record

All commands ran in the worktree of this branch, on head 71d9f6d7d (base origin/main 633021e).

  • uv run devops ci test tests/invariants/test_runner_hooks.py tests/roadmap/implement/test_roadmap_implement_hooks.py tests/roadmap/stage/test_roadmap_stage_context.py tests/roadmap/stage/test_roadmap_stage_eval_facts_context.py tests/roadmap/stage/test_roadmap_stage_item_writes.py tests/roadmap/stage/test_roadmap_stage_rejected.py tests/roadmap/test_roadmap_runner_tools.py tests/lang/test_language_catalogs.py: 115 passed.
  • uv run mypy src/devops_cli/roadmap/runner_tools.py src/devops_cli/lang/en/messages.py: no issues.
  • uv run devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures: all rows pass.
  • uv run devops openspec archive 5585-no-tool-versions-in-runner-tools: every spec and change validates.
  • git grep -nE '^(UV|GH|ACTIONLINT)_VERSION|NODE_MAJOR' -- src: no match.
  • git grep -nE 'runner_tools|runner tools table' -- .github/renovate.json: no match.

Fail-to-Pass

uv run devops ci fail-to-pass --base origin/main:

3 failed on base (3 failed and 19 passed in tests/roadmap/test_roadmap_runner_tools.py; 0 errored).
These changed tests fail or error on base and prove the fix: tests.roadmap.test_roadmap_runner_tools::test_main_exits_0_when_every_tool_passes, tests.roadmap.test_roadmap_runner_tools::test_a_dev_dependency_fails_when_it_prints_another_version, tests.roadmap.test_roadmap_runner_tools::test_a_tool_that_the_image_pins_passes_on_any_version_and_runs_only_its_version_command.

Not run here

  • docker buildx build --target runner . did not run locally. The Runner Image job of this pull request builds the image and runs the smoke step python -m devops_cli.roadmap.runner_tools.
  • The Renovate proof is live: the next uv or node group pull request of Renovate must change no file under src/.

Overlap

No live step is necessary.

@dan-petty
dan-petty force-pushed the fix/5585-no-tool-versions-in-runner-tools branch from f73fd4b to 71d9f6d Compare November 19, 2026 12:34
@dan-petty

dan-petty commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner Author

Decision: no pin-only module guard in is_source_code

The design that the refine job added to #5585 has the requirement "A pin-only Python module is no source code" (a guard in is_source_code that parses the module). This pull request does not build it. The ## Fix section of #5585 (an agent sweep, 2026-11-19 11:41 UTC) came before that requirement (refine, 11:55 UTC) and does not have it, and the guard would match no module:

  • The guard keeps a module with a function or a class as source code. runner_tools.py on origin/main holds classes and functions next to its four pins, so the guard would not have changed the result of fix(security): bump gh and ignore CVE-2026-97054 in unfixed tools #6370.
  • After this change, no module under src/ holds only a tool version. An AST scan of src/ finds one module with only assignments and a version name: src/devops_cli/config/defaults.py (642 assignments). Its DEFAULT_PYTHON_VERSION stays until order 7.
  • Your rule of 2026-11-19 forbids a tool version in a .py file. A guard that lets a pin-only module skip the check would make such a file easier to add.
  • stage_change.py calls is_source_code with the planned paths of a change, which can be files that do not exist yet.

design.md of the archived change records this as a rejected alternative. The coordinator dropped the requirement on 2026-11-19. The comment of 03:54 on #5585 that said the fix "must" add the guard came from an agent session, not from the owner. The ## Fix section of #5585 now says so. If the owner wants the guard, a later issue builds it test first.

…text

The text of runner_tools_ready now names the PATH check. The comments of
NOT_IN_RUNNER and HOOK_PROGRAMS name no tools lock entry and no tool version.
docs/CLUSTER.md names actionlint, Trivy and the apt tools with no version.
docs/SDLC.md says only what Renovate writes into a Python file under src/.
The Renovate delta removes the requirement and adds it with a new name,
because OpenSpec refuses a MODIFIED block that gives a scenario a new
title. design.md gives the true order of the Fix section and the refine
design of #5585.
@dan-petty
dan-petty force-pushed the fix/5585-no-tool-versions-in-runner-tools branch from 71d9f6d to acf6a32 Compare November 19, 2026 12:59
@dan-petty

Copy link
Copy Markdown
Owner Author

Findings of the review of 71d9f6d: how head acf6a32 handles them

The archive commit stays last. I removed it from the branch, committed the fixes, and cherry-picked it again. The main spec of the archive commit is the output of openspec archive on the fixed change.

  1. design.md:17 gives a wrong order (review 2). Real, fixed. The edit history of the issue body (GraphQL userContentEdits) shows: the ## Fix section with "Delete UV_VERSION ..." first comes at 2026-11-19T11:41Z. The refine design with "A pin-only Python module is no source code" first comes at 2026-11-19T11:55Z. "No is_source_code guard" comes at 12:47Z. design.md now gives this order and says that the coordinator dropped the requirement. The guard stays not built (coordinator decision, comment 7009279535). That comment has the same wrong sentence ("The ## Fix section that you wrote later on 2026-11-19 does not have it"). The permission classifier refused my edit of that comment, so this is the correction: the ## Fix section was in fix(roadmap): keep no tool versions in runner_tools.py #5585 first (11:41Z), and the refine job added the requirement after it (11:55Z).
  2. The comment of NOT_IN_RUNNER names the tools lock (review 2). Real, fixed. runner_tools.py:155 now says: "Why the image does not hold a program. The key is the program. A test fails when a program that a source of the gate names is in neither table." The module docstring already names only the sources of the gate (a devops ci row, a hook, a live-marked test, a required job of ci.yml), so it does not change. The comment of HOOK_PROGRAMS no longer says "since 1.17.1", because the docstring says that the module holds no tool version.
  3. The scenario title contradicts its AND line (review 2). Real, fixed. OpenSpec 2.1.0 refuses a MODIFIED block that gives a scenario a new title: MODIFIED "An update of runtime code has the prefix of a release" omits scenario(s) the current spec still has. It also refuses REMOVED plus ADDED with the same name (Requirement present in both ADDED and REMOVED), and RENAMED plus MODIFIED (the same "omits" error). The delta now uses the valid form: REMOVED "An update of runtime code has the prefix of a release", and ADDED "A Renovate update of runtime code has the prefix of a release" with the scenario "An update of a pin under src". I did not use "An update of the tools lock": the WHEN line also covers python runtime (defaults.py), bandit and lock file maintenance.
  4. runner_tools_ready does not name PATH (review 1). Real, fixed test first. The assert of test_main_exits_0_when_every_tool_passes now wants All {n} runner tools are on PATH and run.. It failed on 71d9f6d, and passes after the change of messages.py:3469. proposal.md and tasks.md of the change give the new text.
  5. docs/SDLC.md:334 is false (review 1). Real, fixed. CONST_SEMCONV_WEAVER_VERSION in src/devops_cli/config/constants.py holds a tool version (fix(telemetry): drop the copied weaver version from the install hint #6423). The sentence now says: "No other Renovate update writes a tool version into a Python file under src/ (fix(roadmap): keep no tool versions in runner_tools.py #5585)." Evidence: of the custom managers of .github/renovate.json, only one matches a Python file, src/devops_cli/config/defaults.py.
  6. docs/CLUSTER.md:68 copies tool versions (review 1). Real, fixed. The line still had actionlint 1.17.1, Trivy 0.76.2, Go 1.27.3, and git 2.47.3, curl 8.14.1 and jq 1.7. It now names the tools and the CVE-2026-97054 entry with no version. Line 49 no longer says "since 1.17.1".

Test record

  • Before the fix (71d9f6d code, new assert): uv run devops ci test tests/roadmap/test_roadmap_runner_tools.py: 1 failed (test_main_exits_0_when_every_tool_passes), 21 passed.
  • After the fix: uv run devops ci test tests/roadmap/test_roadmap_runner_tools.py tests/invariants/test_runner_hooks.py tests/roadmap/stage/test_roadmap_stage_context.py: 36 passed.
  • uv run mypy src/devops_cli/lang/en/messages.py src/devops_cli/roadmap/runner_tools.py: no issues.
  • uv run devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures: all 10 rows pass.
  • openspec validate 5585-no-tool-versions-in-runner-tools --strict before the archive: valid.

Fail-to-pass

uv run devops ci fail-to-pass --base 71d9f6d7d1a5c7ec126f91ca98bc0649f06d65a4:

1 failed on base (1 failed and 21 passed in tests/roadmap/test_roadmap_runner_tools.py; 0 errored).
These changed tests fail or error on base and prove the fix: tests.roadmap.test_roadmap_runner_tools::test_main_exits_0_when_every_tool_passes.

A Python minor update also writes DEFAULT_PYTHON_VERSION and the Python
minor of the tools lock under src/, so the scenario now says that a pin
bump in the Dockerfile changes no line of runner_tools.py. OpenSpec
refuses a MODIFIED block that gives a scenario a new title, so the
requirement goes and comes back with a new name.
@dan-petty
dan-petty force-pushed the fix/5585-no-tool-versions-in-runner-tools branch from acf6a32 to d1c7379 Compare November 19, 2026 13:14
@dan-petty

Copy link
Copy Markdown
Owner Author

Review findings: how each one is handled

Head before the fixes: 71d9f6d7d. The blocking finding of the second review is the last item.

Findings of the review of 71d9f6d7d (key 5585)

  1. design.md:17, the order of the Fix section and the refine design. Real. Fixed in docs: copy no tool version and give the scenario a true title: design.md now says that the ## Fix section came first (edit of 2026-11-19T11:41Z), that the refine design added the guard later, and that the coordinator dropped the requirement. The is_source_code guard is not built (coordinator decision, comment 7009279535). The rejected alternative stays in design.md.
  2. runner_tools.py:155, the NOT_IN_RUNNER comment. Real. Fixed in fix(roadmap): say that the runner tools are on PATH in the readiness text: the comment now says "A test fails when a program that a source of the gate names is in neither table". It names no tools lock entry. The module docstring names no tools lock entry as a source of the test.
  3. release-concurrency-and-renovate spec:98, the scenario title. Real. Fixed in docs: copy no tool version and give the scenario a true title. OpenSpec refuses a MODIFIED block that drops a base scenario name (specs-apply.js: "current spec contains scenario(s) not present in the modified block"). Thus the delta uses the REMOVED plus ADDED form: "An update of runtime code has the prefix of a release" goes, and "A Renovate update of runtime code has the prefix of a release" comes back with the scenario "An update of a pin under src".
  4. messages.py:3469, the readiness text does not name PATH. Real. Test first: test(roadmap): the readiness text of the runner tools names the PATH check changes the assert of test_main_exits_0_when_every_tool_passes. Then fix(roadmap): ... changes runner_tools_ready to "All {count} runner tools are on PATH and run.". The fail-to-pass record is below.
  5. docs/SDLC.md:334. Real (CONST_SEMCONV_WEAVER_VERSION in config/constants.py, fix(telemetry): drop the copied weaver version from the install hint #6423). Fixed: "No other Renovate update writes a tool version into a Python file under src/ (fix(roadmap): keep no tool versions in runner_tools.py #5585)."
  6. docs/CLUSTER.md:68. Real. Fixed: the line names actionlint "from the pinned image of the maintained fork" and promtool and Trivy "at the pins of tools.lock", with no version number. The CVE context stays, with no version.

Blocking finding of the second review

  1. roadmap-implement-runner spec:204, "A pin drifts from the Dockerfile". Real. A Python minor update in the group python runtime writes DEFAULT_PYTHON_VERSION in src/devops_cli/config/defaults.py and the Python minor of the tools lock under src/devops_cli/tools_lock/ (the custom managers of .github/renovate.json). Thus "it changes no file under src/" is false for Python. The uv, gh, Node and actionlint groups write no file under src/. Fixed in docs(openspec): give the Dockerfile pin scenario a true title and scope:
    • New title: "A Dockerfile pin bump changes no runner code".
    • New THEN line: "it changes no line of src/devops_cli/roadmap/runner_tools.py, because RUNNER_TOOLS holds no version and no test compares a version with Dockerfile". This is true for all five tools, Python too.
    • Form: REMOVED plus ADDED, because OpenSpec refuses a MODIFIED block that drops the base scenario name. "The runner image holds each tool that the gate and the hooks need" goes, and "The runner tools table names each tool that the gate and the hooks need" comes back with the same text and the two scenarios. The proposal names both replacements.
    • The archive ran again (devops openspec archive), so the archive is the last commit and the main spec and the archived delta agree. The release spec is the same as in the earlier archive.

Test record

Head d1c7379f7 (rebased on origin/main 633021ead):

  • uv run devops ci test tests/roadmap/test_roadmap_runner_tools.py tests/core/test_renovate_config.py: 23 passed.
  • uv run mypy src/devops_cli/roadmap/runner_tools.py src/devops_cli/lang/en/messages.py: no issues.

Fail-to-pass (devops ci fail-to-pass --base 71d9f6d7d)

  passed on base: tests.roadmap.test_roadmap_runner_tools::test_each_binary_of_a_live_marked_test_is_held_or_left_out_with_a_reason
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_a_hook_is_missing_its_program_when_the_program_is_not_on_the_search_path
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_a_dev_dependency_passes_when_it_prints_its_installed_version
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_an_apt_tool_passes_on_any_output
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_a_tool_that_the_image_pins_passes_on_any_version_and_runs_only_its_version_command
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_main_prints_each_failure_and_exits_1
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_a_dev_dependency_fails_when_it_prints_another_version
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_each_tool_is_listed_once_and_has_a_reason_to_be_there
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_a_tool_that_a_row_starts_names_that_row_as_a_reason
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_the_last_step_of_the_runner_runs_the_check_of_every_tool_as_the_job_user
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_a_tool_with_no_command_fails_when_it_is_not_on_path
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_a_tool_fails_when_its_version_command_fails
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_a_hook_that_the_job_leaves_out_is_a_hook_of_the_config_and_runs_programs_not_in_the_image
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_the_apt_packages_of_the_runner_are_the_apt_tools_of_the_table
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_each_program_of_a_hook_is_held_or_left_out_with_a_reason
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_the_version_of_each_dev_dependency_is_the_version_of_the_lockfile
  failed on base: tests.roadmap.test_roadmap_runner_tools::test_main_exits_0_when_every_tool_passes (AssertionError: assert 'All 34 runner tools are on PATH and run.' in 'All 34 runner tools run.\n')
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_each_tool_that_a_required_job_installs_is_held_or_left_out_with_a_reason
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_each_reason_to_hold_a_tool_names_a_real_row_hook_or_job
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_no_program_is_both_held_and_left_out
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_each_program_of_a_ci_row_is_held_or_left_out_with_a_reason
  passed on base: tests.roadmap.test_roadmap_runner_tools::test_every_tool_of_the_table_has_a_check_that_the_fake_can_answer
1 failed on base (1 failed and 21 passed in tests/roadmap/test_roadmap_runner_tools.py; 0 errored).
These changed tests fail or error on base and prove the fix: tests.roadmap.test_roadmap_runner_tools::test_main_exits_0_when_every_tool_passes.

Checks

uv run devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures: all 10 rows pass. devops openspec archive validated every spec and change.

The cli/cli rule of the group gh matched no dependency: no manager reads
the gh download of Dockerfile, which stays a manual bump (#4361). The
design names the two version constants that stay in a .py file, the
renovate requirement uses except, and the Dockerfile pin scenario no
longer says that no test compares a version with Dockerfile.
@dan-petty
dan-petty force-pushed the fix/5585-no-tool-versions-in-runner-tools branch from d1c7379 to 498ef4a Compare November 19, 2026 13:42
@dan-petty

Copy link
Copy Markdown
Owner Author

Review findings of head d1c7379: all four are fixed in 498ef4a

The fixes are in commit f804d91. The archive commit 498ef4a stays last, and it holds the same edits in the main specs. No file under src/ changed, so this round has no new test and no fail-to-pass record.

# Finding Check against the code Fix
1 design.md: "no pin stays in a .py file" is false Real. src/devops_cli/config/defaults.py:181 holds DEFAULT_PYTHON_VERSION, and src/devops_cli/config/constants.py:2134 holds CONST_SEMCONV_WEAVER_VERSION (#6423). The sentence now says that is_source_code stays a rule of the path, as the header of fail-to-pass.yml says. Only the Renovate update of DEFAULT_PYTHON_VERSION writes a tool version into a .py file under src/. The weaver copy has no manager, and #6423 removes it. Task 2.2 now names the four tools that its grep checks (uv, gh, Node, actionlint), because the weaver copy stays.
2 STE: "but" as a preposition in the renovate requirement Real. The change delta and the main spec now say "..., except DEFAULT_PYTHON_VERSION."
3 .github/renovate.json: the cli/cli rule of the group gh matches no dependency Real. No custom manager of .github/renovate.json or .github/renovate/base.json reads the gh URL of Dockerfile:43-49. The built-in dockerfile manager reads only image references. The base of this PR also had no gh manager. The rule is deleted. gh is removed from the coupled groups in docs/SDLC.md, in the change delta and in the main spec. docs/SDLC.md now says that no manager reads the gh download, so a person bumps it (#4361). The proposal and task 2.1 describe the deletion. Task 2.1 verification: ! git grep -n -E 'runner_tools|runner tools table|cli/cli' -- .github/renovate.json passes. No new manager was added.
4 Scenario "A Dockerfile pin bump changes no runner code": "no test compares a version with Dockerfile" is false Real. tests/invariants/test_service_image.py::test_service_image_installs_a_gh_release_built_with_go_1_27_2_or_later reads the gh version of Dockerfile and compares it with GH_FIRST_SAFE_VERSION. The THEN line now ends at "because RUNNER_TOOLS holds no version", in the change delta and in the main spec.

Test record

  • uv run devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures: all 10 checks pass.
  • uv run devops ci test tests/core/test_renovate_config.py tests/docs/test_docs_inventory.py tests/invariants/test_agents_md.py tests/invariants/test_workflow_contracts.py tests/invariants/test_service_image.py tests/roadmap/test_roadmap_runner_tools.py: 135 passed.
  • A script compared each MODIFIED and ADDED requirement of the two deltas with the main specs: all five blocks are in the main specs word for word.
  • .github/renovate.json loads as JSON, and the pre-commit check json hook passes.

Fail-to-pass

Not run. This round changes no file under src/, so it has no src behavior to prove.

@dan-petty
dan-petty marked this pull request as ready for review November 19, 2026 14:02
@dan-petty
dan-petty merged commit 814ee5b into main Nov 19, 2026
38 checks passed
@dan-petty
dan-petty deleted the fix/5585-no-tool-versions-in-runner-tools branch November 19, 2026 14:05
dan-petty pushed a commit that referenced this pull request Nov 19, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.181.0](v0.180.0...v0.181.0)
(2026-11-19)


### Features

* **k8s:** Point Argo CD to Gitea for git and PR dev images
([#6432](#6432))
([4a801d0](4a801d0))
* **repos:** Add a gitea remote to every clone
([#6424](#6424))
([6489b7a](6489b7a))


### Bug Fixes

* **roadmap:** keep no tool versions in runner_tools.py
([#6403](#6403))
([814ee5b](814ee5b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): keep no tool versions in runner_tools.py

1 participant