chore(apm): pin apm with uv #517

Open
opened 2026-12-04 20:20:02 +00:00 by Claude · 0 comments
Owner

Part of #499

Problem

A contributor who types apm gets whatever version is installed on their machine, not the version this repository pins. apm 0.37.0 to 0.39.1 refuse an apm.lock.yaml rewritten by 0.39.2 or later, and versions before 0.39.0 drop disable-model-invocation from the deployed Claude commands. Everyone who runs apm here should run one pinned version.

Out of scope: Renovate updates for the new pin (a separate ticket), running apm in CI, a wrapper script, an ADR, and removing any machine-wide apm.

Proposal

  • Add a root pyproject.toml with [tool.uv] package = false, apm-cli==0.39.3 in the dev dependency group, and requires-python = ">=3.11". ruff reads requires-python too, and a higher floor makes it reformat existing files.
  • Commit uv.lock. Contributors run uv sync --frozen once, then uv run --frozen apm ....
  • Remove apm-cli and its comment from requirements-dev.txt and regenerate requirements-dev.lock with scripts/lock-requirements.sh, so there is one pin. Both files are inputs of the ci image, so follow images/AGENTS.md. Update the comments there and in images/ci/Dockerfile that still place the dev tools in .venv.
  • Regenerate apm.lock.yaml with the pinned apm.
  • Add pyproject.toml and uv.lock to build_ignore in galaxy.yml, to the IGNORED list in scripts/select_molecule_scenarios.py and to CODEOWNERS.
  • Take apm-cli out of the "lint tooling" group in renovate.json.

Acceptance criteria

  • uv lock --check passes, and uv run --frozen apm --version prints 0.39.3.
  • apm-cli no longer appears in requirements-dev.txt or requirements-dev.lock.
  • After uv sync --frozen, pre-commit run --all-files still passes with the tools in .venv-dev.
  • With no other apm on PATH, uv run --frozen apm install and uv run --frozen apm audit succeed. The resulting apm.lock.yaml is committed, with any change apm makes to apm.yml.
  • After that install, .claude/commands/plan.md and .claude/commands/ship.md contain disable-model-invocation: true. These files are not tracked, so the pull request states the result under Verified.
  • python3 -m unittest discover -s tests/scripts passes.
  • docs/contributing/setup.md lists uv as a prerequisite and gives the two commands.
Part of #499 ## Problem A contributor who types `apm` gets whatever version is installed on their machine, not the version this repository pins. apm 0.37.0 to 0.39.1 refuse an `apm.lock.yaml` rewritten by 0.39.2 or later, and versions before 0.39.0 drop `disable-model-invocation` from the deployed Claude commands. Everyone who runs apm here should run one pinned version. Out of scope: Renovate updates for the new pin (a separate ticket), running apm in CI, a wrapper script, an ADR, and removing any machine-wide apm. ## Proposal - Add a root `pyproject.toml` with `[tool.uv] package = false`, `apm-cli==0.39.3` in the `dev` dependency group, and `requires-python = ">=3.11"`. ruff reads `requires-python` too, and a higher floor makes it reformat existing files. - Commit `uv.lock`. Contributors run `uv sync --frozen` once, then `uv run --frozen apm ...`. - Remove `apm-cli` and its comment from `requirements-dev.txt` and regenerate `requirements-dev.lock` with `scripts/lock-requirements.sh`, so there is one pin. Both files are inputs of the `ci` image, so follow `images/AGENTS.md`. Update the comments there and in `images/ci/Dockerfile` that still place the dev tools in `.venv`. - Regenerate `apm.lock.yaml` with the pinned apm. - Add `pyproject.toml` and `uv.lock` to `build_ignore` in `galaxy.yml`, to the IGNORED list in `scripts/select_molecule_scenarios.py` and to `CODEOWNERS`. - Take `apm-cli` out of the "lint tooling" group in `renovate.json`. ## Acceptance criteria - [ ] `uv lock --check` passes, and `uv run --frozen apm --version` prints 0.39.3. - [ ] `apm-cli` no longer appears in `requirements-dev.txt` or `requirements-dev.lock`. - [ ] After `uv sync --frozen`, `pre-commit run --all-files` still passes with the tools in `.venv-dev`. - [ ] With no other `apm` on `PATH`, `uv run --frozen apm install` and `uv run --frozen apm audit` succeed. The resulting `apm.lock.yaml` is committed, with any change apm makes to `apm.yml`. - [ ] After that install, `.claude/commands/plan.md` and `.claude/commands/ship.md` contain `disable-model-invocation: true`. These files are not tracked, so the pull request states the result under *Verified*. - [ ] `python3 -m unittest discover -s tests/scripts` passes. - [ ] `docs/contributing/setup.md` lists uv as a prerequisite and gives the two commands.
Claude added the Kind/Enhancement label 2026-12-04 20:20:02 +00:00
Claude added a new dependency 2026-12-04 20:20:06 +00:00
Claude added the
Status
Ready for Agent
label 2026-12-04 20:20:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#517