[GH-ISSUE #8076] Migrate pnpm 12 without breaking legacy launcher recovery or dependency policy #7547

Closed
opened 2026-10-24 04:04:05 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8076

Originally assigned to: @SpicyMarinara on GitHub.

The dependency refresh #8074 updates pnpm 10.34.5 to the compatible 10.34.7 patch. A direct jump to the current 12.15.0 release is blocked by reproduced bootstrap and policy incompatibilities, rather than by general Corepack or Android availability.

Owner: @SpicyMarinara (Codex audit). Follow-up to #8073.

Reproduction on macOS arm64 in disposable fixtures:

  • Existing pnpm 10.33.2 auto-delegation to the exact pnpm 12.15.0 descriptor fails with ENOEXEC; its self-install leaves the native placeholder unrelinked. The same old launcher delegates successfully to 10.34.7. The official 10.34.5 release notes document the native-v12 relinking fix.
  • Corepack and pnpm 10.34.5 can launch pnpm 12.15.0. Do not describe this as a general Corepack or native-platform incompatibility.
  • A copied four-project workspace with the current manifests, lockfile and patches fails under pnpm 12 with ERR_PNPM_UNRECOGNIZED_WORKSPACE_SETTINGS for managePackageManagerVersions and confirmModulesPurge.
  • Removing only those settings still requires a package-manager dependency lock migration. Direct native execution also warns that root pnpm.overrides is ignored and fails the frozen override check. Security override policy must be migrated, never dropped to make installation pass.
  • pnpm 10.34.7 passes the same copied workspace frozen/offline lockfile check.

A complete migration must retain recovery for existing 10.33.2 launchers, move version management and security overrides to the supported configuration, regenerate and review the lockfile, and verify fresh/install/update handoffs on supported platforms. Preserve release-age, integrity and script-execution safeguards. Windows and physical Android execution were not performed in this experiment.

The maintenance PR retains pnpm 10.34.7 until this coordinated migration is validated.

Originally created by @SpicyMarinara on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8076 Originally assigned to: @SpicyMarinara on GitHub. The dependency refresh #8074 updates pnpm 10.34.5 to the compatible 10.34.7 patch. A direct jump to the current 12.15.0 release is blocked by reproduced bootstrap and policy incompatibilities, rather than by general Corepack or Android availability. Owner: @SpicyMarinara (Codex audit). Follow-up to #8073. Reproduction on macOS arm64 in disposable fixtures: - Existing pnpm 10.33.2 auto-delegation to the exact pnpm 12.15.0 descriptor fails with `ENOEXEC`; its self-install leaves the native placeholder unrelinked. The same old launcher delegates successfully to 10.34.7. The official [10.34.5 release notes](https://github.com/pnpm/pnpm/releases/tag/v10.34.5) document the native-v12 relinking fix. - Corepack and pnpm 10.34.5 can launch pnpm 12.15.0. Do not describe this as a general Corepack or native-platform incompatibility. - A copied four-project workspace with the current manifests, lockfile and patches fails under pnpm 12 with `ERR_PNPM_UNRECOGNIZED_WORKSPACE_SETTINGS` for `managePackageManagerVersions` and `confirmModulesPurge`. - Removing only those settings still requires a package-manager dependency lock migration. Direct native execution also warns that root `pnpm.overrides` is ignored and fails the frozen override check. Security override policy must be migrated, never dropped to make installation pass. - pnpm 10.34.7 passes the same copied workspace frozen/offline lockfile check. A complete migration must retain recovery for existing 10.33.2 launchers, move version management and security overrides to the supported configuration, regenerate and review the lockfile, and verify fresh/install/update handoffs on supported platforms. Preserve release-age, integrity and script-execution safeguards. Windows and physical Android execution were not performed in this experiment. The maintenance PR retains pnpm 10.34.7 until this coordinated migration is validated.
bsakaguchi 2026-10-24 04:04:05 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 22, 2026):

Rechecked during the assigned-issue cleanup against the current staging workspace, in three fresh disposable copies with all four manifests, the lockfile, .npmrc and patches. No working checkout or global package-manager configuration was changed.

  • pnpm 10.34.7: frozen/offline/lockfile-only install passes.
  • Exact hash-pinned pnpm 12.15.0 with the unchanged workspace: ERR_PNPM_UNRECOGNIZED_WORKSPACE_SETTINGS for managePackageManagerVersions and confirmModulesPurge.
  • Removing only those two obsolete settings: ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE while resolving package-manager dependencies.

The official migration guide additionally requires moving package.json#pnpm policy and non-registry .npmrc settings to pnpm-workspace.yaml, replacing build-script allowlists with allowBuilds, and migrating version delegation to pmOnFail. Existing launcher commands also still pass confirmModulesPurge, so this cannot be delivered as a packageManager-only bump. The security overrides, release-age gate, script allowlist and legacy launcher recovery must survive together.

Keeping this issue open for the coordinated migration. The supported 10.34.7 install remains intact; this audit is not a claim that pnpm 12 itself is unavailable on macOS or Android.

<!-- gh-comment-id:6346680083 --> @SpicyMarinara commented on GitHub (Oct 22, 2026): Rechecked during the assigned-issue cleanup against the current staging workspace, in three fresh disposable copies with all four manifests, the lockfile, `.npmrc` and patches. No working checkout or global package-manager configuration was changed. - pnpm 10.34.7: frozen/offline/lockfile-only install passes. - Exact hash-pinned pnpm 12.15.0 with the unchanged workspace: `ERR_PNPM_UNRECOGNIZED_WORKSPACE_SETTINGS` for `managePackageManagerVersions` and `confirmModulesPurge`. - Removing only those two obsolete settings: `ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE` while resolving package-manager dependencies. The [official migration guide](https://pnpm.io/migration) additionally requires moving `package.json#pnpm` policy and non-registry `.npmrc` settings to `pnpm-workspace.yaml`, replacing build-script allowlists with `allowBuilds`, and migrating version delegation to `pmOnFail`. Existing launcher commands also still pass `confirmModulesPurge`, so this cannot be delivered as a packageManager-only bump. The security overrides, release-age gate, script allowlist and legacy launcher recovery must survive together. Keeping this issue open for the coordinated migration. The supported 10.34.7 install remains intact; this audit is not a claim that pnpm 12 itself is unavailable on macOS or Android.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 23, 2026):

Implementation owner: @SpicyMarinara (Codex). I am working on the coordinated pnpm 12 migration in an isolated staging branch, preserving launcher recovery and the existing dependency/security policy. Qualification evidence and any remaining platform gaps will be recorded in the linked draft PR.

<!-- gh-comment-id:6354437539 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): Implementation owner: @SpicyMarinara (Codex). I am working on the coordinated pnpm 12 migration in an isolated staging branch, preserving launcher recovery and the existing dependency/security policy. Qualification evidence and any remaining platform gaps will be recorded in the linked draft PR.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 23, 2026):

Implemented and merged to staging in #8131 (merge e63449e564); reviewed head 14c0f11 is verified in staging ancestry. All required checks, hosted platform/Node regressions and Dottore Review passed. Native pnpm 12.15.0 offline reinstall controls also passed with closed stdin, CI unset/true and launcher/dev invocation paths. Translated recovery guidance is tracked separately by #8133 / #8135 and will be closed only after docs-i18n publication. Staging post-merge workflows have started; this closure does not claim their completion.

<!-- gh-comment-id:6355406528 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): Implemented and merged to staging in #8131 (merge e63449e56470044b4a906b6d429a51b42f663167); reviewed head 14c0f11 is verified in staging ancestry. All required checks, hosted platform/Node regressions and Dottore Review passed. Native pnpm 12.15.0 offline reinstall controls also passed with closed stdin, CI unset/true and launcher/dev invocation paths. Translated recovery guidance is tracked separately by #8133 / #8135 and will be closed only after docs-i18n publication. Staging post-merge workflows have started; this closure does not claim their completion.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7547
No description provided.