Repository navigation
chore: keep the pnpm integrity hash when the dependency update bumps pnpm - #813
Merged
Patrick Lafrance (patricklafrance) merged 3 commits intoNov 25, 2026
Merged
Conversation
@squide/core
@squide/env-vars
@squide/fakes
@squide/firefly
@squide/firefly-storybook
@squide/i18next
@squide/launch-darkly
@squide/msw
@squide/react-router
commit: |
There was a problem hiding this comment.
🟡 Changes recommended
The PR cleanup can miss older dependency-update PRs because listing defaults to 30 results, and its branch-prefix filter can close contributors’ fork PRs without verifying repository ownership.
1 open issue
What changed in this PR
This PR preserves pnpm’s integrity hash during Squide’s dependency updates and narrows how the weekly workflow identifies superseded pull requests.
Changes:
- Restore the root
packageManagerhash from the lockfile after updating versions. - Add nine tests and include them in CI’s agent-tooling checks.
- Replace title-based PR matching with branch-prefix matching and update related documentation.
| File | Description |
|---|---|
package.json |
Runs hash restoration immediately after version updates. |
CONTRIBUTING.md |
Documents automatic hash restoration. |
agent-docs/references/development.md |
Explains hash restoration and required script ordering. |
.github/workflows/ci.yml |
Adds the new script’s tests to CI. |
.github/scripts/pinPackageManagerHash.ts |
Restores pnpm’s integrity hash from the lockfile. |
.github/scripts/pinPackageManagerHash.test.ts |
Tests hash extraction, unchanged fields, and missing integrity. |
.github/prompts/update-dependencies.md |
Selects superseded PRs by branch prefix rather than title. |
.claude/skills/_update-skills/SKILL.md |
Removes the incorrect claim that dependency updates never bump pnpm. |
Review effort: Balanced
This was referenced Nov 24, 2026
Merged
Merged
…pnpm pnpm update also bumps the root packageManager field and writes it without its +sha512 hash. A new update-outdated-deps step copies the hash back from pnpm-lock.yaml. The weekly workflow also closes only the pull requests on an agent/update-deps-* branch instead of every pull request matching a title search. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Patrick Lafrance (patricklafrance)
force-pushed
the
fix/pin-package-manager-hash
branch
from
November 25, 2026 22:34
d96bc80 to
397b3c4
Compare
Patrick Lafrance (patricklafrance)
deleted the
fix/pin-package-manager-hash
branch
November 25, 2026 22:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
The weekly dependency update dropped the integrity hash of the root
packageManagerfield (review comment on #809).pnpm update -r --latestalso bumps that field and writes it bare:pnpm@12.21.0. Nothing put the hash back. On Nov 17 the agent restored it by hand; on Nov 24 it only mentioned the drop in the pull request text.This pull request also removes the tests of the agent tooling scripts and the CI step that ran them.
Changes
.github/scripts/pinPackageManagerHash.ts: copies the hash pnpm recorded inpnpm-lock.yamlfor the new pnpm version into thepackageManagerfield. A field that already carries a hash is left alone. It fails when the lockfile has no integrity for that version.package.json: aupdate-outdated-deps:pin-package-managerscript, right afterupdate-outdated-deps:update-versions. It runs for the weekly workflow and for a local/_update-dependenciesalike.ci.yml: the "Test agent tooling" step is removed. There is no CI check on the field itself.listSkillPins.test.tsandlistUpdateDependenciesPrs.test.ts, which both predate this pull request._update-skills/DESIGN.mdno longer points at the first one._update-skills/SKILL.md: thepnpmrow no longer saysupdate-outdated-depsnever bumps pnpm.CONTRIBUTING.mdandagent-docs/references/development.md: what the new script does.The change to how the workflow closes earlier update pull requests is no longer part of this pull request: #815 replaced it on
main.Verification
In a worktree of
mainat pnpm 12.19.0, before #809 was merged:pnpm run update-outdated-deps:update-versionsalone: the field went frompnpm@12.19.0+sha512.…topnpm@12.21.0, and the lockfile already recorded the integrity ofpnpm@12.21.0.pnpm update-outdated-depswith the new step, thenpnpm install --no-frozen-lockfile: the field ended aspnpm@12.21.0+sha512.66fd8278…6ef0, unchanged bysyncpack fix,oxfmtand the install, which ran with pnpm 12.21.0.pnpm@12.21.0and the sha512 of its tarball. It is the one chore: update dependencies 2026-11-24 #809 was merged with.🤖 Generated with Claude Code