[PR #2050] [MERGED] fix(otome-forge): What happened so far… reads as a timeline recollection (0.6.19) #2090

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

📋 Pull Request Information

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

Base: staging ← Head: fix/otome-timeline-recap


📝 Commits (3)

  • 06481ea fix(otome-forge): What happened so far… reads as a timeline; closing choices can be judgments (0.6.19)
  • cb6fbfb fix(otome-forge): ship the timeline recap alone; judgment choices move to their own PR
  • e3a9035 fix(otome-forge): keep the earlier overview visible until the rebuild writes the new one

📊 Changes

14 files changed (+358 additions, -134 deletions)

View changed files

➕ artifacts/otome-forge-0.6.19.zip (+0 -0)
📝 catalog/preview/catalog.json (+6 -6)
📝 catalog/preview/notes.json (+6 -6)
📝 catalog/preview/v2/catalog.json (+6 -6)
📝 catalog/preview/v2/notes.json (+6 -6)
📝 catalog/preview/v3/catalog.json (+6 -6)
📝 catalog/preview/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+4 -0)
📝 packages/otome-forge/manifest.json (+3 -3)
📝 packages/otome-forge/server.mjs (+77 -76)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/memory/memory.ts (+50 -12)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/memory.ts (+18 -3)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/otome-forge-memory-audience.regression.ts (+169 -3)

📄 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 #2045

Why this change

#2045: in 0.6.18, the What happened so far… panel showed persona notes, per-scene summaries and bold labels such as **Choices:**. The maintainer wants only the constant summary of the timeline, written as a recollection of what has happened.

  • The panel shows the saved memory overview as is.
  • The shared kit writes that overview with a generic prompt ("update the canon-to-date overview, preserve important established facts"), so models kept persona facts, a summary per chapter and markdown labels.

#2047 (judgment big choices) moved to its own PR. Local CodeRabbit pointed out that the scene writer can't guarantee the true answer is among the options, since only the arc planner sees the mystery's truth. The maintainer chose to have the arc planner list the plausible answers instead.

What changed

Package: otome-forge (Otome Hearth) 0.6.19. sources/forge-kit and Gacha Forge are untouched (git diff --stat -- sources packages/gacha-forge is empty).

Timeline overview (#2045)

  • Prompt (memory/memory.ts): new OVERVIEW_WORDING, added only when request.kind === "overview".
    • It says the overview is the story's timeline and nothing else: a recollection in story order and past tense, with the protagonist's choices woven in, as prose paragraphs.
    • It rules out persona or character profiles, setting notes, per-chapter or per-scene summaries, headings, labels, bullets and markdown.
    • It keeps every event, relationship turn, irrevocable decision, name and the private framing.
    • There's no softening or consent wording.
    • withRules now takes the request, so fitsSummary measures exactly what summarize sends. Detail summaries are unchanged.
  • Existing stories rebuild once, in the background. The memory document gets a marker, overviewStyle: 2.
    • readMemory reads a document without it with overview: null, passing records, work and status through unchanged.
    • updateMemory stamps the marker on any write that carries an overview.
    • The kit only ever sees the null base, so any overview it writes is a rebuild in the new form.
    • With no overview, recall reports lagging, so recallText and every completed chapter queue the kit's own rebuild with no player action.
    • The rebuild folds the saved records again. It writes no detail summary twice, keeps first canon, and can't loop: after the first fold the document is marked.
    • During the rebuild, recall stays bounded on the 0.6.17 path.
  • Panel (routes/memory.ts): as a safety net until the rebuild lands, overviewParagraphs drops lines that are only a bold label (**Choices:**) and strips **, __, * and _ emphasis while keeping the words. 2 * 3, snake_case, bold sentences and inline labels are kept.

Release: 0.6.19 with a CHANGELOG entry. The rebuilt server.mjs, manifest, preview catalogs and artifacts/otome-forge-0.6.19.zip agree.

Package and security impact

  • Affected package IDs: otome-forge (0.6.18 → 0.6.19).
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact:
    • Each existing story's memory document gains overviewStyle: 2 after its first rebuild fold.
    • The rebuild costs one overview fold per completed shared chapter, on the story's summary connection, in the background.
    • Until the first new fold lands (usually one summary call), the panel shows nothing.

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:

  • Regression suites: all 585 Otome TypeScript regressions and 12 .mjs regressions pass. So do 119 of Gacha Forge's story-memory regressions.
  • Typecheck: 0 errors in 88 server and 139 client files.
  • Other checks: Prettier and git diff --check pass. The package build reproduces byte for byte.
  • Catalog validation: validate-catalog.mjs stops only on other packages' zips, which this sparse worktree doesn't have. CI runs it.
  • New proofs, each failing without its change:
    • an overview fold carries the timeline wording, a detail summary doesn't;
    • an overview saved before this is rebuilt from the records in the background, once (old overview not reused, new one marked, records deep-equal, no second rebuild);
    • the panel cleanup keeps every sentence;
  • Review: an independent review agent checked the rebuild against the kit's code (no reuse, no loop, records and first canon kept, bounded recall) and found no defect.

For a human to verify:

  • Open a story saved by 0.6.18 whose "What happened so far…" shows persona notes or **Choices:**. Before anything generates, manually verify the panel shows the same text without asterisks or label-only lines.
  • Plan the next chapter in that story without tapping Retry. Manually verify the memory status goes to pending and back to ready, and that "What happened so far…" then reads as past-tense prose in story order, with no persona profile, per-chapter list, headings or bold.
  • With debug prompt logging on, manually verify a memory-overview prompt ends with the timeline wording and a memory-detail prompt doesn't.
  • On a story with a love interest's private route or date chapter, manually verify the rebuilt overview still marks it as private.
  • After the rebuild, finish another chapter and manually verify it adds to the timeline without rebuilding it from the start: one overview call in the debug log.

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/2050 **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-timeline-recap` --- ### 📝 Commits (3) - [`06481ea`](https://github.com/Pasta-Devs/Marinara-Agents/commit/06481ead7bc1622b867d5242c45992f53ba97a51) fix(otome-forge): What happened so far… reads as a timeline; closing choices can be judgments (0.6.19) - [`cb6fbfb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cb6fbfb61b0726c62c5691f9849b5ae96989a9ab) fix(otome-forge): ship the timeline recap alone; judgment choices move to their own PR - [`e3a9035`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e3a9035320eb1681a5a6afed92cbe8115cb8d12d) fix(otome-forge): keep the earlier overview visible until the rebuild writes the new one ### 📊 Changes **14 files changed** (+358 additions, -134 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.6.19.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+6 -6) 📝 `catalog/preview/notes.json` (+6 -6) 📝 `catalog/preview/v2/catalog.json` (+6 -6) 📝 `catalog/preview/v2/notes.json` (+6 -6) 📝 `catalog/preview/v3/catalog.json` (+6 -6) 📝 `catalog/preview/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+4 -0) 📝 `packages/otome-forge/manifest.json` (+3 -3) 📝 `packages/otome-forge/server.mjs` (+77 -76) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/memory/memory.ts` (+50 -12) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/memory.ts` (+18 -3) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/otome-forge-memory-audience.regression.ts` (+169 -3) </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 #2045 ## Why this change **#2045:** in 0.6.18, the **What happened so far…** panel showed persona notes, per-scene summaries and bold labels such as `**Choices:**`. The maintainer wants only the constant summary of the timeline, written as a recollection of what has happened. - The panel shows the saved memory overview as is. - The shared kit writes that overview with a generic prompt ("update the canon-to-date overview, preserve important established facts"), so models kept persona facts, a summary per chapter and markdown labels. **#2047** (judgment big choices) moved to its own PR. Local CodeRabbit pointed out that the scene writer can't guarantee the true answer is among the options, since only the arc planner sees the mystery's truth. The maintainer chose to have the arc planner list the plausible answers instead. ## What changed Package: `otome-forge` (Otome Hearth) **0.6.19**. `sources/forge-kit` and Gacha Forge are untouched (`git diff --stat -- sources packages/gacha-forge` is empty). **Timeline overview (#2045)** - **Prompt (`memory/memory.ts`):** new `OVERVIEW_WORDING`, added only when `request.kind === "overview"`. - It says the overview is the story's timeline and nothing else: a recollection in story order and past tense, with the protagonist's choices woven in, as prose paragraphs. - It rules out persona or character profiles, setting notes, per-chapter or per-scene summaries, headings, labels, bullets and markdown. - It keeps every event, relationship turn, irrevocable decision, name and the private framing. - There's no softening or consent wording. - `withRules` now takes the request, so `fitsSummary` measures exactly what `summarize` sends. Detail summaries are unchanged. - **Existing stories rebuild once, in the background.** The memory document gets a marker, `overviewStyle: 2`. - `readMemory` reads a document without it with `overview: null`, passing records, work and status through unchanged. - `updateMemory` stamps the marker on any write that carries an overview. - The kit only ever sees the null base, so any overview it writes is a rebuild in the new form. - With no overview, recall reports `lagging`, so `recallText` and every completed chapter queue the kit's own rebuild with no player action. - The rebuild folds the saved records again. It writes no detail summary twice, keeps first canon, and can't loop: after the first fold the document is marked. - During the rebuild, recall stays bounded on the 0.6.17 path. - **Panel (`routes/memory.ts`):** as a safety net until the rebuild lands, `overviewParagraphs` drops lines that are only a bold label (`**Choices:**`) and strips `**`, `__`, `*` and `_` emphasis while keeping the words. `2 * 3`, `snake_case`, bold sentences and inline labels are kept. **Release:** 0.6.19 with a CHANGELOG entry. The rebuilt `server.mjs`, manifest, preview catalogs and `artifacts/otome-forge-0.6.19.zip` agree. ## Package and security impact - Affected package IDs: `otome-forge` (0.6.18 → 0.6.19). - Engine compatibility impact: none. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: - Each existing story's memory document gains `overviewStyle: 2` after its first rebuild fold. - The rebuild costs one overview fold per completed shared chapter, on the story's summary connection, in the background. - Until the first new fold lands (usually one summary call), the panel shows nothing. ## 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: - **Regression suites:** all 585 Otome TypeScript regressions and 12 `.mjs` regressions pass. So do 119 of Gacha Forge's story-memory regressions. - **Typecheck:** 0 errors in 88 server and 139 client files. - **Other checks:** Prettier and `git diff --check` pass. The package build reproduces byte for byte. - **Catalog validation:** `validate-catalog.mjs` stops only on other packages' zips, which this sparse worktree doesn't have. CI runs it. - **New proofs, each failing without its change:** - an overview fold carries the timeline wording, a detail summary doesn't; - an overview saved before this is rebuilt from the records in the background, once (old overview not reused, new one marked, records deep-equal, no second rebuild); - the panel cleanup keeps every sentence; - **Review:** an independent review agent checked the rebuild against the kit's code (no reuse, no loop, records and first canon kept, bounded recall) and found no defect. For a human to verify: - Open a story saved by 0.6.18 whose "What happened so far…" shows persona notes or `**Choices:**`. Before anything generates, manually verify the panel shows the same text without asterisks or label-only lines. - Plan the next chapter in that story without tapping Retry. Manually verify the memory status goes to pending and back to ready, and that "What happened so far…" then reads as past-tense prose in story order, with no persona profile, per-chapter list, headings or bold. - With debug prompt logging on, manually verify a memory-overview prompt ends with the timeline wording and a memory-detail prompt doesn't. - On a story with a love interest's private route or date chapter, manually verify the rebuilt overview still marks it as private. - After the rebuild, finish another chapter and manually verify it adds to the timeline without rebuilding it from the start: one overview call in the debug log. ## 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:24 +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#2090
No description provided.