[PR #8131] [MERGED] chore(pnpm): migrate workspace policy and launcher recovery to pnpm 12 #8121

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8131
Author: @SpicyMarinara
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/pnpm12-migration


📝 Commits (4)

  • fbf5da6 chore: start coordinated pnpm 12 migration
  • b07d05d chore(pnpm): migrate policy and pinned-runner handoff to pnpm 12
  • 8881b9d fix(pnpm): ship runner helpers in Docker and validate project lock documents
  • 14c0f11 fix: keep Mari dependency approvals on pinned pnpm

📊 Changes

20 files changed (+584 additions, -137 deletions)

View changed files

📝 .github/workflows/prealpha-platform-builds.yml (+1 -1)
📝 .npmrc (+1 -6)
📝 Dockerfile (+2 -0)
📝 Dockerfile.lite (+3 -2)
📝 docs/TROUBLESHOOTING.md (+4 -4)
📝 package.json (+23 -51)
📝 packages/server/src/routes/updates.routes.ts (+1 -1)
📝 packages/server/src/services/professor-mari/workspace-change-review.service.ts (+72 -16)
📝 pnpm-lock.yaml (+161 -9)
📝 pnpm-workspace.yaml (+43 -17)
📝 scripts/check-workspace-install.mjs (+13 -2)
📝 scripts/ensure-native-deps.mjs (+11 -2)
📝 scripts/pnpm-runner.mjs (+40 -7)
📝 scripts/regressions/launcher/update.regression.mjs (+22 -7)
📝 scripts/regressions/open-issues.regression.ts (+1 -1)
📝 scripts/regressions/pnpm-runner.regression.mjs (+25 -1)
➕ scripts/regressions/professor-mari/dependency-runner.regression.ts (+144 -0)
📝 scripts/regressions/termux-native-deps.regression.mjs (+3 -1)
📝 scripts/regressions/termux-sharp.regression.mjs (+12 -7)
📝 win/installer/installer.nsi (+2 -2)

📄 Description

Linked issue

Closes #8076. Owner: @SpicyMarinara (Codex).

Why this change

pnpm 12 changes configuration, lockfile layout and its executable format. A version-only update breaks nested scripts and legacy global-pnpm handoffs, including Professor Mari's dependency approvals.

What changed

  • Pin pnpm 12.15.0 with its registry SHA-512 and update installer, updater, CI and container fallbacks.
  • Migrate configuration to the workspace file and regenerate the multi-document lockfile. Preserve all 24 security overrides, three patch hashes, the 24-hour release-age policy and the install-script allowlist. The project dependency graph is unchanged.
  • Execute native pnpm directly, keep nested scripts on the active runner, and compare the installed lock against the project document. Retain the legacy install-layout fallback and frozen/offline Android Sharp behavior.
  • Resolve Professor Mari's dependency approval runner through the workspace's exact pin. Keep its temporary home, public-registry restriction, integrity verification, rollback and lifecycle-script bans.
  • Update recovery guidance. Translated pnpm and Motion guidance is tracked in #8135.

Validation

  • pnpm check passes on the final implementation; the existing HomeProfessorMariChat hook warning remains.
  • Launcher regressions, frozen Corepack install, Android Sharp offline/fresh-install fixtures, version check, UI smoke (7/7) and compiled-server startup smoke pass.
  • Semantic lock comparison confirms identical settings, 24 overrides, four importers, 900 packages, 902 snapshots and three patch hashes.
  • Actual approval control: pnpm 10.34.7 succeeds, the old global handoff to 12.15.0 fails with ENOEXEC, and the repaired exact-version Corepack path succeeds through add/fetch/offline install.
  • Final-head hosted Node shards pass all 1,027 regressions. Locally, 1,025 passed in the full run and two CLI-dependent tests passed unchanged through the pinned pnpm command after the direct-Node invocation reached an old global pnpm.
  • Local CodeRabbit: the full migration review found one documentation clarity issue, which was fixed; the final three-file approval-runner follow-up completed with zero findings. An independent integration review also exercised the real approval failure and fix.

Hosted checks and Dottore Review are merge gates and are reported separately from local validation. Physical Android and Windows installation were not tested locally; platform CI is separate evidence. Docker runtime validation runs in hosted CI because the local Docker daemon is stopped.

Manual verification notes

  • Manually verify fresh installation and an existing installation's update through the platform launcher.
  • Manually verify recovery from an old global pnpm installation.
  • Manually verify Professor Mari dependency approval in an existing workspace.

Documentation impact

Reviewed README, Android README, CONTRIBUTING, configuration, troubleshooting and FAQ together. Troubleshooting required the pinned-version and recovery updates; #8135 updates all ten translated packs.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8131 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/pnpm12-migration` --- ### 📝 Commits (4) - [`fbf5da6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fbf5da694baba7400e7c1508726ed4eb1114c260) chore: start coordinated pnpm 12 migration - [`b07d05d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b07d05d4df1a7d4fccf1b6fff7a920bc4c0d7502) chore(pnpm): migrate policy and pinned-runner handoff to pnpm 12 - [`8881b9d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8881b9d7901b89c83f3c54739d67a2dbeed65826) fix(pnpm): ship runner helpers in Docker and validate project lock documents - [`14c0f11`](https://github.com/Pasta-Devs/Marinara-Engine/commit/14c0f11a1e7cd1366af19ab6a61dd9a94a7e4625) fix: keep Mari dependency approvals on pinned pnpm ### 📊 Changes **20 files changed** (+584 additions, -137 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/prealpha-platform-builds.yml` (+1 -1) 📝 `.npmrc` (+1 -6) 📝 `Dockerfile` (+2 -0) 📝 `Dockerfile.lite` (+3 -2) 📝 `docs/TROUBLESHOOTING.md` (+4 -4) 📝 `package.json` (+23 -51) 📝 `packages/server/src/routes/updates.routes.ts` (+1 -1) 📝 `packages/server/src/services/professor-mari/workspace-change-review.service.ts` (+72 -16) 📝 `pnpm-lock.yaml` (+161 -9) 📝 `pnpm-workspace.yaml` (+43 -17) 📝 `scripts/check-workspace-install.mjs` (+13 -2) 📝 `scripts/ensure-native-deps.mjs` (+11 -2) 📝 `scripts/pnpm-runner.mjs` (+40 -7) 📝 `scripts/regressions/launcher/update.regression.mjs` (+22 -7) 📝 `scripts/regressions/open-issues.regression.ts` (+1 -1) 📝 `scripts/regressions/pnpm-runner.regression.mjs` (+25 -1) ➕ `scripts/regressions/professor-mari/dependency-runner.regression.ts` (+144 -0) 📝 `scripts/regressions/termux-native-deps.regression.mjs` (+3 -1) 📝 `scripts/regressions/termux-sharp.regression.mjs` (+12 -7) 📝 `win/installer/installer.nsi` (+2 -2) </details> ### 📄 Description ## Linked issue Closes #8076. Owner: @SpicyMarinara (Codex). ## Why this change pnpm 12 changes configuration, lockfile layout and its executable format. A version-only update breaks nested scripts and legacy global-pnpm handoffs, including Professor Mari's dependency approvals. ## What changed - Pin pnpm 12.15.0 with its registry SHA-512 and update installer, updater, CI and container fallbacks. - Migrate configuration to the workspace file and regenerate the multi-document lockfile. Preserve all 24 security overrides, three patch hashes, the 24-hour release-age policy and the install-script allowlist. The project dependency graph is unchanged. - Execute native pnpm directly, keep nested scripts on the active runner, and compare the installed lock against the project document. Retain the legacy install-layout fallback and frozen/offline Android Sharp behavior. - Resolve Professor Mari's dependency approval runner through the workspace's exact pin. Keep its temporary home, public-registry restriction, integrity verification, rollback and lifecycle-script bans. - Update recovery guidance. Translated pnpm and Motion guidance is tracked in #8135. ## Validation - `pnpm check` passes on the final implementation; the existing HomeProfessorMariChat hook warning remains. - Launcher regressions, frozen Corepack install, Android Sharp offline/fresh-install fixtures, version check, UI smoke (7/7) and compiled-server startup smoke pass. - Semantic lock comparison confirms identical settings, 24 overrides, four importers, 900 packages, 902 snapshots and three patch hashes. - Actual approval control: pnpm 10.34.7 succeeds, the old global handoff to 12.15.0 fails with ENOEXEC, and the repaired exact-version Corepack path succeeds through add/fetch/offline install. - Final-head hosted Node shards pass all 1,027 regressions. Locally, 1,025 passed in the full run and two CLI-dependent tests passed unchanged through the pinned pnpm command after the direct-Node invocation reached an old global pnpm. - Local CodeRabbit: the full migration review found one documentation clarity issue, which was fixed; the final three-file approval-runner follow-up completed with zero findings. An independent integration review also exercised the real approval failure and fix. Hosted checks and Dottore Review are merge gates and are reported separately from local validation. Physical Android and Windows installation were not tested locally; platform CI is separate evidence. Docker runtime validation runs in hosted CI because the local Docker daemon is stopped. ## Manual verification notes - [ ] Manually verify fresh installation and an existing installation's update through the platform launcher. - [ ] Manually verify recovery from an old global pnpm installation. - [ ] Manually verify Professor Mari dependency approval in an existing workspace. ## Documentation impact Reviewed README, Android README, CONTRIBUTING, configuration, troubleshooting and FAQ together. Troubleshooting required the pinned-version and recovery updates; #8135 updates all ten translated packs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10:33 +07:00
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#8121
No description provided.