docs(adr): pin apm per repo with uv (#265) #267

Merged
Defame1297 merged 2 commits from docs/plan-pin-apm-per-repo into main 2026-12-01 22:40:33 +00:00
Owner

Refs #265

Records the decision to pin apm per repo with uv. Docs only; no code, scripts, lock, pyproject.toml or .claude/settings.json changes. The cutover and the hook change belong to the tickets under #265.

Changes

  • New docs/adr/0034-apm-is-pinned-per-repo-with-uv.md:
    • Decision: pyproject.toml with apm-cli==0.39.3, a committed uv.lock, and uv run --project <repo root> --frozen apm (with an APM env override as a test seam).
    • Minimum apm 0.39.2, and why: lockfile v4, the 0.37.0 to 0.39.1 refusal of a 0.39.2 lock, and the Claude command keys kept from 0.39.0 (#245).
    • Rejected: global pipx, upgrading the global, uvx (no lock, floating transitive dependencies) and uv tool (machine-global drift).
    • Hook-first ordering, and the lock rewrite (v1 to v4) in the cutover PR as the one sanctioned exception to discarding lock churn.
    • Consumer hook fallback contract (uv run --frozen, then PATH apm, then exit 0; never a uv sync; no network on a cold cache; never "up to date" below 0.39.2; fixed advice strings).
    • Global 0.28.0 stays, with last mover deletes (ansible-homelab-mono#1078, Kamino#499).
    • New offline setup step: uv sync --frozen once plus apm install once per checkout.
    • Consequences: a bare apm fails closed against the v4 lock, and the network is needed on first sync.
    • ADR-0024 stands: apm is still the only install path, and uv only pins apm itself.
  • docs/adr/0019-*.md: amendment note. The hook resolves apm through ADR-0034's contract, and its 0.28.0 claims are pending re-verification on 0.39.3.
  • docs/adr/0033-*.md: amendment note. Its 0.28.0 claims are pending re-verification on 0.39.3. The Decision is unchanged.

GLOSSARY.md is untouched: "repo-pinned apm" is defined in the ADR and not used unglossed elsewhere yet.

🤖 Generated with Claude Code

https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi

Refs #265 Records the decision to pin apm per repo with uv. Docs only; no code, scripts, lock, `pyproject.toml` or `.claude/settings.json` changes. The cutover and the hook change belong to the tickets under #265. ## Changes - New `docs/adr/0034-apm-is-pinned-per-repo-with-uv.md`: - Decision: `pyproject.toml` with `apm-cli==0.39.3`, a committed `uv.lock`, and `uv run --project <repo root> --frozen apm` (with an `APM` env override as a test seam). - Minimum apm 0.39.2, and why: lockfile v4, the 0.37.0 to 0.39.1 refusal of a 0.39.2 lock, and the Claude command keys kept from 0.39.0 (#245). - Rejected: global pipx, upgrading the global, `uvx` (no lock, floating transitive dependencies) and `uv tool` (machine-global drift). - Hook-first ordering, and the lock rewrite (v1 to v4) in the cutover PR as the one sanctioned exception to discarding lock churn. - Consumer hook fallback contract (`uv run --frozen`, then `PATH` apm, then exit 0; never a uv sync; no network on a cold cache; never "up to date" below 0.39.2; fixed advice strings). - Global 0.28.0 stays, with last mover deletes (ansible-homelab-mono#1078, Kamino#499). - New offline setup step: `uv sync --frozen` once plus `apm install` once per checkout. - Consequences: a bare `apm` fails closed against the v4 lock, and the network is needed on first sync. - ADR-0024 stands: apm is still the only install path, and uv only pins apm itself. - `docs/adr/0019-*.md`: amendment note. The hook resolves apm through ADR-0034's contract, and its 0.28.0 claims are pending re-verification on 0.39.3. - `docs/adr/0033-*.md`: amendment note. Its 0.28.0 claims are pending re-verification on 0.39.3. The Decision is unchanged. GLOSSARY.md is untouched: "repo-pinned apm" is defined in the ADR and not used unglossed elsewhere yet. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Claude added 1 commit 2026-12-01 21:33:03 +00:00
Record that apm is pinned per repo with uv (minimum 0.39.2, pinned
0.39.3), shipped hook-first, with the consumer hook fallback contract.
Add forward notes on ADR-0019 and ADR-0033 for their 0.28.0 claims,
pending re-verification on 0.39.3.

Refs #265, #245

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Defame1297 added 1 commit 2026-12-01 22:05:59 +00:00
Add lockfile-and-compatibility, approvals-and-executables and
migration-0-28-to-0-39 topics; update installation, cli-reference, the
prompt, hooks and instructions topics for 0.39.x behaviour; label the
remaining 0.28.0 observations by version. Sources: the v0.39.3 source,
CHANGELOG and docs; Context7 was unavailable.

Refs #265

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Defame1297 merged commit 0ad15c80bc into main 2026-12-01 22:40:33 +00:00
Defame1297 deleted branch docs/plan-pin-apm-per-repo 2026-12-01 22:40:36 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#267