Compare commits

...
Author SHA1 Message Date
Defame1297andClaude Opus 5.5 a0997cbcf7 docs(adr): pin apm per repo with uv (ADR-0034)
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
2026-12-01 21:14:27 +00:00
Defame1297 e17237a9e2 Merge pull request 'docs(readme): document consumer pinning with the object form (#235, #236)' (#259) from docs/consumer-pinning-readme into main
Reviewed-on: #259
Reviewed-by: Defame1297 <[email protected]>
2026-12-01 20:08:16 +00:00
Defame1297andClaude Opus 5.5 389b5cc425 docs(readme): document consumer pinning with the object form
Expand README "For external consumers" with how to pin a plugin at
<plugin>-v<x.y.z> using apm's object form, why the shorthand form fails
on this host, and that Renovate updates are planned but untested
(ADR-0033 consequence 3). Point the ref: line in the bin, core, git and
kyberforge READMEs at that section.

Refs #235, #236

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-29 19:54:37 +00:00
Defame1297 276fd1f099 Merge pull request 'docs(adr): amend ADR-0033 for object-form pins (#235, #236)' (#258) from docs/adr-0033-consumer-pin-amendment into main
Reviewed-on: #258
Reviewed-by: Defame1297 <[email protected]>
2026-11-29 19:20:59 +00:00
Defame1297andClaude Opus 5.5 b4a452b690 docs(adr): amend ADR-0033 — withdraw apm-manager packageRule
Renovate's apm manager reads only the shorthand form, which apm cannot
install for a Gitea subpath, so the overridePackageName rule cannot work.
Record the object-form consumer pin and the planned, untested customManagers
route. The tag shape decision is unchanged.

Refs #235, #236

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-29 18:51:20 +00:00
Defame1297 0abe97270b Merge pull request 'chore(apm): lock plan 0.5.0' (#257) from chore/lock-plan-0.5.0 into main
Reviewed-on: #257
2026-11-29 18:32:21 +00:00
Defame1297andClaude Opus 5.5 1e1c2c1ce2 chore(apm): lock plan 0.5.0
Refresh the lock after #256: write-docs is now deployed from plan, not bin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-29 18:12:28 +00:00
9 changed files with 180 additions and 46 deletions

No files matched your search

+32 -1
View File
@@ -111,7 +111,38 @@ An agent may run all four steps, but it runs step 4 only after the maintainer ex
## For external consumers ## For external consumers
Consume the packages through apm, the way this repo does — declare them as `dependencies.apm` git+path entries against the holocron remote and run `apm install`. apm is the only supported install path. Consume the packages through apm, the way this repo does. apm is the only supported install path.
### Pinning a plugin to a release
Each plugin is released as a git tag `<plugin>-v<x.y.z>`, for example `git-v1.3.9`
([ADR-0033](docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md)). Pin one with apm's
object form, keys in this order (the planned Renovate rule matches only this order):
```yaml
dependencies:
apm:
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/git
ref: git-v1.3.9
```
Then run `apm install`. Without `ref:`, the entry tracks the default branch. To list a plugin's
releases, run `git ls-remote --tags https://git.rkdr.net/Mortis/Holocron.git '<plugin>-v*'`;
`apm outdated` also reports newer `<plugin>-v<x.y.z>` tags.
### Do not use the shorthand form
The shorthand `git.rkdr.net/Mortis/Holocron/plugins/<name>#<plugin>-v<x.y.z>` does not work on this
host. apm reads `plugins/<name>` as part of the repository path, so a real install tries to clone
`.../Holocron/plugins/<name>.git` and fails with "Not found". `apm install --dry-run` does not catch
this. Use the object form.
### Automated updates
Renovate's `apm` manager cannot update these pins: it reads only the shorthand form and drops
object-form entries. A Renovate regex manager on the `ref:` line is planned but untested, so bump
`ref:` by hand until a verified rule is published here. See ADR-0033 consequence 3.
## Where to go next ## Where to go next
+28 -28
View File
@@ -1,11 +1,11 @@
lockfile_version: '1' lockfile_version: '1'
generated_at: '2026-11-29T12:58:17.934205+00:00' generated_at: '2026-11-29T18:12:07.565691+00:00'
apm_version: 0.28.0 apm_version: 0.28.0
dependencies: dependencies:
- repo_url: Mortis/Holocron - repo_url: Mortis/Holocron
name: ansible name: ansible
host: git.rkdr.net host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516 resolved_commit: 3b0dcc32d4009e10be98be7c167bb72bd7b001bd
version: 0.1.0 version: 0.1.0
virtual_path: plugins/ansible virtual_path: plugins/ansible
is_virtual: true is_virtual: true
@@ -15,8 +15,8 @@ dependencies:
- repo_url: Mortis/Holocron - repo_url: Mortis/Holocron
name: bin name: bin
host: git.rkdr.net host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516 resolved_commit: 3b0dcc32d4009e10be98be7c167bb72bd7b001bd
version: 4.0.0 version: 5.0.0
virtual_path: plugins/bin virtual_path: plugins/bin
is_virtual: true is_virtual: true
package_type: apm_package package_type: apm_package
@@ -28,8 +28,6 @@ dependencies:
- .claude/skills/diagnose/assets/hitl-loop.template.sh - .claude/skills/diagnose/assets/hitl-loop.template.sh
- .claude/skills/diagnose/references/feedback-loops.md - .claude/skills/diagnose/references/feedback-loops.md
- .claude/skills/diagnose/references/regression-seams.md - .claude/skills/diagnose/references/regression-seams.md
- .claude/skills/write-docs
- .claude/skills/write-docs/SKILL.md
- .claude/skills/zoom-out - .claude/skills/zoom-out
- .claude/skills/zoom-out/SKILL.md - .claude/skills/zoom-out/SKILL.md
deployed_file_hashes: deployed_file_hashes:
@@ -38,14 +36,13 @@ dependencies:
.claude/skills/diagnose/assets/hitl-loop.template.sh: sha256:b2932630950e5210075bcd6f850e5accf30c101c5367b29eac3a29b4dd8084c8 .claude/skills/diagnose/assets/hitl-loop.template.sh: sha256:b2932630950e5210075bcd6f850e5accf30c101c5367b29eac3a29b4dd8084c8
.claude/skills/diagnose/references/feedback-loops.md: sha256:5ed81b331fcf7dfc229b92be7250fd786064f8363dbf55bf6b6e5e9b5f5e1daf .claude/skills/diagnose/references/feedback-loops.md: sha256:5ed81b331fcf7dfc229b92be7250fd786064f8363dbf55bf6b6e5e9b5f5e1daf
.claude/skills/diagnose/references/regression-seams.md: sha256:fdb24c383628d239e54424f72258860612d6fe8a1fc5d0057ab5073628cc71f4 .claude/skills/diagnose/references/regression-seams.md: sha256:fdb24c383628d239e54424f72258860612d6fe8a1fc5d0057ab5073628cc71f4
.claude/skills/write-docs/SKILL.md: sha256:861bfa52ec1f7f5c2bc335da4e8d92880259c02c2edacb1ad79cca3a3c557d08
.claude/skills/zoom-out/SKILL.md: sha256:35a81f26d8867ad063c5b8d50b4e7ffee9f6c0afa260b52137083fc7392ffe90 .claude/skills/zoom-out/SKILL.md: sha256:35a81f26d8867ad063c5b8d50b4e7ffee9f6c0afa260b52137083fc7392ffe90
content_hash: sha256:b9e8a6cf0e0e388dc672502e86b6fcdc5692bf4be6b10355f02b5b5637727f0f content_hash: sha256:62c4b42e4ea52a09b123e81fe28a69b29d5f2402c9ac8289934acdea8d4f63a7
declared_license: MIT declared_license: MIT
- repo_url: Mortis/Holocron - repo_url: Mortis/Holocron
name: core name: core
host: git.rkdr.net host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516 resolved_commit: 3b0dcc32d4009e10be98be7c167bb72bd7b001bd
version: 1.1.4 version: 1.1.4
virtual_path: plugins/core virtual_path: plugins/core
is_virtual: true is_virtual: true
@@ -100,7 +97,7 @@ dependencies:
- repo_url: Mortis/Holocron - repo_url: Mortis/Holocron
name: delivery name: delivery
host: git.rkdr.net host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516 resolved_commit: 3b0dcc32d4009e10be98be7c167bb72bd7b001bd
version: 0.8.0 version: 0.8.0
virtual_path: plugins/delivery virtual_path: plugins/delivery
is_virtual: true is_virtual: true
@@ -181,7 +178,7 @@ dependencies:
- repo_url: Mortis/Holocron - repo_url: Mortis/Holocron
name: git name: git
host: git.rkdr.net host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516 resolved_commit: 3b0dcc32d4009e10be98be7c167bb72bd7b001bd
version: 1.3.9 version: 1.3.9
virtual_path: plugins/git virtual_path: plugins/git
is_virtual: true is_virtual: true
@@ -296,7 +293,7 @@ dependencies:
- repo_url: Mortis/Holocron - repo_url: Mortis/Holocron
name: gitea name: gitea
host: git.rkdr.net host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516 resolved_commit: 3b0dcc32d4009e10be98be7c167bb72bd7b001bd
version: 1.3.10 version: 1.3.10
virtual_path: plugins/gitea virtual_path: plugins/gitea
is_virtual: true is_virtual: true
@@ -381,7 +378,7 @@ dependencies:
- repo_url: Mortis/Holocron - repo_url: Mortis/Holocron
name: gitops name: gitops
host: git.rkdr.net host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516 resolved_commit: 3b0dcc32d4009e10be98be7c167bb72bd7b001bd
version: 0.2.0 version: 0.2.0
virtual_path: plugins/gitops virtual_path: plugins/gitops
is_virtual: true is_virtual: true
@@ -404,7 +401,7 @@ dependencies:
- repo_url: Mortis/Holocron - repo_url: Mortis/Holocron
name: k8s name: k8s
host: git.rkdr.net host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516 resolved_commit: 3b0dcc32d4009e10be98be7c167bb72bd7b001bd
version: 0.2.0 version: 0.2.0
virtual_path: plugins/k8s virtual_path: plugins/k8s
is_virtual: true is_virtual: true
@@ -423,7 +420,7 @@ dependencies:
- repo_url: Mortis/Holocron - repo_url: Mortis/Holocron
name: kyberforge name: kyberforge
host: git.rkdr.net host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516 resolved_commit: 3b0dcc32d4009e10be98be7c167bb72bd7b001bd
version: 2.2.1 version: 2.2.1
virtual_path: plugins/kyberforge virtual_path: plugins/kyberforge
is_virtual: true is_virtual: true
@@ -674,7 +671,7 @@ dependencies:
- repo_url: Mortis/Holocron - repo_url: Mortis/Holocron
name: lint name: lint
host: git.rkdr.net host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516 resolved_commit: 3b0dcc32d4009e10be98be7c167bb72bd7b001bd
version: 1.1.9 version: 1.1.9
virtual_path: plugins/lint virtual_path: plugins/lint
is_virtual: true is_virtual: true
@@ -702,7 +699,7 @@ dependencies:
- repo_url: Mortis/Holocron - repo_url: Mortis/Holocron
name: mattpocock name: mattpocock
host: git.rkdr.net host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516 resolved_commit: 3b0dcc32d4009e10be98be7c167bb72bd7b001bd
version: 0.5.0 version: 0.5.0
virtual_path: plugins/mattpocock virtual_path: plugins/mattpocock
is_virtual: true is_virtual: true
@@ -712,8 +709,8 @@ dependencies:
- repo_url: Mortis/Holocron - repo_url: Mortis/Holocron
name: plan name: plan
host: git.rkdr.net host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516 resolved_commit: 3b0dcc32d4009e10be98be7c167bb72bd7b001bd
version: 0.4.0 version: 0.5.0
virtual_path: plugins/plan virtual_path: plugins/plan
is_virtual: true is_virtual: true
package_type: apm_package package_type: apm_package
@@ -731,19 +728,22 @@ dependencies:
- .claude/skills/research-docs/SKILL.md - .claude/skills/research-docs/SKILL.md
- .claude/skills/research-docs/references/file-format.md - .claude/skills/research-docs/references/file-format.md
- .claude/skills/research-docs/references/topics.md - .claude/skills/research-docs/references/topics.md
- .claude/skills/write-docs
- .claude/skills/write-docs/SKILL.md
deployed_file_hashes: deployed_file_hashes:
.claude/agents/plan-gate.md: sha256:c1c89bae5dd59de122603c2caf1907e8eaf38244cf007dd1942df8cea616a8ca .claude/agents/plan-gate.md: sha256:c1c89bae5dd59de122603c2caf1907e8eaf38244cf007dd1942df8cea616a8ca
.claude/agents/plan-recorder.md: sha256:a5283798a574900d4b78dbbbcdf78b9ae0997e8496f5971f0085cfad87c1fea0 .claude/agents/plan-recorder.md: sha256:a5283798a574900d4b78dbbbcdf78b9ae0997e8496f5971f0085cfad87c1fea0
.claude/agents/plan-researcher.md: sha256:eda0457d2007cf0c6cb4745383a0369d03a26ed252d7251a1f5250003a89ef85 .claude/agents/plan-researcher.md: sha256:eda0457d2007cf0c6cb4745383a0369d03a26ed252d7251a1f5250003a89ef85
.claude/agents/plan-validator.md: sha256:a56e7a710fd9e7a9dd9e2601f1f2701b98fd229f3e014bba4bda4dfe5977ecae .claude/agents/plan-validator.md: sha256:a56e7a710fd9e7a9dd9e2601f1f2701b98fd229f3e014bba4bda4dfe5977ecae
.claude/commands/next.md: sha256:8e16330ec0f16dbbc86d44fca94699e33e393c9a8af76f45d3f3bd2b9c8bfa1f .claude/commands/next.md: sha256:8e16330ec0f16dbbc86d44fca94699e33e393c9a8af76f45d3f3bd2b9c8bfa1f
.claude/commands/plan.md: sha256:2538b3dbb3860ebe93a39cad95cd5a1adcbeded19f404a84201b3e8aa7ce91c7 .claude/commands/plan.md: sha256:0b02a8014a916cce6c8cd972b47c4997e7f0b630eaa03b7bb80aa04ae6f0c604
.claude/commands/ship.md: sha256:f108f73e60a884f46285955027fba47d6309fed6a89812948f577e27be180af8 .claude/commands/ship.md: sha256:f108f73e60a884f46285955027fba47d6309fed6a89812948f577e27be180af8
.claude/skills/plan-track/SKILL.md: sha256:fee5062c8c63b49f66368b290c8ebd8cfff744137670d0c037da1a49c455c047 .claude/skills/plan-track/SKILL.md: sha256:a6eb123f518f77172d98ebe80c227f4658b3721a07282a8c6430244ed087f59f
.claude/skills/research-docs/SKILL.md: sha256:93023786f71dac5a77e60eca0be09e6510dfd45509f5e8cbc755395fe8774539 .claude/skills/research-docs/SKILL.md: sha256:93023786f71dac5a77e60eca0be09e6510dfd45509f5e8cbc755395fe8774539
.claude/skills/research-docs/references/file-format.md: sha256:29d5583beaa531d26895c54def112039730490c312401648a6bdb7dd5278fb3c .claude/skills/research-docs/references/file-format.md: sha256:29d5583beaa531d26895c54def112039730490c312401648a6bdb7dd5278fb3c
.claude/skills/research-docs/references/topics.md: sha256:757abb7b6be44c3d3c0dd1f4818a344e08877810d36bf8be60ea7189cba8d12f .claude/skills/research-docs/references/topics.md: sha256:757abb7b6be44c3d3c0dd1f4818a344e08877810d36bf8be60ea7189cba8d12f
content_hash: sha256:be4369da6e8092deadb8c5fe1d5caa93cfa95ec2dac1092968bbc9abe4e77c97 .claude/skills/write-docs/SKILL.md: sha256:861bfa52ec1f7f5c2bc335da4e8d92880259c02c2edacb1ad79cca3a3c557d08
content_hash: sha256:0128e9357a9fc96983967b994b8bcccd3da80c3021fac49f7ffd10ac818144ff
declared_license: MIT declared_license: MIT
- repo_url: fluxcd/agent-skills - repo_url: fluxcd/agent-skills
name: gitops-knowledge name: gitops-knowledge
@@ -1477,7 +1477,7 @@ deployments:
owners: owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan - git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:2538b3dbb3860ebe93a39cad95cd5a1adcbeded19f404a84201b3e8aa7ce91c7 content_hash: sha256:0b02a8014a916cce6c8cd972b47c4997e7f0b630eaa03b7bb80aa04ae6f0c604
- kind: project-relative - kind: project-relative
target: claude target: claude
value: .claude/commands/ship.md value: .claude/commands/ship.md
@@ -4717,7 +4717,7 @@ deployments:
owners: owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan - git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:fee5062c8c63b49f66368b290c8ebd8cfff744137670d0c037da1a49c455c047 content_hash: sha256:a6eb123f518f77172d98ebe80c227f4658b3721a07282a8c6430244ed087f59f
- kind: project-relative - kind: project-relative
target: claude target: claude
value: .claude/skills/prompt-author value: .claude/skills/prompt-author
@@ -5525,8 +5525,8 @@ deployments:
runtime: null runtime: null
scope: project scope: project
owners: owners:
- git.rkdr.net/Mortis/Holocron/plugins/bin - git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/bin active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: null content_hash: null
- kind: project-relative - kind: project-relative
target: claude target: claude
@@ -5534,8 +5534,8 @@ deployments:
runtime: null runtime: null
scope: project scope: project
owners: owners:
- git.rkdr.net/Mortis/Holocron/plugins/bin - git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/bin active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:861bfa52ec1f7f5c2bc335da4e8d92880259c02c2edacb1ad79cca3a3c557d08 content_hash: sha256:861bfa52ec1f7f5c2bc335da4e8d92880259c02c2edacb1ad79cca3a3c557d08
- kind: project-relative - kind: project-relative
target: claude target: claude
@@ -7,6 +7,11 @@ and nothing detects it.
**Status: accepted (2026-08-14).** **Status: accepted (2026-08-14).**
*Amended 2026-12-01 (holocron#265): the hook resolves apm through the contract in ADR-0034 (a
repo-pinned `uv run --frozen` apm, else `PATH` apm, else exit 0) instead of a bare `command -v apm`.
The "0.28.0" claims below (the correction near line 80, the `apm outdated` prose at about line 143,
and the sidecar reproduction at about line 217) are pending re-verification on 0.39.3 under #265.*
## Context ## Context
The pre-existing answer was `scripts/git-hooks/post-push`, which pulled the marketplace clone and The pre-existing answer was `scripts/git-hooks/post-push`, which pulled the marketplace clone and
@@ -2,6 +2,10 @@
**Status: accepted (2026-11-27).** **Status: accepted (2026-11-27).**
*Amended 2026-12-01 (holocron#265): the 0.28.0 claims in this ADR (the `apm outdated` tag-pattern
check in Context and the apm behaviour in consequence 3) are pending re-verification on 0.39.3 under
#265, once apm is pinned per repo (ADR-0034). The Decision is unchanged.*
## Context ## Context
Issue #223. Consumers that pin a holocron package need a git tag per package version. Two consumers Issue #223. Consumers that pin a holocron package need a git tag per package version. Two consumers
@@ -9,6 +13,9 @@ are known, and both read the same tag shape:
- **Renovate's `apm` manager** (≥ 44.153.0) looks up a dependency on a `plugins/<name>` subpath - **Renovate's `apm` manager** (≥ 44.153.0) looks up a dependency on a `plugins/<name>` subpath
through the `git-tags` datasource. It considers only tags of the form `<prefix>-v<x.y.z>`. through the `git-tags` datasource. It considers only tags of the form `<prefix>-v<x.y.z>`.
*Amended 2026-11-29 (holocron#235, #236): this is wrong for Holocron consumers. The manager reads
only the shorthand form, which apm cannot install for a Gitea subpath, so it does not serve them
today. See consequence 3.*
- **`apm outdated`** matches the tag pattern `{name}-v{version}`. This was verified with apm 0.28.0 - **`apm outdated`** matches the tag pattern `{name}-v{version}`. This was verified with apm 0.28.0
against a synthetic repo, and `apm_cli/marketplace/tag_pattern.py` lists `{name}-v{version}` against a synthetic repo, and `apm_cli/marketplace/tag_pattern.py` lists `{name}-v{version}`
among its patterns. among its patterns.
@@ -159,20 +166,29 @@ cuts the same tags on the same commits.
**2. The root catalogue's version is not tagged per plugin.** Only the `plugins/<name>/apm.yml` **2. The root catalogue's version is not tagged per plugin.** Only the `plugins/<name>/apm.yml`
versions get `<plugin>-v*` tags. The marketplace catalogue's own version is out of scope. versions get `<plugin>-v*` tags. The marketplace catalogue's own version is out of scope.
**3. Renovate consumers on this Gitea need an `overridePackageName` rule until upstream fixes **3. Consumers pin with the object form; the `apm` manager does not update them.** *Amended
it.** On hosts other than GitHub and GitLab, Renovate's apm manager does not strip `/plugins/<name>` 2026-11-29 (holocron#235, #236); this replaces the original consequence 3, an `overridePackageName`
from the package URL (`lib/modules/manager/apm/extract.ts`, `resolveRepoPath`), so its `git-tags` `packageRules` entry, which is withdrawn.* It was untested and cannot work, for any form:
lookup targets a repo that does not exist. A consumer-side `packageRules` entry along these lines
rewrites it. **It is untested.**
```json - On a generic git host such as this Gitea, apm (0.28.0, and still on `main` at 0.39.1) cannot
{ resolve a plugin subdirectory from the shorthand form. `<host>/Mortis/Holocron/plugins/<name>#ref`
"matchManagers": ["apm"], folds `plugins/<name>` into the repo path, and an install clones `.../plugins/<name>.git` and
"matchDatasources": ["git-tags"], fails with "Not found". The separate `rstrip(".git")` parse bug (0.28.0) is already fixed upstream
"matchPackageNames": ["/\\/plugins\\/[^/]+$/"], (microsoft/apm#3715, PR #3767).
"overridePackageName": "{{{replace '/plugins/[^/]+$' '' packageName}}}" - The object form (`git:` + `path:` + `ref:`) is the only working way to pin a Holocron plugin.
} Consumers set `ref: <plugin>-v<x.y.z>`.
``` - Renovate's `apm` manager (schema `apm: LooseArray(z.string())`) extracts only shorthand strings and
silently drops object-form entries. No `apm.yml` entry is both installable by apm and updatable by
that manager for a Gitea subpath, so no `packageRules` entry can fix it.
The planned route is a Renovate `customManagers` regex manager on the object-form `ref:` line: the
`git-tags` datasource, a `currentValue` capturing only the version after `<plugin>-v`, an
`extractVersion` scoped to that plugin's own prefix, and automerge off. **This is planned and
untested, and no snippet is given.** The verified rule goes in a later amendment, after a live
consumer proof. Two upstream reports are to be filed: an apm issue for generic-host subpath folding,
and a Renovate Discussion for object-form extraction.
The Decision, the tag shape `<plugin>-v<version>`, is unchanged by this amendment.
**4. For a maintainer, Gitea's `create_tag` is an equivalent way to cut a tag**, provided **4. For a maintainer, Gitea's `create_tag` is an equivalent way to cut a tag**, provided
`git cat-file -t <tag>` reports `tag` after fetching. That confirms it is annotated; the script `git cat-file -t <tag>` reports `tag` after fetching. That confirms it is annotated; the script
@@ -0,0 +1,82 @@
# apm is pinned per repo with uv
**Status: accepted (2026-12-01).**
## Context
Issue #265. apm is installed once per machine with pipx, at 0.28.0, and every repo and the
`SessionStart` hook (ADR-0019) call whatever `apm` is on `PATH`. Three things now fail against that:
- **Lockfile format.** apm 0.37 and later write lockfile v4, and apm 0.36.1 and earlier refuse it. A
lock written by 0.39.2 is in turn refused by 0.37.0 through 0.39.1.
- **Command keys.** apm 0.39.0 and later keep Claude command keys such as `disable-model-invocation`
(#245). Earlier versions drop them, so a deployed command silently loses the setting.
- **Machine-global drift.** One shared binary means every checkout's behaviour depends on what was
last installed on that machine. apm has no minimum-version field in `apm.yml`, and upstream's advice
is to pin a minimum in CI. This repo has no CI (ADR-0024), so the pin has to live in the repo.
## Decision
**Each repo pins its own apm with uv. This repo needs apm 0.39.2 or later and is pinned to 0.39.3.**
- **Pin.** The root `pyproject.toml` has no build system, sets `[tool.uv] package = false` and
`requires-python = ">=3.11"`, and declares `[dependency-groups] dev = ["apm-cli==0.39.3"]`. A
committed `uv.lock` fixes the transitive dependencies. `.venv/` is gitignored.
- **Invocation.** Repo scripts run apm as `uv run --project <repo root> --frozen apm`. An `APM`
environment variable overrides the command, as a seam for tests.
- **Minimum version, 0.39.2.** It is the lowest version that reads and writes lockfile v4 and is
read back by later versions, and it is at or above 0.39.0, which keeps the Claude command keys.
Inside this repo the `==` pin enforces it. Where apm comes from `PATH` (a consumer repo that does
not pin), an explicit version check enforces it.
- **uv only pins apm itself.** ADR-0024 stands: apm is the only supported install path for plugin
content. uv installs the tool, never plugins, skills or agents.
- **Hook first.** The kyberforge `SessionStart` hook change ships first, with a kyberforge version
bump and its release tag (ADR-0033). The cutover (the v4 lock, `pyproject.toml`, `uv.lock`, the
scripts and their tests) follows as one PR. The order matters because the deployed hook comes from
the `main` commit that `apm.lock.yaml` records. If the v4 lock landed first, the old hook would run
`PATH` apm 0.28.0, which refuses the lock, and staleness detection would be lost with no error.
- **The cutover PR commits a lock rewrite (v1 to v4) on purpose.** It is the one sanctioned exception
to the rule that `apm.lock.yaml` churn is discarded on feature branches (ADR-0019).
- **Consumer hook contract.** The shipped hook (`check-apm-current.sh`) resolves apm in this order:
1. `uv run --frozen`, when the project pins `apm-cli` and uv exists.
2. `apm` on `PATH`.
3. Neither: exit 0.
It never triggers a uv sync, and on a cold cache it must not touch the network inside the
`SessionStart` timeout. It never reports "up to date" when it ran on an apm older than 0.39.2. Its
advice strings are fixed and name the chosen binary, with no interpolation of command output.
- **Global apm 0.28.0 stays.** It stays installed and on `PATH`, because ansible still uses it
(Defame1297/ansible-homelab-mono#1078). It is not upgraded. Whichever of that issue and
Mortis/Kamino#499 lands last uninstalls it: the last mover deletes.
- **New setup step.** The offline pre-push guarantee of ADR-0019 now needs `uv sync --frozen` once
and `apm install` once per checkout. The first apm 0.39 install also needs the network, to record
commit verdicts.
## Considered options
**Global pipx apm, as today (rejected).** It is the drift described above, and it cannot enforce a
minimum version.
**Upgrade the global apm (rejected).** It would fix this repo and break ansible, which still depends
on 0.28.0 behaviour, and it would leave the next repo with the same shared-binary problem.
**`uvx` (rejected).** It has no lock, so apm's transitive dependencies float between runs and the
pin only covers the top-level package.
**`uv tool install` (rejected).** It is machine-global state, the same drift as pipx under a
different name.
## Consequences
1. **A bare `apm` instruction fails closed.** Any leftover `apm` call in this repo that resolves to
the global 0.28.0 refuses the v4 lock instead of rewriting it. That is the intended failure, but it
will surprise whoever hits it; the fix is the `uv run` form.
2. **The network is needed on first sync.** A fresh checkout needs it for `uv sync --frozen` and again
for the first `apm install`. After both, the offline guarantee holds.
3. **uv becomes a prerequisite** of working in this repo. A consumer without uv falls back to `PATH`
apm and the version check.
4. **Re-verification is pending.** ADR-0019 and ADR-0033 state facts verified against apm 0.28.0.
They are re-checked on 0.39.3 under #265, and each carries a note saying so.
Related: ADR-0019, ADR-0024, ADR-0033; #245, #265; Defame1297/ansible-homelab-mono#1078;
Mortis/Kamino#499.
+1 -1
View File
@@ -19,7 +19,7 @@ Then:
apm install apm install
``` ```
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `bin@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest. The entry above is unpinned and tracks the remote's default branch. To pin a release, add `ref: bin-v<x.y.z>` after `path:`; see [Pinning a plugin to a release](../../README.md#pinning-a-plugin-to-a-release). Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `bin@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024). **Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024).
+1 -1
View File
@@ -19,7 +19,7 @@ Then:
apm install apm install
``` ```
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `core@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest. The entry above is unpinned and tracks the remote's default branch. To pin a release, add `ref: core-v<x.y.z>` after `path:`; see [Pinning a plugin to a release](../../README.md#pinning-a-plugin-to-a-release). Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `core@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024). **Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024).
+1 -1
View File
@@ -19,7 +19,7 @@ Then:
apm install apm install
``` ```
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `git@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest. The entry above is unpinned and tracks the remote's default branch. To pin a release, add `ref: git-v<x.y.z>` after `path:`; see [Pinning a plugin to a release](../../README.md#pinning-a-plugin-to-a-release). Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `git@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills and zero agents — and Claude Code raises no error while doing it (ADR-0024). **Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills and zero agents — and Claude Code raises no error while doing it (ADR-0024).
+1 -1
View File
@@ -19,7 +19,7 @@ Then:
apm install apm install
``` ```
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `kyberforge@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest. The entry above is unpinned and tracks the remote's default branch. To pin a release, add `ref: kyberforge-v<x.y.z>` after `path:`; see [Pinning a plugin to a release](../../README.md#pinning-a-plugin-to-a-release). Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `kyberforge@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills, agents and hooks — and Claude Code raises no error while doing it (ADR-0024). **Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills, agents and hooks — and Claude Code raises no error while doing it (ADR-0024).