spec: consumer pinning and Renovate bumps for Holocron plugins #260
Open
opened 2026-12-01 20:12:01 +00:00 by Claude
·
1 comment
No Branch/Tag Specified
main
research/copilot-cli-agents
research/team-structures
research/enforcement-hooks
research/team-patterns
research/existing-infra-skills
feat/66-wire-gitea-mcp-config
plan-v0.5.0
bin-v5.0.0
plan-v0.4.0
plan-v0.3.0
mattpocock-v0.5.0
bin-v4.0.0
plan-v0.2.0
plan-v0.1.0
delivery-v0.8.0
k8s-v0.2.0
gitops-v0.2.0
ansible-v0.1.0
mattpocock-v0.4.0
bin-v3.0.0
kyberforge-v2.2.1
lint-v1.1.9
gitea-v1.3.10
git-v1.3.9
core-v1.1.4
git-v1.3.8
v2.0.1
v2.0.0
v1.0.0
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Status/Needs Triage
Status/Ready for Agent
Status/Ready for Human
Wayfinder/Grilling
Wayfinder/Map
Wayfinder/Prototype
Wayfinder/Research
Wayfinder/Task
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Maintainer needs to evaluate this issue
Fully specified, ready for an AFK agent
Requires human implementation
Wayfinder ticket (HITL): decision made in conversation
Wayfinder map: index of decisions for an effort
Wayfinder ticket (HITL): cheap artifact to react to
Wayfinder ticket (AFK): research a fact a decision waits on
Wayfinder ticket: work that unblocks a decision (or build work when the map's Notes allow)
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mortis/Holocron#260
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Spec for #235 and #236. Decisions are recorded in ADR-0033's 2026-11-29 amendment (#258, merged). Consumer docs are in the README's "For external consumers" section (#259, merged).
Problem Statement
A consumer that wants to pin a Holocron plugin to a release, and have those pins bumped automatically, can do neither reliably today:
<host>/Mortis/Holocron/plugins/<name>#<ref>). It foldsplugins/<name>into the repository path and fails with "Not found". This happens on apm 0.28.0 and still on 0.39.1.apm install --dry-rundoes not catch it. A separate parse bug (rstrip(".git")) madeplugins/gitfail even earlier, but it is already fixed upstream (microsoft/apm#3715, PR #3767).git:+path:+ref:) works, but Renovate's built-inapmmanager extracts only shorthand strings and silently drops object-form entries. Noapm.ymlentry is both installable by apm and updatable by that manager.overridePackageNamepackageRule. That rule could never work, and it has been withdrawn.So consumers either track
main(no pinning) or pin by hand and never hear about new releases.Solution
Consumers pin with the object form,
ref: <plugin>-v<x.y.z>, keys in the ordergit,path,ref. This is already documented. A Renovate regex custom manager reads theref:line of each object-form entry and proposes a bump to the newest tag with the same plugin prefix. A post-upgrade task regeneratesapm.lock.yamlin the same branch. Every bump is a reviewed PR, never automerged.The route is proven end to end on one real consumer (Kamino) with a live bot PR. Holocron then publishes the verified config as a copy-paste snippet. Two upstream reports are filed in parallel so the native routes can replace the workaround one day:
User Stories
apm install --dry-rundoes not prove a shorthand works, so that I trust only a real install.<plugin>-v<x.y.z>tag exists, so that I learn about releases without polling.gitea-v*tag is never proposed for mygitpin.apm.ymlwhen Renovate bumps it, so that the result is still a valid ref.apm.lock.yamlregenerated in the same Renovate PR, so that the manifest and the lock never disagree.ref:version bump and its lock churn, and nothing else, so that the gate keeps its guarantees.apm.ymlchanged in the same PR, so that the bot cannot rewrite the lock on its own.git:orpath:lines, so that the bot cannot retarget a dependency.apm install, so that no other command can run.Implementation Decisions
Dependency form. Object form only, keys in the order
git,path,ref, withref: <plugin>-v<x.y.z>. The tag prefix equals the plugin directory name by construction, because the tagging script derives it from the directory.Renovate manager. A
customManagersentry of type regex, matched onapm.yml:packageNameis the Holocron clone URL anddepNameis the plugin name frompath:;currentValuecaptures only the version digits after<plugin>-v, so the prefix stays in the file and no auto-replace template is needed;git-tags, versioningsemver;^{{{depName}}}-v(?<version>\d+\.\d+\.\d+)$. If templating does not work on the pinned Renovate, the fallback is one entry per plugin with a literal prefix;automerge: false, set explicitly, because the consumer's global default is automerge on. This was already decided in Kamino #208.Auth. The Holocron repo is public, so no token should be needed. Add a
git-tagshostRule for the host only if the dry run shows a failed lookup. The platform'sgiteahostRule may not apply togit-tags.Lock regeneration. A
postUpgradeTasksentry runsapm install. File filter: the lock only (it grows to include.claude/**once Kamino commits deployed files). Execution mode: once per branch. The self-hosted globalallowedCommandsis["^apm install$"]. apm is made available in the Renovate job at the version Kamino's dev lock pins, never unpinned.Bot-PR diff gate (Kamino). New allowances:
apm.ymlref:line whose only change is the version digits within the same plugin prefix;apm.lock.yamlchurn, only whenapm.ymlchanged in the same PR.Everything else stays refused. CODEOWNERS approval still applies to
apm.ymlandapm.lock.yaml.Docs timing. The object-form pin and the withdrawal are already published (#258, #259). The Renovate snippet is published only after the live proof (H4).
Upstream etiquette. For Renovate, file a Discussion, not a PR, because maintainers discourage AI-generated PRs without agreement. For apm, file an issue first, per its contributing guide.
Ticket breakdown
ref:, regex manager replaces the built-in apm manager; split K1–K5 outref:; regenerate the lock;resolved_commitequals each tag's commitcustomManagersentry (+git-tagshostRule only if needed); local dry run at the pinned Renovate proposes only same-prefix tagsallowedCommands,postUpgradeTasksThe Kamino tickets are filed in Kamino as standalone issues. They do not reference Holocron issues, ADRs or this spec; the public Holocron URL is fine. Commits carry an
Assisted-by:trailer. The tickets are labelledStatus/Ready for Human, because Kamino is not onboarded to the delivery team. H3 links them from the Holocron side.Testing Decisions
A good test checks external behaviour: the gate's verdict on a given diff, the updates Renovate proposes for a given manifest, and the PR a real run produces. It does not check the regex internals.
Seam 1, Kamino bot-diff gate unit tests (existing suite). Cases:
ref:digit bump plus lock churn in the same PR;ref:set to a branch name or another plugin's prefix;git:orpath:line.Prior art: the existing
rev:and requirements-lock cases in the same suite.Seam 2, Renovate local dry run at the pinned Renovate version (Kamino's documented procedure for any Renovate config change). With pins rolled back to older tags, it proposes the newest same-prefix tag for each of git, mattpocock and plan, and nothing across prefixes. The dry-run log is the evidence for K2.
Seam 3, live bot PR (K5). It is the end-to-end proof. Check:
resolved_commitequalsgit rev-parse <tag>^{commit}(a guard against #238);Seam 4, Holocron docs. The pre-commit Vale hook passes, and a grep finds no withdrawn packageRule. There is no code seam on the Holocron side.
Out of Scope
.claude/in Kamino (owned by Kamino #194). This spec only notes that the file filter and the gate must widen when that happens.Further Notes
Residual risks:
.claude/committed in Kamino: once that happens,fileFiltersand the gate scope must grow.executables.allow: it may need an entry forapm installin the bot job.Related:
🤖 Generated with Claude Code
https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Scope change, 2026-12-01: no upstream reports. The maintainer decided not to post anything upstream.