[PR #2033] [MERGED] feat(otome-forge): prestige past level 10 unlocks extra stories you imagine together (0.6.15) #2082

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

📋 Pull Request Information

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

Base: staging ← Head: feat/otome-prestige-2025


📝 Commits (4)

  • cc610f7 feat(otome-forge): prestige past level 10 unlocks extra stories (#2025)
  • e642fec chore(otome-forge): release prestige as 0.6.15; EXITS_RULE keeps its comment
  • d75cdd7 test(otome-forge): the prestige browser test gives the level-4 love interest its affection meter
  • 14eb0be Merge branch 'staging' into feat/otome-prestige-2025

📊 Changes

34 files changed (+1294 additions, -291 deletions)

View changed files

➕ artifacts/otome-forge-0.6.15.zip (+0 -0)
📝 catalog/preview/catalog.json (+8 -8)
📝 catalog/preview/notes.json (+7 -7)
📝 catalog/preview/v2/catalog.json (+8 -8)
📝 catalog/preview/v2/notes.json (+7 -7)
📝 catalog/preview/v3/catalog.json (+8 -8)
📝 catalog/preview/v3/notes.json (+7 -7)
📝 packages/otome-forge/CHANGELOG.md (+7 -1)
📝 packages/otome-forge/README.md (+3 -2)
📝 packages/otome-forge/client.js (+61 -48)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+131 -127)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+9 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx (+19 -10)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/story/StoryHome.tsx (+135 -21)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+21 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/economy.ts (+53 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+13 -0)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/ids.ts (+12 -4)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/items/character-story.ts (+22 -8)

...and 14 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 #2025

Why this change

  • Affection with a love interest stopped meaning anything at level 10, the maximum. The maintainer asked for a prestige system after that: it goes on forever, and every three extra points unlock a new extra story, written like a Character Story. Those stories are imagined scenarios the two of them explore for fun:

    • new kinks, when NSFW is on;
    • what-ifs, such as a wedding, starting a family or a honeymoon trip;
    • mini AUs, such as a vampire AU or a modern AU.

    After each unlock the points reset, and it starts over.

What changed

Otome Hearth 0.6.15 (otome-forge).

  • The numbers (shared/economy.ts, prestigeOf). Everything is computed from his affection points, which were never capped, so nothing new is stored but the stories themselves.

    • over = points − 2700, never below 0. Level 10 is 2700.
    • Unlocked stories = ⌊over / 900⌋.
    • Prestige points = ⌊over / 300⌋ mod 3.
    • Progress toward the next point = over mod 300.
  • Losses (state/relationship.ts, affectionFloorOf). At level 10 the affection floor is 2700 + 900 × unlocked stories, so a hostile pick can never take an unlocked story back. Points inside the current set of three can still fall, the same way points within a level can. Below level 10, nothing changes.

  • Writing a story (new items/prestige.ts and route POST /runs/:run/prestige/:li in routes/arcs.ts).

    • Each extra story is a story-kind chapter with key prestige-<li>-<n>, run through the normal Character Story beat engine: him alone in every node, no stage move, beat Starlight only.
    • The route writes his next unlocked story through readOrGenerate, so a double tap plans it once. It returns his latest story when nothing new is unlocked, and answers 409 locked before his first unlock.
    • Character Story's node rules are split out into sideStoryNodes and reused here.
  • The planner prompt (P25, items/prompts.ts). The model picks one of three kinds:

    • kink, offered only when intimacy is open (NSFW), and his intimacy tastes are included only then;
    • what-if: a wedding, a family, a honeymoon, and similar;
    • au: vampire, modern-day, and similar.

    The prompt frames the story as something they imagine or play out for fun, not canon. It lists his earlier extra stories and tells the model not to repeat one. The normalizer refuses an unknown kind, a kink when NSFW is off, an empty premise, and the wrong node count. No censorship or softening wording was added; the normal content contract applies.

  • Kept out of the main story.

    • The beat writer frames each scene as an imagined extra story (story/prompts.ts).
    • Choices inside it change nothing: no trust, tension, grievance, rupture, disclosure or affection loss (story/beats.ts).
    • It is never a memory source (story/canon.ts), so a vampire AU can't leak into later chapters.
    • Its premise is stripped from the chapter view (story/chapters.ts).
  • Client.

    • RunLiView.prestige is sent only at level 10, never his raw points.
    • At level 10, Story → Between you shows "Prestige" with three star pips and a "current / 300" meter in place of the full "300 / 300" counter.
    • Once three points are reached, an "A new story with {{name}}" button appears with the plan-cost and paint-cost notes.
    • The chapter end card shows "New story unlocked!" the way it shows a level-up.
    • An older cached view without prestige falls back to the affection counter.
    • 9 new English locale keys. packages/otome-forge/README.md documents prestige.
  • Two of Dottore's notes from #2031: EXITS_RULE's comment sits on it again, and the 0.6.14 release note no longer promises the writer "always" words choices to you.

  • Tests.

    • New tests/otome-forge-prestige.regression.ts (7 tests) covers the math, the loss floor, the route's idempotency and locking, the P25 prompt and normalizer, the play-through rules (choices change nothing, never a memory source, not-canon framing), the run view, and that the premise stays on the server. Each proof fails when its source file is reverted.
    • tests/otome-forge-server-bundle.regression.mjs now registers the new route.
    • New browser test "Otome Hearth shows prestige past level 10 and writes an unlocked extra story on its tap (#2025)" in tests/package-otome-forge-presentation.e2e.ts.
  • Rebuilt client.js, server.mjs, the manifest, artifacts/otome-forge-0.6.15.zip and the preview catalog entries.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: a new package route, POST /runs/:run/prestige/:li, inside the existing package server. No new permissions.
  • Restart, storage, update, or uninstall impact:
    • Extra stories are stored as ordinary chapter documents with an optional hidden prestige field. Older chapters, states and cached views read back unchanged.
    • A player already past level 10 when they update unlocks stories from their existing points, as the issue intends.

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:

  • npx tsx --tsconfig tests/tsconfig.regressions.json --test "tests/otome-forge-*.regression.ts" passes 555/555, and node --test "tests/otome-forge-*.regression.mjs" passes 12/12, including the server-bundle snapshot with the new route.
  • The strict package typecheck, npm run format:check, both locale validators and git diff --check pass.
  • An independent review agent traced every affection-loss path, the concurrency of two taps, how the story is kept out of canon, older saved data, and the prompts. It found no defects.
  • Local CodeRabbit reported 0 findings.
  • Browser: the presentation, reader and loop specs, including the new prestige test, are running against the rebuilt package. The result will be added in a comment.

For a human to verify:

  • Manually verify that for a love interest at level 10, Story → Between you shows "Prestige" with three star pips and a "current / 300" meter instead of "300 / 300". Check both the midnight and pearl looks, and at phone width.
  • Manually verify that "A new story with {{name}}" appears only once three prestige points are reached, shows the plan-cost note, opens the plan dialog (with Cancel), then opens the reader on the new chapter.
  • Manually verify with a real model that an SFW story never offers a kink, that an NSFW story can, and that a second extra story has a different kind or premise from the first.
  • Manually verify that reading an extra story to its end pays only beat Starlight, and that its choices don't change his trust, grievances or affection.
  • Manually verify that later main chapters never recall an extra story's events, for example a vampire AU.
  • Manually verify that the chapter end card shows "New story unlocked!" when a chapter's affection pushes a love interest past an unlock.

Design follow-ups, not in this PR:

  • Dates, Read Him and Read Me also grant affection, but say nothing when a story unlocks. The Story screen still shows the button.
  • A kink story planned under NSFW keeps its framing if the player switches to SFW before reading it. The SFW content contract still governs what gets written.
  • Extra stories appear in the Story chapter list as "Character story · with X", but not in the Album.

Documentation impact

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

UI evidence (if applicable)

  • The new browser test saves screenshots of the prestige row in both looks.

🤖 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/2033 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/otome-prestige-2025` --- ### 📝 Commits (4) - [`cc610f7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cc610f7e466fc074796dc1fdb0ebc233902ca457) feat(otome-forge): prestige past level 10 unlocks extra stories (#2025) - [`e642fec`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e642fecca1d22498805c31715913c5d777a541a5) chore(otome-forge): release prestige as 0.6.15; EXITS_RULE keeps its comment - [`d75cdd7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d75cdd7fad34cc8982c1a03957e17640c9bbb9dd) test(otome-forge): the prestige browser test gives the level-4 love interest its affection meter - [`14eb0be`](https://github.com/Pasta-Devs/Marinara-Agents/commit/14eb0beb7ddf46d12d8202615b444e1ced5aec75) Merge branch 'staging' into feat/otome-prestige-2025 ### 📊 Changes **34 files changed** (+1294 additions, -291 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.6.15.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+8 -8) 📝 `catalog/preview/notes.json` (+7 -7) 📝 `catalog/preview/v2/catalog.json` (+8 -8) 📝 `catalog/preview/v2/notes.json` (+7 -7) 📝 `catalog/preview/v3/catalog.json` (+8 -8) 📝 `catalog/preview/v3/notes.json` (+7 -7) 📝 `packages/otome-forge/CHANGELOG.md` (+7 -1) 📝 `packages/otome-forge/README.md` (+3 -2) 📝 `packages/otome-forge/client.js` (+61 -48) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+131 -127) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+9 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx` (+19 -10) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/story/StoryHome.tsx` (+135 -21) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+21 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/economy.ts` (+53 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+13 -0) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/ids.ts` (+12 -4) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/items/character-story.ts` (+22 -8) _...and 14 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 #2025 ## Why this change - Affection with a love interest stopped meaning anything at level 10, the maximum. The maintainer asked for a prestige system after that: it goes on forever, and every three extra points unlock a new extra story, written like a Character Story. Those stories are imagined scenarios the two of them explore for fun: - new kinks, when NSFW is on; - what-ifs, such as a wedding, starting a family or a honeymoon trip; - mini AUs, such as a vampire AU or a modern AU. After each unlock the points reset, and it starts over. ## What changed **Otome Hearth 0.6.15** (`otome-forge`). - **The numbers** (`shared/economy.ts`, `prestigeOf`). Everything is computed from his affection points, which were never capped, so nothing new is stored but the stories themselves. - `over` = points − 2700, never below 0. Level 10 is 2700. - Unlocked stories = ⌊over / 900⌋. - Prestige points = ⌊over / 300⌋ mod 3. - Progress toward the next point = over mod 300. - **Losses** (`state/relationship.ts`, `affectionFloorOf`). At level 10 the affection floor is 2700 + 900 × unlocked stories, so a hostile pick can never take an unlocked story back. Points inside the current set of three can still fall, the same way points within a level can. Below level 10, nothing changes. - **Writing a story** (new `items/prestige.ts` and route `POST /runs/:run/prestige/:li` in `routes/arcs.ts`). - Each extra story is a `story`-kind chapter with key `prestige-<li>-<n>`, run through the normal Character Story beat engine: him alone in every node, no stage move, beat Starlight only. - The route writes his next unlocked story through `readOrGenerate`, so a double tap plans it once. It returns his latest story when nothing new is unlocked, and answers 409 `locked` before his first unlock. - Character Story's node rules are split out into `sideStoryNodes` and reused here. - **The planner prompt** (P25, `items/prompts.ts`). The model picks one of three kinds: - **kink**, offered only when intimacy is open (NSFW), and his intimacy tastes are included only then; - **what-if**: a wedding, a family, a honeymoon, and similar; - **au**: vampire, modern-day, and similar. The prompt frames the story as something they imagine or play out for fun, not canon. It lists his earlier extra stories and tells the model not to repeat one. The normalizer refuses an unknown kind, a kink when NSFW is off, an empty premise, and the wrong node count. No censorship or softening wording was added; the normal content contract applies. - **Kept out of the main story.** - The beat writer frames each scene as an imagined extra story (`story/prompts.ts`). - Choices inside it change nothing: no trust, tension, grievance, rupture, disclosure or affection loss (`story/beats.ts`). - It is never a memory source (`story/canon.ts`), so a vampire AU can't leak into later chapters. - Its premise is stripped from the chapter view (`story/chapters.ts`). - **Client.** - `RunLiView.prestige` is sent only at level 10, never his raw points. - At level 10, Story → Between you shows "Prestige" with three star pips and a "current / 300" meter in place of the full "300 / 300" counter. - Once three points are reached, an "A new story with {{name}}" button appears with the plan-cost and paint-cost notes. - The chapter end card shows "New story unlocked!" the way it shows a level-up. - An older cached view without prestige falls back to the affection counter. - 9 new English locale keys. `packages/otome-forge/README.md` documents prestige. - **Two of Dottore's notes from #2031:** `EXITS_RULE`'s comment sits on it again, and the 0.6.14 release note no longer promises the writer "always" words choices to you. - **Tests.** - New `tests/otome-forge-prestige.regression.ts` (7 tests) covers the math, the loss floor, the route's idempotency and locking, the P25 prompt and normalizer, the play-through rules (choices change nothing, never a memory source, not-canon framing), the run view, and that the premise stays on the server. Each proof fails when its source file is reverted. - `tests/otome-forge-server-bundle.regression.mjs` now registers the new route. - New browser test "Otome Hearth shows prestige past level 10 and writes an unlocked extra story on its tap (#2025)" in `tests/package-otome-forge-presentation.e2e.ts`. - Rebuilt `client.js`, `server.mjs`, the manifest, `artifacts/otome-forge-0.6.15.zip` and the preview catalog entries. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none - New or changed permissions/entrypoints: a new package route, `POST /runs/:run/prestige/:li`, inside the existing package server. No new permissions. - Restart, storage, update, or uninstall impact: - Extra stories are stored as ordinary chapter documents with an optional hidden `prestige` field. Older chapters, states and cached views read back unchanged. - A player already past level 10 when they update unlocks stories from their existing points, as the issue intends. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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: - `npx tsx --tsconfig tests/tsconfig.regressions.json --test "tests/otome-forge-*.regression.ts"` passes 555/555, and `node --test "tests/otome-forge-*.regression.mjs"` passes 12/12, including the server-bundle snapshot with the new route. - The strict package typecheck, `npm run format:check`, both locale validators and `git diff --check` pass. - An independent review agent traced every affection-loss path, the concurrency of two taps, how the story is kept out of canon, older saved data, and the prompts. It found no defects. - Local CodeRabbit reported 0 findings. - Browser: the presentation, reader and loop specs, including the new prestige test, are running against the rebuilt package. The result will be added in a comment. For a human to verify: - Manually verify that for a love interest at level 10, Story → Between you shows "Prestige" with three star pips and a "current / 300" meter instead of "300 / 300". Check both the midnight and pearl looks, and at phone width. - Manually verify that "A new story with {{name}}" appears only once three prestige points are reached, shows the plan-cost note, opens the plan dialog (with Cancel), then opens the reader on the new chapter. - Manually verify with a real model that an SFW story never offers a kink, that an NSFW story can, and that a second extra story has a different kind or premise from the first. - Manually verify that reading an extra story to its end pays only beat Starlight, and that its choices don't change his trust, grievances or affection. - Manually verify that later main chapters never recall an extra story's events, for example a vampire AU. - Manually verify that the chapter end card shows "New story unlocked!" when a chapter's affection pushes a love interest past an unlock. **Design follow-ups, not in this PR:** - Dates, Read Him and Read Me also grant affection, but say nothing when a story unlocks. The Story screen still shows the button. - A kink story planned under NSFW keeps its framing if the player switches to SFW before reading it. The SFW content contract still governs what gets written. - Extra stories appear in the Story chapter list as "Character story · with X", but not in the Album. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - The new browser test saves screenshots of the prestige row in both looks. 🤖 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:22 +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#2082
No description provided.