mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1658] feat(gacha-forge): automatically summarize and recall story memories #1646
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#1646
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/1658
Author: @SpicyMarinara
Created: 10/24/2026
Status: 🔄 Open
Base:
staging← Head:feature/1657-gacha-automatic-memory📝 Commits (7)
00c1b70docs(gacha-forge): track automatic continuity implementationa2b5a5efeat(gacha-forge): automatically summarize canon and recall relevant memoriesd4aaa2fMerge remote-tracking branch 'origin/staging' into feature/1657-gacha-automatic-memoryc7fa644fix(gacha-forge): keep pinned token helper in package-owned source04e4649fix(gacha-forge): separate chapter recall and retain complete recent canon2efc8eefix(gacha-forge): retain live chat context before the first chapter ends6ebdf97fix(gacha-forge): resolve continuity memory review findings📊 Changes
30 files changed (+5408 additions, -84 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+5 -0)➕
artifacts/gacha-forge-1.14.0.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+8 -8)📝
catalog/v3/notes.json(+6 -6)📝
packages/gacha-forge/CHANGELOG.md(+7 -0)📝
packages/gacha-forge/README.md(+10 -0)📝
packages/gacha-forge/bundle-patches.json(+193 -17)📝
packages/gacha-forge/client.js(+169 -4)📝
packages/gacha-forge/manifest.json(+5 -5)📝
packages/gacha-forge/server.mjs(+1165 -11)➕
packages/gacha-forge/src/shared-token-estimator.mjs(+74 -0)➕
packages/gacha-forge/src/story-memory-client.mjs(+145 -0)➕
packages/gacha-forge/src/story-memory-en.mjs(+17 -0)➕
packages/gacha-forge/src/story-memory-fit.mjs(+109 -0)➕
packages/gacha-forge/src/story-memory-integration.mjs(+434 -0)➕
packages/gacha-forge/src/story-memory-shared.mjs(+6 -0)...and 10 more files
📄 Description
Linked issue
Closes #1657.
Why this change
Gacha Forge required manual chapter compression and repeatedly included historical text. It now remembers completed canon automatically, maintains a bounded overview, and recalls relevant detailed history for later writing.
What changed
Review follow-up
dStelemetry is traced.context-unknown, before chunk search or generation; test configuration recovery and capacity disappearing mid-job.[chapter 1, chapter 2] -> [chapter 1]control passes while retaining both archives; existing source/epoch/CAS/operation fences remain.npm ciinstalls pinnedtsx@4.23.15and lockedesbuild@0.28.2; the existing repository-root resolver and clean/copied-root rebuilds pass. Installed packages need neither compiler nor workspace imports.hareads only top-leveldata.bonds; the new memory document has none. Two extracted-function controls preserve existing manual-summary chronology and show no memory-document contribution.Package and security impact
gacha-forge; Engine minimum/capability API and permissions/entrypoints remain unchanged (Engine >=2.5.1, capability API 1.381).Validation
All human checklist boxes remain unchecked.
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdRecorded automated/local evidence:
6ebdf971c435affd8c5c58bbb6341220af2503dc. The exact installed archive, all 247 payloads, UI checks and update/restart/uninstall proof agree with this commit. Declared package build provenance and separately tested Engine host are recorded distinctly.npm run check: passed, zero errors; existing repository warnings remain.Artifact:
gacha-forge-1.14.0.zip, 8,061,858 bytes, SHA2562b461e13018d41955ddaf84ab39f0aebd089e67d0fd15721b43f82e661f47141.Manual verification still requested
Documentation impact
Package README and release notes describe automatic continuity, capacity configuration and the preserved manual controls.
UI evidence
Nine strengthened memory-status cases and fifteen affected choices/Continuity/editor/scene executions passed on desktop Chromium, mobile Chromium and mobile WebKit: 24/24, zero skipped or flaky. Six screenshots were inspected for wrapping, reachable recovery actions and preserved manual controls. The shipped client preserves native status/button identity and deliberate focus through Retry and full settings redraws; exact request counts prove interrupted work is reconciled with read-only status, without repeating generation. Network traces verify cancellation and old-world response fencing.
These browser APIs are mocked; mobile WebKit is emulation. Physical-device and real-provider checks remain requested above. The exact tested and installed archive client is
597a89da04e3c97369c7418516ee2ae17d24f7a1b37a281fdefe8f5215f312da; server/lifecycle validation is separate. Screenshots, traces, original negative controls and update/restart receipts are retained locally.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.