kyberforge SessionStart hook resolves the repo-pinned apm and flags apm older than 0.39.2 #270
Notifications
Due Date
No due date set.
Reference: Mortis/Holocron#270
Reference in new issue
Block a user
Parent
#268 (spec). Decisions: ADR-0034. Read the findings comment from #269 on #268 first.
What to build
The kyberforge SessionStart hook (ADR-0019) ships to every consumer repo. Today it always runs the bare
apmon PATH. Change it to choose the right apm:It decides the binary once and uses it for both the outdated check and the update. It never runs a uv sync or install. When the chosen apm is older than 0.39.2, it prints a fixed "apm too old" line instead of running the outdated check, because a refused v4 lock would otherwise look up to date. All advice lines are fixed text that names the chosen binary (
uv run apm installorapm install), and command output is never interpolated.This must land, released and tagged, before the cutover. The new hook must already be deployed when this repo's lock goes to v4. On this repo it still falls back to the global apm until the cutover adds the pin.
Also amend ADR-0034 to say the test seam is a PATH stub of
uv, not anAPMenv override.Acceptance criteria
uv run;uvrecords every invocation, and the tests assert thatuv sync, or any uv command other thanrun, is never called.metadata.versionbumps for any changed skill. The rootexecutables.allowkey follows the new version, and the marketplace manifest is re-packed. Pre-commit and pre-push pass.scripts/tag-plugin-releases.shis run. The exact tag and push command are shown to the maintainer and pushed only on their explicit yes.git ls-remote --tags origin 'kyberforge-v*'shows the new tag.Blocked by