mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1511] [MERGED] fix(long-term-memory): keep backfilled character facts whose cause is written in words (1.4.59) #1522
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#1522
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/1511
Author: @Promansis
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/summary-backfill-link-targets📝 Commits (2)
9fb0890fix(long-term-memory): keep backfilled character facts whose cause is written in words (#1505)5d3e112Merge upstream/staging into fix(long-term-memory)/summary-backfill-link-targets; release long-term-memory 1.4.59📊 Changes
13 files changed (+279 additions, -84 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.59.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+6 -6)📝
catalog/v3/notes.json(+6 -6)📝
packages/long-term-memory/CHANGELOG.md(+4 -0)📝
packages/long-term-memory/manifest.json(+3 -3)📝
packages/long-term-memory/server.mjs(+35 -35)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/extraction/structured-summary-normalizer.ts(+43 -9)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-extraction-graph.regression.ts(+157 -0)📄 Description
Pull request
Linked issue
Closes #1505
Why this change
caused_by: the night lesson), the server's backfill turned the words intotimeline_the_night_lessonwithout checking that such an event exists. Validation then dropped the fact the server itself had added, and the extraction reported a partial success with "Dropped a candidate that linked to a memory this extraction could not find or did not keep". In live runs this was most of those drops: up to 3 lost facts per run on both Haiku and Sonnet.What changed
long-term-memory: the structured-summary backfill resolves a character line's cause or evidence value like a relationship cause (an id the extraction holds, else an exact or word match over the answer's events and existing timeline notes). An unmatched value on a static fact is left out and the fact is kept. On a change fact it falls back to the event the line or summary declares only when the extraction holds that event; a change fact still without an event is dropped assource_event_graph_open.tests/long-term-memory-extraction-graph.regression.ts.long-term-memory1.4.59, with the CHANGELOG entry, version, manifest, rebuiltserver.mjs, artifact and catalog entries. At land, the branch was merged withupstream/staging(1.4.58, #1509); only the CHANGELOG conflicted, and the release script resolved it.Package and security impact
long-term-memoryValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
staging(the backfilled fact is dropped asunknown_link_target) and pass with the fix. Cases: a static fact whose cause matches nothing is kept with no link; a cause in words resolves to the matching event in the answer or already in memory; an event id or the source note id keeps its link; a change fact's unmatched cause invents no link, even when the summary declares an event the model left out.Documentation impact
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.