[PR #2069] [MERGED] refactor(otome-forge): every Otome Hearth prompt in one file (0.6.26) #2100

Closed
opened 2026-11-07 16:39:29 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2069
Author: @SpicyMarinara
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @SpicyMarinara

Base: staging ← Head: chore/otome-prompts-one-file


📝 Commits (3)

  • 7920a3c refactor(otome-forge): every Otome Hearth prompt in one file
  • fd83de6 Merge staging (0.6.25) into chore/otome-prompts-one-file; carry the #2061 writing rules into prompts.ts
  • 07bd7da chore(otome-forge): release 0.6.26

📊 Changes

108 files changed (+6183 additions, -5964 deletions)

View changed files

➕ artifacts/otome-forge-0.6.26.zip (+0 -0)
📝 catalog/preview/catalog.json (+8 -8)
📝 catalog/preview/notes.json (+6 -6)
📝 catalog/preview/v2/catalog.json (+8 -8)
📝 catalog/preview/v2/notes.json (+6 -6)
📝 catalog/preview/v3/catalog.json (+8 -8)
📝 catalog/preview/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+4 -0)
📝 packages/otome-forge/client.js (+1 -1)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+182 -182)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/accent.ts (+2 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/cycle.ts (+1 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ContentTagsCard.tsx (+1 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+2 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/read-me.ts (+2 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/wish.ts (+1 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+1 -1)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/cg.ts (+3 -3)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/expressions.ts (+2 -2)

...and 80 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #2064

Why this change

The maintainer is going to rewrite Otome Hearth's prompts by hand, and they were spread across about two dozen files, so it was hard to see them together. In their words: "Why aren't they all in one file? Makes no sense."

What changed

Package: otome-forge (Otome Hearth) 0.6.26. Not one word of any prompt changed. sources/forge-kit and Gacha Forge are untouched.

  • New services/otome-forge/prompts.ts (about 4,600 lines) holds every Otome-owned prompt: 259 top-level names moved from 21 files.
    • At the top: a CONTENTS list giving every prompt, what it makes and which feature file sends it.
    • Then an ELSEWHERE list of what lives outside the file and why:
      • the kit prompts shared with Gacha Forge;
      • the correction messages sent when a reply breaks a rule (built from what went wrong);
      • the care-line text mirrored from the client;
      • a few short inline strings.
    • Then the sections, in story order:
      • shared blocks: writing rules, banned phrases, pacing, content contract, scene card, intimacy;
      • setup;
      • story: arc, chapter plan, scenes, routes, repairs, Confrontation, Closer;
      • memory wording;
      • phone;
      • home and care;
      • mini-games;
      • stickers;
      • wish;
      • items;
      • image prompts.
    • The story's shared blocks list every other prompt that uses them, so rewriting one shows what else changes. The scene writer's "no choices" sentence is marked as matched word for word by the kit.
  • The features import their prompts from prompts.ts. Code that checks replies, schemas and routes stays where it was.
  • File changes:
    • Renamed for what they now hold: story/prompts.ts → story/replies.ts, setup/prompts.ts → setup/cast.ts, phone/prompts.ts → phone/replies.ts, home/prompts.ts → home/replies.ts, care/prompts.ts → care/care-line.ts, items/prompts.ts → items/replies.ts, wish/prompts.ts → wish/replies.ts.
    • Deleted because they were left empty: art/prompts.ts, content-contract.ts, writing-rules.ts, scene-card.ts.
  • Clean-ups during the move:
    • Five identical copies of pronounText are now one.
    • The label "P25" now means only Read Him. The extra story is "the extra story plan", and the arc planner lost a stray "(P25)".
  • Rebased on staging 0.6.25. The maintainer's #2061 writing rules are carried into prompts.ts, and its WRITING_RULES matches staging's exactly.

Release: 0.6.26 with a CHANGELOG entry. The rebuilt server.mjs, client.js, manifest, preview catalogs and artifacts/otome-forge-0.6.26.zip agree. client.js differs by one path in a CSS comment.

Package and security impact

  • Affected package IDs: otome-forge (0.6.25 → 0.6.26).
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

What the agent ran locally, to prove no prompt changed:

  • Source comparison. A TypeScript AST script compared every top-level declaration in the old 90 server files with the new tree as a token stream. String, template and regex tokens were compared character for character. Each identifier was checked for what it refers to, so a moved helper still points at the same target. All 2,925 statements match, apart from the merged pronounText copies, one removed re-export and one type-only alias.

  • Rendered output. The old tree and the new one each rendered every one of the 103 exported prompt builders and constants, under:

    • Angst SFW, Gentle, Dark, and NSFW Heat (explicit, past the 18+ gate);
    • images on and off;
    • a non-English language;
    • the first chapter, a date and the prologue;
    • CG, judgment and side-with nodes;
    • the daily "writes first" phone reply, and stickers.

    Every hash matched, with 0 mismatches.

  • Suites after the rebase:

    • all 621 Otome TypeScript regressions, including the pinned SFW prompt digests staging retook for #2061, so the merged file sends exactly what staging sends;
    • 12 .mjs regressions;
    • 0 strict typecheck errors;
    • the locale validators;
    • ESLint.
  • Full package browser suite before the rebase: all 10 spec files pass, with no module-initialisation errors.

  • Completeness review. A separate review scanned for prompt text left outside the file and found none. Its notes on the table of contents (shared-block users, the music brief entry, the care line, the kit-matched sentence, the P25 label, stale comments) are all fixed.

For a human to verify:

  • Open services/otome-forge/prompts.ts. Manually verify the CONTENTS list lets you find the prompt you want to rewrite, and that ELSEWHERE explains what isn't in the file.
  • With debug prompt logging on, play a scene and open the phone. Manually verify the prompts read as they did before.

When you rewrite prompts: tests/otome-forge-sfw-defaults.regression.ts and tests/otome-forge-seasons.regression.ts pin the exact story and banner prompts. Take the new values from the failing assertion's "actual".

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

The package CHANGELOG describes the change.

🤖 Generated with Claude Code


🔄 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-Agents/pull/2069 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `chore/otome-prompts-one-file` --- ### 📝 Commits (3) - [`7920a3c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7920a3ca23c7426fbba33c985720fc87658b5fcb) refactor(otome-forge): every Otome Hearth prompt in one file - [`fd83de6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fd83de6df8edd4eea12fd70f318f99f5457d5195) Merge staging (0.6.25) into chore/otome-prompts-one-file; carry the #2061 writing rules into prompts.ts - [`07bd7da`](https://github.com/Pasta-Devs/Marinara-Agents/commit/07bd7da1a15c82c6ba5a47fa4a85c1548c449680) chore(otome-forge): release 0.6.26 ### 📊 Changes **108 files changed** (+6183 additions, -5964 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.6.26.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+8 -8) 📝 `catalog/preview/notes.json` (+6 -6) 📝 `catalog/preview/v2/catalog.json` (+8 -8) 📝 `catalog/preview/v2/notes.json` (+6 -6) 📝 `catalog/preview/v3/catalog.json` (+8 -8) 📝 `catalog/preview/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+4 -0) 📝 `packages/otome-forge/client.js` (+1 -1) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+182 -182) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/accent.ts` (+2 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/cycle.ts` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ContentTagsCard.tsx` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+2 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/read-me.ts` (+2 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/wish.ts` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/cg.ts` (+3 -3) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/expressions.ts` (+2 -2) _...and 80 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #2064 ## Why this change The maintainer is going to rewrite Otome Hearth's prompts by hand, and they were spread across about two dozen files, so it was hard to see them together. In their words: "Why aren't they all in one file? Makes no sense." ## What changed Package: `otome-forge` (Otome Hearth) **0.6.26**. **Not one word of any prompt changed.** `sources/forge-kit` and Gacha Forge are untouched. - **New `services/otome-forge/prompts.ts`** (about 4,600 lines) holds every Otome-owned prompt: 259 top-level names moved from 21 files. - At the top: a **CONTENTS** list giving every prompt, what it makes and which feature file sends it. - Then an **ELSEWHERE** list of what lives outside the file and why: - the kit prompts shared with Gacha Forge; - the correction messages sent when a reply breaks a rule (built from what went wrong); - the care-line text mirrored from the client; - a few short inline strings. - Then the sections, in story order: - shared blocks: writing rules, banned phrases, pacing, content contract, scene card, intimacy; - setup; - story: arc, chapter plan, scenes, routes, repairs, Confrontation, Closer; - memory wording; - phone; - home and care; - mini-games; - stickers; - wish; - items; - image prompts. - The story's shared blocks list every other prompt that uses them, so rewriting one shows what else changes. The scene writer's "no choices" sentence is marked as matched word for word by the kit. - **The features import their prompts from `prompts.ts`.** Code that checks replies, schemas and routes stays where it was. - **File changes:** - Renamed for what they now hold: `story/prompts.ts` → `story/replies.ts`, `setup/prompts.ts` → `setup/cast.ts`, `phone/prompts.ts` → `phone/replies.ts`, `home/prompts.ts` → `home/replies.ts`, `care/prompts.ts` → `care/care-line.ts`, `items/prompts.ts` → `items/replies.ts`, `wish/prompts.ts` → `wish/replies.ts`. - Deleted because they were left empty: `art/prompts.ts`, `content-contract.ts`, `writing-rules.ts`, `scene-card.ts`. - **Clean-ups during the move:** - Five identical copies of `pronounText` are now one. - The label "P25" now means only Read Him. The extra story is "the extra story plan", and the arc planner lost a stray "(P25)". - **Rebased on staging 0.6.25.** The maintainer's #2061 writing rules are carried into `prompts.ts`, and its `WRITING_RULES` matches staging's exactly. **Release:** 0.6.26 with a CHANGELOG entry. The rebuilt `server.mjs`, `client.js`, manifest, preview catalogs and `artifacts/otome-forge-0.6.26.zip` agree. `client.js` differs by one path in a CSS comment. ## Package and security impact - Affected package IDs: `otome-forge` (0.6.25 → 0.6.26). - Engine compatibility impact: none. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes What the agent ran locally, to prove no prompt changed: - **Source comparison.** A TypeScript AST script compared every top-level declaration in the old 90 server files with the new tree as a token stream. String, template and regex tokens were compared character for character. Each identifier was checked for what it refers to, so a moved helper still points at the same target. All 2,925 statements match, apart from the merged `pronounText` copies, one removed re-export and one type-only alias. - **Rendered output.** The old tree and the new one each rendered every one of the 103 exported prompt builders and constants, under: - Angst SFW, Gentle, Dark, and NSFW Heat (explicit, past the 18+ gate); - images on and off; - a non-English language; - the first chapter, a date and the prologue; - CG, judgment and side-with nodes; - the daily "writes first" phone reply, and stickers. Every hash matched, with 0 mismatches. - **Suites after the rebase:** - all 621 Otome TypeScript regressions, including the pinned SFW prompt digests staging retook for #2061, so the merged file sends exactly what staging sends; - 12 `.mjs` regressions; - 0 strict typecheck errors; - the locale validators; - ESLint. - **Full package browser suite before the rebase:** all 10 spec files pass, with no module-initialisation errors. - **Completeness review.** A separate review scanned for prompt text left outside the file and found none. Its notes on the table of contents (shared-block users, the music brief entry, the care line, the kit-matched sentence, the P25 label, stale comments) are all fixed. For a human to verify: - Open `services/otome-forge/prompts.ts`. Manually verify the CONTENTS list lets you find the prompt you want to rewrite, and that ELSEWHERE explains what isn't in the file. - With debug prompt logging on, play a scene and open the phone. Manually verify the prompts read as they did before. When you rewrite prompts: `tests/otome-forge-sfw-defaults.regression.ts` and `tests/otome-forge-seasons.regression.ts` pin the exact story and banner prompts. Take the new values from the failing assertion's "actual". ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The package CHANGELOG describes the change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:39:29 +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-Agents#2100
No description provided.