Skip to content

chore: raise Node engine floor to >=22.12 (drop EOL Node 20), unblock commander 15 #677

Closed

Description

@admarble

Summary

Deliberately raise sequant's Node support floor from >=20.19.0 to >=22.12.0, drop the build (20.x) CI matrix row, and document it — as a standalone, user-communicated change. This unblocks commander@15 (and future Node-22-only deps) without slipping a support-contract change into a routine Dependabot bump.

Mirrors the prior deliberate floor bump in #363 (drop Node 18 → require >=20).

Background

Dependabot PR #676 attempted to bump commander 14 → 15. commander 15 declares engines.node: ">=22.12.0" (ESM-only, uses require(esm)), which conflicts with our declared engines.node: ">=20.19.0" and our build (20.x) CI job. QA verdict on #676 was AC_NOT_MET; we told Dependabot to ignore commander major version so the 5 safe bumps (incl. hono security fixes) can land while this floor change is handled deliberately.

Why this can't ride silently in a deps PR:

  • The CI build job is tsc (compile only) — it never executes commander at runtime, so green CI does not prove Node-20 runtime compatibility. The engine conflict is invisible to CI.
  • A support-floor change is a user-facing contract change and needs a changelog + version signal, not a stealth merge.

Timing makes this reasonable: Node 20 ("Iron") reached EOL ~2026-04-30 and no longer gets security patches; Node 22 ("Jod") is the maintenance LTS through ~April 2027. Note commander's floor is specifically 22.12.0 (not just any 22.x).

Acceptance Criteria

  • AC-1: package.json engines.node bumped from >=20.19.0 to >=22.12.0
  • AC-2: build (20.x) removed from the CI matrix (.github/workflows/*); matrix covers 22.x (and optionally 24.x)
  • AC-3: README (and marketplace README if applicable) updated to state the new minimum Node version
  • AC-4: CHANGELOG.md [Unreleased] entry added: "Require Node 22.12+ (Node 20 is EOL)"
  • AC-5: Version bumped per versioning policy (EOL-runtime drop = minor bump)
  • AC-6: After this lands, commander@15 bump verified to install + run on Node 22.12 (re-open/recreate the Dependabot commander bump)

Non-Goals

  • Bumping commander itself in this issue (handled by Dependabot once the floor is raised)
  • Dropping Node 22 or requiring Node 24

References

Activity

  1. added
    dependencies
    on May 30, 2026
  2. admarble commented on May 30, 2026

    @admarble
    ContributorAuthor

    → PROCEED — Raise Node engine floor to >=22.12 (drop EOL Node 20), unblock commander 15

    Workflow: spec → exec → qa (-Q)

    Verified against codebase:

    • package.json engines.node = >=20.19.0 (AC-1 target)
    • README:77 "Node.js 20+" (AC-3)
    • CI matrix [20.x, 22.x] in ci.yml:15 (AC-2)
    • Current version 2.3.0 → AC-5 minor bump targets 2.4.0

    ⚠ 20.x is hardcoded beyond the ci.yml matrix: release.yml:31, plugin-install-test.yml:36, ci.yml:49/81/99, upstream-assessment.yml. AC-2 scope should cover all .github/workflows/*, not just the matrix row.

  3. admarble commented on May 30, 2026

    @admarble
    ContributorAuthor

    Spec — Raise Node engine floor to ≥22.12 (drop EOL Node 20)

    Complexity: Standard (6 ACs, 4 directories). Verdict: ✅ SCOPE_OK.

    AC checklist + verification

    • AC-1 — package.json engines.node >=20.19.0 → >=22.12.0 (Manual)
    • AC-2 — .github/workflows/* — bump all 8 hardcoded 20.x sites (not just the matrix row): ci.yml:15/49/81/99, release.yml:31, plugin-install-test.yml:36, upstream-assessment.yml:39. Matrix becomes [22.x]. (Manual)
    • AC-3 — User-facing "Node.js 20+" prose updated at all surfaces: README.md:77, scripts/prepare-marketplace.ts:270 (marketplace README source), docs/getting-started/prerequisites.md:34/36, and setup/SKILL.md (4 lines × 3 mirror dirs .claude/skills/, skills/, templates/skills/). (Manual)
    • AC-4 — CHANGELOG.md [Unreleased] → ### Changed: BREAKING-tagged entry. (Manual)
    • AC-5 — package.json version 2.3.0 → 2.4.0 (minor; per project_versioning.md EOL-runtime drops are minor). (Manual)
    • AC-6 — Post-merge, Dependabot commander 14→15 re-bump installs + runs on Node 22.12. (Integration Test, follow-up)

    Sibling-site findings (scope-critical)

    Per feedback_sibling_scan_includes_prose.md, scanned for both 20.x literals and "Node.js 20+" prose. Beyond the assess comment's CI catch:

    Site Hidden in AC?
    ci.yml:49/81/99, release.yml:31, plugin-install-test.yml:36, upstream-assessment.yml:39 ❌ — AC-2 reads as "matrix row" only
    scripts/prepare-marketplace.ts:270 (source of dist/.../README.md) ⚠️ — AC-3 says "if applicable"
    docs/getting-started/prerequisites.md:34/36 ❌
    setup/SKILL.md × 4 lines × 3 mirror dirs (12 line edits) ❌

    sequant-action/action.yml:58 already uses "22" — no change.

    Implementation plan

    1. Engine + version — package.json (engines.node + version 2.4.0).
    2. CI workflows — 4 files, 8 line edits as enumerated above.
    3. Docs — README.md, prepare-marketplace.ts, docs/getting-started/prerequisites.md, setup/SKILL.md 3-dir mirror (verify hunks identical across mirrors).
    4. CHANGELOG — [Unreleased] → ### Changed: BREAKING entry referencing chore: raise Node engine floor to >=22.12 (drop EOL Node 20), unblock commander 15 #677, mirroring chore: drop Node 18 support, bump engine to >=20 #363's prior-art entry style.
    5. Verify — npm ci && npm run build && npm test on Node 22.12 locally; PR CI confirms matrix=22.x only.

    Design review

    • Layer: package.json is source of truth; CI + docs are derived enforcement/communication. Edit all three in lockstep.
    • Simplest approach: Direct find-replace across 13+ sites. Rejected: introducing a repo-level NODE_VERSION variable to centralize CI pins (extra moving part for a once-per-2-years event).
    • Pattern: Mirror chore: drop Node 18 support, bump engine to >=20 #363 (Node 18→20 drop) — same chore: prefix, single PR, BREAKING in CHANGELOG, minor bump.
    • Senior pushback expected: "Why CI 22.x not pinned 22.12.x?" — engines.node already enforces the floor at install; CI 22.x picks up patches automatically. Acceptable.

    Open questions

    1. All 8 CI sites in this PR? → Recommend yes. Matrix-only bump leaves 7 jobs on EOL Node — defeats the purpose. (Impact if wrong: half-finished contract change.)
    2. Add 24.x to matrix? → Recommend no. Issue Non-Goal explicitly excludes "requiring Node 24"; adding 24.x as a second slot is gray-area and adds CI time. Revisit ~April 2027.
    3. Version bump in this PR vs. at release? → Recommend in this PR — locks version↔CHANGELOG pairing and gives QA one artifact. release.yml runs on manual dispatch only, so no conflict.
    4. AC-6 closure — Out of this PR's scope; close it post-merge once the Dependabot commander bump lands.

    Recommended workflow

    Phases: spec → exec → qa with quality loop enabled (matches assess marker). No testgen (AC-6 is the only Integration AC and is post-merge). No test / security-review / docs phase.

  4. added
    planned
    on May 30, 2026
  5. admarble commented on May 30, 2026

    @admarble
    ContributorAuthor

    Exec — Implementation Complete

    PR: #679

    AC Coverage Summary

    AC Status Evidence
    AC-1 — engines.node >=22.12.0 ✅ package.json:69
    AC-2 — CI workflows on 22.x only ✅ 8 sites across 4 workflows; matrix is [22.x]; grep '20\.x' .github/workflows/ → 0 matches
    AC-3 — User-facing prose updated at all surfaces ✅ README, marketplace README source, prerequisites.md, 4× docs/features/*.md prereq blocks, 3× setup/SKILL.md mirrors (incl. -ge 20 → -ge 22 runtime check)
    AC-4 — CHANGELOG BREAKING entry ✅ [Unreleased] → ### Changed referencing #677
    AC-5 — Version 2.3.0 → 2.4.0 (minor) ✅ package.json, plugin.json, marketplace.json, lockfile all synced
    AC-6 — commander@15 verified on Node 22.12 🔄 Deferred Post-merge follow-up; Dependabot will recreate the bump once floor lands

    Verification

    • npm run build ✅
    • npm run lint ✅ (0 errors)
    • npm test — 3413 passed; 2 pre-existing flakes (prompt-wait.test.ts ENOENT race; relay-hook.integration.test.ts SEQUANT_RELAY render check) reproduce on clean main → unrelated to this change
    • npx tsx scripts/check-skill-sync.ts — setup/SKILL.md mirrors in sync
    • npm run lint:skill-calls — 0 violations

    Quality Plan Alignment

    N/A — no explicit Quality Plan section in the /spec comment. The spec's "Sibling-site findings" table was used as the equivalent guidance and all listed sites were addressed; one additional category surfaced during exec (4× docs/features/*.md prereq blocks) and was included per feedback_sibling_scan_includes_prose.md.

    Pre-PR Confidence Check

    • Weakest part: AC-6 is post-merge by design — there's no in-PR runtime proof that commander@15 actually installs and runs on the new Node 22.12 floor. Mitigation: the engines.node value (>=22.12.0) is the literal minimum commander@15 declares, and the Dependabot re-bump will exercise the install path end-to-end once this lands.
    • Coverage gaps: No test changes — this is a configuration/contract change with no executable logic. The existing 3413 tests serve as the regression net; CI matrix is the runtime gate.

    Files Changed

    19 files, +48/-47:

    • package.json, package-lock.json, .claude-plugin/{plugin,marketplace}.json
    • .github/workflows/{ci,release,plugin-install-test,upstream-assessment}.yml
    • README.md, docs/getting-started/prerequisites.md, 4× docs/features/*.md, scripts/prepare-marketplace.ts
    • .claude/skills/setup/SKILL.md, skills/setup/SKILL.md, templates/skills/setup/SKILL.md
    • CHANGELOG.md

    Next Steps

    1. CI confirms build (22.x) runs and no build (20.x) job appears.
    2. After merge: un-ignore commander major in .github/dependabot.yml (if set) so Dependabot recreates the 14→15 bump → closes AC-6.
  6. admarble commented on May 30, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #677

    AC Coverage

    AC Source Description Status Notes
    AC-1 Original package.json engines.node → >=22.12.0 ✅ MET Bumped >=20.19.0→>=22.12.0 in package.json and package-lock.json.
    AC-2 Original Remove build (20.x) from CI matrix; cover 22.x ✅ MET ci.yml matrix [20.x, 22.x]→[22.x]; all 7 hardcoded node-version: 20.x/'20' steps across ci/release/plugin-install-test/upstream-assessment.yml → 22.x/'22'. 24.x optional, omitted (acceptable).
    AC-3 Original README (+ marketplace README) updated ✅ MET README.md, marketplace README source (scripts/prepare-marketplace.ts), docs/getting-started/prerequisites.md, and 4 docs/features/*.md prereq blocks all state Node 22.12+.
    AC-4 Original CHANGELOG [Unreleased] entry ✅ MET Detailed entry under ### Changed covering the floor bump, EOL rationale, and commander unblock.
    AC-5 Original Version bumped (minor per EOL-drop policy) ✅ MET 2.3.0→2.4.0 consistently across package.json, package-lock.json, plugin.json, marketplace.json.
    AC-6 Original After landing, verify commander@15 installs+runs on Node 22.12 (recreate Dependabot bump) ⏳ DEFERRED Post-merge by design ("After this lands…"). Cannot be satisfied pre-merge — it depends on this floor change being on main. Tracked as a follow-up, not a blocker.

    Coverage: 5/5 in-scope AC items MET. AC-6 is a deferred post-merge action.


    CI Status (PR #679)

    Check State Impact
    build (22.x) SUCCESS ✅ MET
    typecheck SUCCESS ✅
    validate-skills SUCCESS ✅
    validate-plugin / Plugin Structure Validation SUCCESS ✅
    Hooks Validation SUCCESS ✅
    Setup Directory Creation SUCCESS ✅

    CI Summary: 7 passed, 0 pending, 0 failed. mergeable: MERGEABLE, mergeStateStatus: CLEAN.

    Note: CI build is tsc-only and does not execute commander at runtime, so green CI proves the engine declaration is consistent but not Node-22 runtime behavior of commander 15 — which is exactly why AC-6 exists as a separate post-merge step.


    Quality Metrics

    Metric Value Status
    Type issues (any) 0 OK
    Deleted tests 0 OK
    Files changed 19 OK (config/docs only)
    Lines added +47 -
    Lines deleted -39 -

    Code Review

    Strengths:

    • Comprehensive, surgical sweep — every Node-20 surface updated. Independent grep for node 20 / >=20 / node-version: 20 across *.md/*.json/*.yml/*.ts returns zero stray references (only the new CHANGELOG entry + historical CHANGELOG lines remain, both correct).
    • Version stamped consistently across all 4 manifests (package.json, lock, plugin.json, marketplace.json).
    • setup/SKILL.md runtime check (-ge 20→-ge 22) correctly mirrored across all 3 skill dirs (.claude/skills/, templates/skills/, skills/) — the recurring mirror pitfall is handled.
    • CHANGELOG entry is detailed and honest about scope, EOL timing, and the commander linkage.
    • No .nvmrc/.node-version/Dockerfile/devcontainer exist, so no hidden Node-version surface was missed.

    Issues:

    • None blocking.

    Suggestions:

    • AC-6 should be filed/tracked as an explicit follow-up: un-ignore or recreate the Dependabot commander 14→15 bump once this is on main, and confirm install+run on Node 22.12.

    Skill Command Verification

    Skill files changed: 3 (setup/SKILL.md mirrors). Only change is the bash prereq check -ge 20→-ge 22 and prose. No gh/npm/git command syntax or JSON-field changes. Valid bash.

    Verification Status: Passed


    Execution Evidence

    npm run build ✅ passes locally on the feature branch. No runtime/script logic changed (prepare-marketplace.ts change is a single doc-string literal). No /verify required.

    Override: Yes — Justification: Comment/documentation + config-value changes only (no logic). Risk Assessment: None.


    Self-Evaluation

    • Verified working: Yes — inspected every changed file, ran a repo-wide grep confirming zero stray Node-20 refs, confirmed version consistency across all 4 manifests, and CI build (22.x) is green.
    • Test efficacy: N/A (config/docs change; CI matrix itself is the verification surface).
    • Likely failure mode: A consumer still on Node 20 will now get an EBADENGINE/install refusal — but that is the intended, documented contract change, not a defect.
    • Verdict confidence: High.

    Verdict: READY_FOR_MERGE

    All 5 in-scope ACs (AC-1…AC-5) are fully met with a clean, comprehensive, well-documented change; CI is green and the PR is mergeable. AC-6 is explicitly a post-merge verification ("After this lands…") and correctly cannot be satisfied before this merges — it is carved out as a tracked follow-up, not a merge blocker.

    Documentation

    • README updated (Node 22.12+)
    • docs/ updated (prerequisites + 4 feature docs)
    • CHANGELOG entry added
    • Marketplace README source updated

    Next Steps

    1. Merge PR chore(#677): raise Node engine floor to >=22.12 (drop EOL Node 20) #679.
    2. Follow-up (AC-6): After merge, recreate/un-ignore the Dependabot commander 14→15 bump and confirm it installs + runs on Node 22.12.

  7. added
    ready-for-review
    on May 30, 2026
  8. added a commit that references this issue on May 31, 2026
  9. admarble commented on May 31, 2026

    @admarble
    ContributorAuthor

    QA follow-up — gaps closed (commit 6b97356)

    The original PR claimed "all surfaces updated" but two user-facing prose surfaces were still stale at Node 18 (left over from before the #363 floor bump and never swept):

    • docs/features/mcp-server.md — was Node.js 18+ (the 1 of 6 docs/features/*.md the PR skipped), now 22.12+
    • CONTRIBUTING.md — was Node.js 18.0.0 or higher, now 22.12.0

    CHANGELOG surface list corrected (four→five docs/features blocks, CONTRIBUTING.md added). Repo-wide sweep now shows zero stale Node prereq references.

    Updated verdict: READY_FOR_MERGE — all in-scope ACs met, docs now fully consistent with the >=22.12.0 floor. AC-6 remains the post-merge follow-up (recreate the commander 14→15 Dependabot bump).

  10. added 3 commits that reference this issue on May 31, 2026
  11. added 2 commits that reference this issue on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesplannedready-for-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions