[PR #1946] [MERGED] Otome Hearth 0.5.0: Read Me, and each love interest's notebook of what they know about you #2044

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1946
Author: @SpicyMarinara
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/otome-read-me-1945


📝 Commits (9)

  • ac4c489 feat(otome-forge): Read Me's contract and each love interest's notebook (#1945)
  • f79d3f3 feat(otome-forge): a love interest remembers what they know about you (#1945)
  • 6574988 feat(otome-forge): Read Me on the server, its routes and the notebook routes (#1945)
  • 6663b30 feat(otome-forge): Read Me on Dates, and each love interest's notebook (#1945)
  • eee2101 Merge branch 'feat/otome-read-me-1945-prompts' into feat/otome-read-me-1945
  • f039f5f Merge branch 'feat/otome-read-me-1945-client' into feat/otome-read-me-1945
  • a6604ad Merge staging (0.4.2: the Closer, swearing, timeline) into Read Me
  • 2ef90ae feat(otome-forge): Read Me ships as 0.5.0
  • b1e2a5a fix(otome-forge): the notebook line keeps the newest entries whole, within 500 tokens

📊 Changes

43 files changed (+4681 additions, -508 deletions)

View changed files

➕ artifacts/otome-forge-0.5.0.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 (+6 -0)
📝 packages/otome-forge/README.md (+15 -4)
📝 packages/otome-forge/client.js (+346 -295)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+137 -129)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/OtomeForgeView.tsx (+6 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+63 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/dates/DatesHub.tsx (+33 -5)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/dates/Notebook.tsx (+374 -0)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/dates/ReadMe.tsx (+730 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/screen-icons.ts (+2 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/screens.ts (+3 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+9 -1)

...and 23 more files

📄 Description

Pull request

Linked issue

Closes #1945

Why this change

  • The maintainer's request: there are too few games where a love interest gets to know the player. Read Him, Date Night and the Claw Machine are all about them.
  • The bonus: "bonus points if the LI remembers what MC likes/dislikes/etc."
  • The pick: from the proposals they chose Read Me.
  • Notebook placement (maintainer's call): each love interest's notebook reaches the scenes they're in, labelled as theirs alone. They act on what they know; others only learn what happens on the page.

What changed

otome-forge 0.5.0 (staging-only).

  • Read Me, on Dates (minigames/read-me.ts, routes/read-me.ts, screens/dates/ReadMe.tsx): Read Him in reverse. One model call writes the scene and four guesses about the protagonist, each in a notebook category (likes, dislikes, habits, fears, dreams, other).
    • Answers: the player answers each guess with Spot on, Close or Not at all, optionally with the truth in their own words (up to 200 characters).
    • Reactions: the love interest's reaction to the chosen verdict stays on the server until that guess is answered, and the first answer is final.
    • Resume: an unfinished set resumes at any stage.
    • Pay: 40 Starlight, plus 20 affection and +10 per right or +5 per close guess, within the daily caps. It pays once, guarded by readMe.paid, in the same state write as the notebook entries, the first-Read-Me marker and its Love Timeline entry.
    • Prompt: the chat content contract for that one love interest, so it follows the story's Heat. The only extra rule is the period-tracker privacy rule: no guesses about health, illness, medication or anyone's cycle. Words that sound medical are refused with a 400, and nothing is saved.
  • The notebook (LiState.known, newest 60): what each love interest knows about the protagonist.
    • Editing: GET and POST /runs/:run/lis/:li/notebook read it, rewrite the player's words, or delete an entry. Rewritten or deleted words are cleared from the set document too.
    • Not story memory: a delete is final, and a repeated finish never brings a deleted entry back.
    • Client panel (screens/dates/Notebook.tsx): sections in category order, verdicts in words, "You said: …", inline edit, and delete with confirmation.
  • The notebook in prompts (knowsAboutYou, empty for an empty notebook, so the SFW digests are unchanged). It reaches only that love interest's own prompts:
    • P6 scenes: each present love interest's own line beside their own card;
    • P12 Confrontation: the opponent only;
    • P12c Closer: the partner only;
    • P5 (the Lead only), P10 and P11 (the owner only, never othersBlock);
    • Home notes, Messages, Read Him, the date plan and date scenes, and Character Stories.
    • Never in banners (sharedState sets known: [] as a second safeguard), care notes, line packs, chat memory or memory sources.
    • The player's words are JSON-quoted as data.
    • Budget: the newest entries that fit 500 tokens, each kept whole, so the oldest drop out first and quoted words are never cut. One entry at the notebook's limits (about 375 tokens even in Han) always fits.
  • Docs and release: the README (Dates, the costs row, privacy), CHANGELOG 0.5.0, and the rebuilt bundle, manifest, catalogs and 0.5.0 zip.

It was built by three parallel agents on a shared contract commit, then integrated, merged with staging (0.4.2) and reviewed.

Package and security impact

  • Affected package IDs: otome-forge (0.5.0, staging-only).
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: five routes:
    • POST /runs/:run/read-me;
    • POST .../read-me/:set/answer;
    • POST .../read-me/:set/finish;
    • GET and POST /runs/:run/lis/:li/notebook.
  • Restart, storage, update, or uninstall impact:
    • New ${R}:readme:<set> documents, swept with the run.
    • New state fields lis[li].known and readMe.paid, which default to empty, so older saves read as before.

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

Agent-side checks:

  • Pass: npm run test:otome-forge (485 + 12, including the server-bundle route list against the rebuilt server.mjs), the strict typecheck, both locale validators, Prettier and ESLint on the changed files, and git diff --check.
  • tests/otome-forge-read-me.regression.ts:
    • the reply check and repair turn;
    • reactions and facts hidden until answered;
    • first answer final, including a race;
    • one call per start, a double tap and a stage-up;
    • finish 409 before all answered;
    • pinned pay and the daily caps;
    • notebook entries written once, and a deleted entry staying gone after a repeated finish or a retried one;
    • edit, clear, delete and 404s;
    • medical words refused with nothing saved;
    • the prompt's contract, Heat and label, with only its own notebook;
    • the run sweep, and that Read Me is not a memory source.
    • Breaking the once-only guard, the id check or the words sync each fails a test.
  • tests/otome-forge-notebook.regression.ts: for Kai and Mireille, each one's own prompts carry their own notebook and never the other's, Closer (P12c) included (fails if its line is removed). A main-chapter scene carries each present love interest's own line. Banners and the care note carry none. An empty notebook leaves every prompt identical. The words are quoted as data. Over its budget the line keeps the newest entries whole and drops the oldest, with every quoted value closed; one entry at the limits, in Han, fits whole (both fail on the old category-order cut). Real call sites are covered (chapter start, a scene written ahead, Home note, Messages).
  • tests/otome-forge-cycle.regression.ts: Read Me's files never touch the tracker's code or storage keys.
  • Browser, against the real Engine (desktop and phone, dark and light): the new Read Me tests and the Claw tests (now four Dates games) pass, 14/14.
    • Dates card, notebook empty at intro, and four guesses (keys select verdicts, but not while typing).
    • A refused answer keeps its words.
    • Reactions and voices, exact POST bodies, and pay once.
    • Notebook sections, edit, a refused edit, and delete with confirmation.
    • Resume at guess 3 and the capped notice.
  • Not run locally: the full 320-test browser suite (CI runs it), and validate-catalog, because the sparse worktree leaves out other packages' zips.
  • Running alongside: local CodeRabbit and a multi-agent adversarial review.

Please verify by hand:

  • Manually verify Read Me from Dates with one love interest: four guesses, each verdict, typed words, the reactions, and the pay.
  • Manually verify the notebook: entries grouped by category; rewrite your words; delete an entry and see it stay gone.
  • Manually verify, with debug mode on, that a later Home note, message or scene with that love interest carries "What {name} has come to know about the protagonist", and another love interest's prompts never do.

Documentation impact

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

Owner: @SpicyMarinara (made by Claude).

🤖 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/1946 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/otome-read-me-1945` --- ### 📝 Commits (9) - [`ac4c489`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ac4c489e2ea399e5d548144b6084b49170c96c0b) feat(otome-forge): Read Me's contract and each love interest's notebook (#1945) - [`f79d3f3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f79d3f399565dc00d591500b97e95f091a8b5eac) feat(otome-forge): a love interest remembers what they know about you (#1945) - [`6574988`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6574988df9657bf0507fc62945498021e96d7102) feat(otome-forge): Read Me on the server, its routes and the notebook routes (#1945) - [`6663b30`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6663b305374fdea93b6439d574a1318b361d15ce) feat(otome-forge): Read Me on Dates, and each love interest's notebook (#1945) - [`eee2101`](https://github.com/Pasta-Devs/Marinara-Agents/commit/eee210103cf07a3237c81072b93fd01297745cdd) Merge branch 'feat/otome-read-me-1945-prompts' into feat/otome-read-me-1945 - [`f039f5f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f039f5f1c262e9e78924718d49082501a01479a7) Merge branch 'feat/otome-read-me-1945-client' into feat/otome-read-me-1945 - [`a6604ad`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a6604adc48af6d97a37a7fabab208d1279cbdeea) Merge staging (0.4.2: the Closer, swearing, timeline) into Read Me - [`2ef90ae`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2ef90ae1da382414f92ed5b6cbc503799227cbaf) feat(otome-forge): Read Me ships as 0.5.0 - [`b1e2a5a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b1e2a5a4b6342847f9dc076ebfcd9fa497f1f4df) fix(otome-forge): the notebook line keeps the newest entries whole, within 500 tokens ### 📊 Changes **43 files changed** (+4681 additions, -508 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.5.0.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` (+6 -0) 📝 `packages/otome-forge/README.md` (+15 -4) 📝 `packages/otome-forge/client.js` (+346 -295) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+137 -129) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/OtomeForgeView.tsx` (+6 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+63 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/dates/DatesHub.tsx` (+33 -5) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/dates/Notebook.tsx` (+374 -0) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/dates/ReadMe.tsx` (+730 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/screen-icons.ts` (+2 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/screens.ts` (+3 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+9 -1) _...and 23 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1945 ## Why this change - **The maintainer's request:** there are too few games where a love interest gets to know the player. Read Him, Date Night and the Claw Machine are all about them. - **The bonus:** "bonus points if the LI remembers what MC likes/dislikes/etc." - **The pick:** from the proposals they chose **Read Me**. - **Notebook placement (maintainer's call):** each love interest's notebook reaches the scenes they're in, labelled as theirs alone. They act on what they know; others only learn what happens on the page. ## What changed `otome-forge` 0.5.0 (staging-only). - **Read Me, on Dates** (`minigames/read-me.ts`, `routes/read-me.ts`, `screens/dates/ReadMe.tsx`): Read Him in reverse. One model call writes the scene and four guesses about the protagonist, each in a notebook category (likes, dislikes, habits, fears, dreams, other). - **Answers:** the player answers each guess with **Spot on**, **Close** or **Not at all**, optionally with the truth in their own words (up to 200 characters). - **Reactions:** the love interest's reaction to the chosen verdict stays on the server until that guess is answered, and the first answer is final. - **Resume:** an unfinished set resumes at any stage. - **Pay:** 40 Starlight, plus 20 affection and +10 per right or +5 per close guess, within the daily caps. It pays once, guarded by `readMe.paid`, in the same state write as the notebook entries, the first-Read-Me marker and its Love Timeline entry. - **Prompt:** the `chat` content contract for that one love interest, so it follows the story's Heat. The only extra rule is the period-tracker privacy rule: no guesses about health, illness, medication or anyone's cycle. Words that sound medical are refused with a 400, and nothing is saved. - **The notebook** (`LiState.known`, newest 60): what each love interest knows about the protagonist. - **Editing:** GET and POST `/runs/:run/lis/:li/notebook` read it, rewrite the player's words, or delete an entry. Rewritten or deleted words are cleared from the set document too. - **Not story memory:** a delete is final, and a repeated finish never brings a deleted entry back. - **Client panel** (`screens/dates/Notebook.tsx`): sections in category order, verdicts in words, "You said: …", inline edit, and delete with confirmation. - **The notebook in prompts** (`knowsAboutYou`, empty for an empty notebook, so the SFW digests are unchanged). It reaches only that love interest's own prompts: - P6 scenes: each present love interest's own line beside their own card; - P12 Confrontation: the opponent only; - P12c Closer: the partner only; - P5 (the Lead only), P10 and P11 (the owner only, never `othersBlock`); - Home notes, Messages, Read Him, the date plan and date scenes, and Character Stories. - **Never** in banners (`sharedState` sets `known: []` as a second safeguard), care notes, line packs, chat memory or memory sources. - The player's words are JSON-quoted as data. - **Budget:** the newest entries that fit 500 tokens, each kept whole, so the oldest drop out first and quoted words are never cut. One entry at the notebook's limits (about 375 tokens even in Han) always fits. - **Docs and release:** the README (Dates, the costs row, privacy), CHANGELOG 0.5.0, and the rebuilt bundle, manifest, catalogs and 0.5.0 zip. It was built by three parallel agents on a shared contract commit, then integrated, merged with staging (0.4.2) and reviewed. ## Package and security impact - Affected package IDs: `otome-forge` (0.5.0, staging-only). - Engine compatibility impact: none. - New or changed permissions/entrypoints: five routes: - POST `/runs/:run/read-me`; - POST `.../read-me/:set/answer`; - POST `.../read-me/:set/finish`; - GET and POST `/runs/:run/lis/:li/notebook`. - Restart, storage, update, or uninstall impact: - New `${R}:readme:<set>` documents, swept with the run. - New state fields `lis[li].known` and `readMe.paid`, which default to empty, so older saves read as before. ## 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 Agent-side checks: - **Pass:** `npm run test:otome-forge` (485 + 12, including the server-bundle route list against the rebuilt `server.mjs`), the strict typecheck, both locale validators, Prettier and ESLint on the changed files, and `git diff --check`. - **`tests/otome-forge-read-me.regression.ts`:** - the reply check and repair turn; - reactions and facts hidden until answered; - first answer final, including a race; - one call per start, a double tap and a stage-up; - finish 409 before all answered; - pinned pay and the daily caps; - notebook entries written once, and a deleted entry staying gone after a repeated finish or a retried one; - edit, clear, delete and 404s; - medical words refused with nothing saved; - the prompt's contract, Heat and label, with only its own notebook; - the run sweep, and that Read Me is not a memory source. - Breaking the once-only guard, the id check or the words sync each fails a test. - **`tests/otome-forge-notebook.regression.ts`:** for Kai and Mireille, each one's own prompts carry their own notebook and never the other's, Closer (P12c) included (fails if its line is removed). A main-chapter scene carries each present love interest's own line. Banners and the care note carry none. An empty notebook leaves every prompt identical. The words are quoted as data. Over its budget the line keeps the newest entries whole and drops the oldest, with every quoted value closed; one entry at the limits, in Han, fits whole (both fail on the old category-order cut). Real call sites are covered (chapter start, a scene written ahead, Home note, Messages). - **`tests/otome-forge-cycle.regression.ts`:** Read Me's files never touch the tracker's code or storage keys. - **Browser, against the real Engine (desktop and phone, dark and light):** the new Read Me tests and the Claw tests (now four Dates games) pass, 14/14. - Dates card, notebook empty at intro, and four guesses (keys select verdicts, but not while typing). - A refused answer keeps its words. - Reactions and voices, exact POST bodies, and pay once. - Notebook sections, edit, a refused edit, and delete with confirmation. - Resume at guess 3 and the capped notice. - **Not run locally:** the full 320-test browser suite (CI runs it), and `validate-catalog`, because the sparse worktree leaves out other packages' zips. - **Running alongside:** local CodeRabbit and a multi-agent adversarial review. Please verify by hand: - [ ] Manually verify Read Me from Dates with one love interest: four guesses, each verdict, typed words, the reactions, and the pay. - [ ] Manually verify the notebook: entries grouped by category; rewrite your words; delete an entry and see it stay gone. - [ ] Manually verify, with debug mode on, that a later Home note, message or scene with that love interest carries "What {name} has come to know about the protagonist", and another love interest's prompts never do. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation Owner: @SpicyMarinara (made by Claude). 🤖 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:00 +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#2044
No description provided.