Skip to content

2026 11 27 python hold

kubed-io[bot] edited this page Nov 27, 2026 · 1 revision

Python 3.14 Hold Implementation Plan

History. Drafted 2026-11-27 for #251 (PR #252), from #251's notes, which Dr K approved. It has no design of its own, and no draft spec was on the branch: the design is below, under "Design". No requirement id moves.

For agentic workers: REQUIRED SUB-SKILL: Use skill://superpowers/subagent-driven-development/SKILL.md (recommended) or skill://superpowers/executing-plans/SKILL.md to implement this plan task by task. Steps use checkbox (- [ ]) syntax for tracking.

Goal: A repo Renovate rule keeps the interpreter at 3.14, so the dependency dashboard stops offering "Update dependency python", and every Python pin in the repo is 3.14.

Architecture: One packageRules entry is added to the root renovate.json, after the typescript rule. Dr K pushes the one .github/workflows/wiki.yml line himself.

Tech Stack: Renovate (the shared kubed-io config, merged with the repo's renovate.json). No Python or ui/ dependency moves.

Spec: this plan's "Design", and #251's notes in the PR's linked issues.

Design

Notes mode: this is internal work. No server behaviour changes, no area file or requirement id moves, and there is no changelog line (CONTRIBUTING, "The changelog").

  1. Why hold. pyroscope-io, which comes in with kubed-mcp's telemetry extra and is installed in the image, ships no cp315 wheel: 1.4.0 has wheels up to cp314. Its sdist needs a Rust toolchain the builder lacks. So an install on 3.15 fails. Telemetry comes before 3.15 (Dr K, 2026-11-27).
  2. The rule is mcp-kb's, word for word. I read it from mcp-kb's renovate.json on main on 2026-11-27, where it is the only rule: matchDepNames: ["python"], allowedVersions: "<3.15", and a description that names the missing wheels and says what lifting it takes. It has no #251 suffix, though the typescript rule ends in #243, because "Done when" asks for the description to match mcp-kb's.
  3. What the rule reaches (Renovate's manager docs, read 2026-11-27):
    • The dockerfile manager expands ARG defaults in FROM, so Dockerfile:42 ARG PY_VERSION=3.14 is read as the python image in FROM python:${PY_VERSION} and python:${PY_VERSION}-slim.
    • The github-actions manager reads actions/setup-python's python-version as the python dependency.
    • Both are named python, so matchDepNames covers both. The docs don't say how <3.15 is read under docker versioning, which has no ranges. mcp-kb runs the same rule, and the post-merge dashboard check ("Done when") shows whether it holds.
  4. Pins, read 2026-11-27. None claims 3.15:
    • pyproject.toml: requires-python = ">=3.11", with classifiers from 3.11 to 3.14. tests/test_packaging.py:317 asserts the floor.
    • Dockerfile:42 is 3.14, and docker-compose.yaml:11 is ${PY_VERSION:-3.14}.
    • setup-python is '3.14' at copilot-setup-steps.yml:53, integration.yml:93, lint.yml:46 and :124, and package.yml:86.
    • The test.yml:67 matrix is 3.11 and 3.14 on a pull request, and 3.11 to 3.14 on main.
    • The only pin off is wiki.yml:143, at '3.13'. That is .github/, so Dr K's side pushes '3.14' onto issue-251.
  5. Nothing reads renovate.json. No test or script does, and Renovate runs from .github/workflows/renovate.yml with the shared config.

Global Constraints

  • The rule text is exactly Task 1's block. Its description matches mcp-kb's character for character.
  • Keep the typescript rule (#243) first and unchanged.
  • Change nothing else:
    • The agent's commit does not touch .github/ (AGENTS.md). wiki.yml is Dr K's push.
    • No pyproject.toml, Dockerfile or docker-compose.yaml change. They are already at 3.14.
    • No docs/ area file, and no CHANGELOG.md line.
  • Checks: Renovate's validator on renovate.json, then ruff check . and pytest (CONTRIBUTING, "Commands"). The integration suite runs in CI only.
  • Commits: stage exact paths, never -a.

Review Focus

  1. A renovate.json that Renovate can't read gets ignored or fails the run, and the hold never shows. Task 1 runs Renovate's own validator.
  2. The docker python image still offered at 3.15 if <3.15 isn't applied under docker versioning (Design 3). The dashboard check after merge catches this. If it happens, it is a follow-up issue for Dr K, not a change to this rule, because the rule must keep mcp-kb's words.
  3. A stray 3.13 or 3.15 pin left after Dr K's push. Task 2's grep lists every pin.
  4. The typescript rule changed or reordered by a reformatting editor. Task 1's diff check shows only added lines.

Task 1: The python hold

Files:

  • Modify: renovate.json (add a second packageRules entry after the typescript one)

  • Step 1: Add the rule. The file then reads exactly:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "packageRules": [
    {
      "description": "Hold typescript below 7 until typescript-eslint and svelte-check both accept 7 (typescript-eslint 8.74.0: >=4.8.4 <6.1.0; svelte-check 4.7.8: ^5 || ^6). #243",
      "matchPackageNames": ["typescript"],
      "allowedVersions": "<7"
    },
    {
      "description": "Hold the interpreter at 3.14: pyroscope-io (kubed-mcp[telemetry], installed in the image) ships no cp315 wheel, and its sdist needs a Rust toolchain the builder lacks. Lift this rule once pyroscope-io publishes cp315 wheels; then move the Dockerfile, the workflow pins, the test.yml matrix and the classifiers to 3.15 together.",
      "matchDepNames": ["python"],
      "allowedVersions": "<3.15"
    }
  ]
}
  • Step 2: Check the diff is additions only

Run: git diff renovate.json Expected: the typescript entry's lines are unchanged. Its closing } gains a ,, and the python entry's lines are added.

  • Step 3: Validate it

Run: python -m json.tool renovate.json > /dev/null && npx --yes --package renovate -- renovate-config-validator renovate.json Expected: exit 0, and Config validated successfully for renovate.json, with no errors or migration notice.

  • Step 4: Run the repo checks

Run: ruff check . and pytest Expected: both clean.

  • Step 5: Commit
git add renovate.json
git commit -m "Renovate: hold Python at 3.14 until pyroscope-io ships cp315 wheels (#251)"

Task 2: Every pin at 3.14

Runs after Dr K has pushed wiki.yml:143 '3.13' → '3.14' onto issue-251. If the push is not on the branch yet, the task stops and the PR body says the line is still Dr K's.

Files: none changed by the agent.

  • Step 1: List the pins

Run: git grep -nE "python-version: '|PY_VERSION[:=]|PY_VERSION:-|Python :: 3\.[0-9]+" -- .github Dockerfile docker-compose.yaml pyproject.toml Expected: every python-version literal, ARG PY_VERSION, the compose default and the newest classifier are 3.14. No 3.13 pin and no 3.15 anywhere. The 3.11 to 3.13 classifiers stay, and so does the test.yml matrix (3.11 and 3.14 on a PR, 3.11 to 3.14 on main).

After the tasks

  • The PR body says:
    • the rule's description is mcp-kb's, word for word;
    • wiki.yml is Dr K's commit;
    • every pin is 3.14, from Task 2's grep.
  • Labels: the PR needs no changelog, or PR Tasks fails. An agent can't set it, so the PR body asks for it.
  • Done when: CI passes on the PR. After the merge, Renovate's next run drops "Update dependency python" from the dashboard (#213). If a python row stays, it is Review Focus 2.
  • No live check: no served behaviour changes.

Clone this wiki locally