[PR #2236] [MERGED] Fix NSFW game rating guideline parity #5499

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2236
Author: @cha1latte
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-2156-nsfw-assault-guideline


📝 Commits (1)

  • c4e1095 Fix NSFW game rating guideline parity

📊 Changes

2 files changed (+38 additions, -1 deletions)

View changed files

➕ src/engine/modes/game/prompts/gm-prompts.test.ts (+37 -0)
📝 src/engine/modes/game/prompts/gm-prompts.ts (+1 -1)

📄 Description

Linked issue

Closes #2156

Why this change

  • Refactor accidentally dropped assault from the game-mode NSFW <rating_guidelines> dark-actions verb list compared with legacy main.

What changed

  • Restored assault between mutilate and kill themselves or others in the NSFW GM system prompt guideline.
  • Added a focused prompt regression test covering the NSFW positive row and SFW negative row.

Refactor impact

Primary owner:

Game mode / engine prompts.

Impact areas reviewed:

  • src/engine/modes/game/prompts/gm-prompts.ts

Boundary notes:

  • React-free engine prompt text only; no feature UI, shared API, Rust, storage, provider, or remote-runtime boundary changes.

Pressure points touched:

  • None.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Codex proof: before-fix source check showed refactor had mutilate, kill themselves or others; upstream/main had mutilate, assault, kill themselves or others.
  • node scratch/verify-nsfw-guideline.mjs passed locally after the fix.
  • pnpm exec vitest run src\engine\modes\game\prompts\gm-prompts.test.ts passed locally with 2 tests.
  • node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json passed locally.
  • pnpm typecheck passed locally.
  • pnpm check passed locally after staging the forced-added regression test.
  • Bunny pass before opening the draft: issue match, scoped engine prompt diff, NSFW positive row and SFW negative row covered, proof gate and full PR check clean, no manual blocker.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • N/A: this is a prompt parity bugfix and regression test, not a new user-discoverable feature. Left unchecked for human contributor review.

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

Agent note: no docs or release-claim changes were needed; boxes left unchecked for human contributor review.

UI evidence

N/A: no visible UI changed. This is a React-free prompt text regression; command proof is listed under manual verification notes.


🔄 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/2236 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/4/2026 **Status:** ✅ Merged **Merged:** 6/4/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-2156-nsfw-assault-guideline` --- ### 📝 Commits (1) - [`c4e1095`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c4e1095569a0a2070e2a175e82ede20721a0e9e5) Fix NSFW game rating guideline parity ### 📊 Changes **2 files changed** (+38 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `src/engine/modes/game/prompts/gm-prompts.test.ts` (+37 -0) 📝 `src/engine/modes/game/prompts/gm-prompts.ts` (+1 -1) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue <!-- Every user-facing PR should reference a feature request or issue report when practical. --> Closes #2156 ## Why this change <!-- What user problem, bug, refactor goal, or maintenance need does this solve? --> - Refactor accidentally dropped `assault` from the game-mode NSFW `<rating_guidelines>` dark-actions verb list compared with legacy `main`. ## What changed <!-- List the key changes in this PR. --> - Restored `assault` between `mutilate` and `kill themselves or others` in the NSFW GM system prompt guideline. - Added a focused prompt regression test covering the NSFW positive row and SFW negative row. ## Refactor impact Primary owner: <!-- Examples: app shell, catalog, chat mode, roleplay mode, game mode, runtime generation, world-state, shared API, engine generation, Rust storage, imports, remote runtime. --> Game mode / engine prompts. Impact areas reviewed: - `src/engine/modes/game/prompts/gm-prompts.ts` Boundary notes: <!-- Note engine/shared-api/feature/Rust/remote-runtime boundaries. Say "none" only if you checked. --> - React-free engine prompt text only; no feature UI, shared API, Rust, storage, provider, or remote-runtime boundary changes. Pressure points touched: <!-- Mention ModeSurface, GameSurface, shared mode UI, src-tauri/src/lib.rs command registration, or import modules if touched. --> - None. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> <!-- Do not submit *.test.ts or *.test.tsx files as PR proof; cite existing checks, command output, app/browser/Tauri verification, or manual notes instead. --> - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes <!-- Describe exact commands and manual steps, including typecheck/build/docs/architecture/Rust/browser/remote-runtime checks when they apply. If an AI agent filled this out, verify it yourself before ticking boxes. --> - Codex proof: before-fix source check showed refactor had `mutilate, kill themselves or others`; `upstream/main` had `mutilate, assault, kill themselves or others`. - `node scratch/verify-nsfw-guideline.mjs` passed locally after the fix. - `pnpm exec vitest run src\engine\modes\game\prompts\gm-prompts.test.ts` passed locally with 2 tests. - `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json` passed locally. - `pnpm typecheck` passed locally. - `pnpm check` passed locally after staging the forced-added regression test. - Bunny pass before opening the draft: issue match, scoped engine prompt diff, NSFW positive row and SFW negative row covered, proof gate and full PR check clean, no manual blocker. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [ ] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - N/A: this is a prompt parity bugfix and regression test, not a new user-discoverable feature. Left unchecked for human contributor review. ## 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 Agent note: no docs or release-claim changes were needed; boxes left unchecked for human contributor review. ## UI evidence N/A: no visible UI changed. This is a React-free prompt text regression; command proof is listed under manual verification notes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:16:50 +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#5499
No description provided.