mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #2042] [MERGED] fix(otome-forge): Otome Hearth remembers the way Gacha Forge does (0.6.17) #2088
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#2088
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2042
Author: @SpicyMarinara
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/otome-memory-context-2039📝 Commits (4)
5cced9efix(otome-forge): Otome Hearth remembers the way Gacha Forge does (0.6.17)6aec9f8docs(otome-forge): say why the summary reserve keeps 8192 on low-cap connectionsa660469fix(otome-forge): a repair turn that cannot fit reports the bad reply; log Read Me recall failures4fdcec7fix(otome-forge): a failed source read rejects recall instead of dropping the privacy filters📊 Changes
51 files changed (+2317 additions, -651 deletions)
View changed files
➕
artifacts/otome-forge-0.6.17.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(+9 -0)📝
packages/otome-forge/client.js(+24 -24)📝
packages/otome-forge/manifest.json(+5 -5)📝
packages/otome-forge/server.mjs(+148 -146)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/api.ts(+1 -0)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/DeclinedPanel.tsx(+4 -3)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json(+1 -0)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/settings/Connections.tsx(+7 -2)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/settings/Debug.tsx(+4 -2)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts(+2 -1)📝
packages/otome-forge/src/engine/packages/server/src/services/otome-forge/forge-kit.d.ts(+81 -0)📝
packages/otome-forge/src/engine/packages/server/src/services/otome-forge/generation.ts(+108 -22)📝
packages/otome-forge/src/engine/packages/server/src/services/otome-forge/items/character-story.ts(+2 -1)...and 31 more files
📄 Description
Pull request
Linked issue
Closes #2039
Why this change
What changed
Package:
otome-forge(Otome Hearth) 0.6.17.sources/forge-kitand Gacha Forge are untouched.Memory sources (
story/canon.ts):chapterchapter, audience hischaracter-story, audience hischatlistedexclusion.What a prompt receives (
recallTextnow returns the kit'sForgeMemoryContext), in this order:Which chapter goes in full is set by the new
continuesoption:All fixed 12k and 2k slices are gone, including
CHAT_CANON_BUDGET.Fitting (
generation.ts):generateJsontakesmemoryand fits it with the kit'sfitForgeMemoryPrompt.capacityerror before anything is sent. It's shown with "Switch connection" and the new stringerrors.capacity.Summaries:
fitsSummaryreserves Gacha Forge's max(8192, min(max(10240, budget), maxOutput)).summary-context-too-small.Ongoing stories:
Other changes:
Generated outputs:
server.mjs,client.js,manifest.json,catalog/preview/{,v2/,v3/}catalog.jsonandnotes.json,artifacts/otome-forge-0.6.17.zip,CHANGELOG.md, and the version inscripts/build-feature-packages.mjs.Package and security impact
otome-forge(0.6.16 → 0.6.17).maxContext,maxOutputTokens,fitContext).Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
What the agent ran locally, after rebasing on staging:
Regressions: all 578 Otome TypeScript regressions pass (560 before this change; 18 are new) and all 12
.mjsregressions pass.Static checks: the strict package typecheck passes (0 errors in 87 server and 138 client files). Prettier and both locale validators pass. ESLint shows 0 errors; its 4 warnings, in
story/chapters.ts, were already there.Build: rebuilding
otome-forgereproduces the committed outputs byte for byte. The manifest, all three preview catalogs and the zip agree on hashes and sizes.git diff --checkpasses.Catalog validation:
validate-catalog.mjsstops with ENOENT on other packages' zips, because the worktree is sparse. CI runs it with every artifact.Browser test: "screens around the loop" (Settings tabs, including Story memory in Connections with Retry) passes on desktop and mobile Chromium.
Before/after proofs: with the source change reversed, 17 tests fail, each for its intended reason.
Mutation checks, each failing the intended test:
listedexclusion;continues;memoryfrom the P5, P6, P12 and P17 calls;Review: three independent reviews (Gacha Forge rules; privacy and ongoing stories; proofs and build) found 13 defects. 11 were fixed with tests. 2 are documented shortcuts:
ponytail:comment.Local CodeRabbit: one minor suggestion, rejected. It asked to drop the outer max(8192, …) from the summary reserve on connections that cap output below 8192. That max is the maintainer's Gacha Forge rule for summaries (max(8192, min(max(10240, budget), maxOutput))). Its only effect on such a connection is smaller summary pieces. The code comment that misstated the reason is corrected.
For a human to verify:
Documentation impact
The package CHANGELOG describes the change for players.
Follow-ups: #2040 (What happened so far… while a chapter forges) and #2041 (Who said what? while a scene loads).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.