mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1784] [Issue]: Gacha Forge companion chat fallback history includes pre-forged scenes not played yet #1755
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#1755
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?
Originally created by @SpicyMarinara on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1784
Originally assigned to: @SpicyMarinara on GitHub.
Summary
When a companion chat (or a proactive message) falls back to the legacy story history, that history includes scenes the player has not played yet: pre-forged scenes of the current chapter and pre-forged next chapters. The companion can then know, and mention, story that has not happened.
Affected package
gacha-forge(1.25.1; still present in 1.25.2)Expected behavior
A chat only knows canon the player has played (and what that character saw or was told), on the legacy fallback as on the memory path.
Actual behavior
_r(runId, Nr(runId) + 1, 0)(chat send and proactive message routes inserver.mjs)._rwalks every chapter below that bound and reads any beat document that exists (nrreads the beat docs). Pre-forge writes beats ahead, so unplayed beats of the current chapter, and a pre-forged next chapter, are included.legacy()is, which runs when memory is not ready (an earlier chapter without a summary, an error, an unknown summary context).Steps to reproduce
Found by the critic in the #1777 investigation: at 400k context the base bundle sent
unplayedBeat43=true, chapter44=truein a chat prompt.Environment
Logs, screenshots, or video
Probe in the #1777 investigation (legacy-bound critic): chat legacy prompt includes the current chapter's unplayed beat 43 and pre-forged chapter 44.
Additional context
Suggested fix: with
options.current, build the fallback from the frontier chapter and the played count (the progress the player has actually reached), not fromNr(runId) + 1and "any beat document that exists". This is the knowledge boundary from 1.25.0: characters know only what they saw, took part in or were told.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: