mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1434] [MERGED] fix(long-term-memory): recall shared-history memories in a new branch (1.4.44) #1460
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#1460
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/1434
Author: @Promansis
Created: 10/17/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/1433-branch-recall📝 Commits (2)
777ee1ffix(long-term-memory): recall shared-history memories in a new branch (#1433)61dbb84chore(long-term-memory): release 1.4.44 (#1433)📊 Changes
17 files changed (+398 additions, -90 deletions)
View changed files
📝
.github/workflows/ltm-browser.yml(+1 -1)➕
artifacts/long-term-memory-1.4.44.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(+43 -43)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/chat-scope.ts(+41 -1)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/generation-injection.ts(+34 -1)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts(+1 -1)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts(+7 -3)📝
scripts/build-feature-packages.mjs(+1 -1)➕
tests/long-term-memory-branch-recall.regression.ts(+227 -0)📄 Description
Linked issue
Closes #1433
Why this change
Engine treats a branch as a copy of a chat that shares history up to the branch point. When it creates a branch, it copies every rolling summary entry whose messages all come before that point, and keeps the entry ids. Long-Term Memory saves a memory to the one chat record (branch) it came from, and recall matched only that record. So a new branch recalled none of the memories built from its shared history, even though Engine had copied the summaries those memories came from.
What changed
chat-scope.ts: the pureinheritedBranchLtmNoteIdshelper.retrieval.ts: an optionalinheritedNoteIdsinput. Onlygeneration-injection.tspasses it. Extraction update targets, candidate reconciliation, the search route and all other callers behave exactly as before. That is why an inherited memory is read-only in the branch: extraction never picks it as an update target.interop.ts:summariesis exported, so recall reads summary ids the same way Sources does.day:<date>,week:<date>) and game session summaries (game-session-N) never count as shared.long-term-memory1.4.44: CHANGELOG entry, version, manifest, rebuiltserver.mjs, artifact and catalog entries..github/workflows/ltm-browser.yml:branch-recallis added to the Long-Term Memory regression loop.Package and security impact
long-term-memoryrecall.json, backups and the schema are unchanged, and there is no migration. The regression checks that note files andrecall.jsonare byte-identical after recall.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
These checks were run by the coding agent, not by a person. Engine checkout
2039583ca, Nodev24.15.0.tests/long-term-memory-branch-recall.regression.ts. It runs the issue's table throughprepareGenerationLongTermMemory:game-session-1. B has its owngame-session-1, and B must not recall m8.recall.jsonstay byte-identical after recall.listChats.world_m1is missing.After: exits 0.
world_m8). Removing the check on the source's conversation exits 1 (world_crossis inherited).test-ltm.sh runtime,index-keys,routes,routes-scope-identity, andreconciliation-recall. So didtypecheck-packages long-term-memoryand a package build.test-fast.sh(npm run check,git diff --check);test-catalog-lanes,validate-package-locales,validate-catalogandcatalog-release-notes;branch-recall;test-ltm.sh installation(installs, restarts, backs up, uninstalls and reinstalls the rebuilt 1.4.44 artifact)./api/long-term-memory/searchroute doesn't include inherited memories.Documentation impact
UI evidence (if applicable)
None. Nothing changes on screen. The availability editor and the Vault filter still show stored assignments exactly as before.
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.