feat(lint): let bot PRs bump apm ref: lines and regenerate the apm lock #494
Notifications
Due Date
No due date set.
Blocks
Reference: Mortis/Kamino#494
Reference in new issue
Block a user
Part of #194
Problem
The bot-PR diff gate refuses every file not on its allowlist, and neither
apm.ymlnorapm.lock.yamlis on it. Once the skills-source dependencies are pinned withref: <plugin>-v<x.y.z>and a Renovate regex manager bumps them, every such bot PR fails Lint.Out of scope: the Renovate config and lock regeneration (separate issues), and
.claude/paths. Those come later, once deployed files are committed (#194).Proposal
Add two allowances to the gate. Everything else stays refused, and CODEOWNERS approval still applies to both files.
apm.yml: a changed line may only be aref:line of the formref: <plugin>-v<x.y.z>whose only change is the version digits. The plugin prefix must stay the same, and the old and new lines must have the same shape.apm.lock.yaml: allowed only whenapm.ymlalso changed in the same PR. Its changed lines are limited to the kinds a ref bump produces: resolved ref, resolved commit (40-hex), version, content and file hashes (sha256),generated_at,apm_version, and deployed-file hash entries.Acceptance criteria
Check:
python3 -m unittest discover -s tests/scripts, with a new case for each line below.apm.ymlref:digit bump together with matching lock churn.apm.ymlchange in the same PR.ref:changed to a branch name, an arbitrary ref, or another plugin's prefix (for examplegit-v…togitea-v…).git:orpath:line, or to any other line inapm.yml.renovate.jsondescription name the new allowances. Check: read both.