Skip to content

Commit e25bd9b

Browse files
devantlerclaude
andcommitted
ci: release the git-commit skill hold through an opt-in unpin dispatch
Upstream repaired git-commit in github/awesome-copilot#6261: it no longer unstages files during a merge, cherry-pick or revert, and falls back to git diff --check plus git add on Git older than 2.56. That ends the hold from platform#5224, so the scope resolver now declares no pin. Emptying the declaration leaves the installed skill's pinned metadata in place, so the updater gains a default-off unpin dispatch input. The scheduled run never sets it; the self-test pins that contract. Refs: #598 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent bca3388 commit e25bd9b

4 files changed

Lines changed: 36 additions & 15 deletions

File tree

‎.github/workflows/update-agent-skills.yaml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ on:
1010
options:
1111
- all
1212
- agentic-engineering
13+
unpin:
14+
description: >-
15+
Release every skill pinned in its metadata within the scope. Use once after
16+
removing a hold; close the proposal for any pin that should stay.
17+
type: boolean
18+
default: false
1319
schedule:
1420
- cron: "0 6 * * *"
1521

@@ -54,6 +60,9 @@ jobs:
5460
dir: ${{ needs.scope.outputs.dir }}
5561
pr-branch: ${{ needs.scope.outputs.branch }}
5662
pins: ${{ needs.scope.outputs.pins }}
63+
# Off unless a dispatch asks for it, so the scheduled run never releases a pin.
64+
# The updater refuses `unpin` while `pins` still declares a hold.
65+
unpin: ${{ inputs.unpin == true }}
5766
# One PR per changed skill, from `deps/agent-skills-update-<slug>`, so a skill whose
5867
# update is blocked (a review finding, a failing check) holds back only itself instead
5968
# of every other skill's update (#175). The bundled-skill edit guard exempts each such

‎docs/scripts.md‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ The directory also contains checks for package discovery, skill provenance and l
1818
version changes, changelogs, generated writes, release observations and instruction size.
1919
The [validation guide](validation.md) explains which checks to run and what they establish.
2020

21-
The scope resolver also passes the temporary reviewed `git-commit` pin for full-catalogue
22-
and `agentic-engineering` updates, the two selections that contain the skill. This hold is tracked in
23-
[platform#5224](https://github.com/devantler-tech/platform/issues/5224): all other skills keep
24-
updating through the same programmed proposals. Removing the hold requires an upstream
25-
repair and a reviewed updater change that clears the installed pin; deleting its declaration
26-
alone leaves native pinned metadata in place.
21+
The scope resolver also passes any reviewed skill hold, as `<skill-dir> <commit>`, to
22+
full-catalogue and `agentic-engineering` updates. None is held today: the temporary `git-commit`
23+
hold from [platform#5224](https://github.com/devantler-tech/platform/issues/5224) ended under
24+
[#598](https://github.com/devantler-tech/agent-plugins/issues/598) once upstream repaired the skill.
25+
Deleting a hold's declaration alone leaves native pinned metadata in place, so releasing one also
26+
takes a single manual dispatch of the updater with `unpin` set. That run proposes releasing every
27+
skill pinned in its metadata, including `check-skills` at its release tag: close the proposal for
28+
any pin that should stay.
2729

2830
Files ending in `.test.sh` contain regression cases. Shared `.lib.sh`, `.jq`, `.cjs` and Go
2931
files support the helpers; they are not all standalone commands. Follow the calling script's

‎scripts/skill-update-scope.sh‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
set -euo pipefail
44
refuse() { printf 'skill update scope: unsupported dispatch\n' >&2; exit 2; }
55
[[ $# -ge 1 && $# -le 2 ]] || refuse
6-
# Temporary upstream hold tracked by devantler-tech/platform#5224. Emit it only
7-
# for scopes containing the skill: the updater refuses a pin outside its dir.
8-
pin='plugins/agentic-engineering/skills/git-commit e24be77e6f203409cf99ab7d5a67e1540cb386d3'
6+
# A skill held at a reviewed upstream commit, as `<skill-dir> <40-character commit>`,
7+
# naming its tracking issue. None is held: the git-commit hold (#598) ended when
8+
# upstream repaired the skill. A hold suits only scopes containing the skill, since
9+
# the updater refuses a pin outside its dir. Emptying it does not release the
10+
# installed skill, which keeps its pinned metadata: dispatch once with `unpin`.
11+
pin=''
912
case "$1:${2:-all}" in
1013
schedule:all|workflow_dispatch:all) printf 'dir=plugins\nbranch=deps/agent-skills-update\npins=%s\n' "$pin" ;;
1114
workflow_dispatch:agentic-engineering) printf 'dir=plugins/agentic-engineering/skills\nbranch=deps/agent-skills-update-agentic-engineering-skills\npins=%s\n' "$pin" ;;

‎scripts/skill-update-scope.test.sh‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ work=$(mktemp -d)
66
trap 'rm -rf "$work"' EXIT
77
for event in schedule workflow_dispatch; do
88
bash "$here/skill-update-scope.sh" "$event" >"$work/out"
9-
[[ $(cat "$work/out") == $'dir=plugins\nbranch=deps/agent-skills-update\npins=plugins/agentic-engineering/skills/git-commit e24be77e6f203409cf99ab7d5a67e1540cb386d3' ]] || {
10-
printf 'FAIL: full-catalogue update must retain the reviewed git-commit pin\n' >&2
9+
[[ $(cat "$work/out") == $'dir=plugins\nbranch=deps/agent-skills-update\npins=' ]] || {
10+
printf 'FAIL: full-catalogue update must hold no skill now that the git-commit hold (#598) ended\n' >&2
1111
exit 1
1212
}
1313
done
1414
bash "$here/skill-update-scope.sh" workflow_dispatch all >"$work/out"
15-
[[ $(cat "$work/out") == $'dir=plugins\nbranch=deps/agent-skills-update\npins=plugins/agentic-engineering/skills/git-commit e24be77e6f203409cf99ab7d5a67e1540cb386d3' ]]
16-
# git-commit lives in agentic-engineering, so that scope must carry its pin too.
15+
[[ $(cat "$work/out") == $'dir=plugins\nbranch=deps/agent-skills-update\npins=' ]]
1716
bash "$here/skill-update-scope.sh" workflow_dispatch agentic-engineering >"$work/out"
18-
[[ $(cat "$work/out") == $'dir=plugins/agentic-engineering/skills\nbranch=deps/agent-skills-update-agentic-engineering-skills\npins=plugins/agentic-engineering/skills/git-commit e24be77e6f203409cf99ab7d5a67e1540cb386d3' ]] || {
19-
printf 'FAIL: the agentic-engineering scope must retain the reviewed git-commit pin\n' >&2
17+
[[ $(cat "$work/out") == $'dir=plugins/agentic-engineering/skills\nbranch=deps/agent-skills-update-agentic-engineering-skills\npins=' ]] || {
18+
printf 'FAIL: the agentic-engineering scope must hold no skill now that the git-commit hold (#598) ended\n' >&2
2019
exit 1
2120
}
2221
# A scoped producer must still create the canonical per-skill branch accepted
@@ -54,6 +53,14 @@ printf '%s\n' "$workflow" | jq -se 'length == 1 and (.[0] |
5453
.jobs.update.with.pins == "${{ needs.scope.outputs.pins }}" and
5554
.jobs.update.permissions == {contents:"write","pull-requests":"write"} and
5655
.jobs."bump-versions".permissions == {contents:"read"})' >/dev/null
56+
# Releasing a hold is a deliberate, manual act: only a dispatch that sets `unpin`
57+
# clears pinned metadata, and the scheduled run never does.
58+
printf '%s\n' "$workflow" | jq -se 'length == 1 and (.[0] |
59+
(.on.workflow_dispatch.inputs.unpin | .type == "boolean" and .default == false) and
60+
.jobs.update.with.unpin == "${{ inputs.unpin == true }}")' >/dev/null || {
61+
printf 'FAIL: unpin must be an opt-in dispatch input, default false, passed only as inputs.unpin == true\n' >&2
62+
exit 1
63+
}
5764
# Inspect the declared Git calls; this is a regression guard, not an arbitrary shell parser.
5865
has_local_git_write() {
5966
jq -e '[.jobs."bump-versions".steps[] | .run // ""]

0 commit comments

Comments
 (0)