[PR #1672] [MERGED] Harden pnpm install policy #5201

Closed
opened 2026-10-22 04:14:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1672
Author: @cha1latte
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @cha1latte

Base: refactor ← Head: chore/refactor-supply-chain-guardrails


📝 Commits (2)

  • 056f2f2 Harden pnpm install policy
  • 9ff2c16 Address review feedback: align pnpm policy with v10

📊 Changes

3 files changed (+16 additions, -8 deletions)

View changed files

➕ .puppeteerrc.cjs (+5 -0)
📝 package.json (+0 -8)
➕ pnpm-workspace.yaml (+11 -0)

📄 Description

Linked issue

N/A - Discord follow-up / focused supply-chain hardening pass.

Why this change

  • Add focused install-time supply-chain guardrails to the refactor branch without changing dependency versions, CI workflow shape, Rust policy, or runtime behavior.
  • Keep dependency lifecycle scripts explicit so new install-time scripts block until reviewed.

What changed

  • Added root pnpm-workspace.yaml as the canonical pnpm policy file.
  • Moved the existing pnpm build-script policy out of package.json.
  • Enabled minimumReleaseAge, missing publish-time blocking, trustPolicy: no-downgrade, blockExoticSubdeps, and strictDepBuilds.
  • Added a root Puppeteer config so the allowlisted Puppeteer postinstall runs without downloading browsers.

Refactor impact

Primary owner:

Tooling / dependency installation policy

Impact areas reviewed:

  • pnpm install policy
  • Existing package lock behavior
  • CI install entrypoints that already use pnpm install --frozen-lockfile
  • Impeccable/Puppeteer install-script behavior

Boundary notes:

  • No app, feature, engine, shared API, Rust, Tauri command, storage, remote runtime, or prompt-assembly behavior changed.
  • No dependencies were added, removed, or upgraded.
  • pnpm-lock.yaml was unchanged.

Pressure points touched:

  • None. No ModeSurface, GameSurface, shared mode UI, command registration, or import modules touched.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

Codex verification from a clean worktree based on upstream/refactor:

  • pnpm install --frozen-lockfile passed with no lockfile changes.
  • pnpm ignored-builds reported None.
  • pnpm --dir scratch\pnpm-strict-negative install failed as expected with ERR_PNPM_IGNORED_BUILDS for an unapproved local postinstall script.
  • pnpm --dir scratch\pnpm-strict-positive install passed when the same local package was explicitly allowlisted.
  • pnpm rebuild puppeteer ran Puppeteer's postinstall and reported: Skipping downloading browsers as instructed.
  • pnpm check:line-endings passed.
  • pnpm check:architecture passed.
  • pnpm typecheck passed.
  • pnpm check:docs passed.
  • pnpm lint passed with 0 errors and 4 existing warnings.
  • git diff --check passed.
  • pnpm check passed.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

No docs or release files were changed. This PR only changes install-time package-manager policy.

UI evidence

N/A - no visible UI changes.

Summary by CodeRabbit

  • Chores
    • Streamlined build configuration to optimize dependency handling and reduce unnecessary downloads.
    • Added security guardrails for supply-chain integrity across project dependencies.

Review Change Stack


🔄 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/1672 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/30/2026 **Status:** ✅ Merged **Merged:** 5/30/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `chore/refactor-supply-chain-guardrails` --- ### 📝 Commits (2) - [`056f2f2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/056f2f253e8643602b0ee62d30814000d0a658ef) Harden pnpm install policy - [`9ff2c16`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9ff2c1681511c5538a7a86f457228b1d4eda5b0b) Address review feedback: align pnpm policy with v10 ### 📊 Changes **3 files changed** (+16 additions, -8 deletions) <details> <summary>View changed files</summary> ➕ `.puppeteerrc.cjs` (+5 -0) 📝 `package.json` (+0 -8) ➕ `pnpm-workspace.yaml` (+11 -0) </details> ### 📄 Description ## Linked issue N/A - Discord follow-up / focused supply-chain hardening pass. ## Why this change - Add focused install-time supply-chain guardrails to the refactor branch without changing dependency versions, CI workflow shape, Rust policy, or runtime behavior. - Keep dependency lifecycle scripts explicit so new install-time scripts block until reviewed. ## What changed - Added root `pnpm-workspace.yaml` as the canonical pnpm policy file. - Moved the existing pnpm build-script policy out of `package.json`. - Enabled `minimumReleaseAge`, missing publish-time blocking, `trustPolicy: no-downgrade`, `blockExoticSubdeps`, and `strictDepBuilds`. - Added a root Puppeteer config so the allowlisted Puppeteer postinstall runs without downloading browsers. ## Refactor impact Primary owner: Tooling / dependency installation policy Impact areas reviewed: - pnpm install policy - Existing package lock behavior - CI install entrypoints that already use `pnpm install --frozen-lockfile` - Impeccable/Puppeteer install-script behavior Boundary notes: - No app, feature, engine, shared API, Rust, Tauri command, storage, remote runtime, or prompt-assembly behavior changed. - No dependencies were added, removed, or upgraded. - `pnpm-lock.yaml` was unchanged. Pressure points touched: - None. No ModeSurface, GameSurface, shared mode UI, command registration, or import modules touched. ## Validation - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes Codex verification from a clean worktree based on `upstream/refactor`: - `pnpm install --frozen-lockfile` passed with no lockfile changes. - `pnpm ignored-builds` reported `None`. - `pnpm --dir scratch\pnpm-strict-negative install` failed as expected with `ERR_PNPM_IGNORED_BUILDS` for an unapproved local postinstall script. - `pnpm --dir scratch\pnpm-strict-positive install` passed when the same local package was explicitly allowlisted. - `pnpm rebuild puppeteer` ran Puppeteer's postinstall and reported: `Skipping downloading browsers as instructed.` - `pnpm check:line-endings` passed. - `pnpm check:architecture` passed. - `pnpm typecheck` passed. - `pnpm check:docs` passed. - `pnpm lint` passed with 0 errors and 4 existing warnings. - `git diff --check` passed. - `pnpm check` passed. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims No docs or release files were changed. This PR only changes install-time package-manager policy. ## UI evidence N/A - no visible UI changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Streamlined build configuration to optimize dependency handling and reduce unnecessary downloads. * Added security guardrails for supply-chain integrity across project dependencies. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1672?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:11 +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#5201
No description provided.