From ff591b7d283bcfa6eaf1b3edec653c9f3ddc04ee Mon Sep 17 00:00:00 2001 From: Vladimir Balko <147043796+vbalko-claimate@users.noreply.github.com> Date: Sat, 5 Dec 2026 01:26:42 +0100 Subject: [PATCH] docs: add ERR_PNPM_LOCKFILE_CONFIG_MISMATCH troubleshooting note (#13690) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work. > - Its `pnpm-lock.yaml` can drift out of sync with `package.json` for short windows after a merge, tracked in the recurring issue #10393. > - A contributor who clones `master` during that window gets `ERR_PNPM_LOCKFILE_CONFIG_MISMATCH` on a fresh, unmodified checkout, with no signal that this is a known platform issue and not their own mistake. > - Two examples happened within the same day (#13683, #13645) where contributors reacted to this error by hand-fixing and committing a `pnpm-lock.yaml` diff in a normal PR, which `pr.yml` then hard-fails, wasting their time twice. > - This pull request adds a short troubleshooting entry to `CONTRIBUTING.md` that names the known issue, tells the contributor how to unblock themselves safely, and tells them explicitly not to commit the lockfile diff themselves. > - The benefit is fewer confused first-time contributors and fewer accidental lockfile-diff PRs that `pr.yml` rejects. ## Linked Issues or Issue Description Refs #13689 Refs #10393 #13689 documents a fresh occurrence of the drift this note is about (`postgres@3.4.9` / `patchedDependencies` mismatch after #13643 merged), with two ready fixes (#13645, #12115) still needing a maintainer merge. #10393 is the long-running parent issue for the underlying lockfile-drift pattern. This PR does not fix the drift itself — it only makes the failure mode legible to the next contributor who hits it while a fix is in flight. ## What Changed - `CONTRIBUTING.md`: added a "Troubleshooting: `ERR_PNPM_LOCKFILE_CONFIG_MISMATCH` on a fresh clone" entry under "Tests Must Pass", explaining that a frozen-install failure on an untouched `master` checkout is usually #10393-class drift, not a local problem, with three concrete next steps (check for an existing report/refresh PR, safely unblock locally without committing the lockfile, or file a new bug report with the exact manifest field and merge SHA). ## Verification - Docs-only change; no build or test surface affected. - Rendered the added Markdown locally to confirm the list and links format correctly. - Cross-checked the guidance against `pr.yml`'s actual behavior and against `commitperclip`'s feedback on #13683 (`"You have changes to pnpm-lock.yaml — pr.yml will hard-fail this PR ... The lockfile is regenerated automatically by the refresh bot on a schedule"`), so the "do not commit the lockfile yourself" instruction matches what the bot already enforces. ## Risks Low risk. Documentation-only change, one file, no code or workflow behavior affected. Worst case is a wording nit in review. ## Model Used Claude Sonnet 5 (Anthropic), model id `claude-sonnet-5`, standard reasoning mode, with tool use (repo research via `gh`, local diff/patch construction). ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass (docs-only; no tests apply) - [ ] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge Co-authored-by: Claude Sonnet 5 --- CONTRIBUTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 62130263397..4c05064c7c6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -118,6 +118,16 @@ suite when it resolves a remaining local/platform-specific gap or is explicitly required for qualification. See `AGENTS.md` and `doc/DEVELOPING.md` for result reuse and coverage requirements. +### Troubleshooting: `ERR_PNPM_LOCKFILE_CONFIG_MISMATCH` on a fresh clone + +If `pnpm install --frozen-lockfile` fails on a **freshly cloned, unmodified `master`** -- before you have touched anything -- this is almost always not your environment. It means `master` itself is temporarily inconsistent between `package.json` and `pnpm-lock.yaml` (a manifest field, most often `patchedDependencies` or `overrides`, drifted out of sync with the lockfile on a recent merge). See #10393 for the ongoing tracker and root cause. + +Before debugging your own setup: + +1. Check the [Issues list](https://github.com/paperclipai/paperclip/issues?q=is%3Aissue+ERR_PNPM_LOCKFILE_CONFIG_MISMATCH) for a fresh report matching your commit -- this class of drift is usually already known and self-heals via an automated `chore(lockfile): refresh pnpm-lock.yaml` PR within minutes to hours of the breaking merge. +2. If a refresh PR already exists and is green, you can safely `pnpm install --no-frozen-lockfile` locally on your branch to unblock yourself while you wait for it to merge -- do **not** commit the resulting `pnpm-lock.yaml` diff yourself; a manual lockfile diff in a normal PR triggers `pr.yml`'s "lockfile edits" failure. Rebase once the refresh PR lands. +3. If no report or refresh PR exists yet, file one per [Bug fix](.github/ISSUE_TEMPLATE/bug_report.yml), noting the exact manifest field mismatch (visible in the error output) and the commit SHA of the merge that introduced it. + ### Telemetry Changes This repo has three separate data paths: Telemetry, Observability, and the run log. See [`rules/data-paths.mdc`](rules/data-paths.mdc) for the full definitions and the review level each path needs.