chore(apm): pin apm with uv #517
Notifications
Due Date
No due date set.
Blocks
Depends on
Reference: Mortis/Kamino#517
Reference in new issue
Block a user
Part of #499
Problem
A contributor who types
apmgets whatever version is installed on their machine, not the version this repository pins. apm 0.37.0 to 0.39.1 refuse anapm.lock.yamlrewritten by 0.39.2 or later, and versions before 0.39.0 dropdisable-model-invocationfrom 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
pyproject.tomlwith[tool.uv] package = false,apm-cli==0.39.3in thedevdependency group, andrequires-python = ">=3.11". ruff readsrequires-pythontoo, and a higher floor makes it reformat existing files.uv.lock. Contributors runuv sync --frozenonce, thenuv run --frozen apm ....apm-cliand its comment fromrequirements-dev.txtand regeneraterequirements-dev.lockwithscripts/lock-requirements.sh, so there is one pin. Both files are inputs of theciimage, so followimages/AGENTS.md. Update the comments there and inimages/ci/Dockerfilethat still place the dev tools in.venv.apm.lock.yamlwith the pinned apm.pyproject.tomlanduv.locktobuild_ignoreingalaxy.yml, to the IGNORED list inscripts/select_molecule_scenarios.pyand toCODEOWNERS.apm-cliout of the "lint tooling" group inrenovate.json.Acceptance criteria
uv lock --checkpasses, anduv run --frozen apm --versionprints 0.39.3.apm-clino longer appears inrequirements-dev.txtorrequirements-dev.lock.uv sync --frozen,pre-commit run --all-filesstill passes with the tools in.venv-dev.apmonPATH,uv run --frozen apm installanduv run --frozen apm auditsucceed. The resultingapm.lock.yamlis committed, with any change apm makes toapm.yml..claude/commands/plan.mdand.claude/commands/ship.mdcontaindisable-model-invocation: true. These files are not tracked, so the pull request states the result under Verified.python3 -m unittest discover -s tests/scriptspasses.docs/contributing/setup.mdlists uv as a prerequisite and gives the two commands.