mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1513] [Issue]: Long-Term Memory: extraction from a prose summary drops about a third of the events and the quoted lines #1501
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#1501
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 @Promansis on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1513
Originally assigned to: @Promansis on GitHub.
Summary
When a chat summary is written as prose (a narrative recap rather than lines under the memory-stream headings), extraction keeps about a third fewer timeline events than it keeps from the same summary written with headings, and drops the quoted lines and some tone and motif notes. Characters, relationships and open threads come through at the same rate. The cause is two rules in the default extraction prompt that apply only to prose: "Omit ordinary turns, incidental actions, passing moods, and temporary scene state" and "For prose and reference sources, prefer fewer substantial units over fragmentary observations". A prose summary is already a selection of what mattered, so those rules drop beats the summary's author chose to keep.
Prose summaries are common: the built-in summary template is one producer, and custom summary templates, summaries made in other apps and plain transcript recaps are prose. The planned transcript and social-post sources will be too.
Affected package
long-term-memory1.4.55packages/shared/src/features/agents/long-term-memory/constants.ts(DEFAULT_LTM_EXTRACTION_PROMPT, prose_summary rules and output discipline)Expected behavior
A prose summary and the same summary written under the headings produce the same memories, give or take run-to-run noise: every beat the summary narrates becomes a timeline event, a memorable quoted line stays with its event, and stated motifs and register are recorded.
Actual behavior
Measured on 15 real chat summaries (13 rewritten as prose with no facts lost in the rewrite, 2 heading-free controls), two runs per form, Opus as the extraction model, and an Opus judge comparing the memories written by meaning:
Steps to reproduce
### timeline_eventand so on) and extract it. Note the timeline events and quoted lines written.Minimal fix
Prompt text only. In the
prose_summaryrules: a prose summary is already a selection of what mattered, so account for every narrated beat; onetimeline_eventper decision, promise, discovery, reveal, arrival, departure, confrontation, gift, loss, injury, first meeting, and anything said or done that a character would remember; keep separate beats separate; keep an exact quoted line with its event when the summary presents it as memorable; omit only what the summary itself treats as incidental; extract stated motifs (anchor) and register (tone). In output discipline, apply "prioritize beat coverage; shorten unit text rather than merging beats" to prose summaries and keep "prefer fewer substantial units" for reference sources (cards, lorebooks) only. Structured-summary, character-card and lorebook rules, the stream contracts and the conversation and game mode prompts are unchanged.Regression proof
Prompt text; the regression suite mocks the model, so the proof is the measurement rerun with the change (same harness, same 15 sources, two runs of prose with the new rules and one run of the headed form with the new rules):
Environment
upstream/staging6a2dfb7c6)prepareLongTermMemorySourcewith Opus; the vault was a private copy)Logs, screenshots, or video
None public. Aggregate numbers above; the per-chat comparisons contain private chat content.
Additional context
Tracker item OT-16. Found while measuring whether the Engine's LTM summary prompt can move to prose (2026-10-20). On Haiku the extra events push more prose answers over the 8,192-token default output cap (9 of 15, against 7 of 15 on headed sources today), so the cap follow-up matters more once this lands.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: