From a95d97692e72af78de8fc936143041f440138fb5 Mon Sep 17 00:00:00 2001 From: Raghav Gupta Date: Tue, 24 Nov 2026 18:41:32 -0400 Subject: [PATCH] chore(policy): lift the node-24 hold Raghav lifted the Node 24 hold on 2026-11-24 ("go with node 26 ... no more node 24 hold"): Node 26 is LTS since 2026-10-28 and mezbano already runs on it (engines.node >=26.13.0 <27, @types/node ^26). The node-24 entry leaves policy/versions.json; bin/generate drops its line from plugins/setkernel/policy/holds.md, and hq's version-policy workflow removes the @types/node ignore from each repo's dependabot.yml. Tests: three dependabot-policy cases used the node-24 hold as their example; the quoting cases now use the typescript-6.0 hold, and @types/node 26 now crosses no hold. Checks: bin/generate --check current; tests/run.sh 787/802 passed, the same 15 failures as on main (request-review stub cases in this environment). Refs setkernel/hq#87 Co-Authored-By: Claude Opus 5.5 --- plugins/setkernel/policy/holds.md | 1 - policy/versions.json | 11 ----------- tests/run.sh | 8 ++++---- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/plugins/setkernel/policy/holds.md b/plugins/setkernel/policy/holds.md index a5fa209..317c14d 100644 --- a/plugins/setkernel/policy/holds.md +++ b/plugins/setkernel/policy/holds.md @@ -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. diff --git a/policy/versions.json b/policy/versions.json index 3f1a3ab..87c944a 100644 --- a/policy/versions.json +++ b/policy/versions.json @@ -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", diff --git a/tests/run.sh b/tests/run.sh index 2243623..536a200 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -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 @@ -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.