Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion plugins/setkernel/policy/holds.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

Source: https://github.com/setkernel/agent-plugins/blob/main/policy/versions.json. Never raise a held dependency past its hold anywhere: package.json and lockfiles, `.nvmrc`, `engines`, `actions/setup-node`, Docker images, the runner image. A Dependabot PR that crosses a hold gets closed with a comment naming the hold. A hold changes only when Raghav updates the source; to propose lifting one, open an issue in setkernel/hq.

- **node-24**: Node.js and @types/node stay on 24. Node 24 everywhere: .nvmrc, package.json engines.node, actions/setup-node node-version, Docker node images, the runner image, and @types/node 24.x. Why: 24 is the Active LTS. Node 26 becomes LTS on 2026-10-28 (github.com/nodejs/Release schedule.json). Lifts when: Raghav has tested Node 26 after it is LTS.
- **typescript-6.0**: TypeScript stays on 6.0.x. typescript 6.0.x in every package.json and lockfile; no TypeScript 7 or 6.1, including through tools that bundle it. Why: Peer ranges on 2026-10-13 reject 7.0: svelte-check 4.7.6 (^5 || ^6), @sveltejs/kit 3.0.1 (^6.0.0), svelte2tsx 0.7.61 (^6), @astrojs/check 0.9.10 (^5 || ^6); typescript-eslint 8.71.2 accepts only <6.1.0. Lifts when: Those peer ranges include the new version and Raghav has tested it.
- **phpcs-3**: PHP_CodeSniffer stays on 3.x. squizlabs/php_codesniffer 3.x wherever WordPress Coding Standards (WPCS) is used. Why: WPCS 3.4.1 (2026-07-27) requires squizlabs/php_codesniffer ^3.13.5; PHPCS 4.0.4 is out. Lifts when: A WPCS release supports PHPCS 4 and Raghav has tested it.
11 changes: 0 additions & 11 deletions policy/versions.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
{
"$comment": "setkernel org version holds: the one source. Each hold keeps every setkernel repo below a version until Raghav has tested it. Edit here (Raghav's approval), run bin/generate, merge; the plugin shows the change in every Claude session and hq's version-policy workflow brings each repo's .github/dependabot.yml in line. Repo-specific pins stay in that repo's own config. Dependabot ignore entries use each ecosystem's version syntax; bin/dependabot-policy only evaluates '>=X.Y.Z' forms when matching open PRs.",
"holds": [
{
"id": "node-24",
"summary": "Node.js and @types/node stay on 24",
"rule": "Node 24 everywhere: .nvmrc, package.json engines.node, actions/setup-node node-version, Docker node images, the runner image, and @types/node 24.x.",
"why": "24 is the Active LTS. Node 26 becomes LTS on 2026-10-28 (github.com/nodejs/Release schedule.json).",
"lift": "Raghav has tested Node 26 after it is LTS.",
"ref": "https://github.com/setkernel/hq/issues/87",
"dependabot": {
"npm": [{ "dependency-name": "@types/node", "versions": [">=25"] }]
}
},
{
"id": "typescript-6.0",
"summary": "TypeScript stays on 6.0.x",
Expand Down
8 changes: 4 additions & 4 deletions tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -921,8 +921,8 @@ updates:
EOF
)
dp "$d" >/dev/null
expect 0 "dependency-name: '@types/node' # node-24" "a single-quoted file gets a single-quoted block" -- cat "$d/.github/dependabot.yml"
expect 0 "versions: \['>=25'\]" "the versions list is single-quoted too" -- cat "$d/.github/dependabot.yml"
expect 0 "dependency-name: 'typescript' # typescript-6.0" "a single-quoted file gets a single-quoted block" -- cat "$d/.github/dependabot.yml"
expect 0 "versions: \['>=6.1.0'\]" "the versions list is single-quoted too" -- cat "$d/.github/dependabot.yml"
expect 0 "current: " "the single-quoted block is current" -- dp --check "$d"
d=$(dbrepo reformatted <<'EOF'
version: 2
Expand All @@ -932,13 +932,13 @@ updates:
EOF
)
dp "$d" >/dev/null
sed -i.bak -e "s/\"@types\/node\"/'@types\/node'/" -e "s/\[\">=25\"\]/['>=25']/" -e "s/\"typescript\"/'typescript'/" -e "s/\[\">=6.1.0\"\]/['>=6.1.0']/" "$d/.github/dependabot.yml"
sed -i.bak -e "s/\"typescript\"/'typescript'/" -e "s/\[\">=6.1.0\"\]/['>=6.1.0']/" "$d/.github/dependabot.yml"
rm -f "$d/.github/dependabot.yml.bak"
expect 0 "current: " "a block a formatter re-quoted stays current" -- dp --check "$d"

expect 0 "typescript-6.0" "TypeScript 7 crosses its hold" -- dp crosses npm typescript 7.0.2
expect 1 "" "TypeScript 6.0.3 does not cross" -- dp crosses npm typescript 6.0.3
expect 0 "node-24" "@types/node 26 crosses" -- dp crosses npm @types/node 26.6.4
expect 1 "" "@types/node 26 crosses no hold (node-24 lifted 2026-11-24)" -- dp crosses npm @types/node 26.6.4
expect 1 "" "a hold only applies to its ecosystem" -- dp crosses github-actions typescript 7.0.0

# The verify skill (#15) tells the reader to prefer `make check` and how to report Docker-less runs.
Expand Down