Cutover: this repo runs apm 0.39.3 from a uv pin #271

Open
opened 2026-12-01 22:57:49 +00:00 by Claude · 0 comments
Owner

Parent

#268 (spec). Decisions: ADR-0034. Read the findings comment from #269 on #268 first.

What to build

In one PR, switch this repo from the global pipx apm to apm-cli 0.39.3 pinned in the repo with uv:

  • Add a root pyproject.toml: no build system, uv package mode off, Python 3.11 or later, and a dev dependency group pinning apm-cli==0.39.3.
  • Commit uv.lock, and ignore .venv/.
  • Switch the pre-push apm gate scripts to uv run --project <repo root> --frozen apm.
  • Add a shared check that fails clearly when the resolved apm is below 0.39.2.
  • Point the instructions-author bats suite at the pinned apm.
  • Regenerate apm.lock.yaml with the pinned apm and commit it, along with any .claude/settings.json or .claude/apm-hooks.json content apm writes. This lock rewrite is the one sanctioned exception to discarding lock churn on a branch, so say so in the PR. No hand edits to apm-owned files.
  • Make any gate-script or audit-waiver change the spike found necessary. If the spike found none, leave the scripts' matching logic alone.

Start only once the kyberforge release from #270 is on main, tagged, and recorded in the lock this branch starts from.

Acceptance criteria

  • uv run --frozen apm --version reports 0.39.3. uv.lock pins apm-cli and hashes its dependencies. .venv/ is ignored.
  • The gate-script test (seam B: a fake uv and a stub apm first on PATH) passes, and proves three things:
    • the git-env scrub still applies;
    • --project names the repo root even when a script runs from a plugin directory;
    • the minimum-version check fails with a clear message on an apm below 0.39.2.
  • apm.lock.yaml is at lockfile version 4 and written by 0.39.3. The PR description notes the deliberate lock rewrite.
  • After uv run --frozen apm install, the deployed /plan and /ship commands carry disable-model-invocation: true.
  • Seam C runs with the global pipx apm removed from PATH (not uninstalled): uv sync --frozen, uv run --frozen apm install, the full pre-push hook set and the SessionStart hook all pass.
  • After the one-time setup, the pre-push hook set passes under a no-network namespace, the same way as the ADR-0019 offline verification.
  • The instructions-author bats suite runs against the pinned 0.39.3. It does not skip under --strict.
  • The global pipx apm is still installed and still reports 0.28.0.

Blocked by

  • #270 (merged, tagged, and recorded in the lock)
## Parent #268 (spec). Decisions: ADR-0034. Read the findings comment from #269 on #268 first. ## What to build In one PR, switch this repo from the global pipx apm to apm-cli 0.39.3 pinned in the repo with uv: - Add a root `pyproject.toml`: no build system, uv package mode off, Python 3.11 or later, and a dev dependency group pinning `apm-cli==0.39.3`. - Commit `uv.lock`, and ignore `.venv/`. - Switch the pre-push apm gate scripts to `uv run --project <repo root> --frozen apm`. - Add a shared check that fails clearly when the resolved apm is below 0.39.2. - Point the instructions-author bats suite at the pinned apm. - Regenerate `apm.lock.yaml` with the pinned apm and commit it, along with any `.claude/settings.json` or `.claude/apm-hooks.json` content apm writes. This lock rewrite is the one sanctioned exception to discarding lock churn on a branch, so say so in the PR. No hand edits to apm-owned files. - Make any gate-script or audit-waiver change the spike found necessary. If the spike found none, leave the scripts' matching logic alone. Start only once the kyberforge release from #270 is on `main`, tagged, and recorded in the lock this branch starts from. ## Acceptance criteria - [ ] `uv run --frozen apm --version` reports 0.39.3. `uv.lock` pins apm-cli and hashes its dependencies. `.venv/` is ignored. - [ ] The gate-script test (seam B: a fake `uv` and a stub apm first on PATH) passes, and proves three things: - the git-env scrub still applies; - `--project` names the repo root even when a script runs from a plugin directory; - the minimum-version check fails with a clear message on an apm below 0.39.2. - [ ] `apm.lock.yaml` is at lockfile version 4 and written by 0.39.3. The PR description notes the deliberate lock rewrite. - [ ] After `uv run --frozen apm install`, the deployed `/plan` and `/ship` commands carry `disable-model-invocation: true`. - [ ] Seam C runs with the global pipx apm removed from PATH (not uninstalled): `uv sync --frozen`, `uv run --frozen apm install`, the full pre-push hook set and the SessionStart hook all pass. - [ ] After the one-time setup, the pre-push hook set passes under a no-network namespace, the same way as the ADR-0019 offline verification. - [ ] The instructions-author bats suite runs against the pinned 0.39.3. It does not skip under `--strict`. - [ ] The global pipx apm is still installed and still reports 0.28.0. ## Blocked by - #270 (merged, tagged, and recorded in the lock)
Claude added the Kind/Enhancement
Priority
Medium
3
Status/Ready for Agent
labels 2026-12-01 22:57:49 +00:00
Claude added a new dependency 2026-12-01 22:58:17 +00:00
Claude added this to the Spec: Upgrade apm to 0.39.3 and pin it per repo with uv milestone 2026-12-01 22:58:25 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Holocron#271