[PR #874] [MERGED] chore: staging-first policy note + pnpm supply-chain guardrails #4811

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/874
Author: @Romuromylus
Created: 5/15/2026
Status: ✅ Merged
Merged: 5/15/2026
Merged by: @Romuromylus

Base: main ← Head: staging


📝 Commits (2)

  • d429576 chore: add pnpm supply-chain guardrails
  • 3c91ebd docs: note staging-first branch policy

📊 Changes

2 files changed (+8 additions, -0 deletions)

View changed files

📝 AGENTS.md (+1 -0)
📝 pnpm-workspace.yaml (+7 -0)

📄 Description

Linked issue

No tracking issue — bundling two small repo-hygiene changes that surfaced together.

Why this change

  • Staging-first branch policy isn't documented for agents. The repo uses staging as the integration branch ahead of main, but AGENTS.md doesn't say so, and agents (Codex and others) have been opening PRs directly against main. One bullet under the existing Repo-Specific Cautions stops that without needing a wider CONTRIBUTING rewrite.
  • No supply-chain guardrails on the workspace. pnpm ships settings (minimumReleaseAge etc.) for exactly the npm-compromise wave class of incident. Adopting them in pnpm-workspace.yaml costs nothing for normal upgrades and gives the registry / advisory ecosystem a ~24h window to catch malicious publishes before our installs pick them up.

What changed

AGENTS.md — one bullet under "Repo-Specific Cautions" stating that Marinara Engine changes go against staging first, and that main should only be targeted when the user or maintainer explicitly asks.

pnpm-workspace.yaml — added pnpm supply-chain guardrails:

  • minimumReleaseAge: 1440 — 24h hold on newly published package versions.
  • minimumReleaseAgeIgnoreMissingTime: false — when pnpm can't determine a publish time, treat that as a reason to block rather than let the version through.
  • trustPolicy: no-downgrade — refuse resolutions that would downgrade relative to the lockfile.
  • blockExoticSubdeps: true — refuse non-registry (git URL / tarball) transitive deps appearing deep in the tree.

Existing installs are unaffected because the lockfile already pins versions older than 24h.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Docs + workspace-config only — no runtime behavior change, so UI / container / edge-case checks aren't meaningful here. The pnpm settings are inert until someone adds or upgrades a dep; the lockfile-pinned graph keeps resolving as-is.

  • The AGENTS.md bullet lives in the existing Repo-Specific Cautions list, so it inherits whatever path agents already follow for that section.
  • The pnpm-workspace.yaml keys take effect on the next install / upgrade; no migration step is required for current workspaces.

Leaving the pnpm check / container boxes unchecked so a maintainer can re-verify on their own setup.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

AGENTS.md is itself the contributor-facing doc being updated — no README / CONTRIBUTING / CHANGELOG sync is needed to match.

UI evidence (if applicable)

N/A — no UI changes.


🔄 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/874 **Author:** [@Romuromylus](https://github.com/Romuromylus) **Created:** 5/15/2026 **Status:** ✅ Merged **Merged:** 5/15/2026 **Merged by:** [@Romuromylus](https://github.com/Romuromylus) **Base:** `main` ← **Head:** `staging` --- ### 📝 Commits (2) - [`d429576`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d429576cd7ace7cd3b19d123a5768dad43a6da06) chore: add pnpm supply-chain guardrails - [`3c91ebd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3c91ebdcf73b2a2f8324daae6212ff3d77a06057) docs: note staging-first branch policy ### 📊 Changes **2 files changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `AGENTS.md` (+1 -0) 📝 `pnpm-workspace.yaml` (+7 -0) </details> ### 📄 Description ## Linked issue No tracking issue — bundling two small repo-hygiene changes that surfaced together. ## Why this change - **Staging-first branch policy isn't documented for agents.** The repo uses `staging` as the integration branch ahead of `main`, but `AGENTS.md` doesn't say so, and agents (Codex and others) have been opening PRs directly against `main`. One bullet under the existing Repo-Specific Cautions stops that without needing a wider CONTRIBUTING rewrite. - **No supply-chain guardrails on the workspace.** pnpm ships settings (`minimumReleaseAge` etc.) for exactly the npm-compromise wave class of incident. Adopting them in `pnpm-workspace.yaml` costs nothing for normal upgrades and gives the registry / advisory ecosystem a ~24h window to catch malicious publishes before our installs pick them up. ## What changed **`AGENTS.md`** — one bullet under "Repo-Specific Cautions" stating that Marinara Engine changes go against `staging` first, and that `main` should only be targeted when the user or maintainer explicitly asks. **`pnpm-workspace.yaml`** — added pnpm supply-chain guardrails: - `minimumReleaseAge: 1440` — 24h hold on newly published package versions. - `minimumReleaseAgeIgnoreMissingTime: false` — when pnpm can't determine a publish time, treat that as a reason to block rather than let the version through. - `trustPolicy: no-downgrade` — refuse resolutions that would downgrade relative to the lockfile. - `blockExoticSubdeps: true` — refuse non-registry (git URL / tarball) transitive deps appearing deep in the tree. Existing installs are unaffected because the lockfile already pins versions older than 24h. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Docs + workspace-config only — no runtime behavior change, so UI / container / edge-case checks aren't meaningful here. The pnpm settings are inert until someone adds or upgrades a dep; the lockfile-pinned graph keeps resolving as-is. - The `AGENTS.md` bullet lives in the existing Repo-Specific Cautions list, so it inherits whatever path agents already follow for that section. - The `pnpm-workspace.yaml` keys take effect on the next install / upgrade; no migration step is required for current workspaces. Leaving the `pnpm check` / container boxes unchecked so a maintainer can re-verify on their own setup. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) `AGENTS.md` is itself the contributor-facing doc being updated — no README / CONTRIBUTING / CHANGELOG sync is needed to match. ## UI evidence (if applicable) N/A — no UI changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:10:51 +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#4811
No description provided.