[PR #2076] [MERGED] fix(otome-forge): 0.7.0 follow-ups: Close and remember, summary sizes, recall fixes (0.7.1) #2105

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

📋 Pull Request Information

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

Base: staging ← Head: fix/otome-memory-followups


📝 Commits (3)

  • 205e097 fix(otome-forge): 0.7.0 follow-ups: Close and remember, summary sizes, recall fixes (0.7.1)
  • e196b01 test(otome-forge): the reopened thread shows both memories without their summaries
  • eab78eb fix(otome-forge): send only the reply's output size; message memories stay 2 to 4 sentences

📊 Changes

56 files changed (+523 additions, -620 deletions)

View changed files

➕ artifacts/otome-forge-0.7.1.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 (+8 -0)
📝 packages/otome-forge/client.js (+16 -17)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+135 -134)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/phone/Thread.tsx (+3 -3)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/economy.ts (+2 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+0 -1)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/stickers.ts (+0 -2)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/audio/music.ts (+0 -2)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/care/care-note.ts (+0 -2)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/generation.ts (+8 -61)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/home/lines.ts (+0 -2)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/home/note.ts (+2 -3)

...and 36 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 #2075

Why this change

  • The maintainer's follow-ups to 0.7.0.
    • A closed conversation showed the whole summary written for the love interest's prompts; it should show only that they remember it and the line they keep.
    • Close and remember paid too much affection.
    • The summary sizes and the memory budgets needed adjusting, with about 1k tokens of leeway, and the timeline plus the recalls should stay within 20k together.
    • Otome Hearth should send only the reply's output size, never its own temperature or anything else, so the connection's saved settings (for example extra-high reasoning) are what's used.
  • An independent review of #2072 found regressions.
    • The Home note, Read Him and Read Me silently lost their recalled line.
    • P17 recalled again the conversations it already lists in full.
    • Condensing the timeline could never fit a small memory model.
    • A memory model of unknown context got an endless Retry.
    • A single large recall could empty the recall pool.
    • A long condensed head could be paid for again on every fold.
    • The phone browser test still clicked the removed suggestion chips, so the Otome browser suite fails on staging as of #2072.

What changed

Package: otome-forge 0.7.1 (rebuilt server.mjs, client.js, artifact, catalog preview entries).

  • Close and remember:
    • The thread shows "Remembered by " and the kept line only; the summary stays in their memory.
    • It earns +5 affection (AFFECTION_EARNINGS.closeAndRemember, was 20), still within the daily cap.
  • Only the output size is sent (generation.ts):
    • Every chatComplete call carries maxTokens alone (plus the Engine's own debugMode and signal).
    • Temperature is removed from all 26 callers and their constants.
    • The JSON-mode hint (responseFormat) and its retry-without-the-hint fallback are removed; replies are still parsed, checked and repaired once.
    • The Engine then applies the connection's saved temperature, reasoning effort and the rest (resolveCapabilityChatOptions), with nothing of Otome's standing in for what it leaves unset.
  • Summary sizes:
    • Message memories (P18) stay at 2 to 4 sentences, 800 characters.
    • Chapter summaries go up to 1000 words, said in the prompt.
  • Budgets (HEADROOM_TOKENS = 1000):
    • The timeline condenses only past TIMELINE_CEILING 13k + 1k = 14k.
    • The recalls drop their oldest only past 5k + 1k = 6k.
    • Together that's at most 20k, pinned by a regression.
  • Recall pool:
    • It leaves out ids the caller lists (listed).
    • It passes over an item that could never fit instead of stopping.
    • It counts each item as rendered (# Recalled memory: …).
    • The Home note, Read Him and Read Me take the newest recall.
  • Condensing:
    • It runs in as few calls as the memory model's context allows, each folding the previous head with the oldest entries that fit.
    • It throws summary-context-too-small only when a single entry can't fit beside the head.
    • It runs only when a fold added a summary and something older than the newest entry exists.
  • Context: resolveContext answers the fixed context only when the memory model's own context is known; otherwise the status is "configure the context" again, as before 0.7.0.
  • Browser tests: tests/package-otome-forge-home.e2e.ts now checks that no chips appear, that the summary isn't shown, and +5 affection. The stale suggestion stubs are removed from the loop test.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none; saved sessions keep their summary text, which is only no longer shown

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

Agent-run checks:

  • Typecheck: no errors.
  • tests/otome-forge-*.regression.ts: 631/631 pass (the 8 JSON-mode retry tests were removed with the hint; one checks that a call's options are only maxTokens, debugMode and signal).
  • tests/otome-forge-*.regression.mjs: 13/13 pass.
  • Catalog release-notes, determinism, store, translation-retention and locale checks: pass.
  • Prettier and ESLint on changed files: clean.
  • git diff --check: pass.
  • Not run locally: validate-catalog (sparse worktree) and the browser suite; CI runs both.

New regressions:

  • the 1k leeway (no condensing at about 13.4k, condensing past 14k);
  • a 16k memory model condensing in pieces;
  • a long head never condensed by itself and a date's fold condensing nothing;
  • an unknown context leading to context-unknown;
  • the recall pool's listed, oversize and rendered-size rules;
  • the recalled line through the real memory;
  • the 14k + 6k = 20k sizes.

Manual verification notes

  • Manually verify that Close and remember in Messages shows "Remembered by " and their kept line only, and "+5 affection".
  • Manually verify that the daily Home note can mention something from a recent closed conversation.
  • Manually verify, with a connection whose reasoning effort is set to extra high and debug mode on, that the Engine's request log shows that effort and the connection's temperature, and no response_format.
  • Manually verify, with debug mode on, that P17's "# Recalled memory" blocks don't repeat the conversations listed under "CONVERSATIONS THAT ARE OVER".
  • Manually verify, with a memory connection whose model has no known context, that Settings shows the "configure the context" status rather than a failing Retry.

Documentation impact

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

UI evidence (if applicable)

  • The closed-conversation card in Messages loses its summary paragraph. No screenshots attached.

🤖 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/2076 **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:** `fix/otome-memory-followups` --- ### 📝 Commits (3) - [`205e097`](https://github.com/Pasta-Devs/Marinara-Agents/commit/205e09705838cfec3dccadd7b7d35f759e040fbe) fix(otome-forge): 0.7.0 follow-ups: Close and remember, summary sizes, recall fixes (0.7.1) - [`e196b01`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e196b0131fd01a3c544c2ecece934ccfd60c6715) test(otome-forge): the reopened thread shows both memories without their summaries - [`eab78eb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/eab78eb38d5286dd6d39cd7d44f859dc1e3e8d04) fix(otome-forge): send only the reply's output size; message memories stay 2 to 4 sentences ### 📊 Changes **56 files changed** (+523 additions, -620 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.7.1.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` (+8 -0) 📝 `packages/otome-forge/client.js` (+16 -17) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+135 -134) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/phone/Thread.tsx` (+3 -3) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/economy.ts` (+2 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+0 -1) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/stickers.ts` (+0 -2) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/audio/music.ts` (+0 -2) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/care/care-note.ts` (+0 -2) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/generation.ts` (+8 -61) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/home/lines.ts` (+0 -2) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/home/note.ts` (+2 -3) _...and 36 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 #2075 ## Why this change - **The maintainer's follow-ups to 0.7.0.** - A closed conversation showed the whole summary written for the love interest's prompts; it should show only that they remember it and the line they keep. - Close and remember paid too much affection. - The summary sizes and the memory budgets needed adjusting, with about 1k tokens of leeway, and the timeline plus the recalls should stay within 20k together. - Otome Hearth should send only the reply's output size, never its own temperature or anything else, so the connection's saved settings (for example extra-high reasoning) are what's used. - **An independent review of #2072 found regressions.** - The Home note, Read Him and Read Me silently lost their recalled line. - P17 recalled again the conversations it already lists in full. - Condensing the timeline could never fit a small memory model. - A memory model of unknown context got an endless Retry. - A single large recall could empty the recall pool. - A long condensed head could be paid for again on every fold. - The phone browser test still clicked the removed suggestion chips, so the Otome browser suite fails on staging as of #2072. ## What changed Package: `otome-forge` 0.7.1 (rebuilt `server.mjs`, `client.js`, artifact, catalog preview entries). - **Close and remember:** - The thread shows "Remembered by <name>" and the kept line only; the summary stays in their memory. - It earns +5 affection (`AFFECTION_EARNINGS.closeAndRemember`, was 20), still within the daily cap. - **Only the output size is sent** (`generation.ts`): - Every `chatComplete` call carries `maxTokens` alone (plus the Engine's own `debugMode` and `signal`). - Temperature is removed from all 26 callers and their constants. - The JSON-mode hint (`responseFormat`) and its retry-without-the-hint fallback are removed; replies are still parsed, checked and repaired once. - The Engine then applies the connection's saved temperature, reasoning effort and the rest (`resolveCapabilityChatOptions`), with nothing of Otome's standing in for what it leaves unset. - **Summary sizes:** - Message memories (P18) stay at 2 to 4 sentences, 800 characters. - Chapter summaries go up to 1000 words, said in the prompt. - **Budgets** (`HEADROOM_TOKENS` = 1000): - The timeline condenses only past `TIMELINE_CEILING` 13k + 1k = 14k. - The recalls drop their oldest only past 5k + 1k = 6k. - Together that's at most 20k, pinned by a regression. - **Recall pool:** - It leaves out ids the caller lists (`listed`). - It passes over an item that could never fit instead of stopping. - It counts each item as rendered (`# Recalled memory: …`). - The Home note, Read Him and Read Me take the newest recall. - **Condensing:** - It runs in as few calls as the memory model's context allows, each folding the previous head with the oldest entries that fit. - It throws `summary-context-too-small` only when a single entry can't fit beside the head. - It runs only when a fold added a summary and something older than the newest entry exists. - **Context:** `resolveContext` answers the fixed context only when the memory model's own context is known; otherwise the status is "configure the context" again, as before 0.7.0. - **Browser tests:** `tests/package-otome-forge-home.e2e.ts` now checks that no chips appear, that the summary isn't shown, and +5 affection. The stale suggestion stubs are removed from the loop test. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none; saved sessions keep their summary text, which is only no longer shown ## 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` Agent-run checks: - Typecheck: no errors. - `tests/otome-forge-*.regression.ts`: 631/631 pass (the 8 JSON-mode retry tests were removed with the hint; one checks that a call's options are only `maxTokens`, `debugMode` and `signal`). - `tests/otome-forge-*.regression.mjs`: 13/13 pass. - Catalog release-notes, determinism, store, translation-retention and locale checks: pass. - Prettier and ESLint on changed files: clean. - `git diff --check`: pass. - Not run locally: `validate-catalog` (sparse worktree) and the browser suite; CI runs both. New regressions: - the 1k leeway (no condensing at about 13.4k, condensing past 14k); - a 16k memory model condensing in pieces; - a long head never condensed by itself and a date's fold condensing nothing; - an unknown context leading to `context-unknown`; - the recall pool's `listed`, oversize and rendered-size rules; - the recalled line through the real memory; - the 14k + 6k = 20k sizes. ### Manual verification notes - Manually verify that Close and remember in Messages shows "Remembered by <name>" and their kept line only, and "+5 affection". - Manually verify that the daily Home note can mention something from a recent closed conversation. - Manually verify, with a connection whose reasoning effort is set to extra high and debug mode on, that the Engine's request log shows that effort and the connection's temperature, and no `response_format`. - Manually verify, with debug mode on, that P17's "# Recalled memory" blocks don't repeat the conversations listed under "CONVERSATIONS THAT ARE OVER". - Manually verify, with a memory connection whose model has no known context, that Settings shows the "configure the context" status rather than a failing Retry. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - The closed-conversation card in Messages loses its summary paragraph. No screenshots attached. 🤖 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:31 +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#2105
No description provided.